588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{255D} \u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551} \u{255A}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{255A}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2554}\u{255D}\u{2588}\u{2588}\u{2551} \u{255A}\u{2550}\u{255D} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2554}\u{255D} \u{255A}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255D} \u{255A}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255D} \u{255A}\u{2550}\u{255D} \u{255A}\u{2550}\u{255D}\u{255A}\u{2550}\u{255D} \u{255A}\u{2550}\u{255D}\u{255A}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255D}\u{255A}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255D}\u{255A}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255D} @compiled/react Code was executed when it shouldn't have. To resolve make sure to: 1. Set up Compiled. 2. Configure importSources in your Compiled config to point to the module that exports the output of createStrictAPI(). For more information visit https://compiledcssinjs.com/docs/installation and follow the instructions. `);function n(){return{css(){throw r()},cssMap(){throw r()},cx:parcelRequire("ddbVR").cx,XCSSProp(){throw r()}}}}),parcelRegister("ddbVR",function(e,t){$parcel$export(e.exports,"cx",()=>r);let r=(...e)=>{let t=e;return(0,parcelRequire("35pXk").default)(t)}}),parcelRegister("kRbf2",function(e,t){$parcel$export(e.exports,"useUID",()=>p),$parcel$export(e.exports,"useUIDSeed",()=>f);var r=(parcelRequire("gwFzn"),parcelRequire("gwFzn")),n=function(){var e=1,t=new WeakMap,r=function(n,o){return"number"==typeof n||"string"==typeof n?o?"idx-"+o:"val-"+n:t.has(n)?"uid"+t.get(n):(t.set(n,e++),r(n))};return r};n();var o=function(e){return void 0===e&&(e=""),{value:1,prefix:e,uid:n()}},i=o(),a=r.createContext(o()),s=function(e){return e.value++},c=function(e){return e?e.prefix:""},u=function(e){var t=e||i,r=c(t)+s(t),n=function(e){return r+t.uid(e)};return{uid:r,gen:n}},l=function(){return r.useState(u(r.useContext(a)))},p=function(){return l()[0].uid},f=function(){return l()[0].gen}}),parcelRegister("3rxD2",function(e,t){$parcel$export(e.exports,"randomBytes",()=>r,e=>r=e),$parcel$export(e.exports,"rng",()=>n,e=>n=e),$parcel$export(e.exports,"pseudoRandomBytes",()=>o,e=>o=e),$parcel$export(e.exports,"prng",()=>i,e=>i=e),$parcel$export(e.exports,"createHash",()=>a,e=>a=e),$parcel$export(e.exports,"Hash",()=>s,e=>s=e),$parcel$export(e.exports,"createHmac",()=>ep,e=>ep=e),$parcel$export(e.exports,"Hmac",()=>c,e=>c=e),$parcel$export(e.exports,"getHashes",()=>u,e=>u=e),$parcel$export(e.exports,"pbkdf2",()=>l,e=>l=e),$parcel$export(e.exports,"pbkdf2Sync",()=>p,e=>p=e),$parcel$export(e.exports,"Cipher",()=>f,e=>f=e),$parcel$export(e.exports,"createCipher",()=>d,e=>d=e),$parcel$export(e.exports,"Cipheriv",()=>h,e=>h=e),$parcel$export(e.exports,"createCipheriv",()=>b,e=>b=e),$parcel$export(e.exports,"Decipher",()=>M,e=>M=e),$parcel$export(e.exports,"createDecipher",()=>z,e=>z=e),$parcel$export(e.exports,"Decipheriv",()=>O,e=>O=e),$parcel$export(e.exports,"createDecipheriv",()=>m,e=>m=e),$parcel$export(e.exports,"getCiphers",()=>g,e=>g=e),$parcel$export(e.exports,"listCiphers",()=>A,e=>A=e),$parcel$export(e.exports,"DiffieHellmanGroup",()=>v,e=>v=e),$parcel$export(e.exports,"createDiffieHellmanGroup",()=>y,e=>y=e),$parcel$export(e.exports,"getDiffieHellman",()=>_,e=>_=e),$parcel$export(e.exports,"createDiffieHellman",()=>q,e=>q=e),$parcel$export(e.exports,"DiffieHellman",()=>x,e=>x=e),$parcel$export(e.exports,"createSign",()=>w,e=>w=e),$parcel$export(e.exports,"Sign",()=>R,e=>R=e),$parcel$export(e.exports,"createVerify",()=>S,e=>S=e),$parcel$export(e.exports,"Verify",()=>W,e=>W=e),$parcel$export(e.exports,"createECDH",()=>k,e=>k=e),$parcel$export(e.exports,"publicEncrypt",()=>E,e=>E=e),$parcel$export(e.exports,"privateEncrypt",()=>L,e=>L=e),$parcel$export(e.exports,"publicDecrypt",()=>N,e=>N=e),$parcel$export(e.exports,"privateDecrypt",()=>C,e=>C=e),$parcel$export(e.exports,"randomFill",()=>T,e=>T=e),$parcel$export(e.exports,"randomFillSync",()=>D,e=>D=e),$parcel$export(e.exports,"createCredentials",()=>B,e=>B=e),$parcel$export(e.exports,"constants",()=>I,e=>I=e),r=n=o=i=parcelRequire("j8g10"),a=s=parcelRequire("kh83X");var r,n,o,i,a,s,c,u,l,p,f,d,h,b,M,z,O,m,g,A,v,y,_,q,x,w,R,S,W,k,E,L,N,C,T,D,B,I,P,F,j,X,U,H,V,G,Y,K,Q,$,Z,J,ee,et,er,en,eo,ei,ea,es,ec,eu,el,ep=c=parcelRequire("fn0nD"),ef={},ed=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(ef=parcelRequire("eoS6C")));u=function(){return ed};var eh=parcelRequire("ce2C6");l=eh.pbkdf2,p=eh.pbkdf2Sync;var eb={},eM=parcelRequire("fhwsL"),ez=eM.Buffer,eO=parcelRequire("9seBW"),em=parcelRequire("WrmZY"),eg=parcelRequire("cNocx"),eA={"des-ede3-cbc":em.CBC.instantiate(em.EDE),"des-ede3":em.EDE,"des-ede-cbc":em.CBC.instantiate(em.EDE),"des-ede":em.EDE,"des-cbc":em.CBC.instantiate(em.DES),"des-ecb":em.DES};function ev(e){eO.call(this);var t,r=e.mode.toLowerCase(),n=eA[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;("des-ede"===r||"des-ede-cbc"===r)&&(o=ez.concat([o,o.slice(0,8)]));var i=e.iv;this._des=n.create({key:o,iv:i,type:t})}eA.des=eA["des-cbc"],eA.des3=eA["des-ede3-cbc"],eb=ev,eg(ev,eO),ev.prototype._update=function(e){return new ez(this._des.update(e))},ev.prototype._final=function(){return new ez(this._des.final())};var ey=parcelRequire("3Dpie"),e_=parcelRequire("53KBT"),eq={};$parcel$export(eq,"des-ecb",()=>Q,e=>Q=e),$parcel$export(eq,"des-cbc",()=>$,e=>$=e),$parcel$export(eq,"des",()=>Z,e=>Z=e),$parcel$export(eq,"des-ede3-cbc",()=>J,e=>J=e),$parcel$export(eq,"des3",()=>ee,e=>ee=e),$parcel$export(eq,"des-ede3",()=>et,e=>et=e),$parcel$export(eq,"des-ede-cbc",()=>er,e=>er=e),$parcel$export(eq,"des-ede",()=>en,e=>en=e),Q={key:8,iv:0},$=Z={key:8,iv:8},J=ee={key:24,iv:8},et={key:24,iv:0},er={key:16,iv:8},en={key:16,iv:0};var ex=parcelRequire("jDkN0");function ew(e,t){if(e_[e=e.toLowerCase()])r=e_[e].key,n=e_[e].iv;else if(eq[e])r=8*eq[e].key,n=eq[e].iv;else throw TypeError("invalid suite type");var r,n,o=ex(t,!1,r,n);return eS(e,o.key,o.iv)}function eR(e,t,r){if(e_[e=e.toLowerCase()])return ey.createCipheriv(e,t,r);if(eq[e])return new eb({key:t,iv:r,mode:e});throw TypeError("invalid suite type")}function eS(e,t,r){if(e_[e=e.toLowerCase()])return ey.createDecipheriv(e,t,r);if(eq[e])return new eb({key:t,iv:r,mode:e,decrypt:!0});throw TypeError("invalid suite type")}function eW(){return Object.keys(eq).concat(ey.getCiphers())}P=F=function(e,t){if(e_[e=e.toLowerCase()])r=e_[e].key,n=e_[e].iv;else if(eq[e])r=8*eq[e].key,n=eq[e].iv;else throw TypeError("invalid suite type");var r,n,o=ex(t,!1,r,n);return eR(e,o.key,o.iv)},j=X=eR,U=H=ew,V=G=eS,Y=K=eW,f=F,d=P,h=X,b=j,M=H,z=U,O=G,m=V,g=K,A=Y;var eM=parcelRequire("fhwsL"),ek=eM.Buffer,eE={},eL=parcelRequire("j8g10");eE=e$,e$.simpleSieve=eK,e$.fermatTest=eQ;var eN=parcelRequire("1PtXz"),eC=new eN(24),eT={},eN=parcelRequire("1PtXz"),eD=parcelRequire("hQJwY");function eB(e){this.rand=e||new eD.Rand}eT=eB,eB.create=function(e){return new eB(e)},eB.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new eN(this.rand.generate(t));while(r.cmp(e)>=0)return r},eB.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},eB.prototype.test=function(e,t,r){var n=e.bitLength(),o=eN.mont(e),i=new eN(1).toRed(o);t||(t=Math.max(1,n/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var c=e.shrn(s),u=a.toRed(o),l=!0;t>0;t--){var p=this._randrange(new eN(2),a);r&&r(p);var f=p.toRed(o).redPow(c);if(0!==f.cmp(i)&&0!==f.cmp(u)){for(var d=1;d0;t--){var u=this._randrange(new eN(2),i),l=e.gcd(u);if(0!==l.cmpn(1))return l;var p=u.toRed(n).redPow(s);if(0!==p.cmp(o)&&0!==p.cmp(c)){for(var f=1;fe;)r.ishrn(1);if(r.isEven()&&r.iadd(eP),r.testn(1)||r.iadd(eF),t.cmp(eF)){if(!t.cmp(ej))for(;r.mod(eX).cmp(eU);)r.iadd(eV)}else for(;r.mod(eC).cmp(eH);)r.iadd(eV);if(eK(n=r.shrn(1))&&eK(r)&&eQ(n)&&eQ(r)&&eI.test(n)&&eI.test(r))return r}}var eZ={};eZ=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}');var eJ={},eM=parcelRequire("fhwsL"),e0=eM.Buffer,eN=parcelRequire("1PtXz"),e1=new eT,e2=new eN(24),e3=new eN(11),e4=new eN(10),e5=new eN(3),e6=new eN(7),eL=parcelRequire("j8g10");function e8(e,t){return t=t||"utf8",e0.isBuffer(e)||(e=new e0(e,t)),this._pub=new eN(e),this}function e7(e,t){return t=t||"utf8",e0.isBuffer(e)||(e=new e0(e,t)),this._priv=new eN(e),this}eJ=tt;var e9={};function te(e,t){var r,n=t.toString("hex"),o=[n,e.toString(16)].join("_");if(o in e9)return e9[o];var i=0;if(e.isEven()||!eE.simpleSieve||!eE.fermatTest(e)||!e1.test(e))return i+=1,"02"===n||"05"===n?i+=8:i+=4,e9[o]=i,i;switch(!e1.test(e.shrn(1))&&(i+=2),n){case"02":e.mod(e2).cmp(e3)&&(i+=8);break;case"05":(r=e.mod(e4)).cmp(e5)&&r.cmp(e6)&&(i+=8);break;default:i+=4}return e9[o]=i,i}function tt(e,t,r){this.setGenerator(t),this.__prime=new eN(e),this._prime=eN.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=e8,this.setPrivateKey=e7):this._primeCode=8}function tr(e,t){var r=new e0(e.toArray());return t?r.toString(t):r}Object.defineProperty(tt.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=te(this.__prime,this.__gen)),this._primeCode}}),tt.prototype.generateKeys=function(){return this._priv||(this._priv=new eN(eL(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},tt.prototype.computeSecret=function(e){var t=new e0((e=(e=new eN(e)).toRed(this._prime)).redPow(this._priv).fromRed().toArray()),r=this.getPrime();if(t.length0&&r.ishrn(n),r}function t_(e,t){e=(e=ty(e,t)).mod(t);var r=tp.from(e.toArray());if(r.length=e.cmpn(0)||e.cmp(t)>=0)throw Error("invalid sig")}tw=function(e,t,r,n,o){var i=tM(r);if("ec"===i.type){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw Error("wrong public key type");return tW(e,t,i)}if("dsa"===i.type){if("dsa"!==n)throw Error("wrong public key type");return tk(e,t,i)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw Error("wrong public key type");t=tR.concat([o,t]);for(var a=i.modulus.byteLength(),s=[1],c=0;t.length+s.length+2tU||e<0)throw TypeError("offset must be a uint32");if(e>tj||e>t)throw RangeError("offset out of range")}function tV(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>tU||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>tj)throw RangeError("buffer too small")}function tG(e,t,r,n){if(!tF.isBuffer(e)&&!(e instanceof $parcel$global.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)n=t,t=0,r=e.length;else if("function"==typeof r)n=r,r=e.length-t;else if("function"!=typeof n)throw TypeError('"cb" argument must be a function');return tH(t,e.length),tV(r,t,e.length),tY(e,t,r,n)}function tY(e,t,r,n){var o=new Uint8Array(e.buffer,t,r);return(tX.getRandomValues(o),n)?void tI.nextTick(function(){n(null,e)}):e}function tK(e,t,r){if(void 0===t&&(t=0),!tF.isBuffer(e)&&!(e instanceof $parcel$global.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return tH(t,e.length),void 0===r&&(r=e.length-t),tV(r,t,e.length),tY(e,t,r)}tX&&tX.getRandomValues?(eu=tG,el=tK):(eu=tP,el=tP),T=eu,D=el,B=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify")},I={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}),parcelRegister("j8g10",function(e,t){var r=parcelRequire("3mTvL"),n=65536,o=0xffffffff,i=parcelRequire("1Xiwd").Buffer,a=$parcel$global.crypto||$parcel$global.msCrypto;function s(e,t){if(e>o)throw RangeError("requested too many random bytes");var s=i.allocUnsafe(e);if(e>0)if(e>n)for(var c=0;c0&&s.length>o&&!s.warned){s.warned=!0;var o,a,s,c=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,i(c)}return e}function f(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=f.bind(n);return o.listener=r,n.wrapFn=o,o}function h(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?O(o):M(o,o.length)}function b(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function M(e,t){for(var r=Array(t),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else for(var u=c.length,l=M(c,u),r=0;r=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():z(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var o,i=Object.keys(r);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},s.prototype.listenerCount=b,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}}),parcelRegister("9M4x2",function(e,t){var r,n,o,i,a,s=parcelRequire("3mTvL");e.exports=P,P.ReadableState=I,parcelRequire("2wOTq").EventEmitter;var c=function(e,t){return e.listeners(t).length},u=parcelRequire("h6FUY"),l=parcelRequire("fhwsL"),p=l.Buffer,f=(void 0!==$parcel$global?$parcel$global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function d(e){return p.from(e)}function h(e){return p.isBuffer(e)||e instanceof f}var b=parcelRequire("6sske");n=b&&b.debuglog?b.debuglog("stream"):function(){};var M={};function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return q.alloc(0);for(var t=q.allocUnsafe(e>>>0),r=this.head,n=0;r;)R(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return eo.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0==(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=q.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0==(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,t}},{key:w,value:function(e,t){return x(this,O(O({},t),{},{depth:0,customInspect:!1}))}}]),e}();var S=parcelRequire("ikglJ"),W=parcelRequire("hidel").getHighWaterMark,k=parcelRequire("57vgz").codes,E=k.ERR_INVALID_ARG_TYPE,L=k.ERR_STREAM_PUSH_AFTER_EOF,N=k.ERR_METHOD_NOT_IMPLEMENTED,C=k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;parcelRequire("cNocx")(P,u);var T=S.errorOrDestroy,D=["error","close","destroy","pause","resume"];function B(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function I(e,t,n){r=r||parcelRequire("jCZFW"),e=e||{},"boolean"!=typeof n&&(n=t instanceof r),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=W(this,e,"readableHighWaterMark",n),this.buffer=new M,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o||(o=parcelRequire("3o0On").StringDecoder),this.decoder=new o(e.encoding),this.encoding=e.encoding)}function P(e){if(r=r||parcelRequire("jCZFW"),!(this instanceof P))return new P(e);var t=this instanceof r;this._readableState=new I(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function F(e,t,r,o,i){n("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,G(e,s);else if(i||(a=X(s,t)),a)T(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===p.prototype||(t=d(t)),o)s.endEmitted?T(e,new C):j(e,s,t,!0);else if(s.ended)T(e,new L);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?j(e,s,t,!1):Q(e,s)):j(e,s,t,!1)}else o||(s.reading=!1,Q(e,s));return!s.ended&&(s.length=U?e=U:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function V(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=H(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function G(e,t){if(n("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?Y(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,K(e)))}}function Y(e){var t=e._readableState;n("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(n("emitReadable",t.flowing),t.emittedReadable=!0,s.nextTick(K,e))}function K(e){var t=e._readableState;n("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,en(e)}function Q(e,t){t.readingMore||(t.readingMore=!0,s.nextTick($,e,t))}function $(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function ee(e){n("readable nexttick read 0"),e.read(0)}function et(e,t){t.resumeScheduled||(t.resumeScheduled=!0,s.nextTick(er,e,t))}function er(e,t){n("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),en(e),t.flowing&&!t.reading&&e.read(0)}function en(e){var t=e._readableState;for(n("flow",t.flowing);t.flowing&&null!==e.read(););}function eo(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function ei(e){var t=e._readableState;n("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,s.nextTick(ea,t,e))}function ea(e,t){if(n("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function es(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return n("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?ei(this):Y(this),null;if(0===(e=V(e,r))&&r.ended)return 0===r.length&&ei(this),null;var i=r.needReadable;return n("need readable",i),(0===r.length||r.length-e0?eo(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),o!==e&&r.ended&&ei(this)),null!==t&&this.emit("data",t),t},P.prototype._read=function(e){T(this,new N("_read()"))},P.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,n("pipe count=%d opts=%j",o.pipesCount,t);var i=t&&!1===t.end||e===s.stdout||e===s.stderr?z:u;function a(e,t){n("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function u(){n("onend"),e.end()}o.endEmitted?s.nextTick(i):r.once("end",i),e.on("unpipe",a);var l=Z(r);e.on("drain",l);var p=!1;function f(){n("cleanup"),e.removeListener("close",b),e.removeListener("finish",M),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",a),r.removeListener("end",u),r.removeListener("end",z),r.removeListener("data",d),p=!0,o.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}function d(t){n("ondata");var i=e.write(t);n("dest.write",i),!1===i&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==es(o.pipes,e))&&!p&&(n("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function h(t){n("onerror",t),z(),e.removeListener("error",h),0===c(e,"error")&&T(e,t)}function b(){e.removeListener("finish",M),z()}function M(){n("onfinish"),e.removeListener("close",b),z()}function z(){n("unpipe"),r.unpipe(e)}return r.on("data",d),B(e,"error",h),e.once("close",b),e.once("finish",M),e.emit("pipe",r),o.flowing||(n("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==o.flowing&&this.resume()):"readable"!==e||o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,n("on readable",o.length,o.reading),o.length?Y(this):o.reading||s.nextTick(ee,this)),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=u.prototype.removeListener.call(this,e,t);return"readable"===e&&s.nextTick(J,this),r},P.prototype.removeAllListeners=function(e){var t=u.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&s.nextTick(J,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(n("resume"),e.flowing=!e.readableListening,et(this,e)),e.paused=!1,this},P.prototype.pause=function(){return n("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(n("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,o=!1;for(var i in e.on("end",function(){if(n("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(n("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(t.push(i)||(o=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;an,e=>n=e);var n,o={};function i(e,t,n){function i(e,r,n){return"string"==typeof t?t:t(e,r,n)}n||(n=Error);var a=function(e){function t(t,r,n){return e.call(this,i(t,r,n))||this}return r(t,e),t}(n);a.prototype.name=n.name,a.prototype.code=e,o[e]=a}function a(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function s(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function c(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function u(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){if("string"==typeof t&&s(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be",c(e," argument"))o="The ".concat(e," ").concat(n," ").concat(a(t,"type"));else{var n,o,i=u(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(i," ").concat(n," ").concat(a(t,"type"))}return o+". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),n=o}),parcelRegister("jCZFW",function(e,t){var r=parcelRequire("3mTvL"),n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=parcelRequire("9M4x2"),i=parcelRequire("b0ieT");parcelRequire("cNocx")(u,o);for(var a=n(i.prototype),s=0;s-1))throw new v(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new M("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||j(this,n,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=f.destroy,x.prototype._undestroy=f.undestroy,x.prototype._destroy=function(e,t){t(e)}}),parcelRegister("22ApL",function(e,t){function r(e){try{if(!$parcel$global.localStorage)return!1}catch(e){return!1}var t=$parcel$global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function e(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}),parcelRegister("3o0On",function(e,t){$parcel$export(e.exports,"StringDecoder",()=>r,e=>r=e);var r,n=parcelRequire("1Xiwd").Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=i(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=h,this.end=b,t=4;break;case"utf8":this.fillLast=p,t=4;break;case"base64":this.text=M,this.end=z,t=3;break;default:this.write=O,this.end=m;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function c(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n=0?(o>0&&(e.lastNeed=o-1),o):--n=0?(o>0&&(e.lastNeed=o-2),o):--n=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function p(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function h(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function b(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function M(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function z(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function O(e){return e.toString(this.encoding)}function m(e){return e&&e.length?this.write(e):""}r=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r0,function(t){e||(e=t),t&&a.forEach(l),i||(a.forEach(l),o(e))})});return r.reduce(p)}}),parcelRegister("4iD4a",function(e,t){var r=parcelRequire("cNocx"),n=parcelRequire("3CNlY"),o=parcelRequire("1Xiwd").Buffer,i=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],a=Array(80);function s(){this.init(),this._w=a,n.call(this,64,56)}function c(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}r(s,n),s.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},s.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,p=0;p<16;++p)t[p]=e.readInt32BE(4*p);for(;p<80;++p)t[p]=t[p-3]^t[p-8]^t[p-14]^t[p-16];for(var f=0;f<80;++f){var d=~~(f/20),h=c(r)+l(d,n,o,a)+s+t[f]+i[d]|0;s=a,a=o,o=u(n),n=r,r=h}this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s}),parcelRegister("1NrFJ",function(e,t){var r=parcelRequire("cNocx"),n=parcelRequire("3CNlY"),o=parcelRequire("1Xiwd").Buffer,i=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],a=Array(80);function s(){this.init(),this._w=a,n.call(this,64,56)}function c(e){return e<<1|e>>>31}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function p(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}r(s,n),s.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},s.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<80;++f)t[f]=c(t[f-3]^t[f-8]^t[f-14]^t[f-16]);for(var d=0;d<80;++d){var h=~~(d/20),b=u(r)+p(h,n,o,a)+s+t[d]+i[h]|0;s=a,a=o,o=l(n),n=r,r=b}this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s}),parcelRegister("1m2EA",function(e,t){var r=parcelRequire("cNocx"),n=parcelRequire("1ZCsY"),o=parcelRequire("3CNlY"),i=parcelRequire("1Xiwd").Buffer,a=Array(64);function s(){this.init(),this._w=a,o.call(this,64,56)}r(s,n),s.prototype.init=function(){return this._a=0xc1059ed8,this._b=0x367cd507,this._c=0x3070dd17,this._d=0xf70e5939,this._e=0xffc00b31,this._f=0x68581511,this._g=0x64f98fa7,this._h=0xbefa4fa4,this},s.prototype._hash=function(){var e=i.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=s}),parcelRegister("1ZCsY",function(e,t){var r=parcelRequire("cNocx"),n=parcelRequire("3CNlY"),o=parcelRequire("1Xiwd").Buffer,i=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],a=Array(64);function s(){this.init(),this._w=a,n.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function p(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function d(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}r(s,n),s.prototype.init=function(){return this._a=0x6a09e667,this._b=0xbb67ae85,this._c=0x3c6ef372,this._d=0xa54ff53a,this._e=0x510e527f,this._f=0x9b05688c,this._g=0x1f83d9ab,this._h=0x5be0cd19,this},s.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,h=0|this._f,b=0|this._g,M=0|this._h,z=0;z<16;++z)t[z]=e.readInt32BE(4*z);for(;z<64;++z)t[z]=d(t[z-2])+t[z-7]+f(t[z-15])+t[z-16]|0;for(var O=0;O<64;++O){var m=M+p(s)+c(s,h,b)+i[O]+t[O]|0,g=l(r)+u(r,n,o)|0;M=b,b=h,h=s,s=a+m|0,a=o,o=n,n=r,r=m+g|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=h+this._f|0,this._g=b+this._g|0,this._h=M+this._h|0},s.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=s}),parcelRegister("6c1hc",function(e,t){var r=parcelRequire("cNocx"),n=parcelRequire("fDVXj"),o=parcelRequire("3CNlY"),i=parcelRequire("1Xiwd").Buffer,a=Array(160);function s(){this.init(),this._w=a,o.call(this,128,112)}r(s,n),s.prototype.init=function(){return this._ah=0xcbbb9d5d,this._bh=0x629a292a,this._ch=0x9159015a,this._dh=0x152fecd8,this._eh=0x67332667,this._fh=0x8eb44a87,this._gh=0xdb0c2e0d,this._hh=0x47b5481d,this._al=0xc1059ed8,this._bl=0x367cd507,this._cl=0x3070dd17,this._dl=0xf70e5939,this._el=0xffc00b31,this._fl=0x68581511,this._gl=0x64f98fa7,this._hl=0xbefa4fa4,this},s.prototype._hash=function(){var e=i.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=s}),parcelRegister("fDVXj",function(e,t){var r=parcelRequire("cNocx"),n=parcelRequire("3CNlY"),o=parcelRequire("1Xiwd").Buffer,i=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817],a=Array(160);function s(){this.init(),this._w=a,n.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function p(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function M(e,t){return+(e>>>0>>0)}r(s,n),s.prototype.init=function(){return this._ah=0x6a09e667,this._bh=0xbb67ae85,this._ch=0x3c6ef372,this._dh=0xa54ff53a,this._eh=0x510e527f,this._fh=0x9b05688c,this._gh=0x1f83d9ab,this._hh=0x5be0cd19,this._al=0xf3bcc908,this._bl=0x84caa73b,this._cl=0xfe94f82b,this._dl=0x5f1d36f1,this._el=0xade682d1,this._fl=0x2b3e6c1f,this._gl=0xfb41bd6b,this._hl=0x137e2179,this},s.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,o=0|this._ch,a=0|this._dh,s=0|this._eh,z=0|this._fh,O=0|this._gh,m=0|this._hh,g=0|this._al,A=0|this._bl,v=0|this._cl,y=0|this._dl,_=0|this._el,q=0|this._fl,x=0|this._gl,w=0|this._hl,R=0;R<32;R+=2)t[R]=e.readInt32BE(4*R),t[R+1]=e.readInt32BE(4*R+4);for(;R<160;R+=2){var S=t[R-30],W=t[R-30+1],k=f(S,W),E=d(W,S),L=h(S=t[R-4],W=t[R-4+1]),N=b(W,S),C=t[R-14],T=t[R-14+1],D=t[R-32],B=t[R-32+1],I=E+T|0,P=k+C+M(I,E)|0;P=(P=P+L+M(I=I+N|0,N)|0)+D+M(I=I+B|0,B)|0,t[R]=P,t[R+1]=I}for(var F=0;F<160;F+=2){P=t[F],I=t[F+1];var j=u(r,n,o),X=u(g,A,v),U=l(r,g),H=l(g,r),V=p(s,_),G=p(_,s),Y=i[F],K=i[F+1],Q=c(s,z,O),$=c(_,q,x),Z=w+G|0,J=m+V+M(Z,w)|0;J=(J=(J=J+Q+M(Z=Z+$|0,$)|0)+Y+M(Z=Z+K|0,K)|0)+P+M(Z=Z+I|0,I)|0;var ee=H+X|0,et=U+j+M(ee,H)|0;m=O,w=x,O=z,x=q,z=s,q=_,s=a+J+M(_=y+Z|0,y)|0,a=o,y=v,o=n,v=A,n=r,A=g,r=J+et+M(g=Z+ee|0,Z)|0}this._al=this._al+g|0,this._bl=this._bl+A|0,this._cl=this._cl+v|0,this._dl=this._dl+y|0,this._el=this._el+_|0,this._fl=this._fl+q|0,this._gl=this._gl+x|0,this._hl=this._hl+w|0,this._ah=this._ah+r+M(this._al,g)|0,this._bh=this._bh+n+M(this._bl,A)|0,this._ch=this._ch+o+M(this._cl,v)|0,this._dh=this._dh+a+M(this._dl,y)|0,this._eh=this._eh+s+M(this._el,_)|0,this._fh=this._fh+z+M(this._fl,q)|0,this._gh=this._gh+O+M(this._gl,x)|0,this._hh=this._hh+m+M(this._hl,w)|0},s.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=s}),parcelRegister("fn0nD",function(e,t){var r=parcelRequire("cNocx"),n={},r=parcelRequire("cNocx"),o=parcelRequire("1Xiwd"),i=o.Buffer,a=parcelRequire("9seBW"),s=i.alloc(128),c=64;function u(e,t){a.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>c?t=e(t):t.lengthr?t=("rmd160"===e?new f:d(e)).update(t).digest():t.lengtho?t=n(t):t.lengths,e=>s=e),$parcel$export(e.exports,"writeUInt32BE",()=>c,e=>c=e),$parcel$export(e.exports,"ip",()=>u,e=>u=e),$parcel$export(e.exports,"rip",()=>l,e=>l=e),$parcel$export(e.exports,"pc1",()=>p,e=>p=e),$parcel$export(e.exports,"r28shl",()=>f,e=>f=e),$parcel$export(e.exports,"pc2",()=>r,e=>r=e),$parcel$export(e.exports,"expand",()=>n,e=>n=e),$parcel$export(e.exports,"substitute",()=>o,e=>o=e),$parcel$export(e.exports,"permute",()=>i,e=>i=e),$parcel$export(e.exports,"padSplit",()=>a,e=>a=e);var r,n,o,i,a,s=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},c=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},u=function(e,t,r,n){for(var o=0,i=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>>s+a&1;for(var s=0;s<=24;s+=8)o<<=1,o|=e>>>s+a&1}for(var a=6;a>=0;a-=2){for(var s=1;s<=25;s+=8)i<<=1,i|=t>>>s+a&1;for(var s=1;s<=25;s+=8)i<<=1,i|=e>>>s+a&1}r[n+0]=o>>>0,r[n+1]=i>>>0},l=function(e,t,r,n){for(var o=0,i=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;for(var a=4;a<8;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;r[n+0]=o>>>0,r[n+1]=i>>>0},p=function(e,t,r,n){for(var o=0,i=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(var a=1;a<=3;a++){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;r[n+0]=o>>>0,r[n+1]=i>>>0},f=function(e,t){return e<>>28-t},d=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r=function(e,t,r,n){for(var o=0,i=0,a=d.length>>>1,s=0;s>>d[s]&1;for(var s=a;s>>d[s]&1;r[n+0]=o>>>0,r[n+1]=i>>>0},n=function(e,t,r){var n=0,o=0;n=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)n<<=6,n|=e>>>i&63;for(var i=11;i>=3;i-=4)o|=e>>>i&63,o<<=6;o|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=o>>>0};var h=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];o=function(e,t){for(var r=0,n=0;n<4;n++){var o=e>>>18-6*n&63,i=h[64*n+o];r<<=4,r|=i}for(var n=0;n<4;n++){var o=t>>>18-6*n&63,i=h[256+64*n+o];r<<=4,r|=i}return r>>>0};var b=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];i=function(e){for(var t=0,r=0;r>>b[r]&1;return t>>>0},a=function(e,t,r){for(var n=e.toString(2);n.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(o,r);return t+=this._buffer(e,t),o},n.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];n=i.r28shl(n,s),o=i.r28shl(o,s),i.pc2(n,o,e.keys,a)}},c.prototype._update=function(e,t,r,n){var o=this._desState,a=i.readUInt32BE(e,t),s=i.readUInt32BE(e,t+4);i.ip(a,s,o.tmp,0),a=o.tmp[0],s=o.tmp[1],"encrypt"===this.type?this._encrypt(o,a,s,o.tmp,0):this._decrypt(o,a,s,o.tmp,0),a=o.tmp[0],s=o.tmp[1],i.writeUInt32BE(r,a,n),i.writeUInt32BE(r,s,n+4)},c.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,a=d}i.rip(s,a,n,o)},c.prototype._decrypt=function(e,t,r,n,o){for(var a=r,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];i.expand(a,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var p=i.substitute(u,l),f=i.permute(p),d=a;a=(s^f)>>>0,s=d}i.rip(a,s,n,o)}}),parcelRegister("4ltZ2",function(e,t){$parcel$export(e.exports,"instantiate",()=>r,e=>r=e);var r,n=parcelRequire("895Ov"),o=parcelRequire("cNocx"),i={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var t=0;tr,e=>r=e),$parcel$export(e.exports,"decrypt",()=>n,e=>n=e),r=function(e,t){return e._cipher.encryptBlock(t)},n=function(e,t){return e._cipher.decryptBlock(t)}}),parcelRegister("9cV25",function(e,t){$parcel$export(e.exports,"encrypt",()=>r,e=>r=e),$parcel$export(e.exports,"decrypt",()=>n,e=>n=e);var r,n,o=parcelRequire("c7jdT");r=function(e,t){var r=o(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},n=function(e,t){var r=e._prev;return e._prev=t,o(e._cipher.decryptBlock(t),r)}}),parcelRegister("2mitJ",function(e,t){$parcel$export(e.exports,"encrypt",()=>r,e=>r=e);var r,n=parcelRequire("1Xiwd").Buffer,o=parcelRequire("c7jdT");function i(e,t,r){var i=t.length,a=o(t,e._cache);return e._cache=e._cache.slice(i),e._prev=n.concat([e._prev,r?t:a]),a}r=function(e,t,r){for(var o,a=n.allocUnsafe(0);t.length;)if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),e._cache.length<=t.length)o=e._cache.length,a=n.concat([a,i(e,t.slice(0,o),r)]),t=t.slice(o);else{a=n.concat([a,i(e,t,r)]);break}return a}}),parcelRegister("9nmXc",function(e,t){$parcel$export(e.exports,"encrypt",()=>r,e=>r=e);var r,n=parcelRequire("1Xiwd").Buffer;function o(e,t,r){var o=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:o])]),o}r=function(e,t,r){for(var i=t.length,a=n.allocUnsafe(i),s=-1;++sr,e=>r=e);var r,n=parcelRequire("1Xiwd").Buffer;function o(e,t,r){for(var n,o,a,s=-1,c=8,u=0;++s>s%8,e._prev=i(e._prev,r?o:a);return u}function i(e,t){var r=e.length,o=-1,i=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++o>7;return i}r=function(e,t,r){for(var i=t.length,a=n.allocUnsafe(i),s=-1;++sr,e=>r=e);var r,n=parcelRequire("fhwsL").Buffer,o=parcelRequire("c7jdT");function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}r=function(e,t){for(;e._cache.lengthr,e=>r=e);var r,n=parcelRequire("c7jdT"),o=parcelRequire("1Xiwd").Buffer,i=parcelRequire("a7PXh");function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return i(e._prev),t}var s=16;r=function(e,t){var r=Math.ceil(t.length/s),i=e._cache.length;e._cache=o.concat([e._cache,o.allocUnsafe(r*s)]);for(var c=0;c=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function a(e,t,r){var n=i(e,r);return r-1>=t&&(n|=i(e,r-1)<<4),n}function s(e,t,r,n){for(var o=0,i=Math.min(e.length,r),a=t;a=49?o+=s-49+10:s>=17?o+=s-17+10:o+=s}return o}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;a-=3)i=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=i<>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(a=0,o=0;a>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,o=0;o=t;o-=2)n=a(e,t,o)<=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;else for(o=(e.length-t)%2==0?t+1:t;o=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=0x3ffffff;o*=t)n++;n--,o=o/t|0;for(var i=e.length-r,a=i%n,c=Math.min(i,i-a)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function f(e){for(var t=Array(e.bitLength()),r=0;r>>o}return t}function d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,s=0x3ffffff&a,c=a/0x4000000|0;r.words[0]=s;for(var u=1;u>>26,p=0x3ffffff&c,f=Math.min(u,t.length-1),d=Math.max(0,u-e.length+1);d<=f;d++){var h=u-d|0;l+=(a=(o=0|e.words[h])*(i=0|t.words[d])+p)/0x4000000|0,p=0x3ffffff&a}r.words[u]=0|p,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var n="",o=0,i=0,a=0;a>>24-o&0xffffff,(o+=2)>=26&&(o-=26,a--),n=0!==i||a!==this.length-1?u[6-c.length]+c+n:c+n}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var f=l[e],d=p[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var b=h.modn(d).toString(e);n=(h=h.idivn(d)).isZero()?b+n:u[f-b.length]+b+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==c),this.toArrayLike(c,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var o,i,a=this.byteLength(),s=n||Math.max(1,a);r(a<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0"),this.strip();var c="le"===t,u=new e(s),l=this.clone();if(c){for(i=0;!l.isZero();i++)o=l.andln(255),l.iushrn(8),u[i]=o;for(;i=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var o=0;o0&&(this.words[o]=~this.words[o]&0x3ffffff>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),t?this.words[n]=this.words[n]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,o=0,i=0;i>>26;for(;0!==o&&i>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(t=this,r=e):(t=e,r=this);for(var i=0,a=0;a>26,this.words[a]=0x3ffffff&n;for(;0!==i&&a>26,this.words[a]=0x3ffffff&n;if(0===i&&a>>13,d=0|a[1],h=8191&d,b=d>>>13,M=0|a[2],z=8191&M,O=M>>>13,m=0|a[3],g=8191&m,A=m>>>13,v=0|a[4],y=8191&v,_=v>>>13,q=0|a[5],x=8191&q,w=q>>>13,R=0|a[6],S=8191&R,W=R>>>13,k=0|a[7],E=8191&k,L=k>>>13,N=0|a[8],C=8191&N,T=N>>>13,D=0|a[9],B=8191&D,I=D>>>13,P=0|s[0],F=8191&P,j=P>>>13,X=0|s[1],U=8191&X,H=X>>>13,V=0|s[2],G=8191&V,Y=V>>>13,K=0|s[3],Q=8191&K,$=K>>>13,Z=0|s[4],J=8191&Z,ee=Z>>>13,et=0|s[5],er=8191&et,en=et>>>13,eo=0|s[6],ei=8191&eo,ea=eo>>>13,es=0|s[7],ec=8191&es,eu=es>>>13,el=0|s[8],ep=8191&el,ef=el>>>13,ed=0|s[9],eh=8191&ed,eb=ed>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(p,F);var eM=(u+n|0)+((8191&(o=(o=Math.imul(p,j))+Math.imul(f,F)|0))<<13)|0;u=((i=Math.imul(f,j))+(o>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(h,F),o=(o=Math.imul(h,j))+Math.imul(b,F)|0,i=Math.imul(b,j),n=n+Math.imul(p,U)|0;var ez=(u+n|0)+((8191&(o=(o=o+Math.imul(p,H)|0)+Math.imul(f,U)|0))<<13)|0;u=((i=i+Math.imul(f,H)|0)+(o>>>13)|0)+(ez>>>26)|0,ez&=0x3ffffff,n=Math.imul(z,F),o=(o=Math.imul(z,j))+Math.imul(O,F)|0,i=Math.imul(O,j),n=n+Math.imul(h,U)|0,o=(o=o+Math.imul(h,H)|0)+Math.imul(b,U)|0,i=i+Math.imul(b,H)|0,n=n+Math.imul(p,G)|0;var eO=(u+n|0)+((8191&(o=(o=o+Math.imul(p,Y)|0)+Math.imul(f,G)|0))<<13)|0;u=((i=i+Math.imul(f,Y)|0)+(o>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(g,F),o=(o=Math.imul(g,j))+Math.imul(A,F)|0,i=Math.imul(A,j),n=n+Math.imul(z,U)|0,o=(o=o+Math.imul(z,H)|0)+Math.imul(O,U)|0,i=i+Math.imul(O,H)|0,n=n+Math.imul(h,G)|0,o=(o=o+Math.imul(h,Y)|0)+Math.imul(b,G)|0,i=i+Math.imul(b,Y)|0,n=n+Math.imul(p,Q)|0;var em=(u+n|0)+((8191&(o=(o=o+Math.imul(p,$)|0)+Math.imul(f,Q)|0))<<13)|0;u=((i=i+Math.imul(f,$)|0)+(o>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(y,F),o=(o=Math.imul(y,j))+Math.imul(_,F)|0,i=Math.imul(_,j),n=n+Math.imul(g,U)|0,o=(o=o+Math.imul(g,H)|0)+Math.imul(A,U)|0,i=i+Math.imul(A,H)|0,n=n+Math.imul(z,G)|0,o=(o=o+Math.imul(z,Y)|0)+Math.imul(O,G)|0,i=i+Math.imul(O,Y)|0,n=n+Math.imul(h,Q)|0,o=(o=o+Math.imul(h,$)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,$)|0,n=n+Math.imul(p,J)|0;var eg=(u+n|0)+((8191&(o=(o=o+Math.imul(p,ee)|0)+Math.imul(f,J)|0))<<13)|0;u=((i=i+Math.imul(f,ee)|0)+(o>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(x,F),o=(o=Math.imul(x,j))+Math.imul(w,F)|0,i=Math.imul(w,j),n=n+Math.imul(y,U)|0,o=(o=o+Math.imul(y,H)|0)+Math.imul(_,U)|0,i=i+Math.imul(_,H)|0,n=n+Math.imul(g,G)|0,o=(o=o+Math.imul(g,Y)|0)+Math.imul(A,G)|0,i=i+Math.imul(A,Y)|0,n=n+Math.imul(z,Q)|0,o=(o=o+Math.imul(z,$)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,$)|0,n=n+Math.imul(h,J)|0,o=(o=o+Math.imul(h,ee)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,ee)|0,n=n+Math.imul(p,er)|0;var eA=(u+n|0)+((8191&(o=(o=o+Math.imul(p,en)|0)+Math.imul(f,er)|0))<<13)|0;u=((i=i+Math.imul(f,en)|0)+(o>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(S,F),o=(o=Math.imul(S,j))+Math.imul(W,F)|0,i=Math.imul(W,j),n=n+Math.imul(x,U)|0,o=(o=o+Math.imul(x,H)|0)+Math.imul(w,U)|0,i=i+Math.imul(w,H)|0,n=n+Math.imul(y,G)|0,o=(o=o+Math.imul(y,Y)|0)+Math.imul(_,G)|0,i=i+Math.imul(_,Y)|0,n=n+Math.imul(g,Q)|0,o=(o=o+Math.imul(g,$)|0)+Math.imul(A,Q)|0,i=i+Math.imul(A,$)|0,n=n+Math.imul(z,J)|0,o=(o=o+Math.imul(z,ee)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,ee)|0,n=n+Math.imul(h,er)|0,o=(o=o+Math.imul(h,en)|0)+Math.imul(b,er)|0,i=i+Math.imul(b,en)|0,n=n+Math.imul(p,ei)|0;var ev=(u+n|0)+((8191&(o=(o=o+Math.imul(p,ea)|0)+Math.imul(f,ei)|0))<<13)|0;u=((i=i+Math.imul(f,ea)|0)+(o>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(E,F),o=(o=Math.imul(E,j))+Math.imul(L,F)|0,i=Math.imul(L,j),n=n+Math.imul(S,U)|0,o=(o=o+Math.imul(S,H)|0)+Math.imul(W,U)|0,i=i+Math.imul(W,H)|0,n=n+Math.imul(x,G)|0,o=(o=o+Math.imul(x,Y)|0)+Math.imul(w,G)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,$)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,$)|0,n=n+Math.imul(g,J)|0,o=(o=o+Math.imul(g,ee)|0)+Math.imul(A,J)|0,i=i+Math.imul(A,ee)|0,n=n+Math.imul(z,er)|0,o=(o=o+Math.imul(z,en)|0)+Math.imul(O,er)|0,i=i+Math.imul(O,en)|0,n=n+Math.imul(h,ei)|0,o=(o=o+Math.imul(h,ea)|0)+Math.imul(b,ei)|0,i=i+Math.imul(b,ea)|0,n=n+Math.imul(p,ec)|0;var ey=(u+n|0)+((8191&(o=(o=o+Math.imul(p,eu)|0)+Math.imul(f,ec)|0))<<13)|0;u=((i=i+Math.imul(f,eu)|0)+(o>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(C,F),o=(o=Math.imul(C,j))+Math.imul(T,F)|0,i=Math.imul(T,j),n=n+Math.imul(E,U)|0,o=(o=o+Math.imul(E,H)|0)+Math.imul(L,U)|0,i=i+Math.imul(L,H)|0,n=n+Math.imul(S,G)|0,o=(o=o+Math.imul(S,Y)|0)+Math.imul(W,G)|0,i=i+Math.imul(W,Y)|0,n=n+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,$)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,$)|0,n=n+Math.imul(y,J)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(_,J)|0,i=i+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,o=(o=o+Math.imul(g,en)|0)+Math.imul(A,er)|0,i=i+Math.imul(A,en)|0,n=n+Math.imul(z,ei)|0,o=(o=o+Math.imul(z,ea)|0)+Math.imul(O,ei)|0,i=i+Math.imul(O,ea)|0,n=n+Math.imul(h,ec)|0,o=(o=o+Math.imul(h,eu)|0)+Math.imul(b,ec)|0,i=i+Math.imul(b,eu)|0,n=n+Math.imul(p,ep)|0;var e_=(u+n|0)+((8191&(o=(o=o+Math.imul(p,ef)|0)+Math.imul(f,ep)|0))<<13)|0;u=((i=i+Math.imul(f,ef)|0)+(o>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(B,F),o=(o=Math.imul(B,j))+Math.imul(I,F)|0,i=Math.imul(I,j),n=n+Math.imul(C,U)|0,o=(o=o+Math.imul(C,H)|0)+Math.imul(T,U)|0,i=i+Math.imul(T,H)|0,n=n+Math.imul(E,G)|0,o=(o=o+Math.imul(E,Y)|0)+Math.imul(L,G)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,$)|0)+Math.imul(W,Q)|0,i=i+Math.imul(W,$)|0,n=n+Math.imul(x,J)|0,o=(o=o+Math.imul(x,ee)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(y,er)|0,o=(o=o+Math.imul(y,en)|0)+Math.imul(_,er)|0,i=i+Math.imul(_,en)|0,n=n+Math.imul(g,ei)|0,o=(o=o+Math.imul(g,ea)|0)+Math.imul(A,ei)|0,i=i+Math.imul(A,ea)|0,n=n+Math.imul(z,ec)|0,o=(o=o+Math.imul(z,eu)|0)+Math.imul(O,ec)|0,i=i+Math.imul(O,eu)|0,n=n+Math.imul(h,ep)|0,o=(o=o+Math.imul(h,ef)|0)+Math.imul(b,ep)|0,i=i+Math.imul(b,ef)|0,n=n+Math.imul(p,eh)|0;var eq=(u+n|0)+((8191&(o=(o=o+Math.imul(p,eb)|0)+Math.imul(f,eh)|0))<<13)|0;u=((i=i+Math.imul(f,eb)|0)+(o>>>13)|0)+(eq>>>26)|0,eq&=0x3ffffff,n=Math.imul(B,U),o=(o=Math.imul(B,H))+Math.imul(I,U)|0,i=Math.imul(I,H),n=n+Math.imul(C,G)|0,o=(o=o+Math.imul(C,Y)|0)+Math.imul(T,G)|0,i=i+Math.imul(T,Y)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,$)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,$)|0,n=n+Math.imul(S,J)|0,o=(o=o+Math.imul(S,ee)|0)+Math.imul(W,J)|0,i=i+Math.imul(W,ee)|0,n=n+Math.imul(x,er)|0,o=(o=o+Math.imul(x,en)|0)+Math.imul(w,er)|0,i=i+Math.imul(w,en)|0,n=n+Math.imul(y,ei)|0,o=(o=o+Math.imul(y,ea)|0)+Math.imul(_,ei)|0,i=i+Math.imul(_,ea)|0,n=n+Math.imul(g,ec)|0,o=(o=o+Math.imul(g,eu)|0)+Math.imul(A,ec)|0,i=i+Math.imul(A,eu)|0,n=n+Math.imul(z,ep)|0,o=(o=o+Math.imul(z,ef)|0)+Math.imul(O,ep)|0,i=i+Math.imul(O,ef)|0,n=n+Math.imul(h,eh)|0;var ex=(u+n|0)+((8191&(o=(o=o+Math.imul(h,eb)|0)+Math.imul(b,eh)|0))<<13)|0;u=((i=i+Math.imul(b,eb)|0)+(o>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(B,G),o=(o=Math.imul(B,Y))+Math.imul(I,G)|0,i=Math.imul(I,Y),n=n+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(T,Q)|0,i=i+Math.imul(T,$)|0,n=n+Math.imul(E,J)|0,o=(o=o+Math.imul(E,ee)|0)+Math.imul(L,J)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(S,er)|0,o=(o=o+Math.imul(S,en)|0)+Math.imul(W,er)|0,i=i+Math.imul(W,en)|0,n=n+Math.imul(x,ei)|0,o=(o=o+Math.imul(x,ea)|0)+Math.imul(w,ei)|0,i=i+Math.imul(w,ea)|0,n=n+Math.imul(y,ec)|0,o=(o=o+Math.imul(y,eu)|0)+Math.imul(_,ec)|0,i=i+Math.imul(_,eu)|0,n=n+Math.imul(g,ep)|0,o=(o=o+Math.imul(g,ef)|0)+Math.imul(A,ep)|0,i=i+Math.imul(A,ef)|0,n=n+Math.imul(z,eh)|0;var ew=(u+n|0)+((8191&(o=(o=o+Math.imul(z,eb)|0)+Math.imul(O,eh)|0))<<13)|0;u=((i=i+Math.imul(O,eb)|0)+(o>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(B,Q),o=(o=Math.imul(B,$))+Math.imul(I,Q)|0,i=Math.imul(I,$),n=n+Math.imul(C,J)|0,o=(o=o+Math.imul(C,ee)|0)+Math.imul(T,J)|0,i=i+Math.imul(T,ee)|0,n=n+Math.imul(E,er)|0,o=(o=o+Math.imul(E,en)|0)+Math.imul(L,er)|0,i=i+Math.imul(L,en)|0,n=n+Math.imul(S,ei)|0,o=(o=o+Math.imul(S,ea)|0)+Math.imul(W,ei)|0,i=i+Math.imul(W,ea)|0,n=n+Math.imul(x,ec)|0,o=(o=o+Math.imul(x,eu)|0)+Math.imul(w,ec)|0,i=i+Math.imul(w,eu)|0,n=n+Math.imul(y,ep)|0,o=(o=o+Math.imul(y,ef)|0)+Math.imul(_,ep)|0,i=i+Math.imul(_,ef)|0,n=n+Math.imul(g,eh)|0;var eR=(u+n|0)+((8191&(o=(o=o+Math.imul(g,eb)|0)+Math.imul(A,eh)|0))<<13)|0;u=((i=i+Math.imul(A,eb)|0)+(o>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(B,J),o=(o=Math.imul(B,ee))+Math.imul(I,J)|0,i=Math.imul(I,ee),n=n+Math.imul(C,er)|0,o=(o=o+Math.imul(C,en)|0)+Math.imul(T,er)|0,i=i+Math.imul(T,en)|0,n=n+Math.imul(E,ei)|0,o=(o=o+Math.imul(E,ea)|0)+Math.imul(L,ei)|0,i=i+Math.imul(L,ea)|0,n=n+Math.imul(S,ec)|0,o=(o=o+Math.imul(S,eu)|0)+Math.imul(W,ec)|0,i=i+Math.imul(W,eu)|0,n=n+Math.imul(x,ep)|0,o=(o=o+Math.imul(x,ef)|0)+Math.imul(w,ep)|0,i=i+Math.imul(w,ef)|0,n=n+Math.imul(y,eh)|0;var eS=(u+n|0)+((8191&(o=(o=o+Math.imul(y,eb)|0)+Math.imul(_,eh)|0))<<13)|0;u=((i=i+Math.imul(_,eb)|0)+(o>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(B,er),o=(o=Math.imul(B,en))+Math.imul(I,er)|0,i=Math.imul(I,en),n=n+Math.imul(C,ei)|0,o=(o=o+Math.imul(C,ea)|0)+Math.imul(T,ei)|0,i=i+Math.imul(T,ea)|0,n=n+Math.imul(E,ec)|0,o=(o=o+Math.imul(E,eu)|0)+Math.imul(L,ec)|0,i=i+Math.imul(L,eu)|0,n=n+Math.imul(S,ep)|0,o=(o=o+Math.imul(S,ef)|0)+Math.imul(W,ep)|0,i=i+Math.imul(W,ef)|0,n=n+Math.imul(x,eh)|0;var eW=(u+n|0)+((8191&(o=(o=o+Math.imul(x,eb)|0)+Math.imul(w,eh)|0))<<13)|0;u=((i=i+Math.imul(w,eb)|0)+(o>>>13)|0)+(eW>>>26)|0,eW&=0x3ffffff,n=Math.imul(B,ei),o=(o=Math.imul(B,ea))+Math.imul(I,ei)|0,i=Math.imul(I,ea),n=n+Math.imul(C,ec)|0,o=(o=o+Math.imul(C,eu)|0)+Math.imul(T,ec)|0,i=i+Math.imul(T,eu)|0,n=n+Math.imul(E,ep)|0,o=(o=o+Math.imul(E,ef)|0)+Math.imul(L,ep)|0,i=i+Math.imul(L,ef)|0,n=n+Math.imul(S,eh)|0;var ek=(u+n|0)+((8191&(o=(o=o+Math.imul(S,eb)|0)+Math.imul(W,eh)|0))<<13)|0;u=((i=i+Math.imul(W,eb)|0)+(o>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(B,ec),o=(o=Math.imul(B,eu))+Math.imul(I,ec)|0,i=Math.imul(I,eu),n=n+Math.imul(C,ep)|0,o=(o=o+Math.imul(C,ef)|0)+Math.imul(T,ep)|0,i=i+Math.imul(T,ef)|0,n=n+Math.imul(E,eh)|0;var eE=(u+n|0)+((8191&(o=(o=o+Math.imul(E,eb)|0)+Math.imul(L,eh)|0))<<13)|0;u=((i=i+Math.imul(L,eb)|0)+(o>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(B,ep),o=(o=Math.imul(B,ef))+Math.imul(I,ep)|0,i=Math.imul(I,ef),n=n+Math.imul(C,eh)|0;var eL=(u+n|0)+((8191&(o=(o=o+Math.imul(C,eb)|0)+Math.imul(T,eh)|0))<<13)|0;u=((i=i+Math.imul(T,eb)|0)+(o>>>13)|0)+(eL>>>26)|0,eL&=0x3ffffff,n=Math.imul(B,eh);var eN=(u+n|0)+((8191&(o=(o=Math.imul(B,eb))+Math.imul(I,eh)|0))<<13)|0;return u=((i=Math.imul(I,eb))+(o>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,c[0]=eM,c[1]=ez,c[2]=eO,c[3]=em,c[4]=eg,c[5]=eA,c[6]=ev,c[7]=ey,c[8]=e_,c[9]=eq,c[10]=ex,c[11]=ew,c[12]=eR,c[13]=eS,c[14]=eW,c[15]=ek,c[16]=eE,c[17]=eL,c[18]=eN,0!==u&&(c[19]=u,r.length++),r};function b(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,i=0;i>>26)|0)>>>26,a&=0x3ffffff}r.words[i]=s,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r.strip()}function M(e,t,r){return new z().mulp(e,t,r)}function z(e,t){this.x=e,this.y=t}Math.imul||(h=d),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):n<63?d(this,e,t):n<1024?b(this,e,t):M(this,e,t)},z.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},z.prototype.permute=function(e,t,r,n,o,i){for(var a=0;a>>=1)o++;return 1<>>=13,n[2*a+1]=8191&i,i>>>=13;for(a=2*t;a>=26,t+=(o/0x4000000|0)+(i>>>26),this.words[n]=0x3ffffff&i}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=f(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,n=e%26,o=(e-n)/26,i=0x3ffffff>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t=0);var o=t?(t-t%26)/26:0,i=e%26,a=Math.min((e-i)/26,this.length),s=0x3ffffff^0x3ffffff>>>i<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=o);u--){var p=0|this.words[u];this.words[u]=l<<26-i|p>>>i,l=p&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,o=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var o=0x3ffffff^0x3ffffff>>>t<=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/0x4000000|0),this.words[o+n]=0x3ffffff&i}for(;o>26,this.words[o+n]=0x3ffffff&i;if(0===s)return this.strip();for(r(-1===s),s=0,o=0;o>26,this.words[o]=0x3ffffff&i;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var c=i.length-a.length;if("mod"!==t){(r=new o(null)).length=c+1,r.words=Array(r.length);for(var u=0;u=0;p--){var f=(0|i.words[a.length+p])*0x4000000+(0|i.words[a.length+p-1]);for(f=Math.min(f/s|0,0x3ffffff),i._ishlnsubmul(a,f,p);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(a,1,p),i.isZero()||(i.negative^=1);r&&(r.words[p]=f)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,n){var i,a,s;return(r(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=0x3ffffff);for(var t=0x4000000%e,n=0,o=this.length-1;o>=0;o--)n=(t*n+(0|this.words[o]))%e;return n},o.prototype.idivn=function(e){r(e<=0x3ffffff);for(var t=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+0x4000000*t;this.words[n]=o/e|0,t=o%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),p=t.clone();!t.isZero();){for(var f=0,d=1;(t.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(p)),i.iushrn(1),a.iushrn(1);for(var h=0,b=1;(n.words[0]&b)==0&&h<26;++h,b<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(p)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(u)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t,n=this,i=e.clone();n=0!==n.negative?n.umod(e):n.clone();for(var a=new o(1),s=new o(0),c=i.clone();n.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var p=0,f=1;(i.words[0]&f)==0&&p<26;++p,f<<=1);if(p>0)for(i.iushrn(p);p-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);n.cmp(i)>=0?(n.isub(i),a.isub(s)):(i.isub(n),s.isub(a))}return 0>(t=0===n.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=t.cmp(r);if(o<0){var i=t;t=r,r=i}else if(0===o||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,o=1<>>26,s&=0x3ffffff,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return -1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=0x3ffffff,"Number is too big");var o=0|this.words[0];t=o===e?0:oe.length)return 1;if(this.length=0;r--){var n=0|this.words[r],o=0|e.words[r];if(n!==o){no&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new _(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var O={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function y(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function q(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},n(g,m),g.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),o=0;o>>22,i=a}i>>>=22,e.words[o-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=o,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(O[e])return O[e];if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new v;else if("p25519"===e)t=new y;else throw Error("Unknown prime "+e);return O[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r((e.negative|t.negative)==0,"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},_.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var p=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),h=a;0!==d.cmp(s);){for(var b=d,M=0;0!==b.cmp(s);M++)b=b.redSqr();r(M=0;i--){for(var l=t.words[i],p=u-1;p>=0;p--){var f=l>>p&1;if(a!==n[0]&&(a=this.sqr(a)),0===f&&0===s){c=0;continue}s<<=1,s|=f,(++c===r||0===i&&0===p)&&(a=this.mul(a,n[s]),c=0,s=0)}u=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new q(e)},n(q,_),q.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},q.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},q.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):0>o.cmpn(0)&&(i=o.iadd(this.m)),i._forceRed(this)},q.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},q.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}),parcelRegister("hQJwY",function(e,t){var r;function n(e){this.rand=e}if(e.exports=function(e){return r||(r=new n(null)),r.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=f(t)),n?a.endEmitted?e.emit("error",Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):L(e,a)):_(e,a,t,!1))):n||(a.reading=!1)),x(a)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),L(e,t)}function q(e,t){var r;return d(t)||"string"==typeof t||void 0===t||e.objectMode||(r=TypeError("Invalid non-string/buffer chunk")),r}function x(e){return!e.ended&&(e.needReadable||e.length=w?e=w:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function S(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=R(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function W(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(M("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(E,e):E(e))}function E(e){M("emit readable"),e.emit("readable"),I(e)}function L(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(N,e,t))}function N(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=F(e,t.buffer,t.decoder),r)}function F(e,t,r){var n;return ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0==(e-=a)){a===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++n}return t.length-=n,o}function X(e,t){var r=l.allocUnsafe(e),n=t.head,o=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,a),0==(e-=a)){a===i.length?(++o,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++o}return t.length-=o,r}function U(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(H,t,e))}function H(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function V(e,t){for(var r=0,n=e.length;r=r.highWaterMark||r.ended))return M("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?U(this):k(this),null;if(0===(e=S(e,r))&&r.ended)return 0===r.length&&U(this),null;var o=r.needReadable;return M("need readable",o),(0===r.length||r.length-e0?P(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&U(this)),null!==t&&this.emit("data",t),t},v.prototype._read=function(e){this.emit("error",Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,M("pipe count=%d opts=%j",n.pipesCount,t);var a=t&&!1===t.end||e===o.stdout||e===o.stderr?m:u;function s(e,t){M("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function u(){M("onend"),e.end()}n.endEmitted?i.nextTick(a):r.once("end",a),e.on("unpipe",s);var l=C(r);e.on("drain",l);var p=!1;function f(){M("cleanup"),e.removeListener("close",z),e.removeListener("finish",O),e.removeListener("drain",l),e.removeListener("error",b),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",h),p=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}var d=!1;function h(t){M("ondata"),d=!1,!1!==e.write(t)||d||((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==V(n.pipes,e))&&!p&&(M("false write response, pause",n.awaitDrain),n.awaitDrain++,d=!0),r.pause())}function b(t){M("onerror",t),m(),e.removeListener("error",b),0===c(e,"error")&&e.emit("error",t)}function z(){e.removeListener("finish",O),m()}function O(){M("onfinish"),e.removeListener("close",z),m()}function m(){M("unpipe"),r.unpipe(e)}return r.on("data",h),g(e,"error",b),e.once("close",z),e.once("finish",O),e.emit("pipe",r),n.flowing||(M("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;ir,e=>r=e),$parcel$export(e.exports,"isBoolean",()=>n,e=>n=e),$parcel$export(e.exports,"isNull",()=>o,e=>o=e),$parcel$export(e.exports,"isNullOrUndefined",()=>i,e=>i=e),$parcel$export(e.exports,"isNumber",()=>a,e=>a=e),$parcel$export(e.exports,"isString",()=>s,e=>s=e),$parcel$export(e.exports,"isSymbol",()=>c,e=>c=e),$parcel$export(e.exports,"isUndefined",()=>u,e=>u=e),$parcel$export(e.exports,"isRegExp",()=>l,e=>l=e),$parcel$export(e.exports,"isObject",()=>p,e=>p=e),$parcel$export(e.exports,"isDate",()=>f,e=>f=e),$parcel$export(e.exports,"isError",()=>d,e=>d=e),$parcel$export(e.exports,"isFunction",()=>h,e=>h=e),$parcel$export(e.exports,"isPrimitive",()=>b,e=>b=e),$parcel$export(e.exports,"isBuffer",()=>M,e=>M=e),r=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===z(e)},n=function(e){return"boolean"==typeof e},o=function(e){return null===e},i=function(e){return null==e},a=function(e){return"number"==typeof e},s=function(e){return"string"==typeof e},c=function(e){return"symbol"==typeof e},u=function(e){return void 0===e},l=function(e){return"[object RegExp]"===z(e)},p=function(e){return"object"==typeof e&&null!==e},f=function(e){return"[object Date]"===z(e)},d=function(e){return"[object Error]"===z(e)||e instanceof Error},h=function(e){return"function"==typeof e},b=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},M=parcelRequire("fhwsL").Buffer.isBuffer}),parcelRegister("kKEwq",function(e,t){var r=parcelRequire("jMaZI"),n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=Object.create(parcelRequire("havjn"));o.inherits=parcelRequire("cNocx");var i=parcelRequire("10sNE"),a=parcelRequire("fUg3m");o.inherits(l,i);for(var s=n(a.prototype),c=0;c-1))throw TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),z.prototype._write=function(e,t,r){r(Error("_write() is not implemented"))},z.prototype._writev=null,z.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||L(this,n,r)},Object.defineProperty(z.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),z.prototype.destroy=h.destroy,z.prototype._undestroy=h.undestroy,z.prototype._destroy=function(e,t){this.end(),t(e)}}),parcelRegister("lKC44",function(e,t){$parcel$export(e.exports,"StringDecoder",()=>r,e=>r=e);var r,n=parcelRequire("lHKVm").Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=i(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=h,this.end=b,t=4;break;case"utf8":this.fillLast=p,t=4;break;case"base64":this.text=M,this.end=z,t=3;break;default:this.write=O,this.end=m;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function c(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n=0?(o>0&&(e.lastNeed=o-1),o):--n=0?(o>0&&(e.lastNeed=o-2),o):--n=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function p(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function h(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function b(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function M(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function z(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function O(e){return e.toString(this.encoding)}function m(e){return e&&e.length?this.write(e):""}r=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function a(e,t,r){var n=i(e,r);return r-1>=t&&(n|=i(e,r-1)<<4),n}function s(e,t,n,o){for(var i=0,a=0,s=Math.min(e.length,n),c=t;c=49?u-49+10:u>=17?u-17+10:u,r(u>=0&&a0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;a-=3)i=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=i<>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(a=0,o=0;a>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,o=0;o=t;o-=2)n=a(e,t,o)<=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;else for(o=(e.length-t)%2==0?t+1:t;o=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=0x3ffffff;o*=t)n++;n--,o=o/t|0;for(var i=e.length-r,a=i%n,c=Math.min(i,i-a)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){o.prototype.inspect=u}else o.prototype.inspect=u;function u(){return(this.red?""}var l,p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var n="",o=0,i=0,a=0;a>>24-o&0xffffff,(o+=2)>=26&&(o-=26,a--),n=0!==i||a!==this.length-1?p[6-c.length]+c+n:c+n}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],l=d[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var b=h.modrn(l).toString(e);n=(h=h.idivn(l)).isZero()?b+n:p[u-b.length]+b+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},l&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(l,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var h=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function b(e){for(var t=Array(e.bitLength()),r=0;r>>o&1}return t}function M(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,s=0x3ffffff&a,c=a/0x4000000|0;r.words[0]=s;for(var u=1;u>>26,p=0x3ffffff&c,f=Math.min(u,t.length-1),d=Math.max(0,u-e.length+1);d<=f;d++){var h=u-d|0;l+=(a=(o=0|e.words[h])*(i=0|t.words[d])+p)/0x4000000|0,p=0x3ffffff&a}r.words[u]=0|p,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,n){this._strip();var o=this.byteLength(),i=n||Math.max(1,o);r(o<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0");var a=h(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,o),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,o=0,i=0;o>8&255),r>16&255),6===i?(r>24&255),n=0,i=0):(n=a>>>24,i+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===i?(r>=0&&(e[r--]=a>>24&255),n=0,i=0):(n=a>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var o=0;o0&&(this.words[o]=~this.words[o]&0x3ffffff>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),t?this.words[n]=this.words[n]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,o=0,i=0;i>>26;for(;0!==o&&i>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(t=this,r=e):(t=e,r=this);for(var i=0,a=0;a>26,this.words[a]=0x3ffffff&n;for(;0!==i&&a>26,this.words[a]=0x3ffffff&n;if(0===i&&a>>13,d=0|a[1],h=8191&d,b=d>>>13,M=0|a[2],z=8191&M,O=M>>>13,m=0|a[3],g=8191&m,A=m>>>13,v=0|a[4],y=8191&v,_=v>>>13,q=0|a[5],x=8191&q,w=q>>>13,R=0|a[6],S=8191&R,W=R>>>13,k=0|a[7],E=8191&k,L=k>>>13,N=0|a[8],C=8191&N,T=N>>>13,D=0|a[9],B=8191&D,I=D>>>13,P=0|s[0],F=8191&P,j=P>>>13,X=0|s[1],U=8191&X,H=X>>>13,V=0|s[2],G=8191&V,Y=V>>>13,K=0|s[3],Q=8191&K,$=K>>>13,Z=0|s[4],J=8191&Z,ee=Z>>>13,et=0|s[5],er=8191&et,en=et>>>13,eo=0|s[6],ei=8191&eo,ea=eo>>>13,es=0|s[7],ec=8191&es,eu=es>>>13,el=0|s[8],ep=8191&el,ef=el>>>13,ed=0|s[9],eh=8191&ed,eb=ed>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(p,F);var eM=(u+n|0)+((8191&(o=(o=Math.imul(p,j))+Math.imul(f,F)|0))<<13)|0;u=((i=Math.imul(f,j))+(o>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(h,F),o=(o=Math.imul(h,j))+Math.imul(b,F)|0,i=Math.imul(b,j),n=n+Math.imul(p,U)|0;var ez=(u+n|0)+((8191&(o=(o=o+Math.imul(p,H)|0)+Math.imul(f,U)|0))<<13)|0;u=((i=i+Math.imul(f,H)|0)+(o>>>13)|0)+(ez>>>26)|0,ez&=0x3ffffff,n=Math.imul(z,F),o=(o=Math.imul(z,j))+Math.imul(O,F)|0,i=Math.imul(O,j),n=n+Math.imul(h,U)|0,o=(o=o+Math.imul(h,H)|0)+Math.imul(b,U)|0,i=i+Math.imul(b,H)|0,n=n+Math.imul(p,G)|0;var eO=(u+n|0)+((8191&(o=(o=o+Math.imul(p,Y)|0)+Math.imul(f,G)|0))<<13)|0;u=((i=i+Math.imul(f,Y)|0)+(o>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(g,F),o=(o=Math.imul(g,j))+Math.imul(A,F)|0,i=Math.imul(A,j),n=n+Math.imul(z,U)|0,o=(o=o+Math.imul(z,H)|0)+Math.imul(O,U)|0,i=i+Math.imul(O,H)|0,n=n+Math.imul(h,G)|0,o=(o=o+Math.imul(h,Y)|0)+Math.imul(b,G)|0,i=i+Math.imul(b,Y)|0,n=n+Math.imul(p,Q)|0;var em=(u+n|0)+((8191&(o=(o=o+Math.imul(p,$)|0)+Math.imul(f,Q)|0))<<13)|0;u=((i=i+Math.imul(f,$)|0)+(o>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(y,F),o=(o=Math.imul(y,j))+Math.imul(_,F)|0,i=Math.imul(_,j),n=n+Math.imul(g,U)|0,o=(o=o+Math.imul(g,H)|0)+Math.imul(A,U)|0,i=i+Math.imul(A,H)|0,n=n+Math.imul(z,G)|0,o=(o=o+Math.imul(z,Y)|0)+Math.imul(O,G)|0,i=i+Math.imul(O,Y)|0,n=n+Math.imul(h,Q)|0,o=(o=o+Math.imul(h,$)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,$)|0,n=n+Math.imul(p,J)|0;var eg=(u+n|0)+((8191&(o=(o=o+Math.imul(p,ee)|0)+Math.imul(f,J)|0))<<13)|0;u=((i=i+Math.imul(f,ee)|0)+(o>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(x,F),o=(o=Math.imul(x,j))+Math.imul(w,F)|0,i=Math.imul(w,j),n=n+Math.imul(y,U)|0,o=(o=o+Math.imul(y,H)|0)+Math.imul(_,U)|0,i=i+Math.imul(_,H)|0,n=n+Math.imul(g,G)|0,o=(o=o+Math.imul(g,Y)|0)+Math.imul(A,G)|0,i=i+Math.imul(A,Y)|0,n=n+Math.imul(z,Q)|0,o=(o=o+Math.imul(z,$)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,$)|0,n=n+Math.imul(h,J)|0,o=(o=o+Math.imul(h,ee)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,ee)|0,n=n+Math.imul(p,er)|0;var eA=(u+n|0)+((8191&(o=(o=o+Math.imul(p,en)|0)+Math.imul(f,er)|0))<<13)|0;u=((i=i+Math.imul(f,en)|0)+(o>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(S,F),o=(o=Math.imul(S,j))+Math.imul(W,F)|0,i=Math.imul(W,j),n=n+Math.imul(x,U)|0,o=(o=o+Math.imul(x,H)|0)+Math.imul(w,U)|0,i=i+Math.imul(w,H)|0,n=n+Math.imul(y,G)|0,o=(o=o+Math.imul(y,Y)|0)+Math.imul(_,G)|0,i=i+Math.imul(_,Y)|0,n=n+Math.imul(g,Q)|0,o=(o=o+Math.imul(g,$)|0)+Math.imul(A,Q)|0,i=i+Math.imul(A,$)|0,n=n+Math.imul(z,J)|0,o=(o=o+Math.imul(z,ee)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,ee)|0,n=n+Math.imul(h,er)|0,o=(o=o+Math.imul(h,en)|0)+Math.imul(b,er)|0,i=i+Math.imul(b,en)|0,n=n+Math.imul(p,ei)|0;var ev=(u+n|0)+((8191&(o=(o=o+Math.imul(p,ea)|0)+Math.imul(f,ei)|0))<<13)|0;u=((i=i+Math.imul(f,ea)|0)+(o>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(E,F),o=(o=Math.imul(E,j))+Math.imul(L,F)|0,i=Math.imul(L,j),n=n+Math.imul(S,U)|0,o=(o=o+Math.imul(S,H)|0)+Math.imul(W,U)|0,i=i+Math.imul(W,H)|0,n=n+Math.imul(x,G)|0,o=(o=o+Math.imul(x,Y)|0)+Math.imul(w,G)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,$)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,$)|0,n=n+Math.imul(g,J)|0,o=(o=o+Math.imul(g,ee)|0)+Math.imul(A,J)|0,i=i+Math.imul(A,ee)|0,n=n+Math.imul(z,er)|0,o=(o=o+Math.imul(z,en)|0)+Math.imul(O,er)|0,i=i+Math.imul(O,en)|0,n=n+Math.imul(h,ei)|0,o=(o=o+Math.imul(h,ea)|0)+Math.imul(b,ei)|0,i=i+Math.imul(b,ea)|0,n=n+Math.imul(p,ec)|0;var ey=(u+n|0)+((8191&(o=(o=o+Math.imul(p,eu)|0)+Math.imul(f,ec)|0))<<13)|0;u=((i=i+Math.imul(f,eu)|0)+(o>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(C,F),o=(o=Math.imul(C,j))+Math.imul(T,F)|0,i=Math.imul(T,j),n=n+Math.imul(E,U)|0,o=(o=o+Math.imul(E,H)|0)+Math.imul(L,U)|0,i=i+Math.imul(L,H)|0,n=n+Math.imul(S,G)|0,o=(o=o+Math.imul(S,Y)|0)+Math.imul(W,G)|0,i=i+Math.imul(W,Y)|0,n=n+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,$)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,$)|0,n=n+Math.imul(y,J)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(_,J)|0,i=i+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,o=(o=o+Math.imul(g,en)|0)+Math.imul(A,er)|0,i=i+Math.imul(A,en)|0,n=n+Math.imul(z,ei)|0,o=(o=o+Math.imul(z,ea)|0)+Math.imul(O,ei)|0,i=i+Math.imul(O,ea)|0,n=n+Math.imul(h,ec)|0,o=(o=o+Math.imul(h,eu)|0)+Math.imul(b,ec)|0,i=i+Math.imul(b,eu)|0,n=n+Math.imul(p,ep)|0;var e_=(u+n|0)+((8191&(o=(o=o+Math.imul(p,ef)|0)+Math.imul(f,ep)|0))<<13)|0;u=((i=i+Math.imul(f,ef)|0)+(o>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(B,F),o=(o=Math.imul(B,j))+Math.imul(I,F)|0,i=Math.imul(I,j),n=n+Math.imul(C,U)|0,o=(o=o+Math.imul(C,H)|0)+Math.imul(T,U)|0,i=i+Math.imul(T,H)|0,n=n+Math.imul(E,G)|0,o=(o=o+Math.imul(E,Y)|0)+Math.imul(L,G)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,$)|0)+Math.imul(W,Q)|0,i=i+Math.imul(W,$)|0,n=n+Math.imul(x,J)|0,o=(o=o+Math.imul(x,ee)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(y,er)|0,o=(o=o+Math.imul(y,en)|0)+Math.imul(_,er)|0,i=i+Math.imul(_,en)|0,n=n+Math.imul(g,ei)|0,o=(o=o+Math.imul(g,ea)|0)+Math.imul(A,ei)|0,i=i+Math.imul(A,ea)|0,n=n+Math.imul(z,ec)|0,o=(o=o+Math.imul(z,eu)|0)+Math.imul(O,ec)|0,i=i+Math.imul(O,eu)|0,n=n+Math.imul(h,ep)|0,o=(o=o+Math.imul(h,ef)|0)+Math.imul(b,ep)|0,i=i+Math.imul(b,ef)|0,n=n+Math.imul(p,eh)|0;var eq=(u+n|0)+((8191&(o=(o=o+Math.imul(p,eb)|0)+Math.imul(f,eh)|0))<<13)|0;u=((i=i+Math.imul(f,eb)|0)+(o>>>13)|0)+(eq>>>26)|0,eq&=0x3ffffff,n=Math.imul(B,U),o=(o=Math.imul(B,H))+Math.imul(I,U)|0,i=Math.imul(I,H),n=n+Math.imul(C,G)|0,o=(o=o+Math.imul(C,Y)|0)+Math.imul(T,G)|0,i=i+Math.imul(T,Y)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,$)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,$)|0,n=n+Math.imul(S,J)|0,o=(o=o+Math.imul(S,ee)|0)+Math.imul(W,J)|0,i=i+Math.imul(W,ee)|0,n=n+Math.imul(x,er)|0,o=(o=o+Math.imul(x,en)|0)+Math.imul(w,er)|0,i=i+Math.imul(w,en)|0,n=n+Math.imul(y,ei)|0,o=(o=o+Math.imul(y,ea)|0)+Math.imul(_,ei)|0,i=i+Math.imul(_,ea)|0,n=n+Math.imul(g,ec)|0,o=(o=o+Math.imul(g,eu)|0)+Math.imul(A,ec)|0,i=i+Math.imul(A,eu)|0,n=n+Math.imul(z,ep)|0,o=(o=o+Math.imul(z,ef)|0)+Math.imul(O,ep)|0,i=i+Math.imul(O,ef)|0,n=n+Math.imul(h,eh)|0;var ex=(u+n|0)+((8191&(o=(o=o+Math.imul(h,eb)|0)+Math.imul(b,eh)|0))<<13)|0;u=((i=i+Math.imul(b,eb)|0)+(o>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(B,G),o=(o=Math.imul(B,Y))+Math.imul(I,G)|0,i=Math.imul(I,Y),n=n+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(T,Q)|0,i=i+Math.imul(T,$)|0,n=n+Math.imul(E,J)|0,o=(o=o+Math.imul(E,ee)|0)+Math.imul(L,J)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(S,er)|0,o=(o=o+Math.imul(S,en)|0)+Math.imul(W,er)|0,i=i+Math.imul(W,en)|0,n=n+Math.imul(x,ei)|0,o=(o=o+Math.imul(x,ea)|0)+Math.imul(w,ei)|0,i=i+Math.imul(w,ea)|0,n=n+Math.imul(y,ec)|0,o=(o=o+Math.imul(y,eu)|0)+Math.imul(_,ec)|0,i=i+Math.imul(_,eu)|0,n=n+Math.imul(g,ep)|0,o=(o=o+Math.imul(g,ef)|0)+Math.imul(A,ep)|0,i=i+Math.imul(A,ef)|0,n=n+Math.imul(z,eh)|0;var ew=(u+n|0)+((8191&(o=(o=o+Math.imul(z,eb)|0)+Math.imul(O,eh)|0))<<13)|0;u=((i=i+Math.imul(O,eb)|0)+(o>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(B,Q),o=(o=Math.imul(B,$))+Math.imul(I,Q)|0,i=Math.imul(I,$),n=n+Math.imul(C,J)|0,o=(o=o+Math.imul(C,ee)|0)+Math.imul(T,J)|0,i=i+Math.imul(T,ee)|0,n=n+Math.imul(E,er)|0,o=(o=o+Math.imul(E,en)|0)+Math.imul(L,er)|0,i=i+Math.imul(L,en)|0,n=n+Math.imul(S,ei)|0,o=(o=o+Math.imul(S,ea)|0)+Math.imul(W,ei)|0,i=i+Math.imul(W,ea)|0,n=n+Math.imul(x,ec)|0,o=(o=o+Math.imul(x,eu)|0)+Math.imul(w,ec)|0,i=i+Math.imul(w,eu)|0,n=n+Math.imul(y,ep)|0,o=(o=o+Math.imul(y,ef)|0)+Math.imul(_,ep)|0,i=i+Math.imul(_,ef)|0,n=n+Math.imul(g,eh)|0;var eR=(u+n|0)+((8191&(o=(o=o+Math.imul(g,eb)|0)+Math.imul(A,eh)|0))<<13)|0;u=((i=i+Math.imul(A,eb)|0)+(o>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(B,J),o=(o=Math.imul(B,ee))+Math.imul(I,J)|0,i=Math.imul(I,ee),n=n+Math.imul(C,er)|0,o=(o=o+Math.imul(C,en)|0)+Math.imul(T,er)|0,i=i+Math.imul(T,en)|0,n=n+Math.imul(E,ei)|0,o=(o=o+Math.imul(E,ea)|0)+Math.imul(L,ei)|0,i=i+Math.imul(L,ea)|0,n=n+Math.imul(S,ec)|0,o=(o=o+Math.imul(S,eu)|0)+Math.imul(W,ec)|0,i=i+Math.imul(W,eu)|0,n=n+Math.imul(x,ep)|0,o=(o=o+Math.imul(x,ef)|0)+Math.imul(w,ep)|0,i=i+Math.imul(w,ef)|0,n=n+Math.imul(y,eh)|0;var eS=(u+n|0)+((8191&(o=(o=o+Math.imul(y,eb)|0)+Math.imul(_,eh)|0))<<13)|0;u=((i=i+Math.imul(_,eb)|0)+(o>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(B,er),o=(o=Math.imul(B,en))+Math.imul(I,er)|0,i=Math.imul(I,en),n=n+Math.imul(C,ei)|0,o=(o=o+Math.imul(C,ea)|0)+Math.imul(T,ei)|0,i=i+Math.imul(T,ea)|0,n=n+Math.imul(E,ec)|0,o=(o=o+Math.imul(E,eu)|0)+Math.imul(L,ec)|0,i=i+Math.imul(L,eu)|0,n=n+Math.imul(S,ep)|0,o=(o=o+Math.imul(S,ef)|0)+Math.imul(W,ep)|0,i=i+Math.imul(W,ef)|0,n=n+Math.imul(x,eh)|0;var eW=(u+n|0)+((8191&(o=(o=o+Math.imul(x,eb)|0)+Math.imul(w,eh)|0))<<13)|0;u=((i=i+Math.imul(w,eb)|0)+(o>>>13)|0)+(eW>>>26)|0,eW&=0x3ffffff,n=Math.imul(B,ei),o=(o=Math.imul(B,ea))+Math.imul(I,ei)|0,i=Math.imul(I,ea),n=n+Math.imul(C,ec)|0,o=(o=o+Math.imul(C,eu)|0)+Math.imul(T,ec)|0,i=i+Math.imul(T,eu)|0,n=n+Math.imul(E,ep)|0,o=(o=o+Math.imul(E,ef)|0)+Math.imul(L,ep)|0,i=i+Math.imul(L,ef)|0,n=n+Math.imul(S,eh)|0;var ek=(u+n|0)+((8191&(o=(o=o+Math.imul(S,eb)|0)+Math.imul(W,eh)|0))<<13)|0;u=((i=i+Math.imul(W,eb)|0)+(o>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(B,ec),o=(o=Math.imul(B,eu))+Math.imul(I,ec)|0,i=Math.imul(I,eu),n=n+Math.imul(C,ep)|0,o=(o=o+Math.imul(C,ef)|0)+Math.imul(T,ep)|0,i=i+Math.imul(T,ef)|0,n=n+Math.imul(E,eh)|0;var eE=(u+n|0)+((8191&(o=(o=o+Math.imul(E,eb)|0)+Math.imul(L,eh)|0))<<13)|0;u=((i=i+Math.imul(L,eb)|0)+(o>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(B,ep),o=(o=Math.imul(B,ef))+Math.imul(I,ep)|0,i=Math.imul(I,ef),n=n+Math.imul(C,eh)|0;var eL=(u+n|0)+((8191&(o=(o=o+Math.imul(C,eb)|0)+Math.imul(T,eh)|0))<<13)|0;u=((i=i+Math.imul(T,eb)|0)+(o>>>13)|0)+(eL>>>26)|0,eL&=0x3ffffff,n=Math.imul(B,eh);var eN=(u+n|0)+((8191&(o=(o=Math.imul(B,eb))+Math.imul(I,eh)|0))<<13)|0;return u=((i=Math.imul(I,eb))+(o>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,c[0]=eM,c[1]=ez,c[2]=eO,c[3]=em,c[4]=eg,c[5]=eA,c[6]=ev,c[7]=ey,c[8]=e_,c[9]=eq,c[10]=ex,c[11]=ew,c[12]=eR,c[13]=eS,c[14]=eW,c[15]=ek,c[16]=eE,c[17]=eL,c[18]=eN,0!==u&&(c[19]=u,r.length++),r};function O(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,i=0;i>>26)|0)>>>26,a&=0x3ffffff}r.words[i]=s,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r._strip()}function m(e,t,r){return O(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(z=M),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?z(this,e,t):n<63?M(this,e,t):n<1024?O(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,o,i){for(var a=0;a>>=1)o++;return 1<>>=13,n[2*a+1]=8191&i,i>>>=13;for(a=2*t;a>=26,n+=(i/0x4000000|0)+(a>>>26),this.words[o]=0x3ffffff&a}return 0!==n&&(this.words[o]=n,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=b(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,n=e%26,o=(e-n)/26,i=0x3ffffff>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t=0);var o=t?(t-t%26)/26:0,i=e%26,a=Math.min((e-i)/26,this.length),s=0x3ffffff^0x3ffffff>>>i<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=o);u--){var p=0|this.words[u];this.words[u]=l<<26-i|p>>>i,l=p&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,o=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var o=0x3ffffff^0x3ffffff>>>t<=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/0x4000000|0),this.words[o+n]=0x3ffffff&i}for(;o>26,this.words[o+n]=0x3ffffff&i;if(0===s)return this._strip();for(r(-1===s),s=0,o=0;o>26,this.words[o]=0x3ffffff&i;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var c=i.length-a.length;if("mod"!==t){(r=new o(null)).length=c+1,r.words=Array(r.length);for(var u=0;u=0;p--){var f=(0|i.words[a.length+p])*0x4000000+(0|i.words[a.length+p-1]);for(f=Math.min(f/s|0,0x3ffffff),i._ishlnsubmul(a,f,p);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(a,1,p),i.isZero()||(i.negative^=1);r&&(r.words[p]=f)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,n){var i,a,s;return(r(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=0x3ffffff);for(var n=0x4000000%e,o=0,i=this.length-1;i>=0;i--)o=(n*o+(0|this.words[i]))%e;return t?-o:o},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=0x3ffffff);for(var n=0,o=this.length-1;o>=0;o--){var i=(0|this.words[o])+0x4000000*n;this.words[o]=i/e|0,n=i%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),p=t.clone();!t.isZero();){for(var f=0,d=1;(t.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(p)),i.iushrn(1),a.iushrn(1);for(var h=0,b=1;(n.words[0]&b)==0&&h<26;++h,b<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(p)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(u)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t,n=this,i=e.clone();n=0!==n.negative?n.umod(e):n.clone();for(var a=new o(1),s=new o(0),c=i.clone();n.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var p=0,f=1;(i.words[0]&f)==0&&p<26;++p,f<<=1);if(p>0)for(i.iushrn(p);p-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);n.cmp(i)>=0?(n.isub(i),a.isub(s)):(i.isub(n),s.isub(a))}return 0>(t=0===n.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=t.cmp(r);if(o<0){var i=t;t=r,r=i}else if(0===o||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,o=1<>>26,s&=0x3ffffff,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return -1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=0x3ffffff,"Number is too big");var o=0|this.words[0];t=o===e?0:oe.length)return 1;if(this.length=0;r--){var n=0|this.words[r],o=0|e.words[r];if(n!==o){no&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new w(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var A={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function q(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function w(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function R(e){w.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},n(y,v),y.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),o=0;o>>22,i=a}i>>>=22,e.words[o-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=o,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(A[e])return A[e];if("k256"===e)t=new y;else if("p224"===e)t=new _;else if("p192"===e)t=new q;else if("p25519"===e)t=new x;else throw Error("Unknown prime "+e);return A[e]=t,t},w.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},w.prototype._verify2=function(e,t){r((e.negative|t.negative)==0,"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},w.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},w.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},w.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},w.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},w.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},w.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},w.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},w.prototype.isqr=function(e){return this.imul(e,e.clone())},w.prototype.sqr=function(e){return this.mul(e,e)},w.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var p=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),h=a;0!==d.cmp(s);){for(var b=d,M=0;0!==b.cmp(s);M++)b=b.redSqr();r(M=0;i--){for(var l=t.words[i],p=u-1;p>=0;p--){var f=l>>p&1;if(a!==n[0]&&(a=this.sqr(a)),0===f&&0===s){c=0;continue}s<<=1,s|=f,(++c===r||0===i&&0===p)&&(a=this.mul(a,n[s]),c=0,s=0)}u=26}return a},w.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},w.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new R(e)},n(R,w),R.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},R.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},R.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):0>o.cmpn(0)&&(i=o.iadd(this.m)),i._forceRed(this)},R.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},R.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}),parcelRegister("cqBVf",function(e,t){e.exports=JSON.parse('{"name":"elliptic","version":"6.6.1","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')}),parcelRegister("7i4J7",function(e,t){var r=e.exports,n=parcelRequire("1PtXz"),o=parcelRequire("895Ov"),i=parcelRequire("4Orzt");function a(e){return"string"==typeof e?r.toArray(e,"hex"):e}r.assert=o,r.toArray=i.toArray,r.zero2=i.zero2,r.toHex=i.toHex,r.encode=i.encode,r.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);for(a=0;a(o>>1)-1?(o>>1)-c:c,i.isubn(s)):s=0,n[a]=s,i.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,o=0;e.cmpn(-n)>0||t.cmpn(-o)>0;){var i,a,s,c=e.andln(3)+n&3,u=t.andln(3)+o&3;3===c&&(c=-1),3===u&&(u=-1),a=(1&c)==0?0:(3==(i=e.andln(7)+n&7)||5===i)&&2===u?-c:c,r[0].push(a),s=(1&u)==0?0:(3==(i=t.andln(7)+o&7)||5===i)&&2===c?-u:u,r[1].push(s),2*n===a+1&&(n=1-n),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=a,r.intFromLE=function(e){return new n(e,"hex","le")}}),parcelRegister("FrGVp",function(e,t){var r=e.exports;r.base=parcelRequire("1sww2"),r.short=parcelRequire("gtUKx"),r.mont=parcelRequire("cEfmT"),r.edwards=parcelRequire("2nBLD")}),parcelRegister("1sww2",function(e,t){var r=parcelRequire("1PtXz"),n=parcelRequire("7i4J7"),o=n.getNAF,i=n.getJSF,a=n.assert;function s(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=s,s.prototype.point=function(){throw Error("Not implemented")},s.prototype.validate=function(){throw Error("Not implemented")},s.prototype._fixedNafMul=function(e,t){a(e.precomputed);var r,n,i=e._getDoubles(),s=o(t,1,this._bitLength),c=(1<=r;l--)n=(n<<1)+s[l];u.push(n)}for(var p=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=c;d>0;d--){for(r=0;r=0;u--){for(var l=0;u>=0&&0===s[u];u--)l++;if(u>=0&&l++,c=c.dblp(l),u<0)break;var p=s[u];a(0!==p),c="affine"===e.type?p>0?c.mixedAdd(i[p-1>>1]):c.mixedAdd(i[-p-1>>1].neg()):p>0?c.add(i[p-1>>1]):c.add(i[-p-1>>1].neg())}return"affine"===e.type?c.toP():c},s.prototype._wnafMulAdd=function(e,t,r,n,a){var s,c,u,l=this._wnafT1,p=this._wnafT2,f=this._wnafT3,d=0;for(s=0;s=1;s-=2){var b=s-1,M=s;if(1!==l[b]||1!==l[M]){f[b]=o(r[b],l[b],this._bitLength),f[M]=o(r[M],l[M],this._bitLength),d=Math.max(f[b].length,d),d=Math.max(f[M].length,d);continue}var z=[t[b],null,null,t[M]];0===t[b].y.cmp(t[M].y)?(z[1]=t[b].add(t[M]),z[2]=t[b].toJ().mixedAdd(t[M].neg())):0===t[b].y.cmp(t[M].y.redNeg())?(z[1]=t[b].toJ().mixedAdd(t[M]),z[2]=t[b].add(t[M].neg())):(z[1]=t[b].toJ().mixedAdd(t[M]),z[2]=t[b].toJ().mixedAdd(t[M].neg()));var O=[-3,-1,-5,-7,0,7,5,1,3],m=i(r[b],r[M]);for(c=0,d=Math.max(m[0].length,d),f[b]=Array(d),f[M]=Array(d);c=0;s--){for(var _=0;s>=0;){var q=!0;for(c=0;c=0&&_++,v=v.dblp(_),s<0)break;for(c=0;c0?u=p[c][x-1>>1]:x<0&&(u=p[c][-x-1>>1].neg()),v="affine"===u.type?v.mixedAdd(u):v.add(u))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,o=0;oi[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(e.lambda)r=new n(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?r=s[0]:(r=s[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return o=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:o}}},s.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),o=r.redNeg(),i=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[o.redAdd(i).fromRed(),o.redSub(i).fromRed()]},s.prototype._getEndoBasis=function(e){for(var t,r,o,i,a,s,c,u,l,p=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,d=this.n.clone(),h=new n(1),b=new n(0),M=new n(0),z=new n(1),O=0;0!==f.cmpn(0);){var m=d.div(f);u=d.sub(m.mul(f)),l=M.sub(m.mul(h));var g=z.sub(m.mul(b));if(!o&&0>u.cmp(p))t=c.neg(),r=h,o=u.neg(),i=l;else if(o&&2==++O)break;c=u,d=f,f=u,M=h,h=l,z=b,b=g}a=u.neg(),s=l;var A=o.sqr().add(i.sqr());return a.sqr().add(s.sqr()).cmp(A)>=0&&(a=t,s=r),o.negative&&(o=o.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:o,b:i},{a:a,b:s}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],o=n.b.mul(e).divRound(this.n),i=r.b.neg().mul(e).divRound(this.n),a=o.mul(r.a),s=i.mul(n.a),c=o.mul(r.b),u=i.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},s.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),o=r.redSqrt();if(0!==o.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var i=o.fromRed().isOdd();return(t&&!i||!t&&i)&&(o=o.redNeg()),this.point(e,o)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(o).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,o=this._endoWnafT2,i=0;i":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),o=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),i=o.redSqr().redISub(this.x.redAdd(this.x)),a=o.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return(e=new n(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o):this.curve._wnafMulAdd(1,n,o,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o,!0):this.curve._wnafMulAdd(1,n,o,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,i.BasePoint),s.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),o=e.x.redMul(r),i=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(o),c=i.redSub(a);if(0===s.cmpn(0))if(0!==c.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var u=s.redSqr(),l=u.redMul(s),p=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(p).redISub(p),d=c.redMul(p.redISub(f)).redISub(i.redMul(l)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,d,h)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),o=this.y,i=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=o.redSub(i);if(0===a.cmpn(0))if(0!==s.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var c=a.redSqr(),u=c.redMul(a),l=r.redMul(c),p=s.redSqr().redIAdd(u).redISub(l).redISub(l),f=s.redMul(l.redISub(p)).redISub(o.redMul(u)),d=this.z.redMul(a);return this.curve.jpoint(p,f,d)},u.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t=0)return!1;if(r.redIAdd(o),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}}),parcelRegister("cEfmT",function(e,t){var r=parcelRequire("1PtXz"),n=parcelRequire("cNocx"),o=parcelRequire("1sww2"),i=parcelRequire("7i4J7");function a(e){o.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(e,t,n){o.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(a,o),e.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},n(s,o.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(i.toArray(e,t),1)},a.prototype.point=function(e,t){return new s(this,e,t)},a.prototype.pointFromJSON=function(e){return s.fromJSON(this,e)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(e,t){return new s(e,t[0],t[1]||e.one)},s.prototype.inspect=function(){return this.isInfinity()?"":""},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),o=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,o)},s.prototype.add=function(){throw Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),o=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(r),a=o.redMul(n),s=t.z.redMul(i.redAdd(a).redSqr()),c=t.x.redMul(i.redISub(a).redSqr());return this.curve.point(s,c)},s.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),o=this,i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(r=r.diffAdd(n,o),n=n.dbl()):(n=r.diffAdd(n,o),r=r.dbl());return n},s.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},s.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),parcelRegister("2nBLD",function(e,t){var r=parcelRequire("7i4J7"),n=parcelRequire("1PtXz"),o=parcelRequire("cNocx"),i=parcelRequire("1sww2"),a=r.assert;function s(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,i.call(this,"edwards",e),this.a=new n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function c(e,t,r,o,a){i.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===o?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new n(t,16),this.y=new n(r,16),this.z=o?new n(o,16):this.curve.one,this.t=a&&new n(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(s,i),e.exports=s,s.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},s.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},s.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},s.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),o=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=o.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},s.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),o=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=o.redMul(i.redInvm());if(0===a.cmp(this.zero))if(!t)return this.point(this.zero,e);else throw Error("invalid point");var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},s.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),o=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(o)},o(c,i.BasePoint),s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},s.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),o=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=n.redAdd(t),a=i.redSub(r),s=n.redSub(t),c=o.redMul(a),u=i.redMul(s),l=o.redMul(s),p=a.redMul(i);return this.curve.point(c,u,p,l)},c.prototype._projDbl=function(){var e,t,r,n,o,i,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var u=(n=this.curve._mulA(s)).redAdd(c);this.zOne?(e=a.redSub(s).redSub(c).redMul(u.redSub(this.curve.two)),t=u.redMul(n.redSub(c)),r=u.redSqr().redSub(u).redSub(u)):(o=this.z.redSqr(),i=u.redSub(o).redISub(o),e=a.redSub(s).redISub(c).redMul(i),t=u.redMul(n.redSub(c)),r=u.redMul(i))}else n=s.redAdd(c),o=this.curve._mulC(this.z).redSqr(),i=n.redSub(o).redSub(o),e=this.curve._mulC(a.redISub(n)).redMul(i),t=this.curve._mulC(n).redMul(s.redISub(c)),r=n.redMul(i);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),o=this.z.redMul(e.z.redAdd(e.z)),i=r.redSub(t),a=o.redSub(n),s=o.redAdd(n),c=r.redAdd(t),u=i.redMul(a),l=s.redMul(c),p=i.redMul(c),f=a.redMul(s);return this.curve.point(u,l,f,p)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),o=n.redSqr(),i=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(i).redMul(a),c=o.redSub(s),u=o.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(a),p=n.redMul(c).redMul(l);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(i))),r=c.redMul(u)):(t=n.redMul(u).redMul(a.redSub(i)),r=this.curve._mulC(c).redMul(u)),this.curve.point(p,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add}),parcelRegister("66GGm",function(e,t){var r,n=e.exports,o=parcelRequire("2uYzb"),i=parcelRequire("FrGVp"),a=parcelRequire("7i4J7").assert;function s(e){"short"===e.type?this.curve=new i.short(e):"edwards"===e.type?this.curve=new i.edwards(e):this.curve=new i.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new s(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=s,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=parcelRequire("6cXXN")}catch(e){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}),parcelRegister("mYaAR",function(e,t){$parcel$export(e.exports,"inherits",()=>r,e=>r=e),$parcel$export(e.exports,"toArray",()=>n,e=>n=e),$parcel$export(e.exports,"toHex",()=>o,e=>o=e),$parcel$export(e.exports,"htonl",()=>i,e=>i=e),$parcel$export(e.exports,"toHex32",()=>a,e=>a=e),$parcel$export(e.exports,"zero2",()=>s,e=>s=e),$parcel$export(e.exports,"zero8",()=>c,e=>c=e),$parcel$export(e.exports,"join32",()=>u,e=>u=e),$parcel$export(e.exports,"split32",()=>l,e=>l=e),$parcel$export(e.exports,"rotr32",()=>p,e=>p=e),$parcel$export(e.exports,"rotl32",()=>f,e=>f=e),$parcel$export(e.exports,"sum32",()=>d,e=>d=e),$parcel$export(e.exports,"sum32_3",()=>h,e=>h=e),$parcel$export(e.exports,"sum32_4",()=>b,e=>b=e),$parcel$export(e.exports,"sum32_5",()=>M,e=>M=e),$parcel$export(e.exports,"sum64",()=>z,e=>z=e),$parcel$export(e.exports,"sum64_hi",()=>O,e=>O=e),$parcel$export(e.exports,"sum64_lo",()=>m,e=>m=e),$parcel$export(e.exports,"sum64_4_hi",()=>g,e=>g=e),$parcel$export(e.exports,"sum64_4_lo",()=>A,e=>A=e),$parcel$export(e.exports,"sum64_5_hi",()=>v,e=>v=e),$parcel$export(e.exports,"sum64_5_lo",()=>y,e=>y=e),$parcel$export(e.exports,"rotr64_hi",()=>_,e=>_=e),$parcel$export(e.exports,"rotr64_lo",()=>q,e=>q=e),$parcel$export(e.exports,"shr64_hi",()=>x,e=>x=e),$parcel$export(e.exports,"shr64_lo",()=>w,e=>w=e);var r,n,o,i,a,s,c,u,l,p,f,d,h,b,M,z,O,m,g,A,v,y,_,q,x,w,R=parcelRequire("895Ov");function S(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function W(e){return 1===e.length?"0"+e:e}function k(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;else if(2===e.length)return"000000"+e;else if(1===e.length)return"0000000"+e;else return e}r=parcelRequire("cNocx"),n=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),n=0;n>8,a=255&o;i?r.push(i,a):r.push(a)}else for(n=0;n>>0;return a},l=function(e,t){for(var r=Array(4*e.length),n=0,o=0;n>>24,r[o+1]=i>>>16&255,r[o+2]=i>>>8&255,r[o+3]=255&i):(r[o+3]=i>>>24,r[o+2]=i>>>16&255,r[o+1]=i>>>8&255,r[o]=255&i)}return r},p=function(e,t){return e>>>t|e<<32-t},f=function(e,t){return e<>>32-t},d=function(e,t){return e+t>>>0},h=function(e,t,r){return e+t+r>>>0},b=function(e,t,r,n){return e+t+r+n>>>0},M=function(e,t,r,n,o){return e+t+r+n+o>>>0},z=function(e,t,r,n){var o=e[t],i=n+e[t+1]>>>0,a=+(i>>0,e[t+1]=i},O=function(e,t,r,n){return+(t+n>>>0>>0},m=function(e,t,r,n){return t+n>>>0},g=function(e,t,r,n,o,i,a,s){var c,u=t;return e+r+o+a+(c=0+ +((u=u+n>>>0)>>0)>>0)>>0},A=function(e,t,r,n,o,i,a,s){return t+n+i+s>>>0},v=function(e,t,r,n,o,i,a,s,c,u){var l,p=t;return e+r+o+a+c+(l=0+ +((p=p+n>>>0)>>0)>>0)>>0)>>0},y=function(e,t,r,n,o,i,a,s,c,u){return t+n+i+s+u>>>0},_=function(e,t,r){return(t<<32-r|e>>>r)>>>0},q=function(e,t,r){return(e<<32-r|t>>>r)>>>0},x=function(e,t,r){return e>>>r},w=function(e,t,r){return(e<<32-r|t>>>r)>>>0}}),parcelRegister("8AGOc",function(e,t){$parcel$export(e.exports,"BlockHash",()=>r,e=>r=e);var r,n=parcelRequire("mYaAR"),o=parcelRequire("895Ov");function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}r=i,i.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var o=0;o>>24&255,n[o++]=e>>>16&255,n[o++]=e>>>8&255,n[o++]=255&e}else for(i=8,n[o++]=255&e,n[o++]=e>>>8&255,n[o++]=e>>>16&255,n[o++]=e>>>24&255,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0;ir,e=>r=e),$parcel$export(e.exports,"sha224",()=>n,e=>n=e),$parcel$export(e.exports,"sha256",()=>o,e=>o=e),$parcel$export(e.exports,"sha384",()=>i,e=>i=e),$parcel$export(e.exports,"sha512",()=>a,e=>a=e),r=parcelRequire("7gzGy"),n=parcelRequire("kgkqA"),o=parcelRequire("fBqUa"),i=parcelRequire("7co5q"),a=parcelRequire("60ZMm")}),parcelRegister("7gzGy",function(e,t){var r=parcelRequire("mYaAR"),n=parcelRequire("8AGOc"),o=parcelRequire("cKQXv"),i=r.rotl32,a=r.sum32,s=r.sum32_5,c=o.ft_1,u=n.BlockHash,l=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function p(){if(!(this instanceof p))return new p;u.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}r.inherits(p,u),e.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nr,e=>r=e);var r,n=parcelRequire("mYaAR"),o=parcelRequire("8AGOc"),i=n.rotl32,a=n.sum32,s=n.sum32_3,c=n.sum32_4,u=o.BlockHash;function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function p(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function f(e){return e<=15?0:e<=31?0x5a827999:e<=47?0x6ed9eba1:e<=63?0x8f1bbcdc:0xa953fd4e}function d(e){return e<=15?0x50a28be6:e<=31?0x5c4dd124:e<=47?0x6d703ef3:0x7a6d76e9*!!(e<=63)}n.inherits(l,u),r=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],o=this.h[2],u=this.h[3],l=this.h[4],O=r,m=n,g=o,A=u,v=l,y=0;y<80;y++){var _=a(i(c(r,p(y,n,o,u),e[h[y]+t],f(y)),M[y]),l);r=l,l=u,u=i(o,10),o=n,n=_,_=a(i(c(O,p(79-y,m,g,A),e[b[y]+t],d(y)),z[y]),v),O=v,v=A,A=i(g,10),g=m,m=_}_=s(this.h[1],o,A),this.h[1]=s(this.h[2],u,v),this.h[2]=s(this.h[3],l,O),this.h[3]=s(this.h[4],r,m),this.h[4]=s(this.h[0],n,g),this.h[0]=_},l.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],M=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],z=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]}),parcelRegister("81h9h",function(e,t){var r=parcelRequire("mYaAR"),n=parcelRequire("895Ov");function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}n=s,s.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var o=0;o=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},s.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"};var b={},r=parcelRequire("1PtXz"),c=parcelRequire("7i4J7"),M=c.assert;function z(e,t){if(e instanceof z)return e;this._importDER(e,t)||(M(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function O(){this.place=0}function m(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4||0===e[t.place])return!1;for(var o=0,i=0,a=t.place;i>>=0;return!(o<=127)&&(t.place=a,o)}function g(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}function v(e){if(!(this instanceof v))return new v(e);"string"==typeof e&&(p(Object.prototype.hasOwnProperty.call(u,e),"Unknown curve "+e),e=u[e]),e instanceof u.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}b=z,z.prototype._importDER=function(e,t){e=c.toArray(e,t);var n=new O;if(48!==e[n.place++])return!1;var o=m(e,n);if(!1===o||o+n.place!==e.length||2!==e[n.place++])return!1;var i=m(e,n);if(!1===i||(128&e[n.place])!=0)return!1;var a=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var s=m(e,n);if(!1===s||e.length!==s+n.place||(128&e[n.place])!=0)return!1;var u=e.slice(n.place,s+n.place);if(0===a[0])if(!(128&a[1]))return!1;else a=a.slice(1);if(0===u[0])if(!(128&u[1]))return!1;else u=u.slice(1);return this.r=new r(a),this.s=new r(u),this.recoveryParam=null,!0},z.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=g(t),r=g(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];A(n,t.length),(n=n.concat(t)).push(2),A(n,r.length);var o=n.concat(r),i=[48];return A(i,o.length),i=i.concat(o),c.encode(i,e)},e.exports=v,v.prototype.keyPair=function(e){return new f(this,e)},v.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},v.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},v.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||l(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),o=this.n.byteLength(),i=this.n.sub(new r(2));;){var a=new r(t.generate(o));if(!(a.cmp(i)>0))return a.iaddn(1),this.keyFromPrivate(a)}},v.prototype._truncateToN=function(e,t,n){if(r.isBN(e)||"number"==typeof e)o=(e=new r(e,16)).byteLength();else if("object"==typeof e)o=e.length,e=new r(e,16);else{var o,i=e.toString();o=i.length+1>>>1,e=new r(i,16)}"number"!=typeof n&&(n=8*o);var a=n-this.n.bitLength();return(a>0&&(e=e.ushrn(a)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},v.prototype.sign=function(e,t,o,i){if("object"==typeof o&&(i=o,o=null),i||(i={}),"string"!=typeof e&&"number"!=typeof e&&!r.isBN(e)){p("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),p(e.length>>>0===e.length);for(var a=0;a=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(f)>=0)continue;var M=this.g.mul(h);if(!M.isInfinity()){var z=M.getX(),O=z.umod(this.n);if(0!==O.cmpn(0)){var m=h.invm(this.n).mul(O.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var g=!!M.getY().isOdd()|2*(0!==z.cmp(O));return i.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),g^=1),new b({r:O,s:m,recoveryParam:g})}}}}},v.prototype.verify=function(e,t,r,n,o){o||(o={}),e=this._truncateToN(e,!1,o.msgBitLength),r=this.keyFromPublic(r,n);var i,a=(t=new b(t,"hex")).r,s=t.s;if(0>a.cmpn(1)||a.cmp(this.n)>=0||0>s.cmpn(1)||s.cmp(this.n)>=0)return!1;var c=s.invm(this.n),u=c.mul(e).umod(this.n),l=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(u,r.getPublic(),l)).isInfinity()&&i.eqXToP(a):!(i=this.g.mulAdd(u,r.getPublic(),l)).isInfinity()&&0===i.getX().umod(this.n).cmp(a)},v.prototype.recoverPubKey=function(e,t,n,o){p((3&n)===n,"The recovery param is more than two bits"),t=new b(t,o);var i=this.n,a=new r(e),s=t.r,c=t.s,u=1&n,l=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var f=t.r.invm(i),d=i.sub(a).mul(f).umod(i),h=c.mul(f).umod(i);return this.g.mulAdd(d,s,h)},v.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new b(t,n)).recoveryParam)return t.recoveryParam;for(var o,i=0;i<4;i++){try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw Error("Unable to find valid recovery factor")}}),parcelRegister("j4Lar",function(e,t){var r=parcelRequire("2uYzb"),n=parcelRequire("66GGm"),o=parcelRequire("7i4J7"),i=o.assert,a=o.parseBytes,s={},o=parcelRequire("7i4J7"),c=o.assert,u=o.parseBytes,l=o.cachedProperty;function p(e,t){this.eddsa=e,this._secret=u(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=u(t.pub)}p.fromPublic=function(e,t){return t instanceof p?t:new p(e,{pub:t})},p.fromSecret=function(e,t){return t instanceof p?t:new p(e,{secret:t})},p.prototype.secret=function(){return this._secret},l(p,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),l(p,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),l(p,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),l(p,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),l(p,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),l(p,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),p.prototype.sign=function(e){return c(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},p.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},p.prototype.getSecret=function(e){return c(this._secret,"KeyPair is public only"),o.encode(this.secret(),e)},p.prototype.getPublic=function(e){return o.encode(this.pubBytes(),e)},s=p;var f={},d=parcelRequire("1PtXz"),o=parcelRequire("7i4J7"),h=o.assert,b=o.cachedProperty,M=o.parseBytes;function z(e,t){this.eddsa=e,"object"!=typeof t&&(t=M(t)),Array.isArray(t)&&(h(t.length===2*e.encodingLength,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),h(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof d&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}function O(e){if(i("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof O))return new O(e);e=n[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}b(z,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),b(z,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),b(z,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),b(z,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),z.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},z.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},f=z,e.exports=O,O.prototype.sign=function(e,t){e=a(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),o=this.g.mul(n),i=this.encodePoint(o),s=this.hashInt(i,r.pubBytes(),e).mul(r.priv()),c=n.add(s).umod(this.curve.n);return this.makeSignature({R:o,S:c,Rencoded:i})},O.prototype.verify=function(e,t,r){if(e=a(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var n=this.keyFromPublic(r),o=this.hashInt(t.Rencoded(),n.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(n.pub().mul(o)).eq(i)},O.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function a(e,t,r){var n=i(e,r);return r-1>=t&&(n|=i(e,r-1)<<4),n}function s(e,t,n,o){for(var i=0,a=0,s=Math.min(e.length,n),c=t;c=49?u-49+10:u>=17?u-17+10:u,r(u>=0&&a0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;a-=3)i=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=i<>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(a=0,o=0;a>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,o=0;o=t;o-=2)n=a(e,t,o)<=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;else for(o=(e.length-t)%2==0?t+1:t;o=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=0x3ffffff;o*=t)n++;n--,o=o/t|0;for(var i=e.length-r,a=i%n,c=Math.min(i,i-a)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){o.prototype.inspect=u}else o.prototype.inspect=u;function u(){return(this.red?""}var l,p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var n="",o=0,i=0,a=0;a>>24-o&0xffffff,(o+=2)>=26&&(o-=26,a--),n=0!==i||a!==this.length-1?p[6-c.length]+c+n:c+n}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],l=d[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var b=h.modrn(l).toString(e);n=(h=h.idivn(l)).isZero()?b+n:p[u-b.length]+b+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},l&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(l,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var h=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function b(e){for(var t=Array(e.bitLength()),r=0;r>>o&1}return t}function M(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,s=0x3ffffff&a,c=a/0x4000000|0;r.words[0]=s;for(var u=1;u>>26,p=0x3ffffff&c,f=Math.min(u,t.length-1),d=Math.max(0,u-e.length+1);d<=f;d++){var h=u-d|0;l+=(a=(o=0|e.words[h])*(i=0|t.words[d])+p)/0x4000000|0,p=0x3ffffff&a}r.words[u]=0|p,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,n){this._strip();var o=this.byteLength(),i=n||Math.max(1,o);r(o<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0");var a=h(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,o),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,o=0,i=0;o>8&255),r>16&255),6===i?(r>24&255),n=0,i=0):(n=a>>>24,i+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===i?(r>=0&&(e[r--]=a>>24&255),n=0,i=0):(n=a>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var o=0;o0&&(this.words[o]=~this.words[o]&0x3ffffff>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),t?this.words[n]=this.words[n]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,o=0,i=0;i>>26;for(;0!==o&&i>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(t=this,r=e):(t=e,r=this);for(var i=0,a=0;a>26,this.words[a]=0x3ffffff&n;for(;0!==i&&a>26,this.words[a]=0x3ffffff&n;if(0===i&&a>>13,d=0|a[1],h=8191&d,b=d>>>13,M=0|a[2],z=8191&M,O=M>>>13,m=0|a[3],g=8191&m,A=m>>>13,v=0|a[4],y=8191&v,_=v>>>13,q=0|a[5],x=8191&q,w=q>>>13,R=0|a[6],S=8191&R,W=R>>>13,k=0|a[7],E=8191&k,L=k>>>13,N=0|a[8],C=8191&N,T=N>>>13,D=0|a[9],B=8191&D,I=D>>>13,P=0|s[0],F=8191&P,j=P>>>13,X=0|s[1],U=8191&X,H=X>>>13,V=0|s[2],G=8191&V,Y=V>>>13,K=0|s[3],Q=8191&K,$=K>>>13,Z=0|s[4],J=8191&Z,ee=Z>>>13,et=0|s[5],er=8191&et,en=et>>>13,eo=0|s[6],ei=8191&eo,ea=eo>>>13,es=0|s[7],ec=8191&es,eu=es>>>13,el=0|s[8],ep=8191&el,ef=el>>>13,ed=0|s[9],eh=8191&ed,eb=ed>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(p,F);var eM=(u+n|0)+((8191&(o=(o=Math.imul(p,j))+Math.imul(f,F)|0))<<13)|0;u=((i=Math.imul(f,j))+(o>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(h,F),o=(o=Math.imul(h,j))+Math.imul(b,F)|0,i=Math.imul(b,j),n=n+Math.imul(p,U)|0;var ez=(u+n|0)+((8191&(o=(o=o+Math.imul(p,H)|0)+Math.imul(f,U)|0))<<13)|0;u=((i=i+Math.imul(f,H)|0)+(o>>>13)|0)+(ez>>>26)|0,ez&=0x3ffffff,n=Math.imul(z,F),o=(o=Math.imul(z,j))+Math.imul(O,F)|0,i=Math.imul(O,j),n=n+Math.imul(h,U)|0,o=(o=o+Math.imul(h,H)|0)+Math.imul(b,U)|0,i=i+Math.imul(b,H)|0,n=n+Math.imul(p,G)|0;var eO=(u+n|0)+((8191&(o=(o=o+Math.imul(p,Y)|0)+Math.imul(f,G)|0))<<13)|0;u=((i=i+Math.imul(f,Y)|0)+(o>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(g,F),o=(o=Math.imul(g,j))+Math.imul(A,F)|0,i=Math.imul(A,j),n=n+Math.imul(z,U)|0,o=(o=o+Math.imul(z,H)|0)+Math.imul(O,U)|0,i=i+Math.imul(O,H)|0,n=n+Math.imul(h,G)|0,o=(o=o+Math.imul(h,Y)|0)+Math.imul(b,G)|0,i=i+Math.imul(b,Y)|0,n=n+Math.imul(p,Q)|0;var em=(u+n|0)+((8191&(o=(o=o+Math.imul(p,$)|0)+Math.imul(f,Q)|0))<<13)|0;u=((i=i+Math.imul(f,$)|0)+(o>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(y,F),o=(o=Math.imul(y,j))+Math.imul(_,F)|0,i=Math.imul(_,j),n=n+Math.imul(g,U)|0,o=(o=o+Math.imul(g,H)|0)+Math.imul(A,U)|0,i=i+Math.imul(A,H)|0,n=n+Math.imul(z,G)|0,o=(o=o+Math.imul(z,Y)|0)+Math.imul(O,G)|0,i=i+Math.imul(O,Y)|0,n=n+Math.imul(h,Q)|0,o=(o=o+Math.imul(h,$)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,$)|0,n=n+Math.imul(p,J)|0;var eg=(u+n|0)+((8191&(o=(o=o+Math.imul(p,ee)|0)+Math.imul(f,J)|0))<<13)|0;u=((i=i+Math.imul(f,ee)|0)+(o>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(x,F),o=(o=Math.imul(x,j))+Math.imul(w,F)|0,i=Math.imul(w,j),n=n+Math.imul(y,U)|0,o=(o=o+Math.imul(y,H)|0)+Math.imul(_,U)|0,i=i+Math.imul(_,H)|0,n=n+Math.imul(g,G)|0,o=(o=o+Math.imul(g,Y)|0)+Math.imul(A,G)|0,i=i+Math.imul(A,Y)|0,n=n+Math.imul(z,Q)|0,o=(o=o+Math.imul(z,$)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,$)|0,n=n+Math.imul(h,J)|0,o=(o=o+Math.imul(h,ee)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,ee)|0,n=n+Math.imul(p,er)|0;var eA=(u+n|0)+((8191&(o=(o=o+Math.imul(p,en)|0)+Math.imul(f,er)|0))<<13)|0;u=((i=i+Math.imul(f,en)|0)+(o>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(S,F),o=(o=Math.imul(S,j))+Math.imul(W,F)|0,i=Math.imul(W,j),n=n+Math.imul(x,U)|0,o=(o=o+Math.imul(x,H)|0)+Math.imul(w,U)|0,i=i+Math.imul(w,H)|0,n=n+Math.imul(y,G)|0,o=(o=o+Math.imul(y,Y)|0)+Math.imul(_,G)|0,i=i+Math.imul(_,Y)|0,n=n+Math.imul(g,Q)|0,o=(o=o+Math.imul(g,$)|0)+Math.imul(A,Q)|0,i=i+Math.imul(A,$)|0,n=n+Math.imul(z,J)|0,o=(o=o+Math.imul(z,ee)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,ee)|0,n=n+Math.imul(h,er)|0,o=(o=o+Math.imul(h,en)|0)+Math.imul(b,er)|0,i=i+Math.imul(b,en)|0,n=n+Math.imul(p,ei)|0;var ev=(u+n|0)+((8191&(o=(o=o+Math.imul(p,ea)|0)+Math.imul(f,ei)|0))<<13)|0;u=((i=i+Math.imul(f,ea)|0)+(o>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(E,F),o=(o=Math.imul(E,j))+Math.imul(L,F)|0,i=Math.imul(L,j),n=n+Math.imul(S,U)|0,o=(o=o+Math.imul(S,H)|0)+Math.imul(W,U)|0,i=i+Math.imul(W,H)|0,n=n+Math.imul(x,G)|0,o=(o=o+Math.imul(x,Y)|0)+Math.imul(w,G)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,$)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,$)|0,n=n+Math.imul(g,J)|0,o=(o=o+Math.imul(g,ee)|0)+Math.imul(A,J)|0,i=i+Math.imul(A,ee)|0,n=n+Math.imul(z,er)|0,o=(o=o+Math.imul(z,en)|0)+Math.imul(O,er)|0,i=i+Math.imul(O,en)|0,n=n+Math.imul(h,ei)|0,o=(o=o+Math.imul(h,ea)|0)+Math.imul(b,ei)|0,i=i+Math.imul(b,ea)|0,n=n+Math.imul(p,ec)|0;var ey=(u+n|0)+((8191&(o=(o=o+Math.imul(p,eu)|0)+Math.imul(f,ec)|0))<<13)|0;u=((i=i+Math.imul(f,eu)|0)+(o>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(C,F),o=(o=Math.imul(C,j))+Math.imul(T,F)|0,i=Math.imul(T,j),n=n+Math.imul(E,U)|0,o=(o=o+Math.imul(E,H)|0)+Math.imul(L,U)|0,i=i+Math.imul(L,H)|0,n=n+Math.imul(S,G)|0,o=(o=o+Math.imul(S,Y)|0)+Math.imul(W,G)|0,i=i+Math.imul(W,Y)|0,n=n+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,$)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,$)|0,n=n+Math.imul(y,J)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(_,J)|0,i=i+Math.imul(_,ee)|0,n=n+Math.imul(g,er)|0,o=(o=o+Math.imul(g,en)|0)+Math.imul(A,er)|0,i=i+Math.imul(A,en)|0,n=n+Math.imul(z,ei)|0,o=(o=o+Math.imul(z,ea)|0)+Math.imul(O,ei)|0,i=i+Math.imul(O,ea)|0,n=n+Math.imul(h,ec)|0,o=(o=o+Math.imul(h,eu)|0)+Math.imul(b,ec)|0,i=i+Math.imul(b,eu)|0,n=n+Math.imul(p,ep)|0;var e_=(u+n|0)+((8191&(o=(o=o+Math.imul(p,ef)|0)+Math.imul(f,ep)|0))<<13)|0;u=((i=i+Math.imul(f,ef)|0)+(o>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(B,F),o=(o=Math.imul(B,j))+Math.imul(I,F)|0,i=Math.imul(I,j),n=n+Math.imul(C,U)|0,o=(o=o+Math.imul(C,H)|0)+Math.imul(T,U)|0,i=i+Math.imul(T,H)|0,n=n+Math.imul(E,G)|0,o=(o=o+Math.imul(E,Y)|0)+Math.imul(L,G)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,$)|0)+Math.imul(W,Q)|0,i=i+Math.imul(W,$)|0,n=n+Math.imul(x,J)|0,o=(o=o+Math.imul(x,ee)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(y,er)|0,o=(o=o+Math.imul(y,en)|0)+Math.imul(_,er)|0,i=i+Math.imul(_,en)|0,n=n+Math.imul(g,ei)|0,o=(o=o+Math.imul(g,ea)|0)+Math.imul(A,ei)|0,i=i+Math.imul(A,ea)|0,n=n+Math.imul(z,ec)|0,o=(o=o+Math.imul(z,eu)|0)+Math.imul(O,ec)|0,i=i+Math.imul(O,eu)|0,n=n+Math.imul(h,ep)|0,o=(o=o+Math.imul(h,ef)|0)+Math.imul(b,ep)|0,i=i+Math.imul(b,ef)|0,n=n+Math.imul(p,eh)|0;var eq=(u+n|0)+((8191&(o=(o=o+Math.imul(p,eb)|0)+Math.imul(f,eh)|0))<<13)|0;u=((i=i+Math.imul(f,eb)|0)+(o>>>13)|0)+(eq>>>26)|0,eq&=0x3ffffff,n=Math.imul(B,U),o=(o=Math.imul(B,H))+Math.imul(I,U)|0,i=Math.imul(I,H),n=n+Math.imul(C,G)|0,o=(o=o+Math.imul(C,Y)|0)+Math.imul(T,G)|0,i=i+Math.imul(T,Y)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,$)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,$)|0,n=n+Math.imul(S,J)|0,o=(o=o+Math.imul(S,ee)|0)+Math.imul(W,J)|0,i=i+Math.imul(W,ee)|0,n=n+Math.imul(x,er)|0,o=(o=o+Math.imul(x,en)|0)+Math.imul(w,er)|0,i=i+Math.imul(w,en)|0,n=n+Math.imul(y,ei)|0,o=(o=o+Math.imul(y,ea)|0)+Math.imul(_,ei)|0,i=i+Math.imul(_,ea)|0,n=n+Math.imul(g,ec)|0,o=(o=o+Math.imul(g,eu)|0)+Math.imul(A,ec)|0,i=i+Math.imul(A,eu)|0,n=n+Math.imul(z,ep)|0,o=(o=o+Math.imul(z,ef)|0)+Math.imul(O,ep)|0,i=i+Math.imul(O,ef)|0,n=n+Math.imul(h,eh)|0;var ex=(u+n|0)+((8191&(o=(o=o+Math.imul(h,eb)|0)+Math.imul(b,eh)|0))<<13)|0;u=((i=i+Math.imul(b,eb)|0)+(o>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(B,G),o=(o=Math.imul(B,Y))+Math.imul(I,G)|0,i=Math.imul(I,Y),n=n+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(T,Q)|0,i=i+Math.imul(T,$)|0,n=n+Math.imul(E,J)|0,o=(o=o+Math.imul(E,ee)|0)+Math.imul(L,J)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(S,er)|0,o=(o=o+Math.imul(S,en)|0)+Math.imul(W,er)|0,i=i+Math.imul(W,en)|0,n=n+Math.imul(x,ei)|0,o=(o=o+Math.imul(x,ea)|0)+Math.imul(w,ei)|0,i=i+Math.imul(w,ea)|0,n=n+Math.imul(y,ec)|0,o=(o=o+Math.imul(y,eu)|0)+Math.imul(_,ec)|0,i=i+Math.imul(_,eu)|0,n=n+Math.imul(g,ep)|0,o=(o=o+Math.imul(g,ef)|0)+Math.imul(A,ep)|0,i=i+Math.imul(A,ef)|0,n=n+Math.imul(z,eh)|0;var ew=(u+n|0)+((8191&(o=(o=o+Math.imul(z,eb)|0)+Math.imul(O,eh)|0))<<13)|0;u=((i=i+Math.imul(O,eb)|0)+(o>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(B,Q),o=(o=Math.imul(B,$))+Math.imul(I,Q)|0,i=Math.imul(I,$),n=n+Math.imul(C,J)|0,o=(o=o+Math.imul(C,ee)|0)+Math.imul(T,J)|0,i=i+Math.imul(T,ee)|0,n=n+Math.imul(E,er)|0,o=(o=o+Math.imul(E,en)|0)+Math.imul(L,er)|0,i=i+Math.imul(L,en)|0,n=n+Math.imul(S,ei)|0,o=(o=o+Math.imul(S,ea)|0)+Math.imul(W,ei)|0,i=i+Math.imul(W,ea)|0,n=n+Math.imul(x,ec)|0,o=(o=o+Math.imul(x,eu)|0)+Math.imul(w,ec)|0,i=i+Math.imul(w,eu)|0,n=n+Math.imul(y,ep)|0,o=(o=o+Math.imul(y,ef)|0)+Math.imul(_,ep)|0,i=i+Math.imul(_,ef)|0,n=n+Math.imul(g,eh)|0;var eR=(u+n|0)+((8191&(o=(o=o+Math.imul(g,eb)|0)+Math.imul(A,eh)|0))<<13)|0;u=((i=i+Math.imul(A,eb)|0)+(o>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(B,J),o=(o=Math.imul(B,ee))+Math.imul(I,J)|0,i=Math.imul(I,ee),n=n+Math.imul(C,er)|0,o=(o=o+Math.imul(C,en)|0)+Math.imul(T,er)|0,i=i+Math.imul(T,en)|0,n=n+Math.imul(E,ei)|0,o=(o=o+Math.imul(E,ea)|0)+Math.imul(L,ei)|0,i=i+Math.imul(L,ea)|0,n=n+Math.imul(S,ec)|0,o=(o=o+Math.imul(S,eu)|0)+Math.imul(W,ec)|0,i=i+Math.imul(W,eu)|0,n=n+Math.imul(x,ep)|0,o=(o=o+Math.imul(x,ef)|0)+Math.imul(w,ep)|0,i=i+Math.imul(w,ef)|0,n=n+Math.imul(y,eh)|0;var eS=(u+n|0)+((8191&(o=(o=o+Math.imul(y,eb)|0)+Math.imul(_,eh)|0))<<13)|0;u=((i=i+Math.imul(_,eb)|0)+(o>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(B,er),o=(o=Math.imul(B,en))+Math.imul(I,er)|0,i=Math.imul(I,en),n=n+Math.imul(C,ei)|0,o=(o=o+Math.imul(C,ea)|0)+Math.imul(T,ei)|0,i=i+Math.imul(T,ea)|0,n=n+Math.imul(E,ec)|0,o=(o=o+Math.imul(E,eu)|0)+Math.imul(L,ec)|0,i=i+Math.imul(L,eu)|0,n=n+Math.imul(S,ep)|0,o=(o=o+Math.imul(S,ef)|0)+Math.imul(W,ep)|0,i=i+Math.imul(W,ef)|0,n=n+Math.imul(x,eh)|0;var eW=(u+n|0)+((8191&(o=(o=o+Math.imul(x,eb)|0)+Math.imul(w,eh)|0))<<13)|0;u=((i=i+Math.imul(w,eb)|0)+(o>>>13)|0)+(eW>>>26)|0,eW&=0x3ffffff,n=Math.imul(B,ei),o=(o=Math.imul(B,ea))+Math.imul(I,ei)|0,i=Math.imul(I,ea),n=n+Math.imul(C,ec)|0,o=(o=o+Math.imul(C,eu)|0)+Math.imul(T,ec)|0,i=i+Math.imul(T,eu)|0,n=n+Math.imul(E,ep)|0,o=(o=o+Math.imul(E,ef)|0)+Math.imul(L,ep)|0,i=i+Math.imul(L,ef)|0,n=n+Math.imul(S,eh)|0;var ek=(u+n|0)+((8191&(o=(o=o+Math.imul(S,eb)|0)+Math.imul(W,eh)|0))<<13)|0;u=((i=i+Math.imul(W,eb)|0)+(o>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(B,ec),o=(o=Math.imul(B,eu))+Math.imul(I,ec)|0,i=Math.imul(I,eu),n=n+Math.imul(C,ep)|0,o=(o=o+Math.imul(C,ef)|0)+Math.imul(T,ep)|0,i=i+Math.imul(T,ef)|0,n=n+Math.imul(E,eh)|0;var eE=(u+n|0)+((8191&(o=(o=o+Math.imul(E,eb)|0)+Math.imul(L,eh)|0))<<13)|0;u=((i=i+Math.imul(L,eb)|0)+(o>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(B,ep),o=(o=Math.imul(B,ef))+Math.imul(I,ep)|0,i=Math.imul(I,ef),n=n+Math.imul(C,eh)|0;var eL=(u+n|0)+((8191&(o=(o=o+Math.imul(C,eb)|0)+Math.imul(T,eh)|0))<<13)|0;u=((i=i+Math.imul(T,eb)|0)+(o>>>13)|0)+(eL>>>26)|0,eL&=0x3ffffff,n=Math.imul(B,eh);var eN=(u+n|0)+((8191&(o=(o=Math.imul(B,eb))+Math.imul(I,eh)|0))<<13)|0;return u=((i=Math.imul(I,eb))+(o>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,c[0]=eM,c[1]=ez,c[2]=eO,c[3]=em,c[4]=eg,c[5]=eA,c[6]=ev,c[7]=ey,c[8]=e_,c[9]=eq,c[10]=ex,c[11]=ew,c[12]=eR,c[13]=eS,c[14]=eW,c[15]=ek,c[16]=eE,c[17]=eL,c[18]=eN,0!==u&&(c[19]=u,r.length++),r};function O(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,i=0;i>>26)|0)>>>26,a&=0x3ffffff}r.words[i]=s,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r._strip()}function m(e,t,r){return O(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(z=M),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?z(this,e,t):n<63?M(this,e,t):n<1024?O(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,o,i){for(var a=0;a>>=1)o++;return 1<>>=13,n[2*a+1]=8191&i,i>>>=13;for(a=2*t;a>=26,n+=(i/0x4000000|0)+(a>>>26),this.words[o]=0x3ffffff&a}return 0!==n&&(this.words[o]=n,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=b(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,n=e%26,o=(e-n)/26,i=0x3ffffff>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t=0);var o=t?(t-t%26)/26:0,i=e%26,a=Math.min((e-i)/26,this.length),s=0x3ffffff^0x3ffffff>>>i<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=o);u--){var p=0|this.words[u];this.words[u]=l<<26-i|p>>>i,l=p&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,o=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var o=0x3ffffff^0x3ffffff>>>t<=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/0x4000000|0),this.words[o+n]=0x3ffffff&i}for(;o>26,this.words[o+n]=0x3ffffff&i;if(0===s)return this._strip();for(r(-1===s),s=0,o=0;o>26,this.words[o]=0x3ffffff&i;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var c=i.length-a.length;if("mod"!==t){(r=new o(null)).length=c+1,r.words=Array(r.length);for(var u=0;u=0;p--){var f=(0|i.words[a.length+p])*0x4000000+(0|i.words[a.length+p-1]);for(f=Math.min(f/s|0,0x3ffffff),i._ishlnsubmul(a,f,p);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(a,1,p),i.isZero()||(i.negative^=1);r&&(r.words[p]=f)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,n){var i,a,s;return(r(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=0x3ffffff);for(var n=0x4000000%e,o=0,i=this.length-1;i>=0;i--)o=(n*o+(0|this.words[i]))%e;return t?-o:o},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=0x3ffffff);for(var n=0,o=this.length-1;o>=0;o--){var i=(0|this.words[o])+0x4000000*n;this.words[o]=i/e|0,n=i%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),p=t.clone();!t.isZero();){for(var f=0,d=1;(t.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(p)),i.iushrn(1),a.iushrn(1);for(var h=0,b=1;(n.words[0]&b)==0&&h<26;++h,b<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(p)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(u)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t,n=this,i=e.clone();n=0!==n.negative?n.umod(e):n.clone();for(var a=new o(1),s=new o(0),c=i.clone();n.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var p=0,f=1;(i.words[0]&f)==0&&p<26;++p,f<<=1);if(p>0)for(i.iushrn(p);p-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);n.cmp(i)>=0?(n.isub(i),a.isub(s)):(i.isub(n),s.isub(a))}return 0>(t=0===n.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=t.cmp(r);if(o<0){var i=t;t=r,r=i}else if(0===o||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,o=1<>>26,s&=0x3ffffff,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return -1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=0x3ffffff,"Number is too big");var o=0|this.words[0];t=o===e?0:oe.length)return 1;if(this.length=0;r--){var n=0|this.words[r],o=0|e.words[r];if(n!==o){no&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new w(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var A={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function q(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function w(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function R(e){w.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},n(y,v),y.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),o=0;o>>22,i=a}i>>>=22,e.words[o-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=o,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(A[e])return A[e];if("k256"===e)t=new y;else if("p224"===e)t=new _;else if("p192"===e)t=new q;else if("p25519"===e)t=new x;else throw Error("Unknown prime "+e);return A[e]=t,t},w.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},w.prototype._verify2=function(e,t){r((e.negative|t.negative)==0,"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},w.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},w.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},w.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},w.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},w.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},w.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},w.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},w.prototype.isqr=function(e){return this.imul(e,e.clone())},w.prototype.sqr=function(e){return this.mul(e,e)},w.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var p=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),h=a;0!==d.cmp(s);){for(var b=d,M=0;0!==b.cmp(s);M++)b=b.redSqr();r(M=0;i--){for(var l=t.words[i],p=u-1;p>=0;p--){var f=l>>p&1;if(a!==n[0]&&(a=this.sqr(a)),0===f&&0===s){c=0;continue}s<<=1,s|=f,(++c===r||0===i&&0===p)&&(a=this.mul(a,n[s]),c=0,s=0)}u=26}return a},w.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},w.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new R(e)},n(R,w),R.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},R.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},R.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):0>o.cmpn(0)&&(i=o.iadd(this.m)),i._forceRed(this)},R.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},R.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}),parcelRegister("2f8cN",function(e,t){var r=parcelRequire("gg3Kk"),n=parcelRequire("cNocx");function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}e.exports.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=parcelRequire("8tdqf").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return n(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}}),parcelRegister("8tdqf",function(module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;rr,e=>r=e);var r,n=parcelRequire("cNocx");function o(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function i(e,t){this.path=e,this.rethrow(t)}r=o,o.prototype.isError=function(e){return e instanceof i},o.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},o.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},o.prototype.enterKey=function(e){return this._reporterState.path.push(e)},o.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},o.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},o.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},o.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof i;if(t=n?e:new i(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},o.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(i,Error),i.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}}),parcelRegister("d2VbX",function(e,t){$parcel$export(e.exports,"DecoderBuffer",()=>r,e=>r=e),$parcel$export(e.exports,"EncoderBuffer",()=>n,e=>n=e);var r,n,o=parcelRequire("cNocx"),i=parcelRequire("1RKjx").Reporter,a=parcelRequire("fhwsL").Buffer;function s(e,t){if(i.call(this,t),!a.isBuffer(e))return void this.error("Input not Buffer");this.base=e,this.offset=0,this.length=e.length}function c(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof c||(e=new c(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}o(s,i),r=s,s.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},n=c,c.prototype.join=function(e,t){return e||(e=new a(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}}),parcelRegister("jgsST",function(e,t){var r=parcelRequire("1RKjx"),n=r.Reporter,r=parcelRequire("1RKjx"),o=r.EncoderBuffer,r=parcelRequire("1RKjx"),i=r.DecoderBuffer,a=parcelRequire("895Ov"),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),u=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function l(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=l;var p=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var e=this._baseState,t={};p.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},l.prototype._wrap=function(){var e=this._baseState;c.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},l.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0),t[e[r]]=r}),t}))},u.forEach(function(e){l.prototype[e]=function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(e){l.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}}),l.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},l.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){var r,n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var o=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var c=null;if(null!==n.explicit?c=n.explicit:null!==n.implicit?c=n.implicit:null!==n.tag&&(c=n.tag),null!==c||n.any){if(a=this._peekTag(e,c,n.any),e.isError(a))return a}else{var u=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(u)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){var l=this._decodeTag(e,n.explicit);if(e.isError(l))return l;e=l}var p=e.offset;if(null===n.use&&null===n.choice){if(n.any)var u=e.save();var f=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(f))return f;n.any?o=e.raw(u):e=f}if(t&&t.track&&null!==n.tag&&t.track(e.path(),p,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(o=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(o))return o;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(r){r._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var d=new i(o);o=this._getUse(n.contains,e._reporterState.obj)._decode(d,t)}}return n.obj&&a&&(o=e.leaveObject(r)),null!==n.key&&(null!==o||!0===a)?e.leaveKey(s,n.key,o):null!==s&&e.exitKey(s),o},l.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,n.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&n.args)return this._decodeObjid(t,n.args[0],n.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);else if("null_"===e)return this._decodeNull(t,r);else if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,n.args&&n.args[0],r);return null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},l.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,o=!1;return(Object.keys(r.choice).some(function(i){var a=e.save(),s=r.choice[i];try{var c=s._decode(e,t);if(e.isError(c))return!1;n={type:i,value:c},o=!0}catch(t){return e.restore(a),!1}return!0},this),o)?n:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new o(e,this.reporter)},l.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var o=this._encodeValue(e,t,r);if(void 0!==o&&!this._skipDefault(o,t,r))return o}},l.prototype._encodeValue=function(e,t,r){var o,i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);var o=null;if(this.reporter=t,i.optional&&void 0===e)if(null===i.default)return;else e=i.default;var a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,r)._encode(e,t),s=!0;else if(i.children)a=i.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var o=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),o},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!(i.args&&1===i.args.length))return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},c))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){var u=null!==i.implicit?i.implicit:i.tag,l=null===i.implicit?"universal":"context";null===u?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(u,s,l,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},l.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();else if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);else if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}}),parcelRegister("6a0Jv",function(e,t){var r=e.exports;r._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0),t[e[r]]=r}),t},r.der=parcelRequire("45vXS")}),parcelRegister("45vXS",function(e,t){$parcel$export(e.exports,"tagClass",()=>r,e=>r=e),$parcel$export(e.exports,"tagClassByName",()=>n,e=>n=e),$parcel$export(e.exports,"tag",()=>o,e=>o=e),$parcel$export(e.exports,"tagByName",()=>i,e=>i=e);var r,n,o,i,a=parcelRequire("6a0Jv");r={0:"universal",1:"application",2:"context",3:"private"},n=a._reverse(r),o={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},i=a._reverse(o)}),parcelRegister("8xMdd",function(e,t){var r=e.exports;r.der=parcelRequire("2nNz7"),r.pem=parcelRequire("hU9sW")}),parcelRegister("2nNz7",function(e,t){var r=parcelRequire("cNocx"),n=parcelRequire("gg3Kk"),o=n.base,i=n.bignum,a=n.constants.der;function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function u(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=a.tagClass[r>>6],o=(32&r)==0;if((31&r)==31){var i=r;for(r=0;(128&i)==128;){if(i=e.readUInt8(t),e.isError(i))return i;r<<=7,r|=127&i}}else r&=31;var s=a.tag[r];return{cls:n,primitive:o,tag:r,tagStr:s}}function l(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if((128&n)==0)return n;var o=127&n;if(o>4)return e.error("length octect is too long");n=0;for(var i=0;i=31?n.error("Multi-octet tag encoding unsupported"):(t||(o|=32),o|=a.tagClassByName[r||"universal"]<<6)}e.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(c,i.Node),c.prototype._encodeComposite=function(e,t,r,o){var i=l(e,t,r,this.reporter);if(o.length<128){var a=new n(2);return a[0]=i,a[1]=o.length,this._createEncoderBuffer([a,o])}for(var s=1,c=o.length;c>=256;c>>=8)s++;var a=new n(2+s);a[0]=i,a[1]=128|s;for(var c=1+s,u=o.length;u>0;c--,u>>=8)a[c]=255&u;return this._createEncoderBuffer([a,o])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new n(2*e.length),o=0;o=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var i=0,o=0;o=128;a>>=7)i++}for(var s=new n(i),c=s.length-1,o=e.length-1;o>=0;o--){var a=e[o];for(s[c--]=127&a;(a>>=7)>0;)s[c--]=128|127&a}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[u(n.getFullYear()),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[u(n.getFullYear()%100),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!n.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new n(r)}if(n.isBuffer(e)){var o=e.length;0===e.length&&o++;var i=new n(o);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var o=1,a=e;a>=256;a>>=8)o++;for(var i=Array(o),a=i.length-1;a>=0;a--)i[a]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new n(i))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(255*!!e)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,r){var n,o=this._baseState;if(null===o.default)return!1;var i=e.join();if(void 0===o.defaultBuffer&&(o.defaultBuffer=this._encodeValue(o.default,t,r).join()),i.length!==o.defaultBuffer.length)return!1;for(n=0;nr-f-2)throw Error("message too long");var d=u.alloc(r-c-f-2),h=r-p-1,b=n(p),M=a(u.concat([l,d,u.alloc(1,1),t],h),i(b,h)),z=a(b,i(M,p));return new s(u.concat([u.alloc(1),z,M],r))}function p(e,t,r){var n,o=t.length,i=e.modulus.byteLength();if(o>i-11)throw Error("message too long");return n=r?u.alloc(i-o-3,255):f(i-o-3),new s(u.concat([u.from([0,r?1:2]),n,u.alloc(1),t],i))}function f(e){for(var t,r=u.allocUnsafe(e),o=0,i=n(2*e),a=0;o=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return n?parcelRequire("eW5Xk")(o,a):c(o,a)}}),parcelRegister("6jNAi",function(e,t){var r=parcelRequire("7Sgwh"),n=parcelRequire("1472H"),o=parcelRequire("9WXtH"),i=parcelRequire("1PtXz"),a=parcelRequire("kh83X"),s=parcelRequire("fxJv6"),c=parcelRequire("1Xiwd").Buffer;function u(e,t){var r=e.modulus.byteLength(),i=a("sha1").update(c.alloc(0)).digest(),s=i.length;if(0!==t[0])throw Error("decryption error");var u=t.slice(1,s+1),l=t.slice(s+1),f=o(u,n(l,s)),d=o(l,n(f,r-s-1));if(p(i,d.slice(0,s)))throw Error("decryption error");for(var h=s;0===d[h];)h++;if(1!==d[h++])throw Error("decryption error");return d.slice(h)}function l(e,t,r){for(var n=t.slice(0,2),o=2,i=0;0!==t[o++];)if(o>=t.length){i++;break}var a=t.slice(2,o-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&i++,a.length<8&&i++,i)throw Error("decryption error");return t.slice(o)}function p(e,t){e=c.from(e),t=c.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var o=-1;++of||new i(t).cmp(p.modulus)>=0)throw Error("decryption error");o=n?s(new i(t),p):parcelRequire("eW5Xk")(t,p);var d=c.alloc(f-o.length);if(o=c.concat([d,o],f),4===a)return u(p,o);if(1===a)return l(p,o,n);if(3===a)return o;throw Error("unknown padding")}}),parcelRegister("gE0s1",function(e,t){$parcel$export(e.exports,"default",()=>V);var r=parcelRequire("gsGyW"),n=parcelRequire("2lFLk"),o=parcelRequire("gwFzn"),n=parcelRequire("2lFLk"),o=(parcelRequire("gwFzn"),parcelRequire("gwFzn")),i={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},a=parcelRequire("8DOLO"),s=(0,a.createMedium)({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),c=(0,a.createMedium)(),u=(0,a.createMedium)(),l=(0,a.createSidecarMedium)({async:!0,ssr:"undefined"!=typeof document}),o=parcelRequire("gwFzn"),p=(0,o.createContext)(void 0),f=[],d=o.forwardRef(function(e,t){var r,a=o.useState(),u=a[0],d=a[1],h=o.useRef(),b=o.useRef(!1),M=o.useRef(null),z=o.useState({})[1],O=e.children,m=e.disabled,g=void 0!==m&&m,A=e.noFocusGuards,v=void 0!==A&&A,y=e.persistentFocus,_=void 0!==y&&y,q=e.crossFrame,x=void 0===q||q,w=e.autoFocus,R=void 0===w||w,S=(e.allowTextSelection,e.group),W=e.className,k=e.whiteList,E=e.hasPositiveIndices,L=e.shards,N=void 0===L?f:L,C=e.as,T=void 0===C?"div":C,D=e.lockProps,B=void 0===D?{}:D,I=e.sideCar,P=e.returnFocus,F=void 0!==P&&P,j=e.focusOptions,X=e.onActivation,U=e.onDeactivation,H=o.useState({})[0],V=o.useCallback(function(e){var t=e.captureFocusRestore;if(!M.current){var r,n=null==(r=document)?void 0:r.activeElement;M.current=n,n!==document.body&&(M.current=t(n))}h.current&&X&&X(h.current),b.current=!0,z()},[X]),G=o.useCallback(function(){b.current=!1,U&&U(h.current),z()},[U]),Y=o.useCallback(function(e){var t=M.current;if(t){var r=("function"==typeof t?t():t)||document.body,n="function"==typeof F?F(r):F;if(n){var o="object"==typeof n?n:void 0;M.current=null,e?Promise.resolve().then(function(){return r.focus(o)}):r.focus(o)}}},[F]),K=o.useCallback(function(e){b.current&&s.useMedium(e)},[]),Q=c.useMedium,$=o.useCallback(function(e){h.current!==e&&(h.current=e,d(e))},[]),Z=(0,n.default)(((r={})[parcelRequire("7nPnA").FOCUS_DISABLED]=g&&"disabled",r[parcelRequire("7nPnA").FOCUS_GROUP]=S,r),B),J=!0!==v,ee=J&&"tail"!==v,et=(0,parcelRequire("10PJn").useMergeRefs)([t,$]),er=o.useMemo(function(){return{observed:h,shards:N,enabled:!g,active:b.current}},[g,b.current,N,u]);return o.createElement(o.Fragment,null,J&&[o.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:g?-1:0,style:i}),E?o.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:g?-1:1,style:i}):null],!g&&o.createElement(I,{id:H,sideCar:l,observed:u,disabled:g,persistentFocus:_,crossFrame:x,autoFocus:R,whiteList:k,shards:N,onActivation:V,onDeactivation:G,returnFocus:Y,focusOptions:j}),o.createElement(T,(0,n.default)({ref:et},Z,{className:W,onBlur:Q,onFocus:K}),o.createElement(p.Provider,{value:er},O)),ee&&o.createElement("div",{"data-focus-guard":!0,tabIndex:g?-1:0,style:i}))});d.propTypes={};var h=d,o=parcelRequire("gwFzn"),b=parcelRequire("7UeZF");function M(e){setTimeout(e,1)}parcelRequire("eIONC");var z=function(e){return e&&"current"in e?e.current:e},O=function(){return document&&document.activeElement===document.body},m=function(){return O()||(0,parcelRequire("cJ85t").focusIsHidden)()},g=null,A=null,v=null,y=!1,_=function(){return!0},q=function(e){return(g.whiteList||_)(e)},x=function(e,t){v={observerNode:e,portaledElement:t}},w=function(e){return v&&v.portaledElement===e};function R(e,t,r,n){var o=null,i=e;do{var a=n[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else if(a.lockItem){if(i!==e)return;o=null}else break}while((i+=r)!==t)o&&(o.node.tabIndex=0)}var S=function(e){return e?!!y:"meanwhile"===y},W=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},k=function(e,t){return t.some(function(t){return W(e,t,t)})},E=function(){var e=!1;if(g){var t=g,r=t.observed,n=t.persistentFocus,o=t.autoFocus,i=t.shards,a=t.crossFrame,s=t.focusOptions,c=r||v&&v.portaledElement,u=document&&document.activeElement;if(c){var l=[c].concat(i.map(z).filter(Boolean));if((!u||q(u))&&(n||S(a)||!m()||!A&&o)&&(c&&!((0,parcelRequire("6iW2N").focusInside)(l)||u&&k(u,l)||w(u,c))&&(document&&!A&&u&&!o?(u.blur&&u.blur(),document.body.focus()):(e=(0,parcelRequire("8HeX0").moveFocusInside)(l,A,{focusOptions:s}),v={})),y=!1,A=document&&document.activeElement),document&&u!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var p=document&&document.activeElement,f=(0,parcelRequire("ffphw").expandFocusableNodes)(l),d=f.map(function(e){return e.node}).indexOf(p);d>-1&&(f.filter(function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),R(d,f.length,1,f),R(d,-1,-1,f))}}}return e},L=function(e){E()&&e&&(e.stopPropagation(),e.preventDefault())},N=function(){return M(E)},C=function(e){var t=e.target,r=e.currentTarget;r.contains(t)||x(r,t)},T=function(){return null},D=function(){y="just",M(function(){y="meanwhile"})},B=function(){document.addEventListener("focusin",L),document.addEventListener("focusout",N),window.addEventListener("blur",D)},I=function(){document.removeEventListener("focusin",L),document.removeEventListener("focusout",N),window.removeEventListener("blur",D)};function P(e){return e.filter(function(e){return!e.disabled})}var F={moveFocusInside:parcelRequire("8HeX0").moveFocusInside,focusInside:parcelRequire("6iW2N").focusInside,focusNextElement:parcelRequire("1iK3y").focusNextElement,focusPrevElement:parcelRequire("1iK3y").focusPrevElement,focusFirstElement:parcelRequire("1iK3y").focusFirstElement,focusLastElement:parcelRequire("1iK3y").focusLastElement,captureFocusRestore:parcelRequire("lnxzk").captureFocusRestore};function j(e){var t=e.slice(-1)[0];t&&!g&&B();var r=g,n=r&&t&&t.id===r.id;g=t,r&&!n&&(r.onDeactivation(),e.filter(function(e){return e.id===r.id}).length||r.returnFocus(!t)),t?(A=null,n&&r.observed===t.observed||t.onActivation(F),E(!0),M(E)):(I(),A=null)}s.assignSyncMedium(C),c.assignMedium(N),u.assignMedium(function(e){return e(F)});var X=(0,b.default)(P,j)(T),U=o.forwardRef(function(e,t){return o.createElement(h,(0,n.default)({sideCar:X,ref:t},e))}),H=h.propTypes||{};H.sideCar,(0,r.default)(H,["sideCar"]),U.propTypes={};var V=U}),parcelRegister("7nPnA",function(e,t){$parcel$export(e.exports,"FOCUS_GROUP",()=>r),$parcel$export(e.exports,"FOCUS_DISABLED",()=>n),$parcel$export(e.exports,"FOCUS_ALLOW",()=>o),$parcel$export(e.exports,"FOCUS_AUTO",()=>i),$parcel$export(e.exports,"FOCUS_NO_AUTOFOCUS",()=>a);var r="data-focus-lock",n="data-focus-lock-disabled",o="data-no-focus-lock",i="data-autofocus-inside",a="data-no-autofocus"}),parcelRegister("10PJn",function(e,t){$parcel$export(e.exports,"useMergeRefs",()=>a);var r=(parcelRequire("gwFzn"),parcelRequire("gwFzn"));function n(e,t){var n=(0,r.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(value){var r=n.value;r!==value&&(n.value=value,n.callback(value,r))}}}})[0];return n.callback=t,n.facade}var o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,i=new WeakMap;function a(e,t){var r=n(t||null,function(t){return e.forEach(function(e){return(0,parcelRequire("8P7n3").assignRef)(e,t)})});return o(function(){var t=i.get(r);if(t){var n=new Set(t),o=new Set(e),a=r.current;n.forEach(function(e){o.has(e)||(0,parcelRequire("8P7n3").assignRef)(e,null)}),o.forEach(function(e){n.has(e)||(0,parcelRequire("8P7n3").assignRef)(e,a)})}i.set(r,e)},[e]),r}}),parcelRegister("8P7n3",function(e,t){$parcel$export(e.exports,"assignRef",()=>r);function r(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}}),parcelRegister("8DOLO",function(e,t){function r(e){return e}function n(e,t){void 0===t&&(t=r);var n=[],o=!1;return{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,o);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function o(e,t){return void 0===t&&(t=r),n(e,t)}function i(e){void 0===e&&(e={});var t=n(null);return t.options=(0,parcelRequire("fQsf7").__assign)({async:!0,ssr:!1},e),t}$parcel$export(e.exports,"createMedium",()=>o),$parcel$export(e.exports,"createSidecarMedium",()=>i)}),parcelRegister("7UeZF",function(e,t){$parcel$export(e.exports,"default",()=>i);var r=parcelRequire("5HzzL"),n=parcelRequire("1tVDE"),o=parcelRequire("gwFzn"),i=function(e,t){function i(e){return e.displayName||e.name||"Component"}return function(a){var s,c=[];function u(){t(s=e(c.map(function(e){return e.props})))}var l=function(e){function t(){return e.apply(this,arguments)||this}(0,r.default)(t,e),t.peek=function(){return s};var n=t.prototype;return n.componentDidMount=function(){c.push(this),u()},n.componentDidUpdate=function(){u()},n.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},n.render=function(){return $parcel$interopDefault(o).createElement(a,this.props)},t}(o.PureComponent);return(0,n.default)(l,"displayName","SideEffect("+i(a)+")"),l}}}),parcelRegister("1tVDE",function(e,t){$parcel$export(e.exports,"default",()=>n);var r=parcelRequire("8icoW");function n(e,t,n){return(t=(0,r.default)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}}),parcelRegister("lnxzk",function(e,t){function r(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}$parcel$export(e.exports,"captureFocusRestore",()=>i);var n=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:r(n),parent:r(n.parentElement),left:r(n.previousElementSibling),right:r(n.nextElementSibling)}),n=n.parentElement;return{element:r(e),stack:t,ownerDocument:e.ownerDocument}},o=function(e){if(e)for(var t,r,n,o,i,a=e.stack,s=e.ownerDocument,c=new Map,u=0,l=a;un),$parcel$export(e.exports,"getTabbableNodes",()=>o),$parcel$export(e.exports,"getFocusableNodes",()=>i),$parcel$export(e.exports,"parentAutofocusables",()=>a),$parcel$export(e.exports,"contains",()=>s);var r=function(e,t){return(0,parcelRequire("gRwFO").toArray)(e).filter(function(e){return(0,parcelRequire("9fNih").isVisibleCached)(t,e)}).filter(function(e){return(0,parcelRequire("9fNih").notHiddenInput)(e)})},n=function(e,t){return void 0===t&&(t=new Map),(0,parcelRequire("gRwFO").toArray)(e).filter(function(e){return(0,parcelRequire("9fNih").isAutoFocusAllowedCached)(t,e)})},o=function(e,t,n){return(0,parcelRequire("a3PYE").orderByTabIndex)(r((0,parcelRequire("h6y2X").getFocusables)(e,n),t),!0,n)},i=function(e,t){return(0,parcelRequire("a3PYE").orderByTabIndex)(r((0,parcelRequire("h6y2X").getFocusables)(e),t),!1)},a=function(e,t){return r((0,parcelRequire("h6y2X").getParentAutofocusables)(e),t)},s=function(e,t){return e.shadowRoot?s(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||(0,parcelRequire("gRwFO").toArray)(e.children).some(function(e){var r;if(e instanceof HTMLIFrameElement){var n=null==(r=e.contentDocument)?void 0:r.body;return!!n&&s(n,t)}return s(e,t)})}}),parcelRegister("ffphw",function(e,t){$parcel$export(e.exports,"expandFocusableNodes",()=>r);var r=function(e){var t=(0,parcelRequire("32jfw").getAllAffectedNodes)(e).filter(parcelRequire("9fNih").isNotAGuard),r=(0,parcelRequire("hP1Nq").getTopCommonParent)(e,e,t),n=(0,parcelRequire("a3PYE").orderByTabIndex)((0,parcelRequire("h6y2X").getFocusables)([r],!0),!0,!0),o=(0,parcelRequire("h6y2X").getFocusables)(t,!1);return n.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:(0,parcelRequire("9fNih").isGuard)(t)}})}}),parcelRegister("1iK3y",function(e,t){$parcel$export(e.exports,"focusNextElement",()=>a),$parcel$export(e.exports,"focusPrevElement",()=>s),$parcel$export(e.exports,"focusFirstElement",()=>u),$parcel$export(e.exports,"focusLastElement",()=>l);var r=function(e,t,r){if(!e||!t)return console.error("no element or scope given"),{};var n=(0,parcelRequire("gRwFO").asArray)(t);if(n.every(function(t){return!(0,parcelRequire("4NCwJ").contains)(t,e)}))return console.error("Active element is not contained in the scope"),{};var o=r?(0,parcelRequire("4NCwJ").getTabbableNodes)(n,new Map):(0,parcelRequire("4NCwJ").getFocusableNodes)(n,new Map),i=o.findIndex(function(t){return t.node===e});if(-1!==i)return{prev:o[i-1],next:o[i+1],first:o[0],last:o[o.length-1]}},n=function(e,t){var r=t?(0,parcelRequire("4NCwJ").getTabbableNodes)((0,parcelRequire("gRwFO").asArray)(e),new Map):(0,parcelRequire("4NCwJ").getFocusableNodes)((0,parcelRequire("gRwFO").asArray)(e),new Map);return{first:r[0],last:r[r.length-1]}},o=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},i=function(e,t,n){void 0===t&&(t={});var i=o(t),a=r(e,i.scope,i.onlyTabbable);if(a){var s=n(a,i.cycle);s&&(0,parcelRequire("kXjZu").focusOn)(s.node,i.focusOptions)}},a=function(e,t){void 0===t&&(t={}),i(e,t,function(e,t){var r=e.next,n=e.first;return r||t&&n})},s=function(e,t){void 0===t&&(t={}),i(e,t,function(e,t){var r=e.prev,n=e.last;return r||t&&n})},c=function(e,t,r){var o,i=n(e,null==(o=t.onlyTabbable)||o)[r];i&&(0,parcelRequire("kXjZu").focusOn)(i.node,t.focusOptions)},u=function(e,t){void 0===t&&(t={}),c(e,t,"first")},l=function(e,t){void 0===t&&(t={}),c(e,t,"last")}}),parcelRegister("6iW2N",function(e,t){$parcel$export(e.exports,"focusInside",()=>o);var r=function(e,t){return e===t},n=function(e,t){return!!(0,parcelRequire("gRwFO").toArray)(e.querySelectorAll("iframe")).some(function(e){return r(e,t)})},o=function(e,t){return void 0===t&&(t=(0,parcelRequire("8B0WF").getActiveElement)((0,parcelRequire("gRwFO").getFirst)(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&(0,parcelRequire("32jfw").getAllAffectedNodes)(e).some(function(e){return(0,parcelRequire("4NCwJ").contains)(e,t)||n(e,t)})}}),parcelRegister("cJ85t",function(e,t){$parcel$export(e.exports,"focusIsHidden",()=>r);var r=function(e){void 0===e&&(e=document);var t=(0,parcelRequire("8B0WF").getActiveElement)(e);return!!t&&(0,parcelRequire("gRwFO").toArray)(e.querySelectorAll("[".concat(parcelRequire("7nPnA").FOCUS_ALLOW,"]"))).some(function(e){return(0,parcelRequire("4NCwJ").contains)(e,t)})}}),parcelRegister("eIONC",function(e,t){$parcel$export(e.exports,"moveFocusInside",()=>parcelRequire("8HeX0").moveFocusInside),parcelRequire("7nPnA"),parcelRequire("8HeX0").moveFocusInside}),parcelRegister("5KDDn",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var r=parcelRequire("9wlrv");Object.defineProperty(e.exports,"default",{enumerable:!0,get:function(){return o(r).default}});var n=parcelRequire("1eVK9");function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e.exports,"TouchScrollable",{enumerable:!0,get:function(){return n.TouchScrollable}})}),parcelRegister("fw2Qu",function(e,t){!function(){var t=!!("undefined"!=typeof window&&window.document&&window.document.createElement),r={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return r}):e.exports?e.exports=r:window.ExecutionEnvironment=r}()}),parcelRegister("2ZsRZ",function(e,t){$parcel$export(e.exports,"default",()=>r);var r=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,o=Array(n),i=0;il);var r=(parcelRequire("gwFzn"),parcelRequire("gwFzn")),n=parcelRequire("4FhhO"),o=parcelRequire("iM9eR"),i=[],a=function(e,t,a){void 0===a&&(a={});var s=r.useRef(null),c={onFirstUpdate:a.onFirstUpdate,placement:a.placement||"bottom",strategy:a.strategy||"absolute",modifiers:a.modifiers||i},u=r.useState({styles:{popper:{position:c.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=u[0],p=u[1],f=r.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,r=Object.keys(t.elements);n.flushSync(function(){p({styles:(0,parcelRequire("9DyDi").fromEntries)(r.map(function(e){return[e,t.styles[e]||{}]})),attributes:(0,parcelRequire("9DyDi").fromEntries)(r.map(function(e){return[e,t.attributes[e]]}))})})},requires:["computeStyles"]}},[]),d=r.useMemo(function(){var e={onFirstUpdate:c.onFirstUpdate,placement:c.placement,strategy:c.strategy,modifiers:[].concat(c.modifiers,[f,{name:"applyStyles",enabled:!1}])};return $parcel$interopDefault(o)(s.current,e)?s.current||e:(s.current=e,e)},[c.onFirstUpdate,c.placement,c.strategy,c.modifiers,f]),h=r.useRef();return(0,parcelRequire("9DyDi").useIsomorphicLayoutEffect)(function(){h.current&&h.current.setOptions(d)},[d]),(0,parcelRequire("9DyDi").useIsomorphicLayoutEffect)(function(){if(null!=e&&null!=t){var r=a.createPopper||parcelRequire("ezMRJ").createPopper,n=r(e,t,d);return h.current=n,function(){n.destroy(),h.current=null}}},[e,t,a.createPopper]),{state:h.current?h.current.state:null,styles:l.styles,attributes:l.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}},s=function(){},c=function(){return Promise.resolve(null)},u=[];function l(e){var t=e.placement,n=void 0===t?"bottom":t,o=e.strategy,i=void 0===o?"absolute":o,l=e.modifiers,p=void 0===l?u:l,f=e.referenceElement,d=e.onFirstUpdate,h=e.innerRef,b=e.children,M=r.useContext(parcelRequire("2ED7Q").ManagerReferenceNodeContext),z=r.useState(null),O=z[0],m=z[1],g=r.useState(null),A=g[0],v=g[1];r.useEffect(function(){(0,parcelRequire("9DyDi").setRef)(h,O)},[h,O]);var y=a(f||M,O,r.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:d,modifiers:[].concat(p,[{name:"arrow",enabled:null!=A,options:{element:A}}])}},[n,i,d,p,A])),_=y.state,q=y.styles,x=y.forceUpdate,w=y.update,R=r.useMemo(function(){return{ref:m,style:q.popper,placement:_?_.placement:n,hasPopperEscaped:_&&_.modifiersData.hide?_.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:_&&_.modifiersData.hide?_.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:q.arrow,ref:v},forceUpdate:x||s,update:w||c}},[m,v,n,_,q,w,x]);return(0,parcelRequire("9DyDi").unwrapArray)(b)(R)}}),parcelRegister("2ED7Q",function(e,t){$parcel$export(e.exports,"ManagerReferenceNodeContext",()=>n),$parcel$export(e.exports,"ManagerReferenceNodeSetterContext",()=>o),$parcel$export(e.exports,"Manager",()=>i);var r=parcelRequire("gwFzn"),n=r.createContext(),o=r.createContext();function i(e){var t=e.children,i=r.useState(null),a=i[0],s=i[1],c=r.useRef(!1);r.useEffect(function(){return function(){c.current=!0}},[]);var u=r.useCallback(function(e){c.current||s(e)},[]);return r.createElement(n.Provider,{value:a},r.createElement(o.Provider,{value:u},t))}}),parcelRegister("ezMRJ",function(e,t){$parcel$export(e.exports,"createPopper",()=>g);var r={passive:!0},n={top:"auto",right:"auto",bottom:"auto",left:"auto"};function o(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:(0,parcelRequire("eDqqW").round)(r*o)/o||0,y:(0,parcelRequire("eDqqW").round)(n*o)/o||0}}function i(e){var t,r,i=e.popper,a=e.popperRect,s=e.placement,c=e.variation,u=e.offsets,l=e.position,p=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,h=e.isFixed,b=u.x,M=void 0===b?0:b,z=u.y,O=void 0===z?0:z,m="function"==typeof d?d({x:M,y:O}):{x:M,y:O};M=m.x,O=m.y;var g=u.hasOwnProperty("x"),A=u.hasOwnProperty("y"),v=parcelRequire("jMkTf").left,y=parcelRequire("jMkTf").top,_=window;if(f){var q=(0,parcelRequire("baCxA").default)(i),x="clientHeight",w="clientWidth";q===(0,parcelRequire("cQehB").default)(i)&&(q=(0,parcelRequire("9Ttrw").default)(i),"static"!==(0,parcelRequire("jWaAm").default)(q).position&&"absolute"===l&&(x="scrollHeight",w="scrollWidth")),(s===parcelRequire("jMkTf").top||(s===parcelRequire("jMkTf").left||s===parcelRequire("jMkTf").right)&&c===parcelRequire("jMkTf").end)&&(y=parcelRequire("jMkTf").bottom,O-=(h&&q===_&&_.visualViewport?_.visualViewport.height:q[x])-a.height,O*=p?1:-1),(s===parcelRequire("jMkTf").left||(s===parcelRequire("jMkTf").top||s===parcelRequire("jMkTf").bottom)&&c===parcelRequire("jMkTf").end)&&(v=parcelRequire("jMkTf").right,M-=(h&&q===_&&_.visualViewport?_.visualViewport.width:q[w])-a.width,M*=p?1:-1)}var R=Object.assign({position:l},f&&n),S=!0===d?o({x:M,y:O},(0,parcelRequire("cQehB").default)(i)):{x:M,y:O};return(M=S.x,O=S.y,p)?Object.assign({},R,((r={})[y]=A?"0":"",r[v]=g?"0":"",r.transform=1>=(_.devicePixelRatio||1)?"translate("+M+"px, "+O+"px)":"translate3d("+M+"px, "+O+"px, 0)",r)):Object.assign({},R,((t={})[y]=A?O+"px":"",t[v]=g?M+"px":"",t.transform="",t))}function a(e,t,r){var n=(0,parcelRequire("9F9VA").default)(e),o=[parcelRequire("jMkTf").left,parcelRequire("jMkTf").top].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[parcelRequire("jMkTf").left,parcelRequire("jMkTf").right].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}var s={left:"right",right:"left",bottom:"top",top:"bottom"};function c(e){return e.replace(/left|right|bottom|top/g,function(e){return s[e]})}var u={start:"end",end:"start"};function l(e){return e.replace(/start|end/g,function(e){return u[e]})}function p(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=void 0===c?parcelRequire("jMkTf").placements:c,l=(0,parcelRequire("1LpMx").default)(n),p=l?s?parcelRequire("jMkTf").variationPlacements:parcelRequire("jMkTf").variationPlacements.filter(function(e){return(0,parcelRequire("1LpMx").default)(e)===l}):parcelRequire("jMkTf").basePlacements,f=p.filter(function(e){return u.indexOf(e)>=0});0===f.length&&(f=p);var d=f.reduce(function(t,r){return t[r]=(0,parcelRequire("iHUqF").default)(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[(0,parcelRequire("9F9VA").default)(r)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}function f(e){if((0,parcelRequire("9F9VA").default)(e)===parcelRequire("jMkTf").auto)return[];var t=c(e);return[l(e),t,l(t)]}function d(e){return"x"===e?"y":"x"}function h(e,t,r){return(0,parcelRequire("eDqqW").max)(e,(0,parcelRequire("eDqqW").min)(t,r))}function b(e,t,r){var n=h(e,t,r);return n>r?r:n}var M=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,parcelRequire("9HWg5").default)("number"!=typeof e?e:(0,parcelRequire("ihFTj").default)(e,parcelRequire("jMkTf").basePlacements))};function z(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function O(e){return[parcelRequire("jMkTf").top,parcelRequire("jMkTf").right,parcelRequire("jMkTf").bottom,parcelRequire("jMkTf").left].some(function(t){return e[t]>=0})}var m=[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,c=void 0===s||s,u=(0,parcelRequire("cQehB").default)(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener("scroll",n.update,r)}),c&&u.addEventListener("resize",n.update,r),function(){a&&l.forEach(function(e){e.removeEventListener("scroll",n.update,r)}),c&&u.removeEventListener("resize",n.update,r)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=(0,parcelRequire("d1NiP").default)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,a=r.adaptive,s=void 0===a||a,c=r.roundOffsets,u=void 0===c||c,l={placement:(0,parcelRequire("9F9VA").default)(t.placement),variation:(0,parcelRequire("1LpMx").default)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,i(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,i(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];(0,parcelRequire("fPa6O").isHTMLElement)(o)&&(0,parcelRequire("5fAuJ").default)(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});(0,parcelRequire("fPa6O").isHTMLElement)(n)&&(0,parcelRequire("5fAuJ").default)(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,s=parcelRequire("jMkTf").placements.reduce(function(e,r){return e[r]=a(r,t.rects,i),e},{}),c=s[t.placement],u=c.x,l=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,u=r.fallbackPlacements,l=r.padding,d=r.boundary,h=r.rootBoundary,b=r.altBoundary,M=r.flipVariations,z=void 0===M||M,O=r.allowedAutoPlacements,m=t.options.placement,g=(0,parcelRequire("9F9VA").default)(m),A=g===m,v=u||(A||!z?[c(m)]:f(m)),y=[m].concat(v).reduce(function(e,r){return e.concat((0,parcelRequire("9F9VA").default)(r)===parcelRequire("jMkTf").auto?p(t,{placement:r,boundary:d,rootBoundary:h,padding:l,flipVariations:z,allowedAutoPlacements:O}):r)},[]),_=t.rects.reference,q=t.rects.popper,x=new Map,w=!0,R=y[0],S=0;S=0,N=L?"width":"height",C=(0,parcelRequire("iHUqF").default)(t,{placement:W,boundary:d,rootBoundary:h,altBoundary:b,padding:l}),T=L?E?parcelRequire("jMkTf").right:parcelRequire("jMkTf").left:E?parcelRequire("jMkTf").bottom:parcelRequire("jMkTf").top;_[N]>q[N]&&(T=c(T));var D=c(T),B=[];if(i&&B.push(C[k]<=0),s&&B.push(C[T]<=0,C[D]<=0),B.every(function(e){return e})){R=W,w=!1;break}x.set(W,B)}if(w)for(var I=z?3:1,P=function(e){var t=y.find(function(t){var r=x.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return R=t,"break"},F=I;F>0&&"break"!==P(F);F--);t.placement!==R&&(t.modifiersData[n]._skip=!0,t.placement=R,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,c=r.boundary,u=r.rootBoundary,l=r.altBoundary,p=r.padding,f=r.tether,M=void 0===f||f,z=r.tetherOffset,O=void 0===z?0:z,m=(0,parcelRequire("iHUqF").default)(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:l}),g=(0,parcelRequire("9F9VA").default)(t.placement),A=(0,parcelRequire("1LpMx").default)(t.placement),v=!A,y=(0,parcelRequire("4G1xb").default)(g),_=d(y),q=t.modifiersData.popperOffsets,x=t.rects.reference,w=t.rects.popper,R="function"==typeof O?O(Object.assign({},t.rects,{placement:t.placement})):O,S="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(q){if(i){var E,L="y"===y?parcelRequire("jMkTf").top:parcelRequire("jMkTf").left,N="y"===y?parcelRequire("jMkTf").bottom:parcelRequire("jMkTf").right,C="y"===y?"height":"width",T=q[y],D=T+m[L],B=T-m[N],I=M?-w[C]/2:0,P=A===parcelRequire("jMkTf").start?x[C]:w[C],F=A===parcelRequire("jMkTf").start?-w[C]:-x[C],j=t.elements.arrow,X=M&&j?(0,parcelRequire("9rPQq").default)(j):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,parcelRequire("l2vxH").default)(),H=U[L],V=U[N],G=h(0,x[C],X[C]),Y=v?x[C]/2-I-G-H-S.mainAxis:P-G-H-S.mainAxis,K=v?-x[C]/2+I+G+V+S.mainAxis:F+G+V+S.mainAxis,Q=t.elements.arrow&&(0,parcelRequire("baCxA").default)(t.elements.arrow),$=Q?"y"===y?Q.clientTop||0:Q.clientLeft||0:0,Z=null!=(E=null==W?void 0:W[y])?E:0,J=T+Y-Z-$,ee=T+K-Z,et=h(M?(0,parcelRequire("eDqqW").min)(D,J):D,T,M?(0,parcelRequire("eDqqW").max)(B,ee):B);q[y]=et,k[y]=et-T}if(s){var er,en="x"===y?parcelRequire("jMkTf").top:parcelRequire("jMkTf").left,eo="x"===y?parcelRequire("jMkTf").bottom:parcelRequire("jMkTf").right,ei=q[_],ea="y"===_?"height":"width",es=ei+m[en],ec=ei-m[eo],eu=-1!==[parcelRequire("jMkTf").top,parcelRequire("jMkTf").left].indexOf(g),el=null!=(er=null==W?void 0:W[_])?er:0,ep=eu?es:ei-x[ea]-w[ea]-el+S.altAxis,ef=eu?ei+x[ea]+w[ea]-el-S.altAxis:ec,ed=M&&eu?b(ep,ei,ef):h(M?ep:es,ei,M?ef:ec);q[_]=ed,k[_]=ed-ei}t.modifiersData[n]=k}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=(0,parcelRequire("9F9VA").default)(r.placement),c=(0,parcelRequire("4G1xb").default)(s),u=[parcelRequire("jMkTf").left,parcelRequire("jMkTf").right].indexOf(s)>=0?"height":"width";if(i&&a){var l=M(o.padding,r),p=(0,parcelRequire("9rPQq").default)(i),f="y"===c?parcelRequire("jMkTf").top:parcelRequire("jMkTf").left,d="y"===c?parcelRequire("jMkTf").bottom:parcelRequire("jMkTf").right,b=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],z=a[c]-r.rects.reference[c],O=(0,parcelRequire("baCxA").default)(i),m=O?"y"===c?O.clientHeight||0:O.clientWidth||0:0,g=b/2-z/2,A=l[f],v=m-p[u]-l[d],y=m/2-p[u]/2+g,_=h(A,y,v),q=c;r.modifiersData[n]=(t={},t[q]=_,t.centerOffset=_-y,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;if(null!=n)("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&(0,parcelRequire("9GOPW").default)(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=(0,parcelRequire("iHUqF").default)(t,{elementContext:"reference"}),s=(0,parcelRequire("iHUqF").default)(t,{altBoundary:!0}),c=z(a,n),u=z(s,o,i),l=O(c),p=O(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}}],g=(0,parcelRequire("idMYq").popperGenerator)({defaultModifiers:m})}),parcelRegister("iM9eR",function(e,t){var r="undefined"!=typeof Element,n="function"==typeof Map,o="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var s,c,u,l;if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){if((s=e.length)!=t.length)return!1;for(c=s;0!=c--;)if(!a(e[c],t[c]))return!1;return!0}if(n&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!t.has(c.value[0]))return!1;for(l=e.entries();!(c=l.next()).done;)if(!a(c.value[1],t.get(c.value[0])))return!1;return!0}if(o&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!t.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((s=e.length)!=t.length)return!1;for(c=s;0!=c--;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(c=s;0!=c--;)if(!Object.prototype.hasOwnProperty.call(t,u[c]))return!1;if(r&&e instanceof Element)return!1;for(c=s;0!=c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!e.$$typeof)&&!a(e[u[c]],t[u[c]]))return!1;return!0}return e!=e&&t!=t}e.exports=function(e,t){try{return a(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}}),parcelRegister("epI1O",function(e,t){$parcel$export(e.exports,"Reference",()=>o);var r=parcelRequire("gwFzn"),n=parcelRequire("1mcKI");function o(e){var t=e.children,o=e.innerRef,i=r.useContext(parcelRequire("2ED7Q").ManagerReferenceNodeSetterContext),a=r.useCallback(function(e){(0,parcelRequire("9DyDi").setRef)(o,e),(0,parcelRequire("9DyDi").safeInvoke)(i,e)},[o,i]);return r.useEffect(function(){return function(){return(0,parcelRequire("9DyDi").setRef)(o,null)}},[]),r.useEffect(function(){$parcel$interopDefault(n)(!!i,"`Reference` should not be used outside of a `Manager` component.")},[i]),(0,parcelRequire("9DyDi").unwrapArray)(t)({ref:a})}}),parcelRegister("1mcKI",function(e,t){var r=function(){};e.exports=r}),parcelRegister("7tiJw",function(e,t){var r={};function n(e){var t=[];function r(n,o){if(n===e.documentElement)return!1;for(var i=0,a=t.length;iNumber(e.target.getAttribute("tabindex")))return f=e;e.preventDefault();var t=n.indexOf(e.target);return e.shiftKey?e.target===s||-1===n.indexOf(e.target)?a(c):a(n[t-1]):e.target===c?a(s):void a(n[t+1])}function S(){s=(n=r(d))[0],c=n[n.length-1]}function W(e){if(e.shiftKey)return a(c);a(s)}}}),parcelRegister("jxPid",function(e,t){$parcel$export(e.exports,"createStore",()=>l),$parcel$export(e.exports,"combineReducers",()=>f),$parcel$export(e.exports,"compose",()=>d),$parcel$export(e.exports,"applyMiddleware",()=>h);var r=parcelRequire("1tVDE");function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:f(e)?2:3*!!d(e)}function c(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return 2===s(e)?e.get(t):e[t]}function l(e,t,r){var n=s(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e){return G&&e instanceof Map}function d(e){return Y&&e instanceof Set}function h(e){return e.o||e.t}function b(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=er(e);delete t[Z];for(var r=et(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=z),Object.freeze(e),t&&a(e,function(e,t){return M(t,!0)},!0)),e}function z(){r(2)}function O(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function m(e){var t=en[e];return t||r(18,e),t}function g(e,t){en[e]||(en[e]=t)}function A(){return H}function v(e,t){t&&(m("Patches"),e.u=[],e.s=[],e.v=t)}function y(e){_(e),e.p.forEach(x),e.p=null}function _(e){e===H&&(H=e.l)}function q(e){return H={p:[],l:H,h:e,m:!0,_:0}}function x(e){var t=e[Z];0===t.i||1===t.i?t.j():t.g=!0}function w(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.O||m("ES5").S(t,e,i),i?(n[Z].P&&(y(t),r(4)),o(e)&&(e=R(t,e),t.l||W(t,e)),t.u&&m("Patches").M(n[Z].t,e,t.u,t.s)):e=R(t,n,[]),y(t),t.u&&t.v(t.u,t.s),e!==Q?e:void 0}function R(e,t,r){if(O(t))return t;var n=t[Z];if(!n)return a(t,function(o,i){return S(e,n,t,o,i,r)},!0),t;if(n.A!==e)return t;if(!n.P)return W(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=b(n.k):n.o,i=o,s=!1;3===n.i&&(i=new Set(o),o.clear(),s=!0),a(i,function(t,i){return S(e,n,o,t,i,r,s)}),W(e,o,!1),r&&e.u&&m("Patches").N(n,r,e.u,e.s)}return n.o}function S(e,t,r,i,a,s,u){if(n(a)){var p=R(e,a,s&&t&&3!==t.i&&!c(t.R,i)?s.concat(i):void 0);if(l(r,i,p),!n(p))return;e.m=!1}else u&&r.add(a);if(o(a)&&!O(a)){if(!e.h.D&&e._<1)return;R(e,a),t&&t.A.l||W(e,a)}}function W(e,t,r){void 0===r&&(r=!1),!e.l&&e.h.D&&e.m&&M(t,r)}function k(e,t){var r=e[Z];return(r?h(r):e)[t]}function E(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function L(e){e.P||(e.P=!0,e.l&&L(e.l))}function N(e){e.o||(e.o=b(e.t))}function C(e,t,r){var n=f(t)?m("MapSet").F(t,r):d(t)?m("MapSet").T(t,r):e.O?function(e,t){var r=Array.isArray(e),n={i:+!!r,A:t?t.A:A(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=n,i=eo;r&&(o=[n],i=ei);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return n.k=c,n.j=s,c}(t,r):m("ES5").J(t,r);return(r?r.A:A()).p.push(n),n}function T(e){return n(e)||r(22,e),function e(t){if(!o(t))return t;var r,n=t[Z],i=s(t);if(n){if(!n.P&&(n.i<4||!m("ES5").K(n)))return n.t;n.I=!0,r=D(t,i),n.I=!1}else r=D(t,i);return a(r,function(t,o){n&&u(n.t,t)===o||l(r,t,e(o))}),3===i?new Set(r):r}(e)}function D(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return b(e)}function B(){function e(e,t){var r=i[e];return r?r.enumerable=t:i[e]=r={configurable:!0,enumerable:t,get:function(){var t=this[Z];return eo.get(t,e)},set:function(t){var r=this[Z];eo.set(r,e,t)}},r}function t(e){for(var t=e.length-1;t>=0;t--){var n=e[t][Z];if(!n.P)switch(n.i){case 5:o(n)&&L(n);break;case 4:r(n)&&L(n)}}}function r(e){for(var t=e.t,r=e.k,n=et(r),o=n.length-1;o>=0;o--){var i=n[o];if(i!==Z){var a=t[i];if(void 0===a&&!c(t,i))return!0;var s=r[i],u=s&&s[Z];if(u?u.t!==a:!p(s,a))return!0}}var l=!!t[Z];return n.length!==et(t).length+ +!l}function o(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return!0;for(var n=0;nn),$parcel$export(e.exports,"isDraftable",()=>o),$parcel$export(e.exports,"immerable",()=>$),$parcel$export(e.exports,"original",()=>i),$parcel$export(e.exports,"freeze",()=>M),$parcel$export(e.exports,"nothing",()=>Q),$parcel$export(e.exports,"current",()=>T),$parcel$export(e.exports,"enableES5",()=>B),$parcel$export(e.exports,"enablePatches",()=>I),$parcel$export(e.exports,"enableMapSet",()=>P),$parcel$export(e.exports,"enableAllPlugins",()=>F),$parcel$export(e.exports,"castDraft",()=>j),$parcel$export(e.exports,"castImmutable",()=>X),$parcel$export(e.exports,"Immer",()=>ea),$parcel$export(e.exports,"produce",()=>ec),$parcel$export(e.exports,"produceWithPatches",()=>eu),$parcel$export(e.exports,"setAutoFreeze",()=>el),$parcel$export(e.exports,"setUseProxies",()=>ep),$parcel$export(e.exports,"applyPatches",()=>ef),$parcel$export(e.exports,"createDraft",()=>ed),$parcel$export(e.exports,"finishDraft",()=>eh),$parcel$export(e.exports,"default",()=>eb);var U,H,V="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),G="undefined"!=typeof Map,Y="undefined"!=typeof Set,K="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Q=V?Symbol.for("immer-nothing"):((U={})["immer-nothing"]=!0,U),$=V?Symbol.for("immer-draftable"):"__$immer_draftable",Z=V?Symbol.for("immer-state"):"__$immer_state",J="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",ee=""+Object.prototype.constructor,et="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,er=Object.getOwnPropertyDescriptors||function(e){var t={};return et(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},en={},eo={get:function(e,t){if(t===Z)return e;var r=h(e);if(!c(r,t))return function(e,t,r){var n,o=E(t,r);return o?"value"in o?o.value:null==(n=o.get)?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!o(n)?n:n===k(e.t,t)?(N(e),e.o[t]=C(e.A.h,n,e)):n},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,r){var n=E(h(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=k(h(e),t),i=null==o?void 0:o[Z];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(p(r,o)&&(void 0!==r||c(e.t,t)))return!0;N(e),L(e)}return e.o[t]===r&&(void 0!==r||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==k(e.t,t)||t in e.t?(e.R[t]=!1,N(e),L(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=h(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},ei={};a(eo,function(e,t){ei[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ei.deleteProperty=function(e,t){return ei.set.call(this,e,t,void 0)},ei.set=function(e,t,r){return eo.set.call(this,e[0],t,r,e[0])};var ea=function(){function e(e){var t=this;this.O=K,this.D=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a,s=n;n=e;var c=t;return function(e){var t=this;void 0===e&&(e=s);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i1?n-1:0),i=1;i=0;r--){var r,o=t[r];if(0===o.path.length&&"replace"===o.op){e=o.value;break}}r>-1&&(t=t.slice(r+1));var i=m("Patches").$;return n(e)?i(e,t):this.produce(e,function(e){return i(e,t)})},e}(),es=new ea,ec=es.produce,eu=es.produceWithPatches.bind(es),el=es.setAutoFreeze.bind(es),ep=es.setUseProxies.bind(es),ef=es.applyPatches.bind(es),ed=es.createDraft.bind(es),eh=es.finishDraft.bind(es),eb=ec}),parcelRegister("fVAS9",function(e,t){function r(e){this.message=e}$parcel$export(e.exports,"default",()=>s),r.prototype=Error(),r.prototype.name="InvalidCharacterError";var n="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,i=0,a=0,s="";o=t.charAt(a++);~o&&(n=i%4?64*n+o:o,i++%4)&&(s+=String.fromCharCode(255&n>>(-2*i&6))))o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s};function o(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(n(e).replace(/(.)/g,function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(t)}catch(e){return n(t)}}function i(e){this.message=e}function a(e,t){if("string"!=typeof e)throw new i("Invalid token specified");var r=+(!0!==(t=t||{}).header);try{return JSON.parse(o(e.split(".")[r]))}catch(e){throw new i("Invalid token specified: "+e.message)}}i.prototype=Error(),i.prototype.name="InvalidTokenError";var s=a}),parcelRegister("aPgM3",function(e,t){!function(t,r){r(e.exports,parcelRequire("gwFzn"))}(e.exports,function(e,t){var r=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(t);function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}var i=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some(function(e,r){return!Object.is(e,t[r])})},a={error:null},s=function(e){function t(){for(var t,r=arguments.length,n=Array(r),o=0;on),$parcel$export(e.exports,"default",()=>o);var o=n}),parcelRegister("3uu23",function(e,t){$parcel$export(e.exports,"default",()=>r);function r(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}}),parcelRegister("dlAOT",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var r=parcelRequire("9PPub");function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e.exports,"default",{enumerable:!0,get:function(){return n(r).default}})}),parcelRegister("fFxV1",function(e,t){function r(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function n(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function o(e,t){if(e.clientHeightt||i>e&&a=t&&s>=r?i-e-n:a>t&&sr?a-t+o:0}$parcel$export(e.exports,"default",()=>l);var a=function(e,t){var n=t.scrollMode,a=t.block,s=t.inline,c=t.boundary,u=t.skipOverflowHiddenElements,l="function"==typeof c?c:function(e){return e!==c};if(!r(e))throw TypeError("Invalid target");for(var p=document.scrollingElement||document.documentElement,f=[],d=e;r(d)&&l(d);){if((d=d.parentNode)===p){f.push(d);break}(!(d===document.body&&o(d))||o(document.documentElement))&&o(d,u)&&f.push(d)}for(var h=window.visualViewport?visualViewport.width:innerWidth,b=window.visualViewport?visualViewport.height:innerHeight,M=window.scrollX||pageXOffset,z=window.scrollY||pageYOffset,O=e.getBoundingClientRect(),m=O.height,g=O.width,A=O.top,v=O.right,y=O.bottom,_=O.left,q="start"===a||"nearest"===a?A:"end"===a?y:A+m/2,x="center"===s?_+g/2:"end"===s?v:_,w=[],R=0;R=0&&_>=0&&y<=b&&v<=h&&A>=L&&y<=C&&_>=T&&v<=N)break;var D=getComputedStyle(S),B=parseInt(D.borderLeftWidth,10),I=parseInt(D.borderTopWidth,10),P=parseInt(D.borderRightWidth,10),F=parseInt(D.borderBottomWidth,10),j=0,X=0,U="offsetWidth"in S?S.offsetWidth-S.clientWidth-B-P:0,H="offsetHeight"in S?S.offsetHeight-S.clientHeight-I-F:0;if(p===S)j="start"===a?q:"end"===a?q-b:"nearest"===a?i(z,z+b,b,I,F,z+q,z+q+m,m):q-b/2,X="start"===s?x:"center"===s?x-h/2:"end"===s?x-h:i(M,M+h,h,B,P,M+x,M+x+g,g),j=Math.max(0,j+z),X=Math.max(0,X+M);else{j="start"===a?q-L-I:"end"===a?q-C+F+H:"nearest"===a?i(L,C,k,I,F+H,q,q+m,m):q-(L+k/2)+H/2,X="start"===s?x-T-B:"center"===s?x-(T+E/2)+U/2:"end"===s?x-N+P+U:i(T,N,E,B,P+U,x,x+g,g);var V=S.scrollLeft,G=S.scrollTop;j=Math.max(0,Math.min(G+j,S.scrollHeight-k+H)),X=Math.max(0,Math.min(V+X,S.scrollWidth-E+U)),q+=G-j,x+=V-X}w.push({el:S,top:j,left:X})}return w};function s(e){return e===Object(e)&&0!==Object.keys(e).length}function c(e,t){void 0===t&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(e){var n=e.el,o=e.top,i=e.left;n.scroll&&r?n.scroll({top:o,left:i,behavior:t}):(n.scrollTop=o,n.scrollLeft=i)})}function u(e){return!1===e?{block:"end",inline:"nearest"}:s(e)?e:{block:"start",inline:"nearest"}}var l=function(e,t){var r=!e.ownerDocument.documentElement.contains(e);if(s(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:a(e,t));if(!r){var n=u(t);return c(a(e,n),n.behavior)}}}),parcelRegister("7P7n4",function(e,t){var r,n=parcelRequire("3mTvL"),o=function(){function e(e,t){if("function"!=typeof e)throw TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but got: "+e+".");this._batchLoadFn=e,this._maxBatchSize=l(t),this._batchScheduleFn=p(t),this._cacheKeyFn=f(t),this._cacheMap=d(t),this._batch=null,this.name=h(t)}var t=e.prototype;return t.load=function(e){if(null==e)throw TypeError("The loader.load() function must be called with a value, but got: "+String(e)+".");var t=a(this),r=this._cacheMap,n=this._cacheKeyFn(e);if(r){var o=r.get(n);if(o){var i=t.cacheHits||(t.cacheHits=[]);return new Promise(function(e){i.push(function(){e(o)})})}}t.keys.push(e);var s=new Promise(function(e,r){t.callbacks.push({resolve:e,reject:r})});return r&&r.set(n,s),s},t.loadMany=function(e){if(!b(e))throw TypeError("The loader.loadMany() function must be called with Array but got: "+e+".");for(var t=[],r=0;r and returns Promise>, but the function errored synchronously: "+String(r)+"."))}if(!r||"function"!=typeof r.then)return c(e,t,TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise: "+String(r)+"."));r.then(function(e){if(!b(e))throw TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array: "+String(e)+".");if(e.length!==t.keys.length)throw TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array of the same length as the Array of keys.\n\nKeys:\n"+String(t.keys)+"\n\nValues:\n"+String(e));u(t);for(var r=0;r0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}e.exports=o}),parcelRegister("frzlB",function(e,t){var r={};r=parcelRequire("209b7"),e.exports=function(e,t){return new Promise(function(n,o){var i,a=t||{};function s(e){o(e||Error("Aborted"))}function c(e,t){if(e.bail)return void s(e);i.retry(e)?a.onRetry&&a.onRetry(e,t):o(i.mainError())}function u(t){var r;try{r=e(s,t)}catch(e){c(e,t);return}Promise.resolve(r).then(n).catch(function(e){c(e,t)})}"randomize"in a||(a.randomize=!0),(i=r.operation(a)).attempt(u)})}}),parcelRegister("209b7",function(e,t){var r={};function n(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}r=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(void 0===r)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0},n.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},n.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},n.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,r=0,n=0;n=r&&(t=o,r=a)}return t},t.operation=function(e){var n=t.timeouts(e);return new r(n,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var n=[],o=0;o{if(!Number.isFinite(e))throw TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw TypeError("Expected `interval` to be a finite number");let o=new Map,i=0,a=0;function s(){let r=Date.now();return r-i>t?(a=1,i=r,0):(a=n?(c.push(r),0):(c.push(n),n-r)}let l=n?u:s;return e=>{let t=function(...r){let n;return t.isEnabled?new Promise((t,i)=>{n=setTimeout(()=>{t(e.apply(this,r)),o.delete(n)},l()),o.set(n,i)}):(async()=>e.apply(this,r))()};return t.abort=()=>{for(let e of o.keys())clearTimeout(e),o.get(e)(new r);o.clear(),c.splice(0,c.length)},t.isEnabled=!0,t}},e.exports.AbortError=r}),parcelRegister("aoOGA",function(e,t){!function(t,r){r(e.exports)}(e.exports,function(e){let t=Symbol("newer"),r=Symbol("older");class n{_markEntryAsUsed(e){e!==this.newest&&(e[t]&&(e===this.oldest&&(this.oldest=e[t]),e[t][r]=e[r]),e[r]&&(e[r][t]=e[t]),e[t]=void 0,e[r]=this.newest,this.newest&&(this.newest[t]=e),this.newest=e)}assign(e){let n,i=this.limit||Number.MAX_VALUE;this._keymap.clear();let a=e[Symbol.iterator]();for(let e=a.next();!e.done;e=a.next()){let a=new o(e.value[0],e.value[1]);if(this._keymap.set(a.key,a),n?(n[t]=a,a[r]=n):this.oldest=a,n=a,0==i--)throw Error("overflow")}this.newest=n,this.size=this._keymap.size}get(e){var t=this._keymap.get(e);return t?(this._markEntryAsUsed(t),t.value):void 0}set(e,n){var i=this._keymap.get(e);return i?(i.value=n,this._markEntryAsUsed(i)):(this._keymap.set(e,i=new o(e,n)),this.newest?(this.newest[t]=i,i[r]=this.newest):this.oldest=i,this.newest=i,++this.size,this.size>this.limit&&this.shift()),this}shift(){var e=this.oldest;if(e)return this.oldest[t]?(this.oldest=this.oldest[t],this.oldest[r]=void 0):(this.oldest=void 0,this.newest=void 0),e[t]=e[r]=void 0,this._keymap.delete(e.key),--this.size,[e.key,e.value]}find(e){let t=this._keymap.get(e);return t?t.value:void 0}has(e){return this._keymap.has(e)}delete(e){var n=this._keymap.get(e);return n?(this._keymap.delete(n.key),n[t]&&n[r]?(n[r][t]=n[t],n[t][r]=n[r]):n[t]?(n[t][r]=void 0,this.oldest=n[t]):n[r]?(n[r][t]=void 0,this.newest=n[r]):this.oldest=this.newest=void 0,this.size--,n.value):void 0}clear(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()}keys(){return new a(this.oldest)}values(){return new s(this.oldest)}entries(){return this}[Symbol.iterator](){return new i(this.oldest)}forEach(e,r){"object"!=typeof r&&(r=this);let n=this.oldest;for(;n;)e.call(r,n.value,n.key,this),n=n[t]}toJSON(){for(var e=Array(this.size),r=0,n=this.oldest;n;)e[r++]={key:n.key,value:n.value},n=n[t];return e}toString(){for(var e="",r=this.oldest;r;)e+=String(r.key)+":"+r.value,(r=r[t])&&(e+=" < ");return e}constructor(e,t){"number"!=typeof e&&(t=e,e=0),this.size=0,this.limit=e,this.oldest=this.newest=void 0,this._keymap=new Map,t&&(this.assign(t),e<1&&(this.limit=this.size))}}function o(e,n){this.key=e,this.value=n,this[t]=void 0,this[r]=void 0}function i(e){this.entry=e}function a(e){this.entry=e}function s(e){this.entry=e}e.LRUMap=n,i.prototype[Symbol.iterator]=function(){return this},i.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:[e.key,e.value]}):{done:!0,value:void 0}},a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.key}):{done:!0,value:void 0}},s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.value}):{done:!0,value:void 0}}})}),parcelRegister("3KufV",function(e,t){$parcel$export(e.exports,"getIn",()=>p),$parcel$export(e.exports,"FORM_ERROR",()=>M),$parcel$export(e.exports,"fieldSubscriptionItems",()=>m),$parcel$export(e.exports,"formSubscriptionItems",()=>_),$parcel$export(e.exports,"version",()=>S),$parcel$export(e.exports,"createForm",()=>C);var r=parcelRequire("2lFLk"),n=parcelRequire("gsGyW"),o=46,i=/\\(\\)?/g,a=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g"),s=function(e){var t=[];return e.charCodeAt(0)===o&&t.push(""),e.replace(a,function(e,r,n,o){var a=e;n?a=o.replace(i,"$1"):r&&(a=r.trim()),t.push(a)}),t},c={},u=/[.[\]]+/,l=function(e){if(null==e||!e.length)return[];if("string"!=typeof e)throw Error("toPath() expects a string");return null==c[e]&&(e.endsWith("[]")?c[e]=e.split(u).filter(Boolean):c[e]=s(e)),c[e]},p=function(e,t){for(var r=l(t),n=e,o=0;o=i.length)return a;var c=i[o];if(isNaN(c)){if(null==t){var u,l,p=e(void 0,o+1,i,a,s);return void 0===p?void 0:((l={})[c]=p,l)}if(Array.isArray(t))throw Error("Cannot set a non-numeric property on an array");var d=e(t[c],o+1,i,a,s);if(void 0===d){var h=Object.keys(t).length;if(void 0===t[c]&&0===h)return;if(void 0!==t[c]&&h<=1)if(!isNaN(i[o-1])&&!s)return{};else return;return t[c],(0,n.default)(t,[c].map(f))}return(0,r.default)({},t,((u={})[c]=d,u))}var b=Number(c);if(null==t){var M=e(void 0,o+1,i,a,s);if(void 0===M)return;var z=[];return z[b]=M,z}if(!Array.isArray(t))throw Error("Cannot set a numeric property on an object");var O=e(t[b],o+1,i,a,s),m=[].concat(t);if(s&&void 0===O){if(m.splice(b,1),0===m.length)return}else m[b]=O;return m},b=function(e,t,r,n){if(void 0===n&&(n=!1),null==e)throw Error("Cannot call setIn() with "+String(e)+" state");if(null==t)throw Error("Cannot call setIn() with "+String(t)+" key");return h(e,0,l(t),r,n)},M="FINAL_FORM/form-error",z="FINAL_FORM/array-error";function O(e,t){var r=e.errors,n=e.initialValues,o=e.lastSubmittedValues,i=e.submitErrors,a=e.submitFailed,s=e.submitSucceeded,c=e.submitting,u=e.values,l=t.active,f=t.blur,d=t.change,h=t.data,b=t.focus,M=t.modified,O=t.modifiedSinceLastSubmit,m=t.name,g=t.touched,A=t.validating,v=t.visited,y=p(u,m),_=p(r,m);_&&_[z]&&(_=_[z]);var q=i&&p(i,m),x=n&&p(n,m),w=t.isEqual(x,y),R=!!(o&&!t.isEqual(p(o,m),y)),S=!_&&!q;return{active:l,blur:f,change:d,data:h,dirty:!w,dirtySinceLastSubmit:R,error:_,focus:b,initial:x,invalid:!S,length:Array.isArray(y)?y.length:void 0,modified:M,modifiedSinceLastSubmit:O,name:m,pristine:w,submitError:q,submitFailed:a,submitSucceeded:s,submitting:c,touched:g,valid:S,value:y,visited:v,validating:A}}var m=["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"],g=function(e,t){if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),i=0;i0,values:b}}function L(e,t,r,n,o,i){var a=o(r,n,t,i);return!!a&&(e(a),!0)}function N(e,t,r,n,o){var i=e.entries;Object.keys(i).forEach(function(e){var a=i[Number(e)];if(a){var s=a.subscription,c=a.subscriber,u=a.notified;L(c,s,t,r,n,o||!u)&&(a.notified=!0)}})}function C(e){if(!e)throw Error("No config specified");var t=e.debug,n=e.destroyOnUnregister,o=e.keepDirtyOnReinitialize,i=e.initialValues,a=e.mutators,s=e.onSubmit,c=e.validate,u=e.validateOnBlur;if(!s)throw Error("No onSubmit function specified");var l={subscribers:{index:0,entries:{}},fieldSubscribers:{},fields:{},formState:{asyncErrors:{},dirtySinceLastSubmit:!1,modifiedSinceLastSubmit:!1,errors:{},initialValues:i&&(0,r.default)({},i),invalid:!1,pristine:!0,submitting:!1,submitFailed:!1,submitSucceeded:!1,resetWhileSubmitting:!1,valid:!0,validating:0,values:i?(0,r.default)({},i):{}},lastFormState:void 0},f=0,d=!1,h=!1,m=!1,A=0,v={},_=function(e){return function(t){return delete v[e],t}},q=function(e,t,r){var n=r(p(e.formState.values,t));e.formState.values=b(e.formState.values,t,n)||{}},S=function(e,t,n){if(e.fields[t]){e.fields=(0,r.default)({},e.fields,((o={})[n]=(0,r.default)({},e.fields[t],{name:n,blur:function(){return Z.blur(n)},change:function(e){return Z.change(n,e)},focus:function(){return Z.focus(n)},lastFieldState:void 0}),o)),delete e.fields[t],e.fieldSubscribers=(0,r.default)({},e.fieldSubscribers,((i={})[n]=e.fieldSubscribers[t],i)),delete e.fieldSubscribers[t];var o,i,a=p(e.formState.values,t);e.formState.values=b(e.formState.values,t,void 0)||{},e.formState.values=b(e.formState.values,n,a),delete e.lastFormState}},C=function(e){return function(){if(a){for(var t={formState:l.formState,fields:l.fields,fieldSubscribers:l.fieldSubscribers,lastFormState:l.lastFormState},r=arguments.length,n=Array(r),o=0;o0,w=++A,R=Promise.all(q).then(_(w));x&&(v[w]=R);var S=function(e){var t=(0,r.default)({},s?o.errors:{},O,e?m:o.asyncErrors),u=function(e){a.forEach(function(r){if(n[r]){var o=p(O,r),a=p(t,r),u=B(i[r]).length,l=y[r];e(r,u&&l||c&&o||(o||s?void 0:a))}})};u(function(e,r){t=b(t,e,r)||{}}),u(function(e,r){if(r&&r[z]){var n=[].concat(p(t,e));n[z]=r[z],t=b(t,e,n)}}),g(o.errors,t)||(o.errors=t),e&&(o.asyncErrors=m),o.error=O[M]};if(x&&(l.formState.validating++,t()),S(!1),t(),x){var W=function(){l.formState.validating--,t(),0===l.formState.validating&&l.lastFormState.validating&&Y()};R.then(function(){A>w||S(!0)}).then(W,W)}},F=function(e){if(!f){var t=l.fields,n=l.fieldSubscribers,o=l.formState,i=(0,r.default)({},t),a=function(e){var t=i[e],r=O(o,t),a=t.lastFieldState;t.lastFieldState=r;var s=n[e];s&&N(s,r,a,y,void 0===a)};e?a(e):Object.keys(i).forEach(a)}},j=function(){Object.keys(l.fields).forEach(function(e){l.fields[e].touched=!0})},X=function(){return!!(l.formState.error||k(l.formState.errors))},U=function(){var e=l.fields,t=l.formState,n=l.lastFormState,o=(0,r.default)({},e),i=Object.keys(o),a=!1,s=i.reduce(function(e,r){return o[r].isEqual(p(t.values,r),p(t.initialValues||{},r))||(a=!0,e[r]=!0),e},{}),c=i.reduce(function(e,r){var n=t.lastSubmittedValues||{};return o[r].isEqual(p(t.values,r),p(n,r))||(e[r]=!0),e},{});t.pristine=!a,t.dirtySinceLastSubmit=!!(t.lastSubmittedValues&&Object.values(c).some(function(e){return e})),t.modifiedSinceLastSubmit=!!(t.lastSubmittedValues&&Object.keys(o).some(function(e){return o[e].modifiedSinceLastSubmit})),t.valid=!t.error&&!t.submitError&&!k(t.errors)&&!(t.submitErrors&&k(t.submitErrors));var u=E(t),f=i.reduce(function(e,t){return e.modified[t]=o[t].modified,e.touched[t]=o[t].touched,e.visited[t]=o[t].visited,e},{modified:{},touched:{},visited:{}}),d=f.modified,h=f.touched,b=f.visited;return u.dirtyFields=n&&g(n.dirtyFields,s)?n.dirtyFields:s,u.dirtyFieldsSinceLastSubmit=n&&g(n.dirtyFieldsSinceLastSubmit,c)?n.dirtyFieldsSinceLastSubmit:c,u.modified=n&&g(n.modified,d)?n.modified:d,u.touched=n&&g(n.touched,h)?n.touched:h,u.visited=n&&g(n.visited,b)?n.visited:b,n&&g(n,u)?n:u},H=function(){return t&&t(U(),Object.keys(l.fields).reduce(function(e,t){return e[t]=l.fields[t],e},{}))},V=!1,G=!1,Y=function e(){if(V)G=!0;else{if(V=!0,H(),!f&&!(d&&m)){var t=l.lastFormState,r=U();r!==t&&(l.lastFormState=r,N(l.subscribers,r,t,x))}V=!1,G&&(G=!1,e())}},K=function(){return Object.keys(l.fields).some(function(e){return l.fields[e].beforeSubmit&&!1===l.fields[e].beforeSubmit()})},Q=function(){return Object.keys(l.fields).forEach(function(e){return l.fields[e].afterSubmit&&l.fields[e].afterSubmit()})},$=function(){return Object.keys(l.fields).forEach(function(e){return l.fields[e].modifiedSinceLastSubmit=!1})};P(void 0,function(){Y()});var Z={batch:function(e){f++,e(),f--,F(),Y()},blur:function(e){var t=l.fields,n=l.formState,o=t[e];o&&(delete n.active,t[e]=(0,r.default)({},o,{active:!1,touched:!0}),u?P(e,function(){F(),Y()}):(F(),Y()))},change:function(e,t){var n=l.fields,o=l.formState;if(p(o.values,e)!==t){q(l,e,function(){return t});var i=n[e];i&&(n[e]=(0,r.default)({},i,{modified:!0,modifiedSinceLastSubmit:!!o.lastSubmittedValues})),u?(F(),Y()):P(e,function(){F(),Y()})}},get destroyOnUnregister(){return!!n},set destroyOnUnregister(value){n=value},focus:function(e){var t=l.fields[e];t&&!t.active&&(l.formState.active=e,t.active=!0,t.visited=!0,F(),Y())},mutators:T,getFieldState:function(e){var t=l.fields[e];return t&&t.lastFieldState},getRegisteredFields:function(){return Object.keys(l.fields)},getState:function(){return U()},initialize:function(e){var t=l.fields,n=l.formState,i=(0,r.default)({},t),a="function"==typeof e?e(n.values):e;o||(n.values=a);var s=o?Object.keys(i).reduce(function(e,t){return i[t].isEqual(p(n.values,t),p(n.initialValues||{},t))||(e[t]=p(n.values,t)),e},{}):{};n.initialValues=a,n.values=a,Object.keys(s).forEach(function(e){n.values=b(n.values,e,s[e])||{}}),P(void 0,function(){F(),Y()})},isValidationPaused:function(){return d},pauseValidation:function(e){void 0===e&&(e=!0),d=!0,m=e},registerField:function(e,t,r,o){void 0===r&&(r={}),l.fieldSubscribers[e]||(l.fieldSubscribers[e]={index:0,entries:{}});var i=l.fieldSubscribers[e].index++;l.fieldSubscribers[e].entries[i]={subscriber:w(t),subscription:r,notified:!1};var a=l.fields[e]||{active:!1,afterSubmit:o&&o.afterSubmit,beforeSubmit:o&&o.beforeSubmit,data:o&&o.data||{},isEqual:o&&o.isEqual||W,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:e,touched:!1,valid:!0,validateFields:o&&o.validateFields,validators:{},validating:!1,visited:!1};a.blur=a.blur||function(){return Z.blur(e)},a.change=a.change||function(t){return Z.change(e,t)},a.focus=a.focus||function(){return Z.focus(e)},l.fields[e]=a;var s=!1,c=o&&o.silent,u=function(){c&&l.fields[e]?F(e):(Y(),F())};if(o){s=!!(o.getValidator&&o.getValidator()),o.getValidator&&(l.fields[e].validators[i]=o.getValidator);var f=void 0===p(l.formState.values,e);void 0!==o.initialValue&&(f||p(l.formState.values,e)===p(l.formState.initialValues,e))&&(l.formState.initialValues=b(l.formState.initialValues||{},e,o.initialValue),l.formState.values=b(l.formState.values,e,o.initialValue),P(void 0,u)),void 0!==o.defaultValue&&void 0===o.initialValue&&void 0===p(l.formState.initialValues,e)&&f&&(l.formState.values=b(l.formState.values,e,o.defaultValue))}return s?P(void 0,u):u(),function(){var t=!1;l.fields[e]&&(t=!!(l.fields[e].validators[i]&&l.fields[e].validators[i]()),delete l.fields[e].validators[i]);var r=!!l.fieldSubscribers[e];r&&delete l.fieldSubscribers[e].entries[i];var o=r&&!Object.keys(l.fieldSubscribers[e].entries).length;o&&(delete l.fieldSubscribers[e],delete l.fields[e],t&&(l.formState.errors=b(l.formState.errors,e,void 0)||{}),n&&(l.formState.values=b(l.formState.values,e,void 0,!0)||{})),!c&&(t?P(void 0,function(){Y(),F()}):o&&Y())}},reset:function(e){void 0===e&&(e=l.formState.initialValues),l.formState.submitting&&(l.formState.resetWhileSubmitting=!0),l.formState.submitFailed=!1,l.formState.submitSucceeded=!1,delete l.formState.submitError,delete l.formState.submitErrors,delete l.formState.lastSubmittedValues,Z.initialize(e||{})},resetFieldState:function(e){l.fields[e]=(0,r.default)({},l.fields[e],{active:!1,lastFieldState:void 0,modified:!1,touched:!1,valid:!0,validating:!1,visited:!1}),P(void 0,function(){F(),Y()})},restart:function(e){void 0===e&&(e=l.formState.initialValues),Z.batch(function(){for(var t in l.fields)Z.resetFieldState(t),l.fields[t]=(0,r.default)({},l.fields[t],{active:!1,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,touched:!1,valid:!0,validating:!1,visited:!1});Z.reset(e)})},resumeValidation:function(){d=!1,m=!1,h&&P(void 0,function(){F(),Y()}),h=!1},setConfig:function(e,r){switch(e){case"debug":t=r;break;case"destroyOnUnregister":n=r;break;case"initialValues":Z.initialize(r);break;case"keepDirtyOnReinitialize":o=r;break;case"mutators":a=r,r?(Object.keys(T).forEach(function(e){e in r||delete T[e]}),Object.keys(r).forEach(function(e){T[e]=C(e)})):Object.keys(T).forEach(function(e){delete T[e]});break;case"onSubmit":s=r;break;case"validate":c=r,P(void 0,function(){F(),Y()});break;case"validateOnBlur":u=r;break;default:throw Error("Unrecognised option "+e)}},submit:function(){var e,t=l.formState;if(!t.submitting){if(delete t.submitErrors,delete t.submitError,t.lastSubmittedValues=(0,r.default)({},t.values),X()){j(),$(),l.formState.submitFailed=!0,Y(),F();return}var n=Object.keys(v);if(n.length)return void Promise.all(n.map(function(e){return v[Number(e)]})).then(Z.submit,console.error);if(!K()){var o=!1,i=function(r){t.submitting=!1;var n=t.resetWhileSubmitting;return n&&(t.resetWhileSubmitting=!1),r&&k(r)?(t.submitFailed=!0,t.submitSucceeded=!1,t.submitErrors=r,t.submitError=r[M],j()):(n||(t.submitFailed=!1,t.submitSucceeded=!0),Q()),Y(),F(),o=!0,e&&e(r),r};t.submitting=!0,t.submitFailed=!1,t.submitSucceeded=!1,t.lastSubmittedValues=(0,r.default)({},t.values),$();var a=s(t.values,Z,i);if(!o)if(a&&R(a))return Y(),F(),a.then(i,function(e){throw i(),e});else{if(s.length>=3)return Y(),F(),new Promise(function(t){e=t});i(a)}}}},subscribe:function(e,t){if(!e)throw Error("No callback given.");if(!t)throw Error("No subscription provided. What values do you want to listen to?");var r=w(e),n=l.subscribers,o=n.index++;n.entries[o]={subscriber:r,subscription:t,notified:!1};var i=U();return L(r,t,i,i,x,!0),function(){delete n.entries[o]}}};return Z}}),parcelRegister("2fG4F",function(e,t){$parcel$export(e.exports,"default",()=>s);var r=parcelRequire("3KufV"),n=function(e){return!!(e&&"function"==typeof e.focus)},o=function(){return"undefined"==typeof document?[]:Array.prototype.slice.call(document.forms).reduce(function(e,t){return e.concat(Array.prototype.slice.call(t).filter(n))},[])},i=function(e,t){return e.find(function(e){return e.name&&(0,r.getIn)(t,e.name)})},a=function(){},s=function(e,t){return function(r){var n=function(r){e||(e=o),t||(t=i);var n=t(e(),r);n&&n.focus()},s=r.submit,c={},u=r.subscribe(function(e){c=e},{errors:!0,submitErrors:!0}),l=function(){var e=c,t=e.errors,r=e.submitErrors;t&&Object.keys(t).length?n(t):r&&Object.keys(r).length&&n(r)};return r.submit=function(){var e=s.call(r);return e&&"function"==typeof e.then?e.then(l,a):l(),e},function(){u(),r.submit=s}}}}),parcelRegister("hvCDr",function(e,t){let r;function n(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){return n(e).getComputedStyle(e)}function i(e){return u(e)?(e.nodeName||"").toLowerCase():""}function a(){if(r)return r;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?r=e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function s(e){return e instanceof n(e).HTMLElement}function c(e){return e instanceof n(e).Element}function u(e){return e instanceof n(e).Node}function l(e){return"undefined"!=typeof ShadowRoot&&(e instanceof n(e).ShadowRoot||e instanceof ShadowRoot)}function p(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=o(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function f(){return!/^((?!chrome|android).)*safari/i.test(a())}function d(e){return["html","body","#document"].includes(i(e))}$parcel$export(e.exports,"autoUpdate",()=>_),["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let h=Math.round;function b(e){let t=o(e),r=parseFloat(t.width),n=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,s=h(r)!==i||h(n)!==a;return s&&(r=i,n=a),{width:r,height:n,fallback:s}}function M(e){return c(e)?e:e.contextElement}let z={x:1,y:1};function O(e){let t=M(e);if(!s(t))return z;let r=t.getBoundingClientRect(),{width:n,height:o,fallback:i}=b(t),a=(i?h(r.width):r.width)/n,c=(i?h(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}function m(e,t,r,o){var i,a;void 0===t&&(t=!1),void 0===r&&(r=!1);let s=e.getBoundingClientRect(),u=M(e),l=z;t&&(o?c(o)&&(l=O(o)):l=O(e));let p=u?n(u):window,d=!f()&&r,h=(s.left+(d&&(null==(i=p.visualViewport)?void 0:i.offsetLeft)||0))/l.x,b=(s.top+(d&&(null==(a=p.visualViewport)?void 0:a.offsetTop)||0))/l.y,m=s.width/l.x,g=s.height/l.y;if(u){let e=n(u),t=o&&c(o)?n(o):o,r=e.frameElement;for(;r&&o&&t!==e;){let e=O(r),t=r.getBoundingClientRect(),o=getComputedStyle(r);t.x+=(r.clientLeft+parseFloat(o.paddingLeft))*e.x,t.y+=(r.clientTop+parseFloat(o.paddingTop))*e.y,h*=e.x,b*=e.y,m*=e.x,g*=e.y,h+=t.x,b+=t.y,r=n(r).frameElement}}return{width:m,height:g,top:b,right:h+m,bottom:b+g,left:h,x:h,y:b}}function g(e){return((u(e)?e.ownerDocument:e.document)||window.document).documentElement}function A(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||(l(e)?e.host:null)||g(e);return l(t)?t.host:t}function v(e){let t=A(e);return d(t)?e.ownerDocument.body:s(t)&&p(t)?t:v(t)}function y(e,t){var r;void 0===t&&(t=[]);let o=v(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=n(o);return i?t.concat(a,a.visualViewport||[],p(o)?o:[]):t.concat(o,y(o))}function _(e,t,r,n){void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=n,u=o&&!s,l=u||i?[...c(e)?y(e):e.contextElement?y(e.contextElement):[],...y(t)]:[];l.forEach(e=>{u&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});let p,f=null;if(a){let n=!0;f=new ResizeObserver(()=>{n||r(),n=!1}),c(e)&&!s&&f.observe(e),c(e)||!e.contextElement||s||f.observe(e.contextElement),f.observe(t)}let d=s?m(e):null;return s&&function t(){let n=m(e);d&&(n.x!==d.x||n.y!==d.y||n.width!==d.width||n.height!==d.height)&&r(),d=n,p=requestAnimationFrame(t)}(),r(),()=>{var e;l.forEach(e=>{u&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(p)}}}),parcelRegister("akTSC",function(e,t){$parcel$export(e.exports,"default",()=>r);var r=parcelRequire("gwFzn").useLayoutEffect}),parcelRegister("iAWao",function(e,t){$parcel$export(e.exports,"default",()=>r);function r(e,t,r){if(void 0!=e)return t?r?r+e+t:e+t:e;return"var(--c-, )"}}),parcelRegister("kviC1",function(e,t){function r(e){this.content=e}$parcel$export(e.exports,"Fragment",()=>a),$parcel$export(e.exports,"Mark",()=>l),$parcel$export(e.exports,"ReplaceError",()=>p),$parcel$export(e.exports,"Slice",()=>f),$parcel$export(e.exports,"ResolvedPos",()=>q),$parcel$export(e.exports,"NodeRange",()=>S),$parcel$export(e.exports,"Node",()=>k),$parcel$export(e.exports,"MarkType",()=>et),$parcel$export(e.exports,"Schema",()=>er),$parcel$export(e.exports,"DOMParser",()=>ea),$parcel$export(e.exports,"DOMSerializer",()=>eg),r.prototype={constructor:r,find:function(e){for(var t=0;t>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};var n=r;function o(e,t,r){for(let n=0;;n++){if(n==e.childCount||n==t.childCount)return e.childCount==t.childCount?null:r;let i=e.child(n),a=t.child(n);if(i==a){r+=i.nodeSize;continue}if(!i.sameMarkup(a))return r;if(i.isText&&i.text!=a.text){for(let e=0;i.text[e]==a.text[e];e++)r++;return r}if(i.content.size||a.content.size){let e=o(i.content,a.content,r+1);if(null!=e)return e}r+=i.nodeSize}}function i(e,t,r,n){for(let o=e.childCount,a=t.childCount;;){if(0==o||0==a)return o==a?null:{a:r,b:n};let s=e.child(--o),c=t.child(--a),u=s.nodeSize;if(s==c){r-=u,n-=u;continue}if(!s.sameMarkup(c))return{a:r,b:n};if(s.isText&&s.text!=c.text){let e=0,t=Math.min(s.text.length,c.text.length);for(;ee&&!1!==r(s,n+a,o||null,i)&&s.content.size){let o=a+1;s.nodesBetween(Math.max(0,e-o),Math.min(s.content.size,t-o),r,n+o)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,n){let o="",i=!0;return this.nodesBetween(e,t,(a,s)=>{let c=a.isText?a.text.slice(Math.max(e,s)-s,t-s):a.isLeaf?n?"function"==typeof n?n(a):n:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&r&&(i?i=!1:o+=r),o+=c},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,n=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(r)&&(n[n.length-1]=t.withText(t.text+r.text),o=1);oe)for(let o=0,i=0;ie&&((it)&&(a=a.isText?a.cut(Math.max(0,e-i),Math.min(a.text.length,t-i)):a.cut(Math.max(0,e-i-1),Math.min(a.content.size,t-i-1))),r.push(a),n+=a.nodeSize),i=s}return new a(r,n)}cutByIndex(e,t){return e==t?a.empty:0==e&&t==this.content.length?this:new a(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let n=this.content.slice(),o=this.size+t.nodeSize-r.nodeSize;return n[e]=t,new a(n,o)}addToStart(e){return new a([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new a(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,n=0;;r++){let o=n+this.child(r).nodeSize;if(o>=e){if(o==e||t>0)return c(r+1,o);return c(r,n)}n=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return a.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new a(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return a.empty;let t,r=0;for(let n=0;nthis.type.rank&&(t||(t=e.slice(0,n)),t.push(this),r=!0),t&&t.push(o)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;te.type.rank-t.type.rank),t}constructor(e,t){this.type=e,this.attrs=t}}l.none=[];class p extends Error{}class f{get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=h(this.content,e+this.openStart,t);return r&&new f(r,this.openStart,this.openEnd)}removeBetween(e,t){return new f(d(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return f.empty;let r=t.openStart||0,n=t.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw RangeError("Invalid input for Slice.fromJSON");return new f(a.fromJSON(e,t.content),r,n)}static maxOpen(e,t=!0){let r=0,n=0;for(let n=e.firstChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)n++;return new f(e,r,n)}constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}}function d(e,t,r){let{index:n,offset:o}=e.findIndex(t),i=e.maybeChild(n),{index:a,offset:s}=e.findIndex(r);if(o==t||i.isText){if(s!=r&&!e.child(a).isText)throw RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(r))}if(n!=a)throw RangeError("Removing non-flat range");return e.replaceChild(n,i.copy(d(i.content,t-o-1,r-o-1)))}function h(e,t,r,n){let{index:o,offset:i}=e.findIndex(t),a=e.maybeChild(o);if(i==t||a.isText)return n&&!n.canReplace(o,o,r)?null:e.cut(0,t).append(r).append(e.cut(t));let s=h(a.content,t-i-1,r);return s&&e.replaceChild(o,a.copy(s))}function b(e,t,r){if(r.openStart>e.depth)throw new p("Inserted content deeper than insertion position");if(e.depth-r.openStart!=t.depth-r.openEnd)throw new p("Inconsistent open depths");return M(e,t,r,0)}function M(e,t,r,n){let o=e.index(n),i=e.node(n);if(o==t.index(n)&&n=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function g(e,t,r,n){let o=(t||e).node(r),i=0,a=t?t.index(r):o.childCount;e&&(i=e.index(r),e.depth>r?i++:e.textOffset&&(m(e.nodeAfter,n),i++));for(let e=i;eo&&O(e,t,o+1),s=n.depth>o&&O(r,n,o+1),c=[];return g(null,e,o,c),i&&s&&t.index(o)==r.index(o)?(z(i,s),m(A(i,v(e,t,r,n,o+1)),c)):(i&&m(A(i,y(e,t,o+1)),c),g(t,r,o,c),s&&m(A(s,y(r,n,o+1)),c)),g(n,null,o,c),new a(c)}function y(e,t,r){let n=[];return g(null,e,r,n),e.depth>r&&m(A(O(e,t,r+1),y(e,t,r+1)),n),g(t,null,r,n),new a(n)}function _(e,t){let r=t.depth-e.openStart,n=t.node(r).copy(e.content);for(let e=r-1;e>=0;e--)n=t.node(e).copy(a.from(n));return{start:n.resolveNoCache(e.openStart+r),end:n.resolveNoCache(n.content.size-e.openEnd-r)}}f.empty=new f(a.empty,0,0);class q{resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=e.child(t);return r?e.child(t).cut(r):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[3*t],n=0==t?0:this.path[3*t-1]+1;for(let t=0;t0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new S(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let r=[],n=0,o=t;for(let t=e;;){let{index:e,offset:i}=t.content.findIndex(o),a=o-i;if(r.push(t,e,n+i),!a||(t=t.child(e)).isText)break;o=a-1,n+=i+1}return new q(t,r,o)}static resolveCached(e,t){let r=R.get(e);if(r)for(let e=0;ee&&this.nodesBetween(e,t,e=>(r.isInSet(e.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),L(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=a.empty,n=0,o=r.childCount){let i=this.contentMatchAt(e).matchFragment(r,n,o),s=i&&i.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(let e=n;ee.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let r;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,r)}let n=a.fromJSON(e,t.content),o=e.nodeType(t.type).create(t.attrs,n,r);return o.type.checkAttrs(o.attrs),o}constructor(e,t,r,n=l.none){this.type=e,this.attrs=t,this.marks=n,this.content=r||a.empty}}k.prototype.text=void 0;class E extends k{toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):L(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new E(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new E(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}constructor(e,t,r,n){if(super(e,t,null,n),!r)throw RangeError("Empty text nodes are not allowed");this.text=r}}function L(e,t){for(let r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}class N{static parse(e,t){let r=new C(e,t);if(null==r.next)return N.empty;let n=T(r);r.next&&r.err("Unexpected trailing text");let o=V(X(n));return G(o,r),o}matchType(e){for(let t=0;te.createAndFill()));for(let e=0;e=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let n=0;n{let n=r+(t.validEnd?"*":" ")+" ";for(let r=0;r"+e.indexOf(t.next[r].next);return n}).join("\n")}constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}}N.empty=new N(!0);class C{get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}}function T(e){let t=[];do t.push(D(e));while(e.eat("|"))return 1==t.length?t[0]:{type:"choice",exprs:t}}function D(e){let t=[];do t.push(B(e));while(e.next&&")"!=e.next&&"|"!=e.next)return 1==t.length?t[0]:{type:"seq",exprs:t}}function B(e){let t=j(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=P(e,t);else break;return t}function I(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function P(e,t){let r=I(e),n=r;return e.eat(",")&&(n="}"!=e.next?I(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:t}}function F(e,t){let r=e.nodeTypes,n=r[t];if(n)return[n];let o=[];for(let e in r){let n=r[e];n.isInGroup(t)&&o.push(n)}return 0==o.length&&e.err("No node type or group '"+t+"' found"),o}function j(e){if(e.eat("(")){let t=T(e);return e.eat(")")||e.err("Missing closing paren"),t}if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=F(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}}function X(e){let t=[[]];return o(i(e,0),r()),t;function r(){return t.push([])-1}function n(e,r,n){let o={term:n,to:r};return t[e].push(o),o}function o(e,t){e.forEach(e=>e.to=t)}function i(e,t){if("choice"==e.type)return e.exprs.reduce((e,r)=>e.concat(i(r,t)),[]);if("seq"==e.type)for(let n=0;;n++){let a=i(e.exprs[n],t);if(n==e.exprs.length-1)return a;o(a,t=r())}else if("star"==e.type){let a=r();return n(t,a),o(i(e.expr,a),a),[n(a)]}else if("plus"==e.type){let a=r();return o(i(e.expr,t),a),o(i(e.expr,a),a),[n(a)]}else if("opt"==e.type)return[n(t)].concat(i(e.expr,t));else if("range"==e.type){let a=t;for(let t=0;t{e[t].forEach(({term:t,to:r})=>{let n;if(t){for(let e=0;e{n||o.push([t,n=[]]),-1==n.indexOf(e)&&n.push(e)})}})});let i=t[n.join(",")]=new N(n.indexOf(e.length-1)>-1);for(let e=0;e-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:K(this.attrs,e)}create(e=null,t,r){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new k(this,this.computeAttrs(e),a.from(t),l.setFrom(r))}createChecked(e=null,t,r){return t=a.from(t),this.checkContent(t),new k(this,this.computeAttrs(e),t,l.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),(t=a.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let n=this.contentMatch.matchFragment(t),o=n&&n.fillBefore(a.empty,!0);return o?new k(this,e,t.append(o),l.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;tr[e]=new Z(e,t,n));let n=t.spec.topNode||"doc";if(!r[n])throw RangeError("Schema is missing its top node type ('"+n+"')");if(!r.text)throw RangeError("Every schema needs a 'text' type");for(let e in r.text.attrs)throw RangeError("The text node type should not have attributes");return r}constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=$(e,r.attrs),this.defaultAttrs=Y(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==e),this.isText="text"==e}}function J(e,t,r){let n=r.split("|");return r=>{let o=null===r?"null":typeof r;if(0>n.indexOf(o))throw RangeError(`Expected value of type ${n} for attribute ${t} on type ${e}, got ${o}`)}}class ee{get isRequired(){return!this.hasDefault}constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?J(e,t,r.validate):r.validate}}class et{create(e=null){return!e&&this.instance?this.instance:new l(this,K(this.attrs,e))}static compile(e,t){let r=Object.create(null),n=0;return e.forEach((e,o)=>r[e]=new et(e,n++,t,o)),r}removeFromSet(e){for(var t=0;t-1}constructor(e,t,r,n){this.name=e,this.rank=t,this.schema=r,this.spec=n,this.attrs=$(e,n.attrs),this.excluded=null;let o=Y(this.attrs);this.instance=o?new l(this,o):null}}class er{node(e,t=null,r,n){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof Z){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,r,n)}text(e,t){let r=this.nodes.text;return new E(r,r.defaultAttrs,e,l.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return k.fromJSON(this,e)}markFromJSON(e){return l.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=n.from(e.nodes),t.marks=n.from(e.marks||{}),this.nodes=Z.compile(this.spec.nodes,this),this.marks=et.compile(this.spec.marks,this);let r=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],n=t.spec.content||"",o=t.spec.marks;if(t.contentMatch=r[n]||(r[n]=N.parse(n,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==o?null:o?en(this,o.split(" ")):""!=o&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],r=t.spec.excludes;t.excluded=null==r?[t]:""==r?[]:en(this,r.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}}function en(e,t){let r=[];for(let n=0;n-1)&&r.push(a=n)}if(!a)throw SyntaxError("Unknown mark type: '"+t[n]+"'")}return r}function eo(e){return null!=e.tag}function ei(e){return null!=e.style}class ea{parse(e,t={}){let r=new eb(this,t,!1);return r.addAll(e,l.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new eb(this,t,!0);return r.addAll(e,l.none,t.from,t.to),f.maxOpen(r.finish())}matchTag(e,t,r){for(let n=r?this.tags.indexOf(r)+1:0;ne.length)||61==i.charCodeAt(e.length)&&i.slice(e.length+1)==t)){if(n.getAttrs){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}static schemaRules(e){let t=[];function r(e){let r=null==e.priority?50:e.priority,n=0;for(;n{r(e=eO(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let n=e.nodes[t].spec.parseDOM;n&&n.forEach(e=>{r(e=eO(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ea(e,ea.schemaRules(e)))}constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(e=>{if(eo(e))this.tags.push(e);else if(ei(e)){let t=/[^=]*/.exec(e.style)[0];0>r.indexOf(t)&&r.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let r=e.nodes[t.node];return r.contentMatch.matchType(r)})}}let es={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ec={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},eu={ol:!0,ul:!0},el=1,ep=2,ef=4;function ed(e,t,r){return null!=t?(t?el:0)|("full"===t?ep:0):e&&"pre"==e.whitespace?el|ep:r&~ef}class eh{findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(a.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,r;return(r=t.findWrapping(e.type))?(this.match=t,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&el)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let r=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-t[0].length))}}let t=a.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(a.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!es.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}constructor(e,t,r,n,o,i){this.type=e,this.attrs=t,this.marks=r,this.solid=n,this.options=i,this.content=[],this.activeMarks=l.none,this.match=o||(i&ef?null:e.contentMatch)}}class eb{get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,n=this.top,o=n.options&ep?"full":this.localPreserveWS||(n.options&el)>0;if("full"===o||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(o)r="full"!==o?r.replace(/\r?\n|\r/g," "):r.replace(/\r\n?/g,"\n");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let t=n.content[n.content.length-1],o=e.previousSibling;(!t||o&&"BR"==o.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),t),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let n=this.localPreserveWS,o=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let i=e.nodeName.toLowerCase(),a;eu.hasOwnProperty(i)&&this.parser.normalizeLists&&eM(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,r));e:if(s?s.ignore:ec.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let r,n=this.needsBlock;if(es.hasOwnProperty(i))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),r=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let a=s&&s.skip?t:this.readStyles(e,t);a&&this.addAll(e,a),r&&this.sync(o),this.needsBlock=n}else{let r=this.readStyles(e,t);r&&this.addElementByRule(e,s,r,!1===s.consuming?a:void 0)}this.localPreserveWS=n}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let e=0;e!r.clearMark(e)):t.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1===r.consuming)e=r;else break}}return t}addElementByRule(e,t,r,n){let o,i;if(t.node)if((i=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(i.create(t.attrs),r)||this.leafFallback(e,r);else{let e=this.enter(i,t.attrs||null,r,t.preserveWhitespace);e&&(o=!0,r=e)}else{let e=this.parser.schema.marks[t.mark];r=r.concat(e.create(t.attrs))}let a=this.top;if(i&&i.isLeaf)this.findInside(e);else if(n)this.addElement(e,r,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,r));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n,r),this.findAround(e,n,!1)}o&&this.sync(a)&&this.open--}addAll(e,t,r,n){let o=r||0;for(let i=r?e.childNodes[r]:e.firstChild,a=null==n?null:e.childNodes[n];i!=a;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i,t);this.findAtPoint(e,o)}findPlace(e,t){let r,n;for(let t=this.open;t>=0;t--){let o=this.nodes[t],i=o.findWrapping(e);if(i&&(!r||r.length>i.length)&&(r=i,n=o,!i.length)||o.solid)break}if(!r)return null;this.sync(n);for(let e=0;e(i.type?!i.type.allowsMarkType(t.type):!em(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new eh(e,t,s,n,null,a)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=el);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let t=r.length-1;t>=0;t--)e+=r[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,n=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+ +!n,i=(e,a)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;a>=o;a--)if(i(e-1,a))return!0;return!1}{let e=a>0||0==a&&n?this.nodes[a].type:r&&a>=o?r.node(a-o).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;a--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let n=t.topNode,o,i=ed(null,t.preserveWhitespace,0)|(r?ef:0);o=n?new eh(n.type,n.attrs,l.none,!0,t.topMatch||n.type.contentMatch,i):r?new eh(null,null,l.none,!0,null,i):new eh(e.schema.topNodeType,null,l.none,!0,null,i),this.nodes=[o],this.find=t.findPositions,this.needsBlock=!1}}function eM(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&eu.hasOwnProperty(e)&&r?(r.appendChild(t),t=r):"li"==e?r=t:e&&(r=null)}}function ez(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function eO(e){let t={};for(let r in e)t[r]=e[r];return t}function em(e,t){let r=t.schema.nodes;for(let n in r){let o=r[n];if(!o.allowsMarkType(e))continue;let i=[],a=e=>{i.push(e);for(let r=0;ri.indexOf(o)&&a(o))return!0}};if(a(o.contentMatch))return!0}}class eg{serializeFragment(e,t={},r){r||(r=ev(t).createDocumentFragment());let n=r,o=[];return e.forEach(e=>{if(o.length||e.marks.length){let r=0,i=0;for(;r=0;n--){let o=this.serializeMark(e.marks[n],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(e,t,r={}){let n=this.marks[e.type.name];return n&&ex(ev(r),n(e,t),null,e.attrs)}static renderSpec(e,t,r=null,n){return ex(e,t,r,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new eg(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=eA(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return eA(e.marks)}constructor(e,t){this.nodes=e,this.marks=t}}function eA(e){let t={};for(let r in e){let n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function ev(e){return e.document||window.document}let ey=new WeakMap;function e_(e){let t=ey.get(e);return void 0===t&&ey.set(e,t=eq(e)),t}function eq(e){let t=null;function r(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])t||(t=[]),t.push(e);else for(let t=0;t-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=i.indexOf(" ");s>0&&(r=i.slice(0,s),i=i.slice(s+1));let c=r?e.createElementNS(r,i):e.createElement(i),u=t[1],l=1;if(u&&"object"==typeof u&&null==u.nodeType&&!Array.isArray(u)){for(let e in l=2,u)if(null!=u[e]){let t=e.indexOf(" ");t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),u[e]):c.setAttribute(e,u[e])}}for(let i=l;il)throw RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}{let{dom:t,contentDOM:i}=ex(e,a,r,n);if(c.appendChild(t),i){if(o)throw RangeError("Multiple content holes");o=i}}}return{dom:c,contentDOM:o}}}),parcelRegister("8GwJ7",function(e,t){function r(e){if(Array.isArray(e))return e}function n(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}$parcel$export(e.exports,"default",()=>a);var o=parcelRequire("asf9s");function i(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){return r(e)||n(e,t)||(0,o.default)(e,t)||i()}}),parcelRegister("98eGx",function(e,t){e.exports=JSON.parse('{"aliceblue":"#f0f8ff","antiquewhite":"#faebd7","aqua":"#00ffff","aquamarine":"#7fffd4","azure":"#f0ffff","beige":"#f5f5dc","bisque":"#ffe4c4","black":"#000000","blanchedalmond":"#ffebcd","blue":"#0000ff","blueviolet":"#8a2be2","brown":"#a52a2a","burlywood":"#deb887","cadetblue":"#5f9ea0","chartreuse":"#7fff00","chocolate":"#d2691e","coral":"#ff7f50","cornflowerblue":"#6495ed","cornsilk":"#fff8dc","crimson":"#dc143c","cyan":"#00ffff","darkblue":"#00008b","darkcyan":"#008b8b","darkgoldenrod":"#b8860b","darkgray":"#a9a9a9","darkgreen":"#006400","darkgrey":"#a9a9a9","darkkhaki":"#bdb76b","darkmagenta":"#8b008b","darkolivegreen":"#556b2f","darkorange":"#ff8c00","darkorchid":"#9932cc","darkred":"#8b0000","darksalmon":"#e9967a","darkseagreen":"#8fbc8f","darkslateblue":"#483d8b","darkslategray":"#2f4f4f","darkslategrey":"#2f4f4f","darkturquoise":"#00ced1","darkviolet":"#9400d3","deeppink":"#ff1493","deepskyblue":"#00bfff","dimgray":"#696969","dimgrey":"#696969","dodgerblue":"#1e90ff","firebrick":"#b22222","floralwhite":"#fffaf0","forestgreen":"#228b22","fuchsia":"#ff00ff","gainsboro":"#dcdcdc","ghostwhite":"#f8f8ff","gold":"#ffd700","goldenrod":"#daa520","gray":"#808080","green":"#008000","greenyellow":"#adff2f","grey":"#808080","honeydew":"#f0fff0","hotpink":"#ff69b4","indianred":"#cd5c5c","indigo":"#4b0082","ivory":"#fffff0","khaki":"#f0e68c","lavender":"#e6e6fa","lavenderblush":"#fff0f5","lawngreen":"#7cfc00","lemonchiffon":"#fffacd","lightblue":"#add8e6","lightcoral":"#f08080","lightcyan":"#e0ffff","lightgoldenrodyellow":"#fafad2","lightgray":"#d3d3d3","lightgreen":"#90ee90","lightgrey":"#d3d3d3","lightpink":"#ffb6c1","lightsalmon":"#ffa07a","lightseagreen":"#20b2aa","lightskyblue":"#87cefa","lightslategray":"#778899","lightslategrey":"#778899","lightsteelblue":"#b0c4de","lightyellow":"#ffffe0","lime":"#00ff00","limegreen":"#32cd32","linen":"#faf0e6","magenta":"#ff00ff","maroon":"#800000","mediumaquamarine":"#66cdaa","mediumblue":"#0000cd","mediumorchid":"#ba55d3","mediumpurple":"#9370db","mediumseagreen":"#3cb371","mediumslateblue":"#7b68ee","mediumspringgreen":"#00fa9a","mediumturquoise":"#48d1cc","mediumvioletred":"#c71585","midnightblue":"#191970","mintcream":"#f5fffa","mistyrose":"#ffe4e1","moccasin":"#ffe4b5","navajowhite":"#ffdead","navy":"#000080","oldlace":"#fdf5e6","olive":"#808000","olivedrab":"#6b8e23","orange":"#ffa500","orangered":"#ff4500","orchid":"#da70d6","palegoldenrod":"#eee8aa","palegreen":"#98fb98","paleturquoise":"#afeeee","palevioletred":"#db7093","papayawhip":"#ffefd5","peachpuff":"#ffdab9","peru":"#cd853f","pink":"#ffc0cb","plum":"#dda0dd","powderblue":"#b0e0e6","purple":"#800080","rebeccapurple":"#663399","red":"#ff0000","rosybrown":"#bc8f8f","royalblue":"#4169e1","saddlebrown":"#8b4513","salmon":"#fa8072","sandybrown":"#f4a460","seagreen":"#2e8b57","seashell":"#fff5ee","sienna":"#a0522d","silver":"#c0c0c0","skyblue":"#87ceeb","slateblue":"#6a5acd","slategray":"#708090","slategrey":"#708090","snow":"#fffafa","springgreen":"#00ff7f","steelblue":"#4682b4","tan":"#d2b48c","teal":"#008080","thistle":"#d8bfd8","tomato":"#ff6347","turquoise":"#40e0d0","violet":"#ee82ee","wheat":"#f5deb3","white":"#ffffff","whitesmoke":"#f5f5f5","yellow":"#ffff00","yellowgreen":"#9acd32"}')}),parcelRegister("hcxVq",function(e,t){$parcel$export(e.exports,"default",()=>s);var r=parcelRequire("jCIPH");function n(e){if(Array.isArray(e))return(0,r.default)(e)}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var i=parcelRequire("asf9s");function a(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e){return n(e)||o(e)||(0,i.default)(e)||a()}}),parcelRegister("6zGl4",function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/}),parcelRegister("im6eO",function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/}),parcelRegister("9mUTK",function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/}),parcelRegister("02PyJ",function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/}),parcelRegister("iryfe",function(e,t){$parcel$export(e.exports,"default",()=>h);var r=parcelRequire("gsGyW"),n=parcelRequire("5HzzL"),o=parcelRequire("gwFzn"),i=parcelRequire("4FhhO"),a={disabled:!1},s="unmounted",c="exited",u="entering",l="entered",p="exiting",f=function(e){function t(t,r){var n,o=e.call(this,t,r)||this,i=r,a=i&&!i.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?a?(n=c,o.appearStatus=u):n=l:n=t.unmountOnExit||t.mountOnEnter?s:c,o.state={status:n},o.nextCallback=null,o}(0,n.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:c}:null};var f=t.prototype;return f.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},f.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==u&&r!==l&&(t=u):(r===u||r===l)&&(t=p)}this.updateStatus(!1,t)},f.componentWillUnmount=function(){this.cancelNextCallback()},f.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},f.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===u){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:$parcel$interopDefault(i).findDOMNode(this);r&&(0,parcelRequire("eJjSB").forceReflow)(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:s})},f.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[$parcel$interopDefault(i).findDOMNode(this),n],s=o[0],c=o[1],p=this.getTimeouts(),f=n?p.appear:p.enter;if(!e&&!r||a.disabled)return void this.safeSetState({status:l},function(){t.props.onEntered(s)});this.props.onEnter(s,c),this.safeSetState({status:u},function(){t.props.onEntering(s,c),t.onTransitionEnd(f,function(){t.safeSetState({status:l},function(){t.props.onEntered(s,c)})})})},f.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:$parcel$interopDefault(i).findDOMNode(this);if(!t||a.disabled)return void this.safeSetState({status:c},function(){e.props.onExited(n)});this.props.onExit(n),this.safeSetState({status:p},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:c},function(){e.props.onExited(n)})})})},f.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},f.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},f.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},f.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:$parcel$interopDefault(i).findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],s=o[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)},f.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return $parcel$interopDefault(o).createElement(parcelRequire("5czRF").default.Provider,{value:null},"function"==typeof n?n(e,i):$parcel$interopDefault(o).cloneElement($parcel$interopDefault(o).Children.only(n),i))},t}($parcel$interopDefault(o).Component);function d(){}f.contextType=parcelRequire("5czRF").default,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},f.UNMOUNTED=s,f.EXITED=c,f.ENTERING=u,f.ENTERED=l,f.EXITING=p;var h=f}),parcelRegister("5czRF",function(e,t){$parcel$export(e.exports,"default",()=>r);var r=$parcel$interopDefault(parcelRequire("gwFzn")).createContext(null)}),parcelRegister("7T7aA",function(e,t){$parcel$export(e.exports,"Selection",()=>n),$parcel$export(e.exports,"TextSelection",()=>s),$parcel$export(e.exports,"AllSelection",()=>p),$parcel$export(e.exports,"SelectionRange",()=>o),$parcel$export(e.exports,"NodeSelection",()=>u),$parcel$export(e.exports,"Transaction",()=>O),$parcel$export(e.exports,"EditorState",()=>y),$parcel$export(e.exports,"Plugin",()=>q),$parcel$export(e.exports,"PluginKey",()=>R);let r=Object.create(null);class n{get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t=0;n--){let o=t<0?d(e.node(0),e.node(n),e.before(n+1),e.index(n),t,r):d(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,t,r);if(o)return o}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new p(e.node(0))}static atStart(e){return d(e,e,0,0,1)||new p(e)}static atEnd(e){return d(e,e,e.content.size,e.childCount,-1)||new p(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let n=r[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in r)throw RangeError("Duplicate use of selection JSON ID "+e);return r[e]=t,t.prototype.jsonID=e,t}getBookmark(){return s.between(this.$anchor,this.$head).getBookmark()}constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new o(e.min(t),e.max(t))]}}n.prototype.visible=!0;class o{constructor(e,t){this.$from=e,this.$to=t}}let i=!1;function a(e){i||e.parent.inlineContent||(i=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class s extends n{get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return n.near(r);let o=e.resolve(t.map(this.anchor));return new s(o.parent.inlineContent?o:r,r)}replace(e,t=parcelRequire("kviC1").Slice.empty){if(super.replace(e,t),t==parcelRequire("kviC1").Slice.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof s&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new c(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new s(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}static between(e,t,r){let o=e.pos-t.pos;if((!r||o)&&(r=o>=0?1:-1),!t.parent.inlineContent){let e=n.findFrom(t,r,!0)||n.findFrom(t,-r,!0);if(!e)return n.near(t,r);t=e.$head}return e.parent.inlineContent||(0==o?e=t:(e=(n.findFrom(e,-r,!0)||n.findFrom(e,r,!0)).$anchor).posnew p(e)};function d(e,t,r,n,o,i=!1){if(t.inlineContent)return s.create(e,r);for(let a=n-(o>0?0:1);o>0?a=0;a+=o){let n=t.child(a);if(n.isAtom){if(!i&&u.isSelectable(n))return u.create(e,r-(o<0?n.nodeSize:0))}else{let t=d(e,n,r+o,o<0?n.childCount:0,o,i);if(t)return t}r+=n.nodeSize*o}return null}function h(e,t,r){let o,i=e.steps.length-1;if(i{null==o&&(o=n)}),e.setSelection(n.near(e.doc.resolve(o),r)))}let b=1,M=2,z=4;class O extends parcelRequire("4FvAQ").Transform{get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=M,this}ensureMarks(e){return parcelRequire("kviC1").Mark.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&M)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~M,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||parcelRequire("kviC1").Mark.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let o=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(null==r&&(r=t),r=null==r?t:r,!e)return this.deleteRange(t,r);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=r==t?e.marks():e.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,o.text(e,i)),this.selection.empty||this.setSelection(n.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=z,this}get scrolledIntoView(){return(this.updated&z)>0}constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}}function m(e,t){return t&&e?e.bind(t):e}class g{constructor(e,t,r){this.name=e,this.init=m(t.init,r),this.apply=m(t.apply,r)}}let A=[new g("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new g("selection",{init:(e,t)=>e.selection||n.atStart(t.doc),apply:e=>e.selection}),new g("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,r,n)=>n.selection.$cursor?e.storedMarks:null}),new g("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class v{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=A.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new g(e.key,e.spec.state,e))})}}class y{get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;re.toJSON())),e&&"object"==typeof e)for(let r in e){if("doc"==r||"selection"==r)throw RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[r],o=n.spec.state;o&&o.toJSON&&(t[r]=o.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,r){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let o=new v(e.schema,e.plugins),i=new y(o);return o.fields.forEach(o=>{if("doc"==o.name)i.doc=parcelRequire("kviC1").Node.fromJSON(e.schema,t.doc);else if("selection"==o.name)i.selection=n.fromJSON(i.doc,t.selection);else if("storedMarks"==o.name)t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let n in r){let a=r[n],s=a.spec.state;if(a.key==o.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,n)){i[o.name]=s.fromJSON.call(a,e,t[n],i);return}}i[o.name]=o.init(e,i)}}),i}constructor(e){this.config=e}}function _(e,t,r){for(let n in e){let o=e[n];o instanceof Function?o=o.bind(t):"handleDOMEvents"==n&&(o=_(o,t,{})),r[n]=o}return r}class q{getState(e){return e[this.key]}constructor(e){this.spec=e,this.props={},e.props&&_(e.props,this,this.props),this.key=e.key?e.key.key:w("plugin")}}let x=Object.create(null);function w(e){return e in x?e+"$"+ ++x[e]:(x[e]=0,e+"$")}class R{get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}constructor(e="key"){this.key=w(e)}}}),parcelRegister("4FvAQ",function(e,t){$parcel$export(e.exports,"StepMap",()=>f),$parcel$export(e.exports,"Mapping",()=>d),$parcel$export(e.exports,"Step",()=>b),$parcel$export(e.exports,"StepResult",()=>M),$parcel$export(e.exports,"AddMarkStep",()=>O),$parcel$export(e.exports,"RemoveMarkStep",()=>m),$parcel$export(e.exports,"AddNodeMarkStep",()=>g),$parcel$export(e.exports,"RemoveNodeMarkStep",()=>A),$parcel$export(e.exports,"ReplaceStep",()=>v),$parcel$export(e.exports,"ReplaceAroundStep",()=>y),$parcel$export(e.exports,"liftTarget",()=>S),$parcel$export(e.exports,"findWrapping",()=>k),$parcel$export(e.exports,"canSplit",()=>F),$parcel$export(e.exports,"canJoin",()=>X),$parcel$export(e.exports,"joinPoint",()=>V),$parcel$export(e.exports,"insertPoint",()=>Y),$parcel$export(e.exports,"dropPoint",()=>K),$parcel$export(e.exports,"replaceStep",()=>Q),$parcel$export(e.exports,"AttrStep",()=>ep),$parcel$export(e.exports,"DocAttrStep",()=>ef),$parcel$export(e.exports,"Transform",()=>eh);let r=65535,n=65536;function o(e,t){return e+t*n}function i(e){return e&r}function a(e){return(e-(e&r))/n}let s=1,c=2,u=4,l=8;class p{get deleted(){return(this.delInfo&l)>0}get deletedBefore(){return(this.delInfo&(s|u))>0}get deletedAfter(){return(this.delInfo&(c|u))>0}get deletedAcross(){return(this.delInfo&u)>0}constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}}class f{recover(e){let t=0,r=i(e);if(!this.inverted)for(let e=0;ee)break;let h=this.ranges[f+i],b=this.ranges[f+a],M=d+h;if(e<=M){let i=h?e==d?-1:e==M?1:t:t,a=d+n+(i<0?0:b);if(r)return a;let z=e==(t<0?d:M)?null:o(f/3,e-d),O=e==d?c:e==M?s:u;return(t<0?e!=d:e!=M)&&(O|=l),new p(a,O,z)}n+=b-h}return r?e+n:new p(e+n,0,null)}touches(e,t){let r=0,n=i(t),o=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;te)break;let s=this.ranges[t+o];if(e<=i+s&&t==3*n)return!0;r+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,o=0;n=0;t--){let n=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new d;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;rr&&te.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,n),t.openStart,t.openEnd);return M.fromReplace(e,this.from,this.to,o)}invert(){return new m(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new O(t.pos,r.pos,this.mark)}merge(e){return e instanceof O&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new O(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new O(t.from,t.to,e.markFromJSON(t.mark))}constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}}b.jsonID("addMark",O);class m extends b{apply(e){let t=e.slice(this.from,this.to),r=new(0,parcelRequire("kviC1").Slice)(z(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return M.fromReplace(e,this.from,this.to,r)}invert(){return new O(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new m(t.pos,r.pos,this.mark)}merge(e){return e instanceof m&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new m(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new m(t.from,t.to,e.markFromJSON(t.mark))}constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}}b.jsonID("removeMark",m);class g extends b{apply(e){let t=e.nodeAt(this.pos);if(!t)return M.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return M.fromReplace(e,this.pos,this.pos+1,new(0,parcelRequire("kviC1").Slice)(parcelRequire("kviC1").Fragment.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;rr.pos?null:new y(t.pos,r.pos,n,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new y(t.from,t.to,t.gapFrom,t.gapTo,parcelRequire("kviC1").Slice.fromJSON(e,t.slice),t.insert,!!t.structure)}constructor(e,t,r,n,o,i,a=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=o,this.insert=i,this.structure=a}}function _(e,t,r){let n=e.resolve(t),o=r-t,i=n.depth;for(;o>0&&i>0&&n.indexAfter(i)==n.node(i).childCount;)i--,o--;if(o>0){let e=n.node(i).maybeChild(n.indexAfter(i));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function q(e,t,r,n){let o,i,a=[],s=[];e.doc.nodesBetween(t,r,(e,c,u)=>{if(!e.isInline)return;let l=e.marks;if(!n.isInSet(l)&&u.type.allowsMarkType(n.type)){let u=Math.max(c,t),p=Math.min(c+e.nodeSize,r),f=n.addToSet(l);for(let e=0;ee.step(t)),s.forEach(t=>e.step(t))}function x(e,t,r,n){let o=[],i=0;e.doc.nodesBetween(t,r,(e,a)=>{if(!e.isInline)return;i++;let s=null;if(n instanceof parcelRequire("kviC1").MarkType){let t=e.marks,r;for(;r=n.isInSet(t);)(s||(s=[])).push(r),t=r.removeFromSet(t)}else n?n.isInSet(e.marks)&&(s=[n]):s=e.marks;if(s&&s.length){let n=Math.min(a+e.nodeSize,r);for(let e=0;ee.step(new m(t.from,t.to,t.style)))}function w(e,t,r,n=r.contentMatch,o=!0){let i=e.doc.nodeAt(t),a=[],s=t+1;for(let t=0;t=0;t--)e.step(a[t])}function R(e,t,r){return(0==t||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function S(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let n=e.$from.node(r),o=e.$from.index(r),i=e.$to.indexAfter(r);if(rr;e--)t||n.index(e)>0?(t=!0,l=parcelRequire("kviC1").Fragment.from(n.node(e).copy(l)),p++):c--;let f=parcelRequire("kviC1").Fragment.empty,d=0;for(let e=i,t=!1;e>r;e--)t||o.after(e+1)=0;e--){if(n.size){let t=r[e].type.contentMatch.matchFragment(n);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=parcelRequire("kviC1").Fragment.from(r[e].type.create(r[e].attrs,n))}let o=t.start,i=t.end;e.step(new y(o,i,o,i,new(0,parcelRequire("kviC1").Slice)(n,0,0),r.length,!0))}function T(e,t,r,n,o){if(!n.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,r,(t,r)=>{let a="function"==typeof o?o(t):o;if(t.isTextblock&&!t.hasMarkup(n,a)&&I(e.doc,e.mapping.slice(i).map(r),n)){let o=null;if(n.schema.linebreakReplacement){let e="pre"==n.whitespace,t=!!n.contentMatch.matchType(n.schema.linebreakReplacement);e&&!t?o=!1:!e&&t&&(o=!0)}!1===o&&B(e,t,r,i),w(e,e.mapping.slice(i).map(r,1),n,void 0,null===o);let s=e.mapping.slice(i),c=s.map(r,1),u=s.map(r+t.nodeSize,1);return e.step(new y(c,u,c+1,u-1,new(0,parcelRequire("kviC1").Slice)(parcelRequire("kviC1").Fragment.from(n.create(a,null,t.marks)),0,0),1,!0)),!0===o&&D(e,t,r,i),!1}})}function D(e,t,r,n){t.forEach((o,i)=>{if(o.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(o.text);){let o=e.mapping.slice(n).map(r+1+i+a.index);e.replaceWith(o,o+1,t.type.schema.linebreakReplacement.create())}}})}function B(e,t,r,n){t.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let o=e.mapping.slice(n).map(r+1+i);e.replaceWith(o,o+1,t.type.schema.text("\n"))}})}function I(e,t,r){let n=e.resolve(t),o=n.index();return n.parent.canReplaceWith(o,o+1,r)}function P(e,t,r,n,o){let i=e.doc.nodeAt(t);if(!i)throw RangeError("No node at given position");r||(r=i.type);let a=r.create(n,null,o||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,a);if(!r.validContent(i.content))throw RangeError("Invalid content for node type "+r.name);e.step(new y(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new(0,parcelRequire("kviC1").Slice)(parcelRequire("kviC1").Fragment.from(a),0,0),1,!0))}function F(e,t,r=1,n){let o=e.resolve(t),i=o.depth-r,a=n&&n[n.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let e=o.depth-1,t=r-2;e>i;e--,t--){let r=o.node(e),i=o.index(e);if(r.type.spec.isolating)return!1;let a=r.content.cutByIndex(i,r.childCount),s=n&&n[t+1];s&&(a=a.replaceChild(0,s.type.create(s.attrs)));let c=n&&n[t]||r;if(!r.canReplace(i+1,r.childCount)||!c.type.validContent(a))return!1}let s=o.indexAfter(i),c=n&&n[0];return o.node(i).canReplaceWith(s,s,c?c.type:o.node(i+1).type)}function j(e,t,r=1,n){let o=e.doc.resolve(t),i=parcelRequire("kviC1").Fragment.empty,a=parcelRequire("kviC1").Fragment.empty;for(let e=o.depth,t=o.depth-r,s=r-1;e>t;e--,s--){i=parcelRequire("kviC1").Fragment.from(o.node(e).copy(i));let t=n&&n[s];a=parcelRequire("kviC1").Fragment.from(t?t.type.create(t.attrs,a):o.node(e).copy(a))}e.step(new v(t,t,new(0,parcelRequire("kviC1").Slice)(i.append(a),r,r),!0))}function X(e,t){let r=e.resolve(t),n=r.index();return H(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function U(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let o=0;o0?(o=n.node(e+1),a++,i=n.node(e).maybeChild(a)):(o=n.node(e).maybeChild(a-1),i=n.node(e+1)),o&&!o.isTextblock&&H(o,i)&&n.node(e).canReplace(a,a+1))return t;if(0==e)break;t=r<0?n.before(e):n.after(e)}}function G(e,t,r){let n=null,{linebreakReplacement:o}=e.doc.type.schema,i=e.doc.resolve(t-r),a=i.node().type;if(o&&a.inlineContent){let e="pre"==a.whitespace,t=!!a.contentMatch.matchType(o);e&&!t?n=!1:!e&&t&&(n=!0)}let s=e.steps.length;if(!1===n){let n=e.doc.resolve(t+r);B(e,n.node(),n.before(),s)}a.inlineContent&&w(e,t+r-1,a,i.node().contentMatchAt(i.index()),null==n);let c=e.mapping.slice(s),u=c.map(t-r);if(e.step(new v(u,c.map(t+r,-1),parcelRequire("kviC1").Slice.empty,!0)),!0===n){let t=e.doc.resolve(u);D(e,t.node(),t.before(),e.steps.length)}return e}function Y(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,i=n.index(t)+ +(r>0),a=n.node(t),s=!1;if(1==e)s=a.canReplace(i,i,o);else{let e=a.contentMatchAt(i).findWrapping(o.firstChild.type);s=e&&a.canReplaceWith(i,i,e[0])}if(s)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}function Q(e,t,r=t,n=parcelRequire("kviC1").Slice.empty){if(t==r&&!n.size)return null;let o=e.resolve(t),i=e.resolve(r);return $(o,i,n)?new v(t,r,n):new Z(o,i,n).fit()}function $(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}b.jsonID("replaceAround",y);class Z{get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,n=this.close(e<0?this.$to:r.doc.resolve(e));if(!n)return null;let o=this.placed,i=r.depth,a=n.depth;for(;i&&a&&1==o.childCount;)o=o.firstChild.content,i--,a--;let s=new(0,parcelRequire("kviC1").Slice)(o,i,a);return e>-1?new y(r.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||r.pos!=this.$to.pos?new v(r.pos,n.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r1&&(n=0),o.type.spec.isolating&&n<=r){e=r;break}t=o.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e,n=null,o=(e=r?(n=et(this.unplaced.content,r-1).firstChild).content:this.unplaced.content).firstChild;for(let e=this.depth;e>=0;e--){let{type:i,match:a}=this.frontier[e],s,c=null;if(1==t&&(o?a.matchType(o.type)||(c=a.fillBefore(parcelRequire("kviC1").Fragment.from(o),!1)):n&&i.compatibleContent(n.type)))return{sliceDepth:r,frontierDepth:e,parent:n,inject:c};if(2==t&&o&&(s=a.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:e,parent:n,wrap:s};if(n&&a.matchType(n.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,n=et(e,t);return!!n.childCount&&!n.firstChild.isLeaf&&(this.unplaced=new(0,parcelRequire("kviC1").Slice)(e,t+1,Math.max(r,n.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,n=et(e,t);if(n.childCount<=1&&t>0){let o=e.size-t<=t+n.size;this.unplaced=new(0,parcelRequire("kviC1").Slice)(J(e,t-1,1),t-1,o?t-1:r)}else this.unplaced=new(0,parcelRequire("kviC1").Slice)(J(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:n,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e1||0==s||e.content.size)&&(l=t,u.push(er(e.mark(p.allowedMarks(e.marks)),1==c?s:0,c==a.childCount?f:-1)))}let d=c==a.childCount;d||(f=-1),this.placed=ee(this.placed,t,parcelRequire("kviC1").Fragment.from(u)),this.frontier[t].match=l,d&&f<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=a;e1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){t:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],o=t=0;r--){let{match:t,type:n}=this.frontier[r],o=en(e,r,n,t,!0);if(!o||o.childCount)continue t}return{depth:t,fit:i,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=ee(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let n=this.frontier[this.depth];n.match=n.match.matchType(e),this.placed=ee(this.placed,this.depth,parcelRequire("kviC1").Fragment.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(parcelRequire("kviC1").Fragment.empty,!0);e.childCount&&(this.placed=ee(this.placed,this.frontier.length,e))}constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=parcelRequire("kviC1").Fragment.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=parcelRequire("kviC1").Fragment.from(e.node(t).copy(this.placed))}}function J(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(J(e.firstChild.content,t-1,r)))}function ee(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(ee(e.lastChild.content,t-1,r)))}function et(e,t){for(let r=0;r1&&(n=n.replaceChild(0,er(n.firstChild,t-1,1==n.childCount?r-1:0))),t>0&&(n=e.type.contentMatch.fillBefore(n).append(n),r<=0&&(n=n.append(e.type.contentMatch.matchFragment(n).fillBefore(parcelRequire("kviC1").Fragment.empty,!0)))),e.copy(n)}function en(e,t,r,n,o){let i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!r.compatibleContent(i.type))return null;let s=n.fillBefore(i.content,!0,a);return s&&!eo(r,i.content,a)?s:null}function eo(e,t,r){for(let n=r;n0;e--,t--){let r=o.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;a.indexOf(e)>-1?s=e:o.before(e)==t&&a.splice(1,0,-e)}let c=a.indexOf(s),u=[],l=n.openStart;for(let e=n.content,t=0;;t++){let r=e.firstChild;if(u.push(r),t==n.openStart)break;e=r.content}for(let e=l-1;e>=0;e--){let t=u[e],r=ei(t.type);if(r&&!t.sameMarkup(o.node(Math.abs(s)-1)))l=e;else if(r||!t.type.isTextblock)break}for(let t=n.openStart;t>=0;t--){let s=(t+l+1)%(n.openStart+1),p=u[s];if(p)for(let t=0;t=0&&(e.replace(t,r,n),!(e.steps.length>p));s--){let e=a[s];e<0||(t=o.before(e),r=i.after(e))}}function es(e,t,r,n,o){if(tn){let t=o.contentMatchAt(0),r=t.fillBefore(e).append(e);e=r.append(t.matchFragment(r).fillBefore(parcelRequire("kviC1").Fragment.empty,!0))}return e}function ec(e,t,r,n){if(!n.isInline&&t==r&&e.doc.resolve(t).parent.content.size){let o=Y(e.doc,t,n.type);null!=o&&(t=r=o)}e.replaceRange(t,r,new(0,parcelRequire("kviC1").Slice)(parcelRequire("kviC1").Fragment.from(n),0,0))}function eu(e,t,r){let n=e.doc.resolve(t),o=e.doc.resolve(r),i=el(n,o);for(let t=0;t0&&(a||n.node(r-1).canReplace(n.index(r-1),o.indexAfter(r-1))))return e.delete(n.before(r),o.after(r))}for(let i=1;i<=n.depth&&i<=o.depth;i++)if(t-n.start(i)==n.depth-i&&r>n.end(i)&&o.end(i)-r!=o.depth-i&&n.start(i-1)==o.start(i-1)&&n.node(i-1).canReplace(n.index(i-1),o.index(i-1)))return e.delete(n.before(i),r);e.delete(t,r)}function el(e,t){let r=[],n=Math.min(e.depth,t.depth);for(let o=n;o>=0;o--){let n=e.start(o);if(nt.pos+(t.depth-o)||e.node(o).type.spec.isolating||t.node(o).type.spec.isolating)break;(n==t.start(o)||o==e.depth&&o==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&o&&t.start(o-1)==n-1)&&r.push(o)}return r}class ep extends b{apply(e){let t=e.nodeAt(this.pos);if(!t)return M.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let n=t.type.create(r,null,t.marks);return M.fromReplace(e,this.pos,this.pos+1,new(0,parcelRequire("kviC1").Slice)(parcelRequire("kviC1").Fragment.from(n),0,+!t.isLeaf))}getMap(){return f.empty}invert(e){return new ep(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ep(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new ep(t.pos,t.attr,t.value)}constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}}b.jsonID("attr",ep);class ef extends b{apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return M.ok(r)}getMap(){return f.empty}invert(e){return new ef(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new ef(t.attr,t.value)}constructor(e,t){super(),this.attr=e,this.value=t}}b.jsonID("docAttr",ef);let ed=class extends Error{};(ed=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r}).prototype=Object.create(Error.prototype),ed.prototype.constructor=ed,ed.prototype.name="TransformError";class eh{get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new ed(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=parcelRequire("kviC1").Slice.empty){let n=Q(this.doc,e,t,r);return n&&this.step(n),this}replaceWith(e,t,r){return this.replace(e,t,new(0,parcelRequire("kviC1").Slice)(parcelRequire("kviC1").Fragment.from(r),0,0))}delete(e,t){return this.replace(e,t,parcelRequire("kviC1").Slice.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return ea(this,e,t,r),this}replaceRangeWith(e,t,r){return ec(this,e,t,r),this}deleteRange(e,t){return eu(this,e,t),this}lift(e,t){return W(this,e,t),this}join(e,t=1){return G(this,e,t),this}wrap(e,t){return C(this,e,t),this}setBlockType(e,t=e,r,n=null){return T(this,e,t,r,n),this}setNodeMarkup(e,t,r=null,n){return P(this,e,t,r,n),this}setNodeAttribute(e,t,r){return this.step(new ep(e,t,r)),this}setDocAttribute(e,t){return this.step(new ef(e,t)),this}addNodeMark(e,t){return this.step(new g(e,t)),this}removeNodeMark(e,t){if(!(t instanceof parcelRequire("kviC1").Mark)){let r=this.doc.nodeAt(e);if(!r)throw RangeError("No node at position "+e);if(!(t=t.isInSet(r.marks)))return this}return this.step(new A(e,t)),this}split(e,t=1,r){return j(this,e,t,r),this}addMark(e,t,r){return q(this,e,t,r),this}removeMark(e,t,r){return x(this,e,t,r),this}clearIncompatible(e,t,r){return w(this,e,t,r),this}constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new d}}}),parcelRegister("gWR1e",function(e,t){$parcel$export(e.exports,"removeParentNodeOfType",()=>r),$parcel$export(e.exports,"findParentNodeOfType",()=>_),$parcel$export(e.exports,"replaceParentNodeOfType",()=>n),$parcel$export(e.exports,"removeSelectedNode",()=>o),$parcel$export(e.exports,"isNodeSelection",()=>f),$parcel$export(e.exports,"replaceSelectedNode",()=>i),$parcel$export(e.exports,"setTextSelection",()=>a),$parcel$export(e.exports,"safeInsert",()=>l),$parcel$export(e.exports,"canInsert",()=>O),$parcel$export(e.exports,"removeNodeBefore",()=>p),$parcel$export(e.exports,"findPositionOfNodeBefore",()=>S),$parcel$export(e.exports,"findParentNode",()=>g),$parcel$export(e.exports,"findParentNodeClosestToPos",()=>A),$parcel$export(e.exports,"findDomRefAtPos",()=>W),$parcel$export(e.exports,"hasParentNode",()=>y),$parcel$export(e.exports,"findParentNodeOfTypeClosestToPos",()=>q),$parcel$export(e.exports,"hasParentNodeOfType",()=>x),$parcel$export(e.exports,"findParentDomRefOfType",()=>w),$parcel$export(e.exports,"findSelectedNodeOfType",()=>R),$parcel$export(e.exports,"flatten",()=>k),$parcel$export(e.exports,"findChildren",()=>E),$parcel$export(e.exports,"findChildrenByType",()=>L),$parcel$export(e.exports,"contains",()=>N);var r=e=>t=>{let r=_(e)(t.selection);return r?z(r.pos)(t):t},n=(e,t)=>r=>{Array.isArray(e)||(e=[e]);for(let n=0,o=e.length;n{if(f(e.selection)){let t=e.selection.$from.pos,r=e.selection.$to.pos;return h(e.delete(t,r))}return e},i=e=>t=>{if(f(t.selection)){let{$from:r,$to:n}=t.selection;if(e instanceof parcelRequire("kviC1").Fragment&&r.parent.canReplace(r.index(),r.indexAfter(),e)||e instanceof parcelRequire("kviC1").Node&&r.parent.canReplaceWith(r.index(),r.indexAfter(),e.type))return h(t.replaceWith(r.pos,n.pos,e).setSelection(new(0,parcelRequire("7T7aA").NodeSelection)(t.doc.resolve(r.pos))))}return t},a=(e,t=1)=>r=>{let n=parcelRequire("7T7aA").Selection.findFrom(r.doc.resolve(e),t,!0);return n?r.setSelection(n):r},s=e=>!!(e instanceof parcelRequire("kviC1").Node&&e.type&&e.type.spec.selectable),c=e=>s(e)&&e.type.isLeaf,u=(e,t,r)=>c(e)?r.setSelection(new(0,parcelRequire("7T7aA").NodeSelection)(r.doc.resolve(t))):a(t)(r),l=(e,t,r)=>o=>{let a="number"==typeof t,{$from:c}=o.selection,l=a?o.doc.resolve(t):f(o.selection)?o.doc.resolve(c.pos+1):c,{parent:p}=l;if(f(o.selection)&&r&&o!==(o=i(e)(o)))return o;if(m(p)&&o!==(o=n(p.type,e)(o))){let t=s(e)?l.before(l.depth):l.pos;return u(e,t,o)}if(O(l,e)){o.insert(l.pos,e);let t=a?l.pos:s(e)?o.selection.$anchor.pos-1:o.selection.$anchor.pos;return h(u(e,t,o))}for(let t=l.depth;t>0;t--){let r=l.after(t);if(O(o.doc.resolve(r),e))return o.insert(r,e),h(u(e,r,o))}return o},p=e=>{let t=S(e.selection);return"number"==typeof t?z(t)(e):e},f=e=>e instanceof parcelRequire("7T7aA").NodeSelection,d=(e,t)=>Array.isArray(e)&&e.indexOf(t.type)>-1||t.type===e,h=e=>Object.assign(Object.create(e),e).setTime(Date.now()),b=(e,t)=>r=>{let n=r.doc.nodeAt(e),o=r.doc.resolve(e);return n&&M(o,t)?(r=a(Math.max((r=r.replaceWith(e,e+n.nodeSize,t)).selection.$from.pos-1,0),-1)(r),h(r=a(r.selection.$from.start())(r))):r},M=(e,t)=>{let r=e.node(e.depth);return r&&r.type.validContent(t instanceof parcelRequire("kviC1").Fragment?t:parcelRequire("kviC1").Fragment.from(t))},z=e=>t=>{let r=t.doc.nodeAt(e);return r?h(t.delete(e,e+r.nodeSize)):t},O=(e,t)=>{let r=e.index();return t instanceof parcelRequire("kviC1").Fragment?e.parent.canReplace(r,r,t):t instanceof parcelRequire("kviC1").Node&&e.parent.canReplaceWith(r,r,t.type)},m=e=>!e||"paragraph"===e.type.name&&2===e.nodeSize,g=e=>({$from:t,$to:r},n=!1)=>{if(n&&!t.sameParent(r)){let n=Math.min(t.depth,r.depth);for(;n>=0;){let o=t.node(n);if(r.node(n)===o&&e(o))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:o};n-=1}return}return A(t,e)},A=(e,t)=>{for(let r=e.depth;r>0;r--){let n=e.node(r);if(t(n))return{pos:r>0?e.before(r):0,start:e.start(r),depth:r,node:n}}},v=(e,t)=>r=>{let n=g(e)(r);if(n)return W(n.pos,t)},y=e=>t=>!!g(e)(t),_=e=>t=>g(t=>d(e,t))(t),q=(e,t)=>A(e,e=>d(t,e)),x=e=>t=>y(t=>d(e,t))(t),w=(e,t)=>r=>v(t=>d(e,t),t)(r),R=e=>t=>{if(f(t)){let{node:r,$from:n}=t;if(d(e,r))return{node:r,start:n.start(),pos:n.pos,depth:n.depth}}},S=e=>{let{nodeBefore:t}=e.$from,r=parcelRequire("7T7aA").Selection.findFrom(e.$from,-1);if(r&&t){let e=_(t.type)(r);return e?e.pos:r.$from.pos}},W=(e,t)=>{let r=t(e),n=r.node.childNodes[r.offset];return r.node.nodeType===Node.TEXT_NODE&&r.node.parentNode?r.node.parentNode:n&&n.nodeType!==Node.TEXT_NODE?n:r.node},k=(e,t=!0)=>{if(!e)throw Error('Invalid "node" parameter');let r=[];return e.descendants((e,n)=>{if(r.push({node:e,pos:n}),!t)return!1}),r},E=(e,t,r=!0)=>{if(e){if(!t)throw Error('Invalid "predicate" parameter')}else throw Error('Invalid "node" parameter');return k(e,r).filter(e=>t(e.node))},L=(e,t,r=!0)=>E(e,e=>e.type===t,r),N=(e,t)=>!!L(e,t).length}),parcelRegister("gcPZ2",function(e,t){$parcel$export(e.exports,"CaptureConsole",()=>n),parcelRequire("gAVFl");var r=(0,parcelRequire("24F8E").getGlobalObject)(),n=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._levels=parcelRequire("gFNZ6").CONSOLE_LEVELS,t.levels&&(this._levels=t.levels)}return e.prototype.setupOnce=function(t,n){"console"in r&&this._levels.forEach(function(t){t in r.console&&(0,parcelRequire("4XiZd").fill)(r.console,t,function(o){return function(){for(var i=[],a=0;an,e=>n=e),$parcel$export(e.exports,"dynamicRequire",()=>o,e=>o=e);var r=parcelRequire("3mTvL");function n(){return!(0,parcelRequire("jwMKl").isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)}function o(e,t){return e.require(t)}}),parcelRegister("1bErS",function(e,t){var r={nowSeconds:function(){return Date.now()/1e3}};function n(){var e=(0,parcelRequire("24F8E").getGlobalObject)().performance;if(e&&e.now){var t=Date.now()-e.now();return{now:function(){return e.now()},timeOrigin:t}}}function o(){try{return(0,parcelRequire("3IT0M").dynamicRequire)(e,"perf_hooks").performance}catch(e){return}}var i=(0,parcelRequire("3IT0M").isNodeEnv)()?o():n(),a=void 0===i?r:{nowSeconds:function(){return(i.timeOrigin+i.now())/1e3}};r.nowSeconds.bind(r),a.nowSeconds.bind(a),function(){var e=(0,parcelRequire("24F8E").getGlobalObject)().performance;if(e&&e.now){var t=36e5,r=e.now(),n=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,i=or),parcelRequire("gAVFl");var r=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,r){t(function(t){var o=r().getIntegration(e);if(o){try{if(n(t,o._previousEvent))return parcelRequire("sNhdY").IS_DEBUG_BUILD&&parcelRequire("gFNZ6").logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return o._previousEvent=t}return t})},e.id="Dedupe",e}();function n(e,t){return!!t&&!!(o(e,t)||i(e,t))}function o(e,t){var r=e.message,n=t.message;return(!!r||!!n)&&(!r||!!n)&&(!!r||!n)&&r===n&&!!s(e,t)&&!!a(e,t)&&!0}function i(e,t){var r=c(t),n=c(e);return!!r&&!!n&&r.type===n.type&&r.value===n.value&&!!s(e,t)&&!!a(e,t)}function a(e,t){var r=u(e),n=u(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(var o=0;or),parcelRequire("gAVFl");var r=function(){function e(t){this.name=e.id,this._options=(0,parcelRequire("fQsf7").__assign)({depth:3},t)}return e.prototype.setupOnce=function(t,r){t(function(t,n){var o=r().getIntegration(e);return o?o.enhanceEventWithErrorData(t,n):t})},e.prototype.enhanceEventWithErrorData=function(e,t){if(!t||!t.originalException||!(0,parcelRequire("e5vJd").isError)(t.originalException))return e;var r,n=t.originalException.name||t.originalException.constructor.name,o=this._extractErrorData(t.originalException);if(o){var i=(0,parcelRequire("fQsf7").__assign)({},e.contexts),a=(0,parcelRequire("2c6Gr").normalize)(o,this._options.depth);return(0,parcelRequire("e5vJd").isPlainObject)(a)&&(i=(0,parcelRequire("fQsf7").__assign)((0,parcelRequire("fQsf7").__assign)({},e.contexts),((r={})[n]=(0,parcelRequire("fQsf7").__assign)({},a),r))),(0,parcelRequire("fQsf7").__assign)((0,parcelRequire("fQsf7").__assign)({},e),{contexts:i})}return e},e.prototype._extractErrorData=function(e){var t,r,n,o;try{var i=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],a={};try{for(var s=(0,parcelRequire("fQsf7").__values)(Object.keys(e)),c=s.next();!c.done;c=s.next()){var u=c.value;if(-1===i.indexOf(u)){var l=e[u];a[u]=(0,parcelRequire("e5vJd").isError)(l)?l.toString():l}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}if("function"==typeof e.toJSON){var p=e.toJSON();try{for(var f=(0,parcelRequire("fQsf7").__values)(Object.keys(p)),d=f.next();!d.done;d=f.next()){var u=d.value,l=p[u];a[u]=(0,parcelRequire("e5vJd").isError)(l)?l.toString():l}}catch(e){n={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}}return a}catch(e){parcelRequire("sNhdY").IS_DEBUG_BUILD&&parcelRequire("gFNZ6").logger.error("Unable to extract extra data from the Error object:",e)}return null},e.id="ExtraErrorData",e}()}),parcelRegister("aNbFH",function(e,t){$parcel$export(e.exports,"Transaction",()=>r);var r=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,r){t(function(t){var n=r().getIntegration(e);return n?n.process(t):t})},e.prototype.process=function(e){for(var t=this._getFramesFromEvent(e),r=t.length-1;r>=0;r--){var n=t[r];if(!0===n.in_app){e.transaction=this._getTransaction(n);break}}return e},e.prototype._getFramesFromEvent=function(e){var t=e.exception&&e.exception.values&&e.exception.values[0];return t&&t.stacktrace&&t.stacktrace.frames||[]},e.prototype._getTransaction=function(e){return e.module||e.function?(e.module||"?")+"/"+(e.function||"?"):""},e.id="Transaction",e}()}),parcelRegister("3kF8k",function(e,t){$parcel$export(e.exports,"meros",()=>n);var r=new TextDecoder;async function n(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;let n=e.headers.get("content-type");if(!n||!~n.indexOf("multipart/"))return e;let o=n.indexOf("boundary="),i="-";if(~o){let e=o+9,t=n.indexOf(";",e);i=n.slice(e,t>-1?t:void 0).trim().replace(/"/g,"")}return async function*(e,t,n){let o,i,a,s=e.getReader(),c=!n||!n.multiple,u=t.length,l="",p=[];try{let e;r:for(;!(e=await s.read()).done;){let n=r.decode(e.value);o=l.length,l+=n;let s=n.indexOf(t);for(~s?o+=s:o=l.indexOf(t),p=[];~o;){let e=l.slice(0,o),r=l.slice(o+u);if(i){let t=e.indexOf("\r\n\r\n")+4,n=e.lastIndexOf("\r\n",t),o=!1,i=e.slice(t,n>-1?void 0:n),s=String(e.slice(0,t)).trim().split("\r\n"),u={},l=s.length;for(;a=s[--l];u[(a=a.split(": ")).shift().toLowerCase()]=a.join(": "));if((a=u["content-type"])&&~a.indexOf("application/json"))try{i=JSON.parse(i),o=!0}catch(e){}if(a={headers:u,body:i,json:o},c?yield a:p.push(a),"--"===r.slice(0,2))break r}else t="\r\n"+t,i=u+=2;o=(l=r).indexOf(t)}p.length&&(yield p)}}finally{p.length&&(yield p),await s.cancel()}}(e.body,`--${i}`,t)}}),parcelRegister("cHHXl",function(e,t){$parcel$export(e.exports,"useInView",()=>O);var r=parcelRequire("gwFzn");function n(){return(n=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}var s=new Map,c=new WeakMap,u=0,l=void 0;function p(e){return e?(c.has(e)||(u+=1,c.set(e,u.toString())),c.get(e)):"0"}function f(e){return Object.keys(e).sort().filter(function(t){return void 0!==e[t]}).map(function(t){return t+"_"+("root"===t?p(e.root):e[t])}).toString()}function d(e){var t=f(e),r=s.get(t);if(!r){var n,o=new Map,i=new IntersectionObserver(function(t){t.forEach(function(t){var r,i=t.isIntersecting&&n.some(function(e){return t.intersectionRatio>=e});e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(r=o.get(t.target))||r.forEach(function(e){e(i,t)})})},e);n=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:i,elements:o},s.set(t,r)}return r}function h(e,t,r,n){if(void 0===r&&(r={}),void 0===n&&(n=l),void 0===window.IntersectionObserver&&void 0!==n){var o=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),function(){}}var i=d(r),a=i.id,c=i.observer,u=i.elements,p=u.get(e)||[];return u.has(e)||u.set(e,p),p.push(t),c.observe(e),function(){p.splice(p.indexOf(t),1),0===p.length&&(u.delete(e),c.unobserve(e)),0===u.size&&(c.disconnect(),s.delete(a))}}var b=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function M(e){return"function"!=typeof e.children}var z=function(e){function t(t){var r;return(r=e.call(this,t)||this).node=null,r._unobserveCb=null,r.handleNode=function(e){r.node&&(r.unobserve(),e||r.props.triggerOnce||r.props.skip||r.setState({inView:!!r.props.initialInView,entry:void 0})),r.node=e||null,r.observeNode()},r.handleChange=function(e,t){e&&r.props.triggerOnce&&r.unobserve(),M(r.props)||r.setState({inView:e,entry:t}),r.props.onChange&&r.props.onChange(e,t)},r.state={inView:!!t.initialInView,entry:void 0},r}o(t,e);var i=t.prototype;return i.componentDidUpdate=function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},i.componentWillUnmount=function(){this.unobserve(),this.node=null},i.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,r=e.root,n=e.rootMargin,o=e.trackVisibility,i=e.delay,a=e.fallbackInView;this._unobserveCb=h(this.node,this.handleChange,{threshold:t,root:r,rootMargin:n,trackVisibility:o,delay:i},a)}},i.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},i.render=function(){if(!M(this.props)){var e=this.state,t=e.inView,o=e.entry;return this.props.children({inView:t,entry:o,ref:this.handleNode})}var i=this.props,s=i.children,c=i.as,u=a(i,b);return r.createElement(c||"div",n({ref:this.handleNode},u),s)},t}(r.Component);function O(e){var t=void 0===e?{}:e,n=t.threshold,o=t.delay,i=t.trackVisibility,a=t.rootMargin,s=t.root,c=t.triggerOnce,u=t.skip,l=t.initialInView,p=t.fallbackInView,f=r.useRef(),d=r.useState({inView:!!l}),b=d[0],M=d[1],z=r.useCallback(function(e){void 0!==f.current&&(f.current(),f.current=void 0),!u&&e&&(f.current=h(e,function(e,t){M({inView:e,entry:t}),t.isIntersecting&&c&&f.current&&(f.current(),f.current=void 0)},{root:s,rootMargin:a,threshold:n,trackVisibility:i,delay:o},p))},[Array.isArray(n)?n.toString():n,s,a,c,u,i,p,o]);(0,r.useEffect)(function(){f.current||!b.entry||c||u||M({inView:!!l})});var O=[z,b.inView,b.entry];return O.ref=O[0],O.inView=O[1],O.entry=O[2],O}z.displayName="InView",z.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}}),parcelRegister("RUXAI",function(e,t){$parcel$export(e.exports,"di",()=>d);var r=parcelRequire("gwFzn");let n=new WeakMap,o="react-magnetic-di",i=()=>({unused:new Map,used:new Set,provided:new Set}),a={state:i(),set(e){var t;for(let t of this.state.unused.keys())t.from===e.from&&this.state.unused.delete(t);this.state.unused.set(e,Error(`Unused "di" injectable: ${(null==(t=e.value)?void 0:t.displayName)||e.value}.`,{cause:e.cause})),e.cause=null},track(e){e&&(this.state.unused.delete(e),this.state.used.add(e),this.state.provided.add(e.from))},reset(){this.state=i()},unused(){return Array.from(this.state.unused.entries()).map(([e,t])=>({get:()=>e.value,error:()=>t}))}};function s(e,t){let r=n.get(t);if(!r)throw Error(`Seems like you are trying to use "${t}" as injectable, but magnetic-di needs the return value of "injectable()"`);return r.track&&a.set(r),e.has(r.from)?e.get(r.from).add(r):e.set(r.from,new Set([r])),e}function c(e,t){let r=n.get(t),o=e.get(r.from)||new Set;1===o.size?e.delete(r.from):o.delete(r)}function u(e,t,r){let n=e.get(t)||new Set,o=null,i=null;for(let e of n){var s;e.targets||(o=e),null!=(s=e.targets)&&s.includes(r)&&(i=e)}let c=i||o;return a.track(c),c}let l=new Map,p={getDependencies:(e,t)=>e.map(e=>{let r=u(l,e,t);return r?r.value:e}),use(e){if(l.size)throw Error(`${o} has replacements configured already. Implicit merging is not supported, so please concatenate injectables. If this is not expected, please file a bug report`);e.forEach(e=>s(l,e))},clear(){l.clear()},_fromProvider(e,t={}){e.forEach(e=>{(t.global||n.get(e).global)&&s(l,e)})},_remove(e){e.forEach(e=>c(l,e))}},f=$parcel$interopDefault(r).createContext({getDependencies:p.getDependencies});function d(e,t){if(Array.isArray(e)){let{getDependencies:r}=f._currentRenderer2&&f._currentValue2||f._currentValue||p;return r(e,t)}}}),parcelRegister("bxoVL",function(e,t){e.exports=parcelRequire("cUrF8")}),parcelRegister("cUrF8",function(e,t){$parcel$export(e.exports,"useSyncExternalStoreWithSelector",()=>r,e=>r=e);var r,n=parcelRequire("gwFzn"),o=parcelRequire("le4qT");function i(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var a="function"==typeof Object.is?Object.is:i,s=o.useSyncExternalStore,c=n.useRef,u=n.useEffect,l=n.useMemo,p=n.useDebugValue;r=function(e,t,r,n,o){var i=c(null);if(null===i.current){var f={hasValue:!1,value:null};i.current=f}else f=i.current;var d=s(e,(i=l(function(){function e(e){if(!c){if(c=!0,i=e,e=n(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,a(i,e))return t;var r=n(e);return void 0!==o&&o(t,r)?t:(i=e,s=r)}var i,s,c=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,o]))[0],i[1]);return u(function(){f.hasValue=!0,f.value=d},[d]),p(d),d}}),parcelRegister("fp8VN",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var r=function(){function e(e,t){for(var r=0;rc);var r=function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)return{value:Math.round(z),unit:"year"};var O=12*z+b.getMonth()-M.getMonth();return Math.round(Math.abs(O))>0?{value:Math.round(O),unit:"month"}:{value:Math.round(p/s),unit:"week"}}var u={second:45,minute:45,hour:22,day:5}}),parcelRegister("gUu2y",function(e,t){$parcel$export(e.exports,"default",()=>eK);var r,n,o=parcelRequire("gwFzn");function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},u=["style","script"],l=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,p=/mailto:/i,f=/\n{2,}$/,d=/^(\s*>[\s\S]*?)(?=\n{2,})/,h=/^ *> ?/gm,b=/^ {2,}\n/,M=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,z=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,O=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,m=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,g=/^(?:\n *)*\n/,A=/\r\n?/g,v=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,y=/^\[\^([^\]]+)]/,_=/\f/g,q=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,x=/^\s*?\[(x|\s)\]/,w=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,R=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,S=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,W=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,k=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,E=/^)/,L=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,N=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,C=/^\{.*\}$/,T=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,D=/^<([^ >]+@[^ >]+)>/,B=/^<([^ >]+:\/[^ >]+)>/,I=/-([a-z])?/gi,P=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,F=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,j=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,X=/^\[([^\]]*)\] ?\[([^\]]*)\]/,U=/(\[|\])/g,H=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,V=/\t/g,G=/(^ *\||\| *$)/g,Y=/^ *:-+: *$/,K=/^ *:-+ *$/,Q=/^ *-+: *$/,$="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",Z=RegExp(`^([*_])\\1${$}\\1\\1(?!\\1)`),J=RegExp(`^([*_])${$}\\1(?!\\1|\\w)`),ee=RegExp(`^==${$}==`),et=RegExp(`^~~${$}~~`),er=/^\\([^0-9A-Za-z\s])/,en=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,eo=/^\n+/,ei=/^([ \t]*)/,ea=/\\([^\\])/g,es=/ *\n+$/,ec=/(?:^|\n)( *)$/,eu="(?:\\d+\\.)",el="(?:[*+-])";function ep(e){return"( *)("+(1===e?eu:el)+") +"}let ef=ep(1),ed=ep(2);function eh(e){return RegExp("^"+(1===e?ef:ed))}let eb=eh(1),eM=eh(2);function ez(e){return RegExp("^"+(1===e?ef:ed)+"[^\\n]*(?:\\n(?!\\1"+(1===e?eu:el)+" )[^\\n]*)*(\\n|$)","gm")}let eO=ez(1),em=ez(2);function eg(e){let t=1===e?eu:el;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}let eA=eg(1),ev=eg(2);function ey(e,t){let r=1===t,n=r?eA:ev,o=r?eO:em,i=r?eb:eM;return{match(e,t,r){let o=ec.exec(r);return o&&(t.list||!t.inline&&!t.simple)?n.exec(e=o[1]+e):null},order:1,parse(e,t,n){let a=r?+e[2]:void 0,s=e[0].replace(f,"\n").match(o),c=!1;return{items:s.map(function(e,r){let o,a=RegExp("^ {1,"+i.exec(e)[0].length+"}","gm"),u=e.replace(a,"").replace(i,""),l=r===s.length-1,p=-1!==u.indexOf("\n\n")||l&&c;c=p;let f=n.inline,d=n.list;n.list=!0,p?(n.inline=!1,o=u.replace(es,"\n\n")):(n.inline=!0,o=u.replace(es,""));let h=t(o,n);return n.inline=f,n.list=d,h}),ordered:r,start:a}},render:(t,r,n)=>e(t.ordered?"ol":"ul",{key:n.key,start:"20"===t.type?t.start:void 0},t.items.map(function(t,o){return e("li",{key:o},r(t,n))}))}}let e_=RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),eq=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,ex=[d,z,O,w,S,R,E,P,eO,eA,em,ev],ew=[...ex,/^[^\n]+(?: \n|\n{2,})/,W,N];function eR(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function eS(e){return Q.test(e)?"right":Y.test(e)?"center":K.test(e)?"left":null}function eW(e,t,r,n){let o=r.inTable;r.inTable=!0;let i=e.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce((e,o)=>("|"===o.trim()?e.push(n?{type:"26"}:{type:"27",text:o}):""!==o&&e.push.apply(e,t(o,r)),e),[]);r.inTable=o;let a=[[]];return i.forEach(function(e,t){"26"===e.type?0!==t&&t!==i.length-1&&a.push([]):("27"!==e.type||null!=i[t+1]&&"26"!==i[t+1].type||(e.text=e.text.trimEnd()),a[a.length-1].push(e))}),a}function ek(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(G,"").split("|").map(eS):[],o=e[3]?function(e,t,r){return e.trim().split("\n").map(function(e){return eW(e,t,r,!0)})}(e[3],t,r):[],i=eW(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:i,type:"25"}:{children:i,type:"21"}}function eE(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function eL(e){return function(t,r){return r.inline?e.exec(t):null}}function eN(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function eC(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function eT(e){return function(t){return e.exec(t)}}function eD(e,t,r){if(t.inline||t.simple||r&&!r.endsWith("\n"))return null;let n="";e.split("\n").every(e=>!ex.some(t=>t.test(e))&&(n+=e+"\n",e.trim()));let o=n.trimEnd();return""==o?null:[n,o]}function eB(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function eI(e){return e.replace(ea,"$1")}function eP(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let i=e(t,r);return r.inline=n,r.simple=o,i}function eF(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let i=e(t,r);return r.inline=n,r.simple=o,i}function ej(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}let eX=(e,t,r)=>({children:eP(t,e[1],r)});function eU(){return{}}function eH(){return null}function eV(...e){return e.filter(Boolean).join(" ")}function eG(e,t,r){let n=e,o=t.split(".");for(;o.length&&void 0!==(n=n[o[0]]);)o.shift();return n||r}function eY(e="",t={}){var r;t.overrides=t.overrides||{},t.slugify=t.slugify||eR,t.namedCodesToUnicode=t.namedCodesToUnicode?i({},c,t.namedCodesToUnicode):c;let n=t.createElement||o.createElement;function a(e,r,...o){let s=eG(t.overrides,`${e}.props`,{});return n(function(e,t){let r=eG(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:eG(t,`${e}.component`,e):e}(e,t.overrides),i({},r,s,{className:eV(null==r?void 0:r.className,s.className)||void 0}),...o)}function f(e){let r;e=e.replace(q,"");let n=!1;t.forceInline?n=!0:t.forceBlock||(n=!1===H.test(e));let i=ea($(n?e:`${e.trimEnd().replace(eo,"")} `,{inline:n}));for(;"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===t.wrapper)return i;let s=t.wrapper||(n?"span":"div");if(i.length>1||t.forceWrapper)r=i;else{if(1===i.length)return"string"==typeof(r=i[0])?a("span",{key:"outer"},r):r;r=null}return o.createElement(s,{key:"outer"},r)}function G(e){let t=e.match(l);return t?t.reduce(function(e,t,r){let n=t.indexOf("=");if(-1!==n){let i=(function(e){return -1!==e.indexOf("-")&&null===e.match(L)&&(e=e.replace(I,function(e,t){return t.toUpperCase()})),e})(t.slice(0,n)).trim(),a=function(e){let t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(t.slice(n+1).trim()),c=s[i]||i,u=e[c]=function(e,t){return"style"===e?t.split(/;\s?/).reduce(function(e,t){let r=t.slice(0,t.indexOf(":"));return e[r.trim().replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=t.slice(r.length+1).trim(),e},{}):"href"===e||"src"===e?eB(t):(t.match(C)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(i,a);"string"==typeof u&&(W.test(u)||N.test(u))&&(e[c]=o.cloneElement(f(u.trim()),{key:r}))}else"style"!==t&&(e[s[t]||t]=!0);return e},{}):null}let Y=[],K={},Q={0:{match:eC(d),order:1,parse:(e,t,r)=>({children:t(e[0].replace(h,""),r)}),render:(e,t,r)=>a("blockquote",{key:r.key},t(e.children,r))},1:{match:eT(b),order:1,parse:eU,render:(e,t,r)=>a("br",{key:r.key})},2:{match:eC(M),order:1,parse:eU,render:(e,t,r)=>a("hr",{key:r.key})},3:{match:eC(O),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,r)=>a("pre",{key:r.key},a("code",i({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},4:{match:eC(z),order:0,parse:e=>({attrs:G(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"})},5:{match:eN(m),order:3,parse:e=>({text:e[2]}),render:(e,t,r)=>a("code",{key:r.key},e.text)},6:{match:eC(v),order:0,parse:e=>(Y.push({footnote:e[2],identifier:e[1]}),{}),render:eH},7:{match:eL(y),order:1,parse:e=>({target:`#${t.slugify(e[1])}`,text:e[1]}),render:(e,t,r)=>a("a",{key:r.key,href:eB(e.target)},a("sup",{key:r.key},e.text))},8:{match:eL(x),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,r)=>a("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"})},9:{match:eC(t.enforceAtxHeadings?R:w),order:1,parse:(e,r,n)=>({children:eP(r,e[2],n),id:t.slugify(e[2]),level:e[1].length}),render:(e,t,r)=>a(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r))},10:{match:eC(S),order:0,parse:(e,t,r)=>({children:eP(t,e[1],r),level:"="===e[2]?1:2,type:"9"})},11:{match:eT(W),order:1,parse(e,t,r){var n;let[,o]=e[3].match(ei),i=RegExp(`^${o}`,"gm"),a=e[3].replace(i,""),s=(n=a,ew.some(e=>e.test(n))?ej:eP),c=e[1].toLowerCase(),l=-1!==u.indexOf(c),p={attrs:G(e[2]),noInnerParse:l,tag:(l?c:e[1]).trim()};return r.inAnchor=r.inAnchor||"a"===c,l?p.text=e[3]:p.children=s(t,a,r),r.inAnchor=!1,p},render:(e,t,r)=>a(e.tag,i({key:r.key},e.attrs),e.text||t(e.children,r))},13:{match:eT(N),order:1,parse:e=>({attrs:G(e[2]||""),tag:e[1].trim()}),render:(e,t,r)=>a(e.tag,i({},e.attrs,{key:r.key}))},12:{match:eT(E),order:1,parse:()=>({}),render:eH},14:{match:eN(eq),order:1,parse:e=>({alt:e[1],target:eI(e[2]),title:e[3]}),render:(e,t,r)=>a("img",{key:r.key,alt:e.alt||void 0,title:e.title||void 0,src:eB(e.target)})},15:{match:eL(e_),order:3,parse:(e,t,r)=>({children:eF(t,e[1],r),target:eI(e[2]),title:e[3]}),render:(e,t,r)=>a("a",{key:r.key,href:eB(e.target),title:e.title},t(e.children,r))},16:{match:eL(B),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],type:"15"})},17:{match:(e,t)=>t.inAnchor?null:eL(T)(e,t),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},18:{match:eL(D),order:0,parse(e){let t=e[1],r=e[1];return p.test(r)||(r="mailto:"+r),{children:[{text:t.replace("mailto:",""),type:"27"}],target:r,type:"15"}}},20:ey(a,1),33:ey(a,2),19:{match:eC(g),order:3,parse:eU,render:()=>"\n"},21:{match:eD,order:3,parse:eX,render:(e,t,r)=>a("p",{key:r.key},t(e.children,r))},22:{match:eL(F),order:0,parse:e=>(K[e[1]]={target:e[2],title:e[4]},{}),render:eH},23:{match:eN(j),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,t,r)=>K[e.ref]?a("img",{key:r.key,alt:e.alt,src:eB(K[e.ref].target),title:K[e.ref].title}):null},24:{match:eL(X),order:0,parse:(e,t,r)=>({children:t(e[1],r),fallbackChildren:t(e[0].replace(U,"\\$1"),r),ref:e[2]}),render:(e,t,r)=>K[e.ref]?a("a",{key:r.key,href:eB(K[e.ref].target),title:K[e.ref].title},t(e.children,r)):a("span",{key:r.key},t(e.fallbackChildren,r))},25:{match:eC(P),order:1,parse:ek,render(e,t,r){let n=e;return a("table",{key:r.key},a("thead",null,a("tr",null,n.header.map(function(e,o){return a("th",{key:o,style:eE(n,o)},t(e,r))}))),a("tbody",null,n.cells.map(function(e,o){return a("tr",{key:o},e.map(function(e,o){return a("td",{key:o,style:eE(n,o)},t(e,r))}))})))}},27:{match:eT(en),order:4,parse:e=>({text:e[0].replace(k,(e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e)}),render:e=>e.text},28:{match:eN(Z),order:2,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,r)=>a("strong",{key:r.key},t(e.children,r))},29:{match:eN(J),order:3,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,r)=>a("em",{key:r.key},t(e.children,r))},30:{match:eN(er),order:1,parse:e=>({text:e[1],type:"27"})},31:{match:eN(ee),order:3,parse:eX,render:(e,t,r)=>a("mark",{key:r.key},t(e.children,r))},32:{match:eN(et),order:3,parse:eX,render:(e,t,r)=>a("del",{key:r.key},t(e.children,r))}};!0===t.disableParsingRawHTML&&(delete Q[11],delete Q[13]);let $=function(e){let t=Object.keys(e);function r(n,o){let i=[],a="";for(;n;){let s=0;for(;si(r,n,o),r,n,o):i(r,n,o)}}(Q,t.renderRule),function e(t,n={}){if(Array.isArray(t)){let r=n.key,o=[],i=!1;for(let r=0;r{let{children:t="",options:r}=e,n=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,a);return o.cloneElement(eY(t,r),n)}}),parcelRegister("6qIXK",function(e,t){!function(){var t={}.hasOwnProperty;function r(){for(var e=[],n=0;nr);function r(e,t){if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(let n=0;n=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){var n=e.slice(t);return(r.re.mailto||(r.re.mailto=RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n))?n.match(r.re.mailto)[0].length:0}}},f="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",d="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function h(e){e.__index__=-1,e.__text_cache__=""}function b(e){return function(t,r){var n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function M(){return function(e,t){t.normalize(e)}}function z(e){var t=e.re=parcelRequire("ksMNy")(e.__opts__),r=e.__tlds__.slice();function n(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(f),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");var u=[];function l(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var r=e.__schemas__[t];if(null!==r){var n={validate:null,link:null};if(e.__compiled__[t]=n,i(r)){a(r.validate)?n.validate=b(r.validate):s(r.validate)?n.validate=r.validate:l(t,r),s(r.normalize)?n.normalize=r.normalize:r.normalize?l(t,r):n.normalize=M();return}if(o(r))return void u.push(t);l(t,r)}}),u.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:M()};var p=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(c).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+p+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+p+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),h(e)}function O(e,t){var r=e.__index__,n=e.__last_index__,o=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=o,this.text=o,this.url=o}function m(e,t){var r=new O(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function g(e,t){if(!(this instanceof g))return new g(e,t);!t&&l(e)&&(t=e,e={}),this.__opts__=r({},u,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},p,e),this.__compiled__={},this.__tlds__=d,this.__tlds_replaced__=!1,this.re={},z(this)}g.prototype.add=function(e,t){return this.__schemas__[e]=t,z(this),this},g.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},g.prototype.test=function(e){var t,r,n,o,i,a,s,c;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c=0&&null!==(n=e.match(this.re.email_fuzzy))&&(i=n.index+n[1].length,a=n.index+n[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),this.__index__>=0},g.prototype.pretest=function(e){return this.re.pretest.test(e)},g.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},g.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(m(this,t)),t=this.__last_index__);for(var n=t?e.slice(t):e;this.test(n);)r.push(m(this,t)),n=n.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null},g.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,r){return e!==r[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),z(this),this},g.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},g.prototype.onCompile=function(){},e.exports=g}),parcelRegister("ksMNy",function(e,t){e.exports=function(e){var t={};t.src_Any=parcelRequire("6zGl4").source,t.src_Cc=parcelRequire("im6eO").source,t.src_Z=parcelRequire("9mUTK").source,t.src_P=parcelRequire("02PyJ").source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}}),parcelRegister("1bQQV",function(e,t){var r,n,o,i,a,s=parcelRequire("3mTvL");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function W(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function k(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function E(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}R("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),R("ERR_INVALID_ARG_TYPE",function(e,t,r){if(void 0===n&&(n=parcelRequire("1bQQV")),n("string"==typeof e,"'name' must be a string"),"string"==typeof t&&W(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be",k(e," argument"))i="The ".concat(e," ").concat(o," ").concat(S(t,"type"));else{var o,i,a=E(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(o," ").concat(S(t,"type"))}return i+". Received type ".concat(h(r))},TypeError),R("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===o&&(o=parcelRequire("5bFV1"));var n=o.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError),R("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return n=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(h(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError),R("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=Array(e),r=0;r0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")},TypeError);var L=r=w,N=L.ERR_AMBIGUOUS_ARGUMENT,C=L.ERR_INVALID_ARG_TYPE,T=L.ERR_INVALID_ARG_VALUE,D=L.ERR_INVALID_RETURN_VALUE,B=L.ERR_MISSING_ARGS,I={},s=parcelRequire("3mTvL");function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function F(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function eu(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}var el="",ep="",ef="",ed="",eh={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},eb=10;function eM(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function ez(e){return ea(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function eO(e,t,r){var n="",o="",i=0,a="",c=!1,u=ez(e),l=u.split("\n"),p=ez(t).split("\n"),f=0,d="";if("strictEqual"===r&&"object"===eo(e)&&"object"===eo(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===p.length&&l[0]!==p[0]){var h=l[0].length+p[0].length;if(h<=eb){if(("object"!==eo(e)||null===e)&&("object"!==eo(t)||null===t)&&(0!==e||0!==t))return"".concat(eh[r],"\n\n")+"".concat(l[0]," !== ").concat(p[0],"\n")}else if("strictEqualObject"!==r&&h<(s.stderr&&s.stderr.isTTY?s.stderr.columns:80)){for(;l[0][f]===p[0][f];)f++;f>2&&(d="\n ".concat(eu(" ",f),"^"),f=0)}}for(var b=l[l.length-1],M=p[p.length-1];b===M&&(f++<2?a="\n ".concat(b).concat(a):n=b,l.pop(),p.pop(),0!==l.length&&0!==p.length);)b=l[l.length-1],M=p[p.length-1];var z=Math.max(l.length,p.length);if(0===z){var O=u.split("\n");if(O.length>30)for(O[26]="".concat(el,"...").concat(ed);O.length>27;)O.pop();return"".concat(eh.notIdentical,"\n\n").concat(O.join("\n"),"\n")}f>3&&(a="\n".concat(el,"...").concat(ed).concat(a),c=!0),""!==n&&(a="\n ".concat(n).concat(a),n="");var m=0,g=eh[r]+"\n".concat(ep,"+ actual").concat(ed," ").concat(ef,"- expected").concat(ed),A=" ".concat(el,"...").concat(ed," Lines skipped");for(f=0;f1&&f>2&&(v>4?(o+="\n".concat(el,"...").concat(ed),c=!0):v>3&&(o+="\n ".concat(p[f-2]),m++),o+="\n ".concat(p[f-1]),m++),i=f,n+="\n".concat(ef,"-").concat(ed," ").concat(p[f]),m++;else if(p.length1&&f>2&&(v>4?(o+="\n".concat(el,"...").concat(ed),c=!0):v>3&&(o+="\n ".concat(l[f-2]),m++),o+="\n ".concat(l[f-1]),m++),i=f,o+="\n".concat(ep,"+").concat(ed," ").concat(l[f]),m++;else{var y=p[f],_=l[f],q=_!==y&&(!ec(_,",")||_.slice(0,-1)!==y);q&&ec(y,",")&&y.slice(0,-1)===_&&(q=!1,_+=","),q?(v>1&&f>2&&(v>4?(o+="\n".concat(el,"...").concat(ed),c=!0):v>3&&(o+="\n ".concat(l[f-2]),m++),o+="\n ".concat(l[f-1]),m++),i=f,o+="\n".concat(ep,"+").concat(ed," ").concat(_),n+="\n".concat(ef,"-").concat(ed," ").concat(y),m+=2):(o+=n,n="",(1===v||0===f)&&(o+="\n ".concat(_),m++))}if(m>20&&f30)for(f[26]="".concat(el,"...").concat(ed);f.length>27;)f.pop();t=1===f.length?r.call(this,"".concat(p," ").concat(f[0])):r.call(this,"".concat(p,"\n\n").concat(f.join("\n"),"\n"))}else{var d=ez(c),h="",b=eh[i];"notDeepEqual"===i||"notEqual"===i?(d="".concat(eh[i],"\n\n").concat(d)).length>1024&&(d="".concat(d.slice(0,1021),"...")):(h="".concat(ez(u)),d.length>512&&(d="".concat(d.slice(0,509),"...")),h.length>512&&(h="".concat(h.slice(0,509),"...")),"deepEqual"===i||"equal"===i?d="".concat(b,"\n\n").concat(d,"\n\nshould equal\n\n"):h=" ".concat(i," ").concat(h)),t=r.call(this,"".concat(d).concat(h))}return Error.stackTraceLimit=l,t.generatedMessage=!o,Object.defineProperty($(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=c,t.expected=u,t.operator=i,Error.captureStackTrace&&Error.captureStackTrace($(t),a),t.stack,t.name="AssertionError",Q(t)}return H(n,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return ea(this,F(F({},t),{},{customInspect:!1,depth:0}))}}]),n}(Z(Error),ea.custom);var ei=parcelRequire("5bFV1"),em=ei.inspect,ei=parcelRequire("5bFV1"),eg=ei.types,eA=eg.isPromise,ev=eg.isRegExp,ey=parcelRequire("jPCRA")(),e_=parcelRequire("6mSf3")(),eq=parcelRequire("Ydt8k")("RegExp.prototype.test");function ex(){var e=parcelRequire("aHVXt");i=e.isDeepEqual,a=e.isDeepStrictEqual}var ew=!1,eR=e.exports=eL,eS={};function eW(e){if(e.message instanceof Error)throw e.message;throw new I(e)}function ek(e,t,r,n,o){var i,a=arguments.length;if(0===a?i="Failed":1===a?(r=e,e=void 0):(!1===ew&&(ew=!0,(s.emitWarning?s.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===a&&(n="!=")),r instanceof Error)throw r;var c={actual:e,expected:t,operator:void 0===n?"fail":n,stackStartFn:o||ek};void 0!==r&&(c.message=r);var u=new I(c);throw i&&(u.message=i,u.generatedMessage=!0),u}function eE(e,t,r,n){if(!r){var o=!1;if(0===t)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new I({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function eL(){for(var e=arguments.length,t=Array(e),r=0;r1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),c=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),O(r)?n.showHidden=r:r&&e.exports._extend(n,r),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),p(n,t,n.depth)}function c(e,t){var r=s.styles[t];return r?"\x1b["+s.colors[r][0]+"m"+e+"\x1b["+s.colors[r][1]+"m":e}function u(e,t){return e}function l(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function p(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.exports.inspect&&!(r.constructor&&r.constructor.prototype===r)){var o,i=r.inspect(n,t);return v(i)||(i=p(t,i,n)),i}var a=f(t,r);if(a)return a;var s=Object.keys(r),c=l(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(r)),R(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(r);if(0===s.length){if(S(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(q(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return t.stylize(Date.prototype.toString.call(r),"date");if(R(r))return d(r)}var O="",m=!1,g=["{","}"];if(z(r)&&(m=!0,g=["[","]"]),S(r)&&(O=" [Function"+(r.name?": "+r.name:"")+"]"),q(r)&&(O=" "+RegExp.prototype.toString.call(r)),w(r)&&(O=" "+Date.prototype.toUTCString.call(r)),R(r)&&(O=" "+d(r)),0===s.length&&(!m||0==r.length))return g[0]+O+g[1];if(n<0)if(q(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");else return t.stylize("[Object]","special");return t.seen.push(r),o=m?h(t,r,n,c,s):s.map(function(e){return b(t,r,n,c,e,m)}),t.seen.pop(),M(o,O,g)}function f(e,t){if(_(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return A(t)?e.stylize(""+t,"number"):O(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,o){for(var i=[],a=0,s=t.length;ae.seen.indexOf(c.value)?(s=m(r)?p(e,c.value,null):p(e,c.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),_(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function M(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function z(e){return Array.isArray(e)}function O(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return null==e}function A(e){return"number"==typeof e}function v(e){return"string"==typeof e}function y(e){return"symbol"==typeof e}function _(e){return void 0===e}function q(e){return x(e)&&"[object RegExp]"===k(e)}function x(e){return"object"==typeof e&&null!==e}function w(e){return x(e)&&"[object Date]"===k(e)}function R(e){return x(e)&&("[object Error]"===k(e)||e instanceof Error)}function S(e){return"function"==typeof e}function W(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function k(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}e.exports.debuglog=function(t){if(!i[t=t.toUpperCase()])if(a.test(t)){var n=r.pid;i[t]=function(){var r=e.exports.format.apply(e.exports,arguments);console.error("%s %d: %s",t,n,r)}}else i[t]=function(){};return i[t]},e.exports.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.exports.types=parcelRequire("92QEi"),e.exports.isArray=z,e.exports.isBoolean=O,e.exports.isNull=m,e.exports.isNullOrUndefined=g,e.exports.isNumber=A,e.exports.isString=v,e.exports.isSymbol=y,e.exports.isUndefined=_,e.exports.isRegExp=q,e.exports.types.isRegExp=q,e.exports.isObject=x,e.exports.isDate=w,e.exports.types.isDate=w,e.exports.isError=R,e.exports.types.isNativeError=R,e.exports.isFunction=S,e.exports.isPrimitive=W,e.exports.isBuffer=parcelRequire("75qvH");var L=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),L[e.getMonth()],t].join(" ")}function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports.log=function(){console.log("%s - %s",N(),e.exports.format.apply(e.exports,arguments))},e.exports.inherits=parcelRequire("cNocx"),e.exports._extend=function(e,t){if(!t||!x(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function B(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n=0&&"[object Array]"!==c(e)&&"[object Function]"===c(e.callee)},p=function(){return u(arguments)}();u.isLegacyArguments=l,i=p?u:l;var f={},d=Object.prototype.toString,h=Function.prototype.toString,b=/^\s*(?:function)?\*/,M=parcelRequire("2PTEi")(),z=Object.getPrototypeOf,O=function(){if(!M)return!1;try{return Function("return function*() {}")()}catch(e){}};f=function(e){if("function"!=typeof e)return!1;if(b.test(h.call(e)))return!0;if(!M)return"[object GeneratorFunction]"===d.call(e);if(!z)return!1;if(void 0===r){var t=O();r=!!t&&z(t)}return z(e)===r};var m={},g={},A={},v=Function.prototype.toString,y="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof y&&"function"==typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw o}}),o={},y(function(){throw 42},null,n)}catch(e){e!==o&&(y=null)}else y=null;var _=/^\s*class\b/,q=function(e){try{var t=v.call(e);return _.test(t)}catch(e){return!1}},x=function(e){try{if(q(e))return!1;return v.call(e),!0}catch(e){return!1}},w=Object.prototype.toString,R="[object Object]",S="[object Function]",W="[object GeneratorFunction]",k="[object HTMLAllCollection]",E="[object HTML document.all class]",L="[object HTMLCollection]",N="function"==typeof Symbol&&!!Symbol.toStringTag,C=!(0 in[,]),T=function(){return!1};if("object"==typeof document){var D=document.all;w.call(D)===w.call(document.all)&&(T=function(e){if((C||!e)&&(void 0===e||"object"==typeof e))try{var t=w.call(e);return(t===k||t===E||t===L||t===R)&&null==e("")}catch(e){}return!1})}A=y?function(e){if(T(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{y(e,null,n)}catch(e){if(e!==o)return!1}return!q(e)&&x(e)}:function(e){if(T(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(N)return x(e);if(q(e))return!1;var t=w.call(e);return(t===S||t===W||!!/^\[object HTML/.test(t))&&x(e)};var B=Object.prototype.toString,I=Object.prototype.hasOwnProperty,P=function(e,t,r){for(var n=0,o=e.length;n=3&&(n=r),"[object Array]"===B.call(e)?P(e,t,n):"string"==typeof e?F(e,t,n):j(e,t,n)};var X={},U={};U=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"];var H="undefined"==typeof globalThis?$parcel$global:globalThis;X=function(){for(var e=[],t=0;t-1?t:"Object"===t&&er(e)}return parcelRequire("dYSQm")?et(e):null};var en={};function eo(e){return e.call.bind(e)}en=function(e){return!!m(e)};var ei="undefined"!=typeof BigInt,ea="undefined"!=typeof Symbol,es=eo(Object.prototype.toString),ec=eo(Number.prototype.valueOf),eu=eo(String.prototype.valueOf),el=eo(Boolean.prototype.valueOf);if(ei)var ep=eo(BigInt.prototype.valueOf);if(ea)var ef=eo(Symbol.prototype.valueOf);function ed(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function eh(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function eb(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):en(e)||eB(e)}function eM(e){return"Uint8Array"===m(e)}function ez(e){return"Uint8ClampedArray"===m(e)}function eO(e){return"Uint16Array"===m(e)}function em(e){return"Uint32Array"===m(e)}function eg(e){return"Int8Array"===m(e)}function eA(e){return"Int16Array"===m(e)}function ev(e){return"Int32Array"===m(e)}function ey(e){return"Float32Array"===m(e)}function e_(e){return"Float64Array"===m(e)}function eq(e){return"BigInt64Array"===m(e)}function ex(e){return"BigUint64Array"===m(e)}function ew(e){return"[object Map]"===es(e)}function eR(e){return"undefined"!=typeof Map&&(ew.working?ew(e):e instanceof Map)}function eS(e){return"[object Set]"===es(e)}function eW(e){return"undefined"!=typeof Set&&(eS.working?eS(e):e instanceof Set)}function ek(e){return"[object WeakMap]"===es(e)}function eE(e){return"undefined"!=typeof WeakMap&&(ek.working?ek(e):e instanceof WeakMap)}function eL(e){return"[object WeakSet]"===es(e)}function eN(e){return eL(e)}function eC(e){return"[object ArrayBuffer]"===es(e)}function eT(e){return"undefined"!=typeof ArrayBuffer&&(eC.working?eC(e):e instanceof ArrayBuffer)}function eD(e){return"[object DataView]"===es(e)}function eB(e){return"undefined"!=typeof DataView&&(eD.working?eD(e):e instanceof DataView)}e.exports.isArgumentsObject=i,e.exports.isGeneratorFunction=f,e.exports.isTypedArray=en,e.exports.isPromise=eh,e.exports.isArrayBufferView=eb,e.exports.isUint8Array=eM,e.exports.isUint8ClampedArray=ez,e.exports.isUint16Array=eO,e.exports.isUint32Array=em,e.exports.isInt8Array=eg,e.exports.isInt16Array=eA,e.exports.isInt32Array=ev,e.exports.isFloat32Array=ey,e.exports.isFloat64Array=e_,e.exports.isBigInt64Array=eq,e.exports.isBigUint64Array=ex,ew.working="undefined"!=typeof Map&&ew(new Map),e.exports.isMap=eR,eS.working="undefined"!=typeof Set&&eS(new Set),e.exports.isSet=eW,ek.working="undefined"!=typeof WeakMap&&ek(new WeakMap),e.exports.isWeakMap=eE,eL.working="undefined"!=typeof WeakSet&&eL(new WeakSet),e.exports.isWeakSet=eN,eC.working="undefined"!=typeof ArrayBuffer&&eC(new ArrayBuffer),e.exports.isArrayBuffer=eT,eD.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&eD(new DataView(new ArrayBuffer(1),0,1)),e.exports.isDataView=eB;var eI="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function eP(e){return"[object SharedArrayBuffer]"===es(e)}function eF(e){return void 0!==eI&&(void 0===eP.working&&(eP.working=eP(new eI)),eP.working?eP(e):e instanceof eI)}function ej(e){return"[object AsyncFunction]"===es(e)}function eX(e){return"[object Map Iterator]"===es(e)}function eU(e){return"[object Set Iterator]"===es(e)}function eH(e){return"[object Generator]"===es(e)}function eV(e){return"[object WebAssembly.Module]"===es(e)}function eG(e){return ed(e,ec)}function eY(e){return ed(e,eu)}function eK(e){return ed(e,el)}function eQ(e){return ei&&ed(e,ep)}function e$(e){return ea&&ed(e,ef)}function eZ(e){return eG(e)||eY(e)||eK(e)||eQ(e)||e$(e)}function eJ(e){return"undefined"!=typeof Uint8Array&&(eT(e)||eF(e))}e.exports.isSharedArrayBuffer=eF,e.exports.isAsyncFunction=ej,e.exports.isMapIterator=eX,e.exports.isSetIterator=eU,e.exports.isGeneratorObject=eH,e.exports.isWebAssemblyCompiledModule=eV,e.exports.isNumberObject=eG,e.exports.isStringObject=eY,e.exports.isBooleanObject=eK,e.exports.isBigIntObject=eQ,e.exports.isSymbolObject=e$,e.exports.isBoxedPrimitive=eZ,e.exports.isAnyArrayBuffer=eJ,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(e.exports,t,{enumerable:!1,value:function(){throw Error(t+" is not supported in userland")}})})}),parcelRegister("2PTEi",function(e,t){var r=parcelRequire("hPgo8");e.exports=function(){return r()&&!!Symbol.toStringTag}}),parcelRegister("hPgo8",function(e,t){e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(var o in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==n||!0!==a.enumerable)return!1}return!0}}),parcelRegister("Ydt8k",function(e,t){var r=parcelRequire("hEv1G"),n=r(parcelRequire("ksr8L")("String.prototype.indexOf"));e.exports=function(e,t){var o=parcelRequire("ksr8L")(e,!!t);return"function"==typeof o&&n(e,".prototype.")>-1?r(o):o}}),parcelRegister("djOXq",function(e,t){var r="undefined"!=typeof Symbol&&Symbol,n=parcelRequire("hPgo8");e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&n()}}),parcelRegister("anuzd",function(e,t){var r=function(){return!!parcelRequire("NpVOH")};r.hasArrayLengthDefineBug=function(){if(!parcelRequire("NpVOH"))return null;try{return 1!==parcelRequire("NpVOH")([],"length",{value:1}).length}catch(e){return!0}},e.exports=r}),parcelRegister("75qvH",function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}}),parcelRegister("jPCRA",function(e,t){var r={},n=parcelRequire("b0823"),o=parcelRequire("hPgo8")(),i=parcelRequire("Ydt8k"),a=Object,s=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),u=o?Object.getOwnPropertySymbols:null;r=function(e,t){if(null==e)throw TypeError("target must be an object");var r=a(e);if(1==arguments.length)return r;for(var i=1;i=0&&"[object Function]"===r.call(e.callee)),n}}),parcelRegister("dPAOG",function(e,t){var r;if(!Object.keys){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=parcelRequire("4C8be"),a=Object.prototype.propertyIsEnumerable,s=!a.call({toString:null},"toString"),c=a.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&n.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{l(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),d=function(e){if("undefined"==typeof window||!f)return l(e);try{return l(e)}catch(e){return!1}};r=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),a=i(e),l=t&&"[object String]"===o.call(e),p=[];if(!t&&!r&&!a)throw TypeError("Object.keys called on a non-object");var f=c&&r;if(l&&e.length>0&&!n.call(e,0))for(var h=0;h0)for(var b=0;be.length)&&(t=e.length);for(var r=0,n=Array(t);r10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=0x100000000}function T(e){return Object.keys(e).filter(C).concat(d(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function D(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);or,e=>r=e);var r,n=parcelRequire("7Qfu8"),o=parcelRequire("hnqWP"),i=parcelRequire("ikJCu"),a=parcelRequire("1JhDb");r=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof c&&(r=e.pop()),null===s&&1===e.length&&e[0]instanceof n.Observable)?e[0]:a.mergeAll(r)(new o.ArrayObservable(e,s))}}),parcelRegister("7Qfu8",function(e,t){$parcel$export(e.exports,"Observable",()=>r,e=>r=e);var r,n,o=parcelRequire("5GLyC"),i=parcelRequire("7thtb"),a=parcelRequire("9rIYI"),s=parcelRequire("34bXr");n=function(e,t,r){if(e){if(e instanceof i.Subscriber)return e;if(e[a.rxSubscriber])return e[a.rxSubscriber]()}return e||t||r?new i.Subscriber(e,t,r):new i.Subscriber(s.empty)};var c=parcelRequire("bu0OU"),u=parcelRequire("ijYrr");r=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o=this.operator,i=n(e,t,r);if(o?o.call(i,this.source):i.add(this.source||!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var r=this;if(!t&&(o.root.Rx&&o.root.Rx.config&&o.root.Rx.config.Promise?t=o.root.Rx.config.Promise:o.root.Promise&&(t=o.root.Promise)),!t)throw Error("no Promise impl found");return new t(function(t,n){var o;o=r.subscribe(function(t){if(o)try{e(t)}catch(e){n(e),o.unsubscribe()}else e(t)},n,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[c.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;tr,e=>r=e);var r,n=parcelRequire("73TSj"),o=parcelRequire("SNuY7"),i=parcelRequire("92KP7"),a=parcelRequire("2LgjA"),s=parcelRequire("dFGFV"),c=parcelRequire("eu4sV");function u(e){return e.reduce(function(e,t){return e.concat(t instanceof c.UnsubscriptionError?t.errors:t)},[])}r=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var r=this,l=r._parent,p=r._parents,f=r._unsubscribe,d=r._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var h=-1,b=p?p.length:0;l;)l.remove(this),l=++h0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.OuterSubscriber);e.exports.MergeMapSubscriber=s}),parcelRegister("3CH4j",function(e,t){var r=e.exports&&e.exports.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n=parcelRequire("7thtb");function o(e,t,r){return function(n){return n.lift(new i(e,t,r))}}e.exports.tap=o;var i=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.nextOrObserver,this.error,this.complete))},e}(),a=function(e){function t(t,r,o,i){e.call(this,t);var a=new n.Subscriber(r,o,i);a.syncErrorThrowable=!0,this.add(a),this.safeSubscriber=a}return r(t,e),t.prototype._next=function(e){var t=this.safeSubscriber;t.next(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.next(e)},t.prototype._error=function(e){var t=this.safeSubscriber;t.error(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.error(e)},t.prototype._complete=function(){var e=this.safeSubscriber;e.complete(),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.complete()},t}(n.Subscriber)}),parcelRegister("jvHoz",function(e,t){$parcel$export(e.exports,"Decoration",()=>rp),$parcel$export(e.exports,"DecorationSet",()=>rh),$parcel$export(e.exports,"EditorView",()=>rG);let r=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},n=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},o=null,i=function(e,t,r){let n=o||(o=document.createRange());return n.setEnd(e,null==r?e.nodeValue.length:r),n.setStart(e,t||0),n},a=function(){o=null},s=function(e,t,r,n){return r&&(u(e,t,r,n,-1)||u(e,t,r,n,1))},c=/^(img|br|input|textarea|hr)$/i;function u(e,t,n,o,i){for(;;){if(e==n&&t==o)return!0;if(t==(i<0?0:l(e))){let n=e.parentNode;if(!n||1!=n.nodeType||h(e)||c.test(e.nodeName)||"false"==e.contentEditable)return!1;t=r(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType||"false"==(e=e.childNodes[t+(i<0?-1:0)]).contentEditable)return!1;t=i<0?l(e):0}}}function l(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function p(e,t){for(;;){if(3==e.nodeType&&t)return e;if(1==e.nodeType&&t>0){if("false"==e.contentEditable)return null;t=l(e=e.childNodes[t-1])}else{if(!e.parentNode||h(e))return null;t=r(e),e=e.parentNode}}}function f(e,t){for(;;){if(3==e.nodeType&&t2),L=E||!!m&&/Mac/.test(m.platform),N=!!m&&/Win/.test(m.platform),C=/Android \d/.test(A),T=!!g&&"webkitFontSmoothing"in g.documentElement.style,D=T?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function B(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function I(e,t){return"number"==typeof e?e:e[t]}function P(e){let t=e.getBoundingClientRect(),r=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*r,top:t.top,bottom:t.top+e.clientHeight*n}}function F(e,t,r){let o=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let s=r||e.dom;s;s=n(s)){if(1!=s.nodeType)continue;let e=s,r=e==a.body,n=r?B(a):P(e),c=0,u=0;if(t.topn.bottom-I(o,"bottom")&&(u=t.bottom-t.top>n.bottom-n.top?t.top+I(i,"top")-n.top:t.bottom-n.bottom+I(i,"bottom")),t.leftn.right-I(o,"right")&&(c=t.right-n.right+I(i,"right")),c||u)if(r)a.defaultView.scrollBy(c,u);else{let r=e.scrollLeft,n=e.scrollTop;u&&(e.scrollTop+=u),c&&(e.scrollLeft+=c);let o=e.scrollLeft-r,i=e.scrollTop-n;t={left:t.left-o,top:t.top-i,right:t.right-o,bottom:t.bottom-i}}if(r||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function j(e){let t,r,n=e.dom.getBoundingClientRect(),o=Math.max(0,n.top);for(let i=(n.left+n.right)/2,a=o+1;a=o-20){t=n,r=s.top;break}}return{refDOM:t,refTop:r,stack:X(e.dom)}}function X(e){let t=[],r=e.ownerDocument;for(let o=e;o&&(t.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),e!=r);o=n(o));return t}function U({refDOM:e,refTop:t,stack:r}){let n=e?e.getBoundingClientRect().top:0;H(r,0==n?0:n-t)}function H(e,t){for(let r=0;r=l){u=Math.max(d.bottom,u),l=Math.min(d.top,l);let e=d.left>t.left?d.left-t.left:d.right=(d.left+d.right)/2));continue}}else d.top>t.top&&!r&&d.left<=t.left&&d.right>=t.left&&(r=p,n={left:Math.max(d.left,Math.min(d.right,t.left)),top:d.top});!o&&(t.left>=d.right&&t.top>=d.top||t.left>=d.left&&t.top>=d.bottom)&&(c=f+1)}}return(!o&&r&&(o=r,s=n,a=0),o&&3==o.nodeType)?K(o,s):!o||a&&1==o.nodeType?{node:e,offset:c}:Y(o,s)}function K(e,t){let r=e.nodeValue.length,n=document.createRange();for(let o=0;o=(r.left+r.right)/2)}}return{node:e,offset:0}}function Q(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function $(e,t){let r=e.parentNode;return r&&/^li$/i.test(r.nodeName)&&t.left(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(n,o,i)}function J(e,t,r,n){let o=-1;for(let r=t,i=!1;r!=e.dom;){let t=e.docView.nearestDesc(r,!0),a;if(!t)return null;if(1==t.dom.nodeType&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((a=t.dom.getBoundingClientRect()).width||a.height)&&(t.node.isBlock&&t.parent&&(!i&&a.left>n.left||a.top>n.top?o=t.posBefore:(!i&&a.right-1?o:e.docView.posFromDOM(t,r,-1)}function ee(e,t,r){let n=e.childNodes.length;if(n&&r.topt.top&&a++}T&&a&&1==i.nodeType&&1==(n=i.childNodes[a-1]).nodeType&&"false"==n.contentEditable&&n.getBoundingClientRect().top>=t.top&&a--,i==e.dom&&a==i.childNodes.length-1&&1==i.lastChild.nodeType&&t.top>i.lastChild.getBoundingClientRect().bottom?r=e.state.doc.content.size:(0==a||1!=i.nodeType||"BR"!=i.childNodes[a-1].nodeName)&&(r=J(e,i,a,t))}null==r&&(r=Z(e,c,t));let u=e.docView.nearestDesc(c,!0);return{pos:r,inside:u?u.posAtStart-u.border:-1}}function er(e){return e.top=0&&o==n.nodeValue.length?(e--,a=1):r<0?e--:t++,ea(en(i(n,e,t),a),a<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(null==a&&o&&(r<0||o==l(n))){let e=n.childNodes[o-1];if(1==e.nodeType)return es(e.getBoundingClientRect(),!1)}if(null==a&&o=0)}if(null==a&&o&&(r<0||o==l(n))){let e=n.childNodes[o-1],t=3==e.nodeType?i(e,l(e)-!s):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return ea(en(t,1),!1)}if(null==a&&o=0)}function ea(e,t){if(0==e.width)return e;let r=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:r,right:r}}function es(e,t){if(0==e.height)return e;let r=t?e.top:e.bottom;return{top:r,bottom:r,left:e.left,right:e.right}}function ec(e,t,r){let n=e.state,o=e.root.activeElement;n!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return r()}finally{n!=t&&e.updateState(n),o!=e.dom&&o&&o.focus()}}function eu(e,t,r){let n=t.selection,o="up"==r?n.$from:n.$to;return ec(e,t,()=>{let{node:t}=e.docView.domFromPos(o.pos,"up"==r?-1:1);for(;;){let r=e.docView.nearestDesc(t,!0);if(!r)break;if(r.node.isBlock){t=r.contentDOM||r.dom;break}t=r.dom.parentNode}let n=ei(e,o.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=i(e,0,e.nodeValue.length).getClientRects()}for(let e=0;eo.top+1&&("up"==r?n.top-o.top>(o.bottom-n.top)*2:o.bottom-n.bottom>(n.bottom-o.top)*2))return!1}}return!0})}let el=/[\u0590-\u08ac]/;function ep(e,t,r){let{$head:n}=t.selection;if(!n.parent.isTextblock)return!1;let o=n.parentOffset,i=!o,a=o==n.parent.content.size,s=e.domSelection();return s?el.test(n.parent.textContent)&&s.modify?ec(e,t,()=>{let{focusNode:t,focusOffset:o,anchorNode:i,anchorOffset:a}=e.domSelectionRange(),c=s.caretBidiLevel;s.modify("move",r,"character");let u=n.depth?e.docView.domAfterPos(n.before()):e.dom,{focusNode:l,focusOffset:p}=e.domSelectionRange(),f=l&&!u.contains(1==l.nodeType?l:l.parentNode)||t==l&&o==p;try{s.collapse(i,a),t&&(t!=i||o!=a)&&s.extend&&s.extend(t,o)}catch(e){}return null!=c&&(s.caretBidiLevel=c),f}):"left"==r||"backward"==r?i:a:n.pos==n.start()||n.pos==n.end()}let ef=null,ed=null,eh=!1;function eb(e,t,r){return ef==t&&ed==r?eh:(ef=t,ed=r,eh="up"==r||"down"==r?eu(e,t,r):ep(e,t,r))}let eM=0,ez=1,eO=2,em=3;class eg{matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;tr(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){o=!1;break}if(t.previousSibling)break}if(null==o&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){o=!0;break}if(t.nextSibling)break}}return(null==o?n>0:o)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let r=!0,n=e;n;n=n.parentNode){let o=this.getDesc(n),i;if(o&&(!t||o.node))if(!r||!(i=o.nodeDOM)||(1==i.nodeType?i.contains(1==e.nodeType?e:e.parentNode):i==e))return o;else r=!1}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,r){for(let n=e;n;n=n.parentNode){let o=this.getDesc(n);if(o)return o.localPosFromDOM(e,t,r)}return -1}descAt(e){for(let t=0,r=0;te||r instanceof ew){o=e-t;break}t=i}if(o)return this.children[n].domFromPos(o-this.children[n].border,t);for(let e;n&&!(e=this.children[n-1]).size&&e instanceof eA&&e.side>=0;n--);if(t<=0){let e,o=!0;for(;(e=n?this.children[n-1]:null)&&e.dom.parentNode!=this.contentDOM;n--,o=!1);return e&&t&&o&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?r(e.dom)+1:0}}{let e,o=!0;for(;(e=n=i&&t<=c-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=a;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){o=r(n.dom)+1;break}e-=n.size}-1==o&&(o=0)}if(o>-1&&(c>t||s==this.children.length-1)){t=c;for(let e=s+1;es&&at){let e=c;c=u,u=e}let r=document.createRange();r.setEnd(u.node,u.offset),r.setStart(c.node,c.offset),l.removeAllRanges(),l.addRange(r)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let r=0,n=0;n=r:er){let n=r+o.border,a=i-o.border;if(e>=n&&t<=a){this.dirty=e==r||t==i?eO:ez,e==n&&t==a&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=em:o.markDirty(e-n,t-n);return}o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?em:eO}r=i}this.dirty=eO}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let r=1==e?eO:ez;t.dirtyo?o.parent?o.parent.posBeforeChild(o):void 0:n)),!t.type.spec.raw){if(1!=i.nodeType){let e=document.createElement("span");e.appendChild(i),i=e}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=t,this.widget=t,o=this}}class ev extends eg{get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}constructor(e,t,r,n){super(e,[],t,null),this.textDOM=r,this.text=n}}class ey extends eg{static create(e,t,r,n){let o=n.nodeViews[t.type.name],i=o&&o(t,n,r);return i&&i.dom||(i=parcelRequire("kviC1").DOMSerializer.renderSpec(document,t.type.spec.toDOM(t,r),null,t.attrs)),new ey(e,t,i.dom,i.contentDOM||i.dom,i)}parseRule(){return this.dirty&em||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=em&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=eM){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty0&&(o=eU(o,0,e,r));for(let e=0;es?s.parent?s.parent.posBeforeChild(s):void 0:i,r,n),u=c&&c.dom,l=c&&c.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else if(!u){let e=parcelRequire("kviC1").DOMSerializer.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);({dom:u,contentDOM:l}=e)}l||t.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let p=u;return(u=eC(u,r,t),c)?s=new eR(e,t,r,n,u,l||null,p,c,o,i+1):t.isText?new ex(e,t,r,n,u,p,o):new e_(e,t,r,n,u,l||null,p,o,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let r=this.children[t];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>parcelRequire("kviC1").Fragment.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,r){return this.dirty==eM&&e.eq(this.node)&&eT(t,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(e,t){let r=this.node.inlineContent,n=t,o=e.composing?this.localCompositionInfo(e,t):null,i=o&&o.pos>-1?o:null,a=o&&o.pos<0,s=new eB(this,i&&i.node,e);eF(this.node,this.innerDeco,(t,o,i)=>{t.spec.marks?s.syncToMarks(t.spec.marks,r,e):t.type.side>=0&&!i&&s.syncToMarks(o==this.node.childCount?parcelRequire("kviC1").Mark.none:this.node.child(o).marks,r,e),s.placeWidget(t,e,n)},(t,i,c,u)=>{let l;s.syncToMarks(t.marks,r,e),s.findNodeMatch(t,i,c,u)||a&&e.state.selection.from>n&&e.state.selection.to-1&&s.updateNodeAt(t,i,c,l,e)||s.updateNextNode(t,i,c,e,u,n)||s.addNode(t,i,c,e,n),n+=t.nodeSize}),s.syncToMarks([],r,e),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||this.dirty==eO)&&(i&&this.protectLocalComposition(e,i),eS(this.contentDOM,this.children,e),E&&ej(this.dom))}localCompositionInfo(e,t){let{from:r,to:n}=e.state.selection;if(!(e.state.selection instanceof parcelRequire("7T7aA").TextSelection)||rt+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(!this.node.inlineContent)return{node:o,pos:-1,text:""};{let e=o.nodeValue,i=eX(this.node.content,e,r-t,n-t);return i<0?null:{node:o,pos:i,text:e}}}protectLocalComposition(e,{node:t,pos:r,text:n}){if(this.getDesc(t))return;let o=t;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let i=new ev(this,o,t,n);e.input.compositionNodes.push(i),this.children=eU(this.children,r,r+n.length,e,i)}update(e,t,r,n){return this.dirty!=em&&!!e.sameMarkup(this.node)&&(this.updateInner(e,t,r,n),!0)}updateInner(e,t,r,n){this.updateOuterDeco(t),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(n,this.posAtStart),this.dirty=eM}updateOuterDeco(e){if(eT(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,r=this.dom;this.dom=eL(this.dom,this.nodeDOM,eE(this.outerDeco,this.node,t),eE(e,this.node,t)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}constructor(e,t,r,n,o,i,a,s,c){super(e,[],o,i),this.node=t,this.outerDeco=r,this.innerDeco=n,this.nodeDOM=a}}function eq(e,t,r,n,o){eC(n,t,e);let i=new e_(void 0,e,t,r,n,n,n,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class ex extends e_{parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,r,n){return this.dirty!=em&&(this.dirty==eM||!!this.inParent())&&!!e.sameMarkup(this.node)&&(this.updateOuterDeco(t),(this.dirty!=eM||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,n.trackWrites==this.nodeDOM&&(n.trackWrites=null)),this.node=e,this.dirty=eM,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,r){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,r)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,r){let n=this.node.cut(e,t),o=document.createTextNode(n.text);return new ex(this.parent,n,this.outerDeco,this.innerDeco,o,o,r)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(0==e||t==this.nodeDOM.nodeValue.length)&&(this.dirty=em)}get domAtom(){return!1}isText(e){return this.node.text==e}constructor(e,t,r,n,o,i,a){super(e,t,r,n,o,null,i,a,0)}}class ew extends eg{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==eM&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class eR extends e_{update(e,t,r,n){if(this.dirty==em)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let o=this.spec.update(e,t,r);return o&&this.updateInner(e,t,r,n),o}return(!!this.contentDOM||!!e.isLeaf)&&super.update(e,t,r,n)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,r,n){this.spec.setSelection?this.spec.setSelection(e,t,r.root):super.setSelection(e,t,r,n)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}constructor(e,t,r,n,o,i,a,s,c,u){super(e,t,r,n,o,i,a,c,u),this.spec=s}}function eS(e,t,r){let n=e.firstChild,o=!1;for(let i=0;i>1,i=Math.min(o,e.length);for(;n-1)n>this.index&&(this.changed=!0,this.destroyBetween(this.index,n)),this.top=this.top.children[this.index];else{let n=ey.create(this.top,e[o],t,r);this.top.children.splice(this.index,0,n),this.top=n,this.changed=!0}this.index=0,o++}}findNodeMatch(e,t,r,n){let o=-1,i;if(n>=this.preMatch.index&&(i=this.preMatch.matches[n-this.preMatch.index]).parent==this.top&&i.matchesNode(e,t,r))o=this.top.children.indexOf(i,this.index);else for(let n=this.index,i=Math.min(this.top.children.length,n+5);n0;){let s;for(;;)if(n){let e=r.children[n-1];if(e instanceof ey)r=e,n=e.children.length;else{s=e,n--;break}}else if(r==t)break n;else n=r.parent.children.indexOf(r),r=r.parent;let c=s.node;if(c){if(c!=e.child(o-1))break;--o,i.set(s,o),a.push(s)}}return{index:o,matched:i,matches:a.reverse()}}function eP(e,t){return e.type.side-t.type.side}function eF(e,t,r,n){let o=t.locals(e),i=0;if(0==o.length){for(let r=0;ri;)s.push(o[a++]);let h=i+f.nodeSize;if(f.isText){let e=h;a!e.inline):s.slice();n(f,b,t.forChild(i,f),d),i=h}}function ej(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function eX(e,t,r,n){for(let o=0,i=0;o=r){if(i>=n&&c.slice(n-t.length-s,n-s)==t)return n-t.length;let e=s=0&&e+t.length+s>=r)return s+e;if(r==n&&c.length>=n+t.length-s&&c.slice(n-s,n-s+t.length)==t)return n}}return -1}function eU(e,t,r,n,o){let i=[];for(let a=0,s=0;a=r||l<=t?i.push(c):(ur&&i.push(c.slice(r-u,c.size,n)))}return i}function eH(e,t=null){let r=e.domSelectionRange(),n=e.state.doc;if(!r.focusNode)return null;let o=e.docView.nearestDesc(r.focusNode),i=o&&0==o.size,a=e.docView.posFromDOM(r.focusNode,r.focusOffset,1);if(a<0)return null;let s=n.resolve(a),c,u;if(b(r)){for(c=a;o&&!o.node;)o=o.parent;let e=o.node;if(o&&e.isAtom&&parcelRequire("7T7aA").NodeSelection.isSelectable(e)&&o.parent&&!(e.isInline&&d(r.focusNode,r.focusOffset,o.dom))){let e=o.posBefore;u=new(0,parcelRequire("7T7aA").NodeSelection)(a==e?s:n.resolve(e))}}else{if(r instanceof e.dom.ownerDocument.defaultView.Selection&&r.rangeCount>1){let t=a,o=a;for(let n=0;n{(r.anchorNode!=n||r.anchorOffset!=o)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!eV(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function eJ(e){let t=e.domSelection(),n=document.createRange();if(!t)return;let o=e.cursorWrapper.dom,i="IMG"==o.nodeName;i?n.setStart(o.parentNode,r(o)+1):n.setStart(o,0),n.collapse(!0),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&q&&x<=11&&(o.disabled=!0,o.disabled=!1)}function e0(e,t){if(t instanceof parcelRequire("7T7aA").NodeSelection){let r=e.docView.descAt(t.from);r!=e.lastSelectedViewDesc&&(e1(e),r&&r.selectNode(),e.lastSelectedViewDesc=r)}else e1(e)}function e1(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function e2(e,t,r,n){return e.someProp("createSelectionBetween",n=>n(e,t,r))||parcelRequire("7T7aA").TextSelection.between(t,r,n)}function e3(e){return(!e.editable||!!e.hasFocus())&&e4(e)}function e4(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function e5(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),r=e.domSelectionRange();return s(t.node,t.offset,r.anchorNode,r.anchorOffset)}function e6(e,t){let{$anchor:r,$head:n}=e.selection,o=t>0?r.max(n):r.min(n),i=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return i&&parcelRequire("7T7aA").Selection.findFrom(i,t)}function e8(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function e7(e,t,r){let n=e.state.selection;if(n instanceof parcelRequire("7T7aA").TextSelection){if(r.indexOf("s")>-1){let{$head:r}=n,o=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let i=e.state.doc.resolve(r.pos+o.nodeSize*(t<0?-1:1));return e8(e,new(0,parcelRequire("7T7aA").TextSelection)(n.$anchor,i))}else if(!n.empty)return!1;else if(e.endOfTextblock(t>0?"forward":"backward")){let r=e6(e.state,t);return!!r&&r instanceof parcelRequire("7T7aA").NodeSelection&&e8(e,r)}else if(!(L&&r.indexOf("m")>-1)){let r=n.$head,o=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter,i;if(!o||o.isText)return!1;let a=t<0?r.pos-o.nodeSize:r.pos;return!!(o.isAtom||(i=e.docView.descAt(a))&&!i.contentDOM)&&(parcelRequire("7T7aA").NodeSelection.isSelectable(o)?e8(e,new(0,parcelRequire("7T7aA").NodeSelection)(t<0?e.state.doc.resolve(r.pos-o.nodeSize):r)):!!T&&e8(e,new(0,parcelRequire("7T7aA").TextSelection)(e.state.doc.resolve(t<0?a:a+o.nodeSize))))}}else{if(n instanceof parcelRequire("7T7aA").NodeSelection&&n.node.isInline)return e8(e,new(0,parcelRequire("7T7aA").TextSelection)(t>0?n.$to:n.$from));let r=e6(e.state,t);return!!r&&e8(e,r)}}function e9(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function te(e,t){let r=e.pmViewDesc;return r&&0==r.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function tt(e,t){return t<0?tr(e):tn(e)}function tr(e){let t=e.domSelectionRange(),n=t.focusNode,o=t.focusOffset;if(!n)return;let i,a,s=!1;for(w&&1==n.nodeType&&o0)if(1!=n.nodeType)break;else{let e=n.childNodes[o-1];if(te(e,-1))i=n,a=--o;else if(3==e.nodeType)o=(n=e).nodeValue.length;else break}else if(to(n))break;else{let t=n.previousSibling;for(;t&&te(t,-1);)i=n.parentNode,a=r(t),t=t.previousSibling;if(t)o=e9(n=t);else{if((n=n.parentNode)==e.dom)break;o=0}}s?ts(e,n,o):i&&ts(e,i,a)}function tn(e){let t,n,o=e.domSelectionRange(),i=o.focusNode,a=o.focusOffset;if(!i)return;let s=e9(i);for(;;)if(a{e.state==o&&eG(e)},50)}function tc(e,t){let r=e.state.doc.resolve(t);if(!(S||N)&&r.parent.inlineContent){let n=e.coordsAtPos(t);if(t>r.start()){let r=e.coordsAtPos(t-1),o=(r.top+r.bottom)/2;if(o>n.top&&o1)return r.leftn.top&&o1)return r.left>n.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function tu(e,t,r){let n=e.state.selection;if(n instanceof parcelRequire("7T7aA").TextSelection&&!n.empty||r.indexOf("s")>-1||L&&r.indexOf("m")>-1)return!1;let{$from:o,$to:i}=n;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let r=e6(e.state,t);if(r&&r instanceof parcelRequire("7T7aA").NodeSelection)return e8(e,r)}if(!o.parent.inlineContent){let r=t<0?o:i,a=n instanceof parcelRequire("7T7aA").AllSelection?parcelRequire("7T7aA").Selection.near(r,t):parcelRequire("7T7aA").Selection.findFrom(r,t);return!!a&&e8(e,a)}return!1}function tl(e,t){if(!(e.state.selection instanceof parcelRequire("7T7aA").TextSelection))return!0;let{$head:r,$anchor:n,empty:o}=e.state.selection;if(!r.sameParent(n))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(i&&!i.isText){let n=e.state.tr;return t<0?n.delete(r.pos-i.nodeSize,r.pos):n.delete(r.pos,r.pos+i.nodeSize),e.dispatch(n),!0}return!1}function tp(e,t,r){e.domObserver.stop(),t.contentEditable=r,e.domObserver.start()}function tf(e){if(!k||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:r}=e.domSelectionRange();if(t&&1==t.nodeType&&0==r&&t.firstChild&&"false"==t.firstChild.contentEditable){let r=t.firstChild;tp(e,r,"true"),setTimeout(()=>tp(e,r,"false"),20)}return!1}function td(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function th(e,t){let r=t.keyCode,n=td(t);if(8==r||L&&72==r&&"c"==n)return tl(e,-1)||tt(e,-1);if(46==r&&!t.shiftKey||L&&68==r&&"c"==n)return tl(e,1)||tt(e,1);if(13==r||27==r)return!0;if(37==r||L&&66==r&&"c"==n){let t=37==r?"ltr"==tc(e,e.state.selection.from)?-1:1:-1;return e7(e,t,n)||tt(e,t)}if(39==r||L&&70==r&&"c"==n){let t=39==r?"ltr"==tc(e,e.state.selection.from)?1:-1:1;return e7(e,t,n)||tt(e,t)}else if(38==r||L&&80==r&&"c"==n)return tu(e,-1,n)||tt(e,-1);else if(40==r||L&&78==r&&"c"==n)return tf(e)||tu(e,1,n)||tt(e,1);else if(n==(L?"m":"c")&&(66==r||73==r||89==r||90==r))return!0;return!1}function tb(e,t){e.someProp("transformCopied",r=>{t=r(t,e)});let r=[],{content:n,openStart:o,openEnd:i}=t;for(;o>1&&i>1&&1==n.childCount&&1==n.firstChild.childCount;){o--,i--;let e=n.firstChild;r.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),n=e.content}let a=e.someProp("clipboardSerializer")||parcelRequire("kviC1").DOMSerializer.fromSchema(e.state.schema),s=tx(),c=s.createElement("div");c.appendChild(a.serializeFragment(n,{document:s}));let u=c.firstChild,l,p=0;for(;u&&1==u.nodeType&&(l=t_[u.nodeName.toLowerCase()]);){for(let e=l.length-1;e>=0;e--){let t=s.createElement(l[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),p++}u=c.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${o} ${i}${p?` -${p}`:""} ${JSON.stringify(r)}`),{dom:c,text:e.someProp("clipboardTextSerializer",r=>r(t,e))||t.content.textBetween(0,t.content.size,"\n\n"),slice:t}}function tM(e,t,r,n,o){let i,a,s=o.parent.type.spec.code;if(!r&&!t)return null;let c=t&&(n||s||!r);if(c){if(e.someProp("transformPastedText",r=>{t=r(t,s||n,e)}),s)return t?new(0,parcelRequire("kviC1").Slice)(parcelRequire("kviC1").Fragment.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):parcelRequire("kviC1").Slice.empty;let r=e.someProp("clipboardTextParser",r=>r(t,o,n,e));if(r)a=r;else{let r=o.marks(),{schema:n}=e.state,a=parcelRequire("kviC1").DOMSerializer.fromSchema(n);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=i.appendChild(document.createElement("p"));e&&t.appendChild(a.serializeNode(n.text(e,r)))})}}else e.someProp("transformPastedHTML",t=>{r=t(r,e)}),i=tS(r),T&&tW(i);let u=i&&i.querySelector("[data-pm-slice]"),l=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(l&&l[3])for(let e=+l[3];e>0;e--){let e=i.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;i=e}if(a||(a=(e.someProp("clipboardParser")||e.someProp("domParser")||parcelRequire("kviC1").DOMParser.fromSchema(e.state.schema)).parseSlice(i,{preserveWhitespace:!!(c||l),context:o,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||tz.test(e.parentNode.nodeName)?null:{ignore:!0}})),l)a=tk(ty(a,+l[1],+l[2]),l[4]);else if((a=parcelRequire("kviC1").Slice.maxOpen(tO(a.content,o),!0)).openStart||a.openEnd){let e=0,t=0;for(let t=a.content.firstChild;e{a=t(a,e)}),a}let tz=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function tO(e,t){if(e.childCount<2)return e;for(let r=t.depth;r>=0;r--){let n=t.node(r).contentMatchAt(t.index(r)),o,i=[];if(e.forEach(e=>{if(!i)return;let t=n.findWrapping(e.type),r;if(!t)return i=null;if(r=i.length&&o.length&&tg(t,o,e,i[i.length-1],0))i[i.length-1]=r;else{i.length&&(i[i.length-1]=tA(i[i.length-1],o.length));let r=tm(e,t);i.push(r),n=n.matchType(r.type),o=t}}),i)return parcelRequire("kviC1").Fragment.from(i)}return e}function tm(e,t,r=0){for(let n=t.length-1;n>=r;n--)e=t[n].create(null,parcelRequire("kviC1").Fragment.from(e));return e}function tg(e,t,r,n,o){if(o1&&(i=0),o=r&&(s=t<0?a.contentMatchAt(0).fillBefore(s,i<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(parcelRequire("kviC1").Fragment.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function ty(e,t,r){return te})),tw.createHTML(e)):e}function tS(e){let t=/^(\s*]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let r=tx().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(e),o;if((o=n&&t_[n[1].toLowerCase()])&&(e=o.map(e=>"<"+e+">").join("")+e+o.map(e=>"").reverse().join("")),r.innerHTML=tR(e),o)for(let e=0;e=0;e-=2){let t=r.nodes[n[e]];if(!t||t.hasRequiredAttrs())break;o=parcelRequire("kviC1").Fragment.from(t.create(n[e+1],o)),i++,a++}return new(0,parcelRequire("kviC1").Slice)(o,i,a)}let tE={},tL={},tN={touchstart:!0,touchmove:!0};class tC{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function tT(e){for(let t in tE){let r=tE[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!tF(e,t)||tP(e,t)||!e.editable&&t.type in tL||r(e,t)},tN[t]?{passive:!0}:void 0)}k&&e.dom.addEventListener("input",()=>null),tI(e)}function tD(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function tB(e){for(let t in e.domObserver.stop(),e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function tI(e){e.someProp("handleDOMEvents",t=>{for(let r in t)e.input.eventHandlers[r]||e.dom.addEventListener(r,e.input.eventHandlers[r]=t=>tP(e,t))})}function tP(e,t){return e.someProp("handleDOMEvents",r=>{let n=r[t.type];return!!n&&(n(e,t)||t.defaultPrevented)})}function tF(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let r=t.target;r!=e.dom;r=r.parentNode)if(!r||11==r.nodeType||r.pmViewDesc&&r.pmViewDesc.stopEvent(t))return!1;return!0}function tj(e,t){tP(e,t)||!tE[t.type]||!e.editable&&t.type in tL||tE[t.type](e,t)}function tX(e){return{left:e.clientX,top:e.clientY}}function tU(e,t){let r=t.x-e.clientX,n=t.y-e.clientY;return r*r+n*n<100}function tH(e,t,r,n,o){if(-1==n)return!1;let i=e.state.doc.resolve(n);for(let n=i.depth+1;n>0;n--)if(e.someProp(t,t=>n>i.depth?t(e,r,i.nodeAfter,i.before(n),o,!0):t(e,r,i.node(n),i.before(n),o,!1)))return!0;return!1}function tV(e,t,r){if(e.focused||e.focus(),e.state.selection.eq(t))return;let n=e.state.tr.setSelection(t);"pointer"==r&&n.setMeta("pointer",!0),e.dispatch(n)}function tG(e,t){if(-1==t)return!1;let r=e.state.doc.resolve(t),n=r.nodeAfter;return!!(n&&n.isAtom&&parcelRequire("7T7aA").NodeSelection.isSelectable(n))&&(tV(e,new(0,parcelRequire("7T7aA").NodeSelection)(r),"pointer"),!0)}function tY(e,t){if(-1==t)return!1;let r=e.state.selection,n,o;r instanceof parcelRequire("7T7aA").NodeSelection&&(n=r.node);let i=e.state.doc.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e);if(parcelRequire("7T7aA").NodeSelection.isSelectable(t)){o=n&&r.$from.depth>0&&e>=r.$from.depth&&i.before(r.$from.depth+1)==r.$from.pos?i.before(r.$from.depth):i.before(e);break}}return null!=o&&(tV(e,parcelRequire("7T7aA").NodeSelection.create(e.state.doc,o),"pointer"),!0)}function tK(e,t,r,n,o){return tH(e,"handleClickOn",t,r,n)||e.someProp("handleClick",r=>r(e,t,n))||(o?tY(e,r):tG(e,r))}function tQ(e,t,r,n){return tH(e,"handleDoubleClickOn",t,r,n)||e.someProp("handleDoubleClick",r=>r(e,t,n))}function t$(e,t,r,n){return tH(e,"handleTripleClickOn",t,r,n)||e.someProp("handleTripleClick",r=>r(e,t,n))||tZ(e,r,n)}function tZ(e,t,r){if(0!=r.button)return!1;let n=e.state.doc;if(-1==t)return!!n.inlineContent&&(tV(e,parcelRequire("7T7aA").TextSelection.create(n,0,n.content.size),"pointer"),!0);let o=n.resolve(t);for(let t=o.depth+1;t>0;t--){let r=t>o.depth?o.nodeAfter:o.node(t),i=o.before(t);if(r.inlineContent)tV(e,parcelRequire("7T7aA").TextSelection.create(n,i+1,i+1+r.content.size),"pointer");else{if(!parcelRequire("7T7aA").NodeSelection.isSelectable(r))continue;tV(e,parcelRequire("7T7aA").NodeSelection.create(n,i),"pointer")}return!0}}function tJ(e){return t7(e)}tL.keydown=(e,t)=>{let r=t;if((e.input.shiftKey=16==r.keyCode||r.shiftKey,!t2(e,r))&&(e.input.lastKeyCode=r.keyCode,e.input.lastKeyCodeTime=Date.now(),!C||!S||13!=r.keyCode))if(229!=r.keyCode&&e.domObserver.forceFlush(),!E||13!=r.keyCode||r.ctrlKey||r.altKey||r.metaKey)e.someProp("handleKeyDown",t=>t(e,r))||th(e,r)?r.preventDefault():tD(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,M(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},tL.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},tL.keypress=(e,t)=>{let r=t;if(t2(e,r)||!r.charCode||r.ctrlKey&&!r.altKey||L&&r.metaKey)return;if(e.someProp("handleKeyPress",t=>t(e,r)))return void r.preventDefault();let n=e.state.selection;if(!(n instanceof parcelRequire("7T7aA").TextSelection)||!n.$from.sameParent(n.$to)){let t=String.fromCharCode(r.charCode);/[\r\n]/.test(t)||e.someProp("handleTextInput",r=>r(e,n.$from.pos,n.$to.pos,t))||e.dispatch(e.state.tr.insertText(t).scrollIntoView()),r.preventDefault()}};let t0=L?"metaKey":"ctrlKey";tE.mousedown=(e,t)=>{let r=t;e.input.shiftKey=r.shiftKey;let n=tJ(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&tU(r,e.input.lastClick)&&!r[t0]&&("singleClick"==e.input.lastClick.type?i="doubleClick":"doubleClick"==e.input.lastClick.type&&(i="tripleClick")),e.input.lastClick={time:o,x:r.clientX,y:r.clientY,type:i};let a=e.posAtCoords(tX(r));a&&("singleClick"==i?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new t1(e,a,r,!!n)):("doubleClick"==i?tQ:t$)(e,a.pos,a.inside,r)?r.preventDefault():tD(e,"pointer"))};class t1{done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>eG(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(tX(e))),this.updateAllowDefault(e),this.allowDefault||!t?tD(this.view,"pointer"):tK(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||k&&this.mightDrag&&!this.mightDrag.node.isAtom||S&&!this.view.state.selection.visible&&2>=Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to)))?(tV(this.view,parcelRequire("7T7aA").Selection.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):tD(this.view,"pointer")}move(e){this.updateAllowDefault(e),tD(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}constructor(e,t,r,n){let o,i;if(this.view=e,this.pos=t,this.event=r,this.flushed=n,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[t0],this.allowDefault=r.shiftKey,t.inside>-1)o=e.state.doc.nodeAt(t.inside),i=t.inside;else{let r=e.state.doc.resolve(t.pos);o=r.parent,i=r.depth?r.before():0}let a=n?null:r.target,s=a?e.docView.nearestDesc(a,!0):null;this.target=s&&1==s.dom.nodeType?s.dom:null;let{selection:c}=e.state;(0==r.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||c instanceof parcelRequire("7T7aA").NodeSelection&&c.from<=i&&c.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&w&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),tD(e,"pointer")}}function t2(e,t){return!!e.composing||!!(k&&500>Math.abs(t.timeStamp-e.input.compositionEndedAt))&&(e.input.compositionEndedAt=-2e8,!0)}tE.touchstart=e=>{e.input.lastTouch=Date.now(),tJ(e),tD(e,"pointer")},tE.touchmove=e=>{e.input.lastTouch=Date.now(),tD(e,"pointer")},tE.contextmenu=e=>tJ(e);let t3=C?5e3:-1;function t4(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>t7(e),t))}function t5(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t8());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function t6(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let r=p(t.focusNode,t.focusOffset),n=f(t.focusNode,t.focusOffset);if(r&&n&&r!=n){let t=n.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(r==o||n==o)return o;if(!t||!t.isText(n.nodeValue))return n;if(e.input.compositionNode==n){let e=r.pmViewDesc;if(!(!e||!e.isText(r.nodeValue)))return n}}return r||n}function t8(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function t7(e,t=!1){if(!C||!(e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),t5(e),t||e.docView&&e.docView.dirty){let r=eH(e);return r&&!r.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(r)):(e.markCursor||t)&&!e.state.selection.empty?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function t9(e,t){if(!e.dom.parentNode)return;let r=e.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(t),r.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),n.removeAllRanges(),n.addRange(o),setTimeout(()=>{r.parentNode&&r.parentNode.removeChild(r),e.focus()},50)}tL.compositionstart=tL.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,r=t.selection.$to;if(t.selection instanceof parcelRequire("7T7aA").TextSelection&&(t.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)))e.markCursor=e.state.storedMarks||r.marks(),t7(e,!0),e.markCursor=null;else if(t7(e,!t.selection.empty),w&&t.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let t=e.domSelectionRange();for(let r=t.focusNode,n=t.focusOffset;r&&1==r.nodeType&&0!=n;){let t=n<0?r.lastChild:r.childNodes[n-1];if(!t)break;if(3==t.nodeType){let r=e.domSelection();r&&r.collapse(t,t.nodeValue.length);break}r=t,n=-1}}e.input.composing=!0}t4(e,t3)},tL.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,t4(e,20))};let re=q&&x<15||E&&D<604;function rt(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}function rr(e,t){if(!e.dom.parentNode)return;let r=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,n=e.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let o=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),n.parentNode&&n.parentNode.removeChild(n),r?rn(e,n.value,null,o,t):rn(e,n.textContent,n.innerHTML,o,t)},50)}function rn(e,t,r,n,o){let i=tM(e,t,r,n,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,o,i||parcelRequire("kviC1").Slice.empty)))return!0;if(!i)return!1;let a=rt(i),s=a?e.state.tr.replaceSelectionWith(a,n):e.state.tr.replaceSelection(i);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function ro(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let r=e.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}tE.copy=tL.cut=(e,t)=>{let r=t,n=e.state.selection,o="cut"==r.type;if(n.empty)return;let i=re?null:r.clipboardData,{dom:a,text:s}=tb(e,n.content());i?(r.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",s)):t9(e,a),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},tL.paste=(e,t)=>{let r=t;if(e.composing&&!C)return;let n=re?null:r.clipboardData,o=e.input.shiftKey&&45!=e.input.lastKeyCode;n&&rn(e,ro(n),n.getData("text/html"),o,r)?r.preventDefault():rr(e,r)};class ri{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}let ra=L?"altKey":"ctrlKey";for(let e in tE.dragstart=(e,t)=>{let r,n=t,o=e.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(tX(n));if(a&&a.pos>=i.from&&a.pos<=(i instanceof parcelRequire("7T7aA").NodeSelection?i.to-1:i.to));else if(o&&o.mightDrag)r=parcelRequire("7T7aA").NodeSelection.create(e.state.doc,o.mightDrag.pos);else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(r=parcelRequire("7T7aA").NodeSelection.create(e.state.doc,t.posBefore))}let s=(r||e.state.selection).content(),{dom:c,text:u,slice:l}=tb(e,s);n.dataTransfer.files.length&&S&&!(W>120)||n.dataTransfer.clearData(),n.dataTransfer.setData(re?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",re||n.dataTransfer.setData("text/plain",u),e.dragging=new ri(l,!n[ra],r)},tE.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},tL.dragover=tL.dragenter=(e,t)=>t.preventDefault(),tL.drop=(e,t)=>{let r=t,n=e.dragging;if(e.dragging=null,!r.dataTransfer)return;let o=e.posAtCoords(tX(r));if(!o)return;let i=e.state.doc.resolve(o.pos),a=n&&n.slice;a?e.someProp("transformPasted",t=>{a=t(a,e)}):a=tM(e,ro(r.dataTransfer),re?null:r.dataTransfer.getData("text/html"),!1,i);let s=!!(n&&!r[ra]);if(e.someProp("handleDrop",t=>t(e,r,a||parcelRequire("kviC1").Slice.empty,s)))return void r.preventDefault();if(!a)return;r.preventDefault();let c=a?(0,parcelRequire("4FvAQ").dropPoint)(e.state.doc,i.pos,a):i.pos;null==c&&(c=i.pos);let u=e.state.tr;if(s){let{node:e}=n;e?e.replace(u):u.deleteSelection()}let l=u.mapping.map(c),p=0==a.openStart&&0==a.openEnd&&1==a.content.childCount,f=u.doc;if(p?u.replaceRangeWith(l,l,a.content.firstChild):u.replaceRange(l,l,a),u.doc.eq(f))return;let d=u.doc.resolve(l);if(p&&parcelRequire("7T7aA").NodeSelection.isSelectable(a.content.firstChild)&&d.nodeAfter&&d.nodeAfter.sameMarkup(a.content.firstChild))u.setSelection(new(0,parcelRequire("7T7aA").NodeSelection)(d));else{let t=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((e,r,n,o)=>t=o),u.setSelection(e2(e,d,u.doc.resolve(t)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))},tE.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&eG(e)},20))},tE.blur=(e,t)=>{let r=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),r.relatedTarget&&e.dom.contains(r.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},tE.beforeinput=(e,t)=>{let r=t;if(S&&C&&"deleteContentBackward"==r.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,M(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}},tL)tE[e]=tL[e];function rs(e,t){if(e==t)return!0;for(let r in e)if(e[r]!==t[r])return!1;for(let r in t)if(!(r in e))return!1;return!0}class rc{map(e,t,r,n){let{pos:o,deleted:i}=e.mapResult(t.from+n,this.side<0?-1:1);return i?null:new rp(o-r,o-r,this)}valid(){return!0}eq(e){return this==e||e instanceof rc&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&rs(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}constructor(e,t){this.toDOM=e,this.spec=t||rd,this.side=this.spec.side||0}}class ru{map(e,t,r,n){let o=e.map(t.from+n,this.spec.inclusiveStart?-1:1)-r,i=e.map(t.to+n,this.spec.inclusiveEnd?1:-1)-r;return o>=i?null:new rp(o,i,this)}valid(e,t){return t.from=e&&(!o||o(a.spec))&&r.push(a.copy(a.from+n,a.to+n))}for(let i=0;ie){let a=this.children[i]+1;this.children[i+2].findInner(e-a,t-a,r,n+a,o)}}map(e,t,r){return this==rb||0==e.maps.length?this:this.mapInner(e,t,0,0,r||rd)}mapInner(e,t,r,n,o){let i;for(let a=0;a{let a=i+r,s;if(s=rg(t,e,a)){for(n||(n=this.children.slice());oi&&r.to=e){this.children[t]==e&&(r=this.children[t+2]);break}let o=e+1,i=o+t.content.size;for(let e=0;eo&&t.type instanceof ru){let e=Math.max(o,t.from)-o,r=Math.min(i,t.to)-o;er.map(e,t,rd));return rM.from(r)}forChild(e,t){if(t.isLeaf)return rh.empty;let r=[];for(let n=0;ne instanceof rh)?e:e.reduce((e,t)=>e.concat(t instanceof rh?t:t.members),[]))}}forEachSet(e){for(let t=0;t{let a=i-o-(r-e);for(let o=0;oi+t-n)continue;let c=s[o]+t-n;r>=c?s[o+1]=e<=c?-2:-1:e>=t&&a&&(s[o]+=a,s[o+1]+=a)}n+=a}),t=r.maps[e].map(t,-1)}let c=!1;for(let t=0;t=n.content.size){c=!0;continue}let p=r.map(e[t+1]+i,-1)-o,{index:f,offset:d}=n.content.findIndex(l),h=n.maybeChild(f);if(h&&d==l&&d+h.nodeSize==p){let n=s[t+2].mapInner(r,h,u+1,e[t]+i+1,a);n!=rb?(s[t]=l,s[t+1]=p,s[t+2]=n):(s[t+1]=-2,c=!0)}else c=!0}if(c){let c=rv(rm(s,e,t,r,o,i,a),n,0,a);t=c.local;for(let e=0;er&&i.to{let s=rg(e,t,a+r);if(s){i=!0;let e=rv(s,t,r+a+1,n);e!=rb&&o.push(a,a+t.nodeSize,e)}});let a=rO(i?rA(e):e,-r).sort(ry);for(let e=0;e0;)t++;e.splice(t,0,r)}function rx(e){let t=[];return e.someProp("decorations",r=>{let n=r(e.state);n&&n!=rb&&t.push(n)}),e.cursorWrapper&&t.push(rh.create(e.state.doc,[e.cursorWrapper.deco])),rM.from(t)}let rw={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},rR=q&&x<=11;class rS{set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}}class rW{flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,rw)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;tthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(e3(this.view)){if(this.suppressingSelectionUpdates)return eG(this.view);if(q&&x<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&s(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,r;for(let r=e.focusNode;r;r=n(r))t.add(r);for(let o=e.anchorNode;o;o=n(o))if(t.has(o)){r=o;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:3==r.nodeType?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let r=e.domSelectionRange(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&e3(e)&&!this.ignoreSelectionChange(r),o=-1,i=-1,a=!1,s=[];if(e.editable)for(let e=0;e"BR"==e.nodeName);if(2==t.length){let[e,r]=t;e.parentNode&&e.parentNode.parentNode==r.parentNode?r.remove():e.remove()}else{let{focusNode:r}=this.currentSelection;for(let n of t){let t=n.parentNode;t&&"LI"==t.nodeName&&(!r||rT(e,r)!=t)&&n.remove()}}}let c=null;o<0&&n&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||n)&&(o>-1&&(e.docView.markDirty(o,i),rL(e)),this.handleDOMChange(o,i,a,s),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||eG(e),this.currentSelection.set(r))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style"))||!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let r=0;rArray.prototype.indexOf.call(e.addedNodes,r))&&(o=r),(!n||0>Array.prototype.indexOf.call(e.addedNodes,n))&&(i=n)}let a=o&&o.parentNode==e.target?r(o)+1:0,s=n.localPosFromDOM(e.target,a,-1),c=i&&i.parentNode==e.target?r(i):e.target.childNodes.length;return{from:s,to:n.localPosFromDOM(e.target,c,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new rS,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(e=>{for(let t=0;t"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),rR&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}}let rk=new WeakMap,rE=!1;function rL(e){!rk.has(e)&&(rk.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace))&&(e.requiresGeckoHackNode=w,rE||(console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),rE=!0))}function rN(e,t){let r=t.startContainer,n=t.startOffset,o=t.endContainer,i=t.endOffset,a=e.domAtPos(e.state.selection.anchor);return s(a.node,a.offset,o,i)&&([r,n,o,i]=[o,i,r,n]),{anchorNode:r,anchorOffset:n,focusNode:o,focusOffset:i}}function rC(e,t){let r;if(t.getComposedRanges){let r=t.getComposedRanges(e.root)[0];if(r)return rN(e,r)}function n(e){e.preventDefault(),e.stopImmediatePropagation(),r=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",n,!0),r?rN(e,r):null}function rT(e,t){for(let r=t.parentNode;r&&r!=e.dom;r=r.parentNode){let t=e.docView.nearestDesc(r,!0);if(t&&t.node.isBlock)return r}return null}function rD(e,t,r){let n,{node:o,fromOffset:i,toOffset:a,from:s,to:c}=e.docView.parseRange(t,r),u=e.domSelectionRange(),l=u.anchorNode;if(l&&e.dom.contains(1==l.nodeType?l:l.parentNode)&&(n=[{node:l,offset:u.anchorOffset}],b(u)||n.push({node:u.focusNode,offset:u.focusOffset})),S&&8===e.input.lastKeyCode)for(let e=a;e>i;e--){let t=o.childNodes[e-1],r=t.pmViewDesc;if("BR"==t.nodeName&&!r){a=e;break}if(!r||r.size)break}let p=e.state.doc,f=e.someProp("domParser")||parcelRequire("kviC1").DOMParser.fromSchema(e.state.schema),d=p.resolve(s),h=null,M=f.parse(o,{topNode:d.parent,topMatch:d.parent.contentMatchAt(d.index()),topOpen:!0,from:i,to:a,preserveWhitespace:"pre"!=d.parent.type.whitespace||"full",findPositions:n,ruleFromNode:rB,context:d});if(n&&null!=n[0].pos){let e=n[0].pos,t=n[1]&&n[1].pos;null==t&&(t=e),h={anchor:e+s,head:t+s}}return{doc:M,sel:h,from:s,to:c}}function rB(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(k&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}else if(e.parentNode.lastChild==e||k&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}let rI=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function rP(e,t,r,n,o){let i,a,s,c,u,l,p=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,r=eH(e,t);if(r&&!e.state.selection.eq(r)){if(S&&C&&13===e.input.lastKeyCode&&Date.now()-100t(e,M(13,"Enter"))))return;let n=e.state.tr.setSelection(r);"pointer"==t?n.setMeta("pointer",!0):"key"==t&&n.scrollIntoView(),p&&n.setMeta("composition",p),e.dispatch(n)}return}let f=e.state.doc.resolve(t),d=f.sharedDepth(r);t=f.before(d+1),r=e.state.doc.resolve(r).after(d+1);let h=e.state.selection,b=rD(e,t,r),z=e.state.doc,O=z.slice(b.from,b.to);8===e.input.lastKeyCode&&Date.now()-100Date.now()-225||C)&&o.some(e=>1==e.nodeType&&!rI.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp("handleKeyDown",t=>t(e,M(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!m)if(n&&h instanceof parcelRequire("7T7aA").TextSelection&&!h.empty&&h.$head.sameParent(h.$anchor)&&!e.composing&&!(b.sel&&b.sel.anchor!=b.sel.head))m={start:h.from,endA:h.to,endB:h.to};else{if(b.sel){let t=rF(e,e.state.doc,b.sel);if(t&&!t.eq(e.state.selection)){let r=e.state.tr.setSelection(t);p&&r.setMeta("composition",p),e.dispatch(r)}}return}e.state.selection.frome.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=b.from?m.start=e.state.selection.from:m.endA=e.state.selection.to-2&&e.state.selection.to<=b.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),q&&x<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>b.from&&"  "==b.doc.textBetween(m.start-b.from-1,m.start-b.from+1)&&(m.start--,m.endA--,m.endB--);let g=b.doc.resolveNoCache(m.start-b.from),A=b.doc.resolveNoCache(m.endB-b.from),v=z.resolve(m.start),y=g.sameParent(A)&&g.parent.inlineContent&&v.end()>=m.endA;if((E&&e.input.lastIOSEnter>Date.now()-225&&(!y||o.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!y&&g.post(e,M(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&rX(z,m.start,m.endA,g,A)&&e.someProp("handleKeyDown",t=>t(e,M(8,"Backspace")))){C&&S&&e.domObserver.suppressSelectionUpdates();return}S&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),C&&!y&&g.start()!=A.start()&&0==A.parentOffset&&g.depth==A.depth&&b.sel&&b.sel.anchor==b.sel.head&&b.sel.head==m.endA&&(m.endB-=2,A=b.doc.resolveNoCache(m.endB-b.from),setTimeout(()=>{e.someProp("handleKeyDown",function(t){return t(e,M(13,"Enter"))})},20));let _=m.start,w=m.endA;if(y){if(g.pos==A.pos)q&&x<=11&&0==g.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>eG(e),20)),c=e.state.tr.delete(_,w),u=z.resolve(m.start).marksAcross(z.resolve(m.endA));else if(m.endA==m.endB&&(l=rj(g.parent.content.cut(g.parentOffset,A.parentOffset),v.parent.content.cut(v.parentOffset,m.endA-v.start()))))c=e.state.tr,"add"==l.type?c.addMark(_,w,l.mark):c.removeMark(_,w,l.mark);else if(g.parent.child(g.index()).isText&&g.index()==A.index()-!A.textOffset){let t=g.parent.textBetween(g.parentOffset,A.parentOffset);if(e.someProp("handleTextInput",r=>r(e,_,w,t)))return;c=e.state.tr.insertText(t,_,w)}}if(c||(c=e.state.tr.replace(_,w,b.doc.slice(m.start-b.from,m.endB-b.from))),b.sel){let t=rF(e,c.doc,b.sel);t&&!(S&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDeletet.content.size?null:e2(e,t.resolve(r.anchor),t.resolve(r.head))}function rj(e,t){let r=e.firstChild.marks,n=t.firstChild.marks,o=r,i=n,a,s,c;for(let e=0;ee.mark(s.addToSet(e.marks));else{if(0!=o.length||1!=i.length)return null;s=i[0],a="remove",c=e=>e.mark(s.removeFromSet(e.marks))}let u=[];for(let e=0;er||rU(a,!0,!1)0&&(t||e.indexAfter(n)==e.node(n).childCount);)n--,o++,t=!1;if(r){let t=e.node(n).maybeChild(e.indexAfter(n));for(;t&&!t.isLeaf;)t=t.firstChild,o++}return o}function rH(e,t,r,n,o){let i=e.findDiffStart(t,r);if(null==i)return null;let{a:a,b:s}=e.findDiffEnd(t,r+e.size,r+t.size);if("end"==o){let e=Math.max(0,i-Math.min(a,s));n-=a+e-i}if(a=a?i-n:0;(i-=e)&&i=s?i-n:0;(i-=t)&&i=56320&&t<=57343&&r>=55296&&r<=56319}class rG{get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;for(let t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&tI(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(r0),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];for(let r in t.state=this.state,e)t[r]=e[r];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var r;let n=this.state,o=!1,i=!1;e.storedMarks&&this.composing&&(t5(this),i=!0),this.state=e;let a=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=rZ(this);rJ(e,this.nodeViews)&&(this.nodeViews=e,o=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&tI(this),this.editable=rQ(this),rK(this);let s=rx(this),c=rY(this),u=n.plugins==e.plugins||n.doc.eq(e.doc)?e.scrollToSelection>n.scrollToSelection?"to selection":"preserve":"reset",l=o||!this.docView.matchesNode(e.doc,c,s);(l||!e.selection.eq(n.selection))&&(i=!0);let p="preserve"==u&&i&&null==this.dom.style.overflowAnchor&&j(this);if(i){this.domObserver.stop();let t=l&&(q||S)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&r$(n.selection,e.selection);if(l){let r=S?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=t6(this)),(o||!this.docView.update(e.doc,c,s,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=eq(e.doc,c,s,this.dom,this)),r&&!this.trackWrites&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&e5(this))?eG(this,t):(e0(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),(null==(r=this.dragging)?void 0:r.node)&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),"reset"==u?this.dom.scrollTop=0:"to selection"==u?this.scrollToSelection():p&&U(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof parcelRequire("7T7aA").NodeSelection){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&F(this,t.getBoundingClientRect(),e)}else F(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t0&&this.state.doc.nodeAt(e))==r.node&&(n=e)}this.dragging=new ri(e.slice,e.move,n<0?void 0:parcelRequire("7T7aA").NodeSelection.create(this.state.doc,n))}someProp(e,t){let r=this._props&&this._props[e],n;if(null!=r&&(n=t?t(r):r))return n;for(let r=0;re.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return et(this,e)}coordsAtPos(e,t=1){return ei(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,r=-1){let n=this.docView.posFromDOM(e,t,r);if(null==n)throw RangeError("DOM position not inside the editor");return n}endOfTextblock(e,t){return eb(this,t||this.state,e)}pasteHTML(e,t){return rn(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return rn(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(tB(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],rx(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,a())}get isDestroyed(){return null==this.docView}dispatchEvent(e){return tj(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?k&&11===this.root.nodeType&&z(this.dom.ownerDocument)==this.dom&&rC(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new tC,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(r0),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=rQ(this),rK(this),this.nodeViews=rZ(this),this.docView=eq(this.state.doc,rY(this),rx(this),this.dom,this),this.domObserver=new rW(this,(e,t,r,n)=>rP(this,e,t,r,n)),this.domObserver.start(),tT(this),this.updatePluginViews()}}function rY(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",r=>{if("function"==typeof r&&(r=r(e.state)),r)for(let e in r)"class"==e?t.class+=" "+r[e]:"style"==e?t.style=(t.style?t.style+";":"")+r[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(r[e]))}),t.translate||(t.translate="no"),[rp.node(0,e.state.doc.content.size,t)]}function rK(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:rp.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function rQ(e){return!e.someProp("editable",t=>!1===t(e.state))}function r$(e,t){let r=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(r)!=t.$anchor.start(r)}function rZ(e){let t=Object.create(null);function r(e){for(let r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r])}return e.someProp("nodeViews",r),e.someProp("markViews",r),t}function rJ(e,t){let r=0,n=0;for(let n in e){if(e[n]!=t[n])return!0;r++}for(let e in t)n++;return r!=n}function r0(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError("Plugins passed directly to the view must not have a state component")}}),parcelRegister("5DDni",function(e,t){$parcel$export(e.exports,"deleteSelection",()=>r),$parcel$export(e.exports,"selectNodeBackward",()=>a),$parcel$export(e.exports,"exitCode",()=>h),$parcel$export(e.exports,"createParagraphNear",()=>b),$parcel$export(e.exports,"splitBlock",()=>z),$parcel$export(e.exports,"selectAll",()=>O),$parcel$export(e.exports,"toggleMark",()=>x),$parcel$export(e.exports,"autoJoin",()=>R),$parcel$export(e.exports,"chainCommands",()=>S),$parcel$export(e.exports,"baseKeymap",()=>N);let r=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function n(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("backward",e):!(r.parentOffset>0))?r:null}let o=(e,t,r)=>{let o=n(e,r);if(!o)return!1;let a=s(o);if(!a){let r=o.blockRange(),n=r&&(0,parcelRequire("4FvAQ").liftTarget)(r);return null!=n&&(t&&t(e.tr.lift(r,n).scrollIntoView()),!0)}let c=a.nodeBefore;if(g(e,a,t,-1))return!0;if(0==o.parent.content.size&&(i(c,"end")||parcelRequire("7T7aA").NodeSelection.isSelectable(c)))for(let r=o.depth;;r--){let n=(0,parcelRequire("4FvAQ").replaceStep)(e.doc,o.before(r),o.after(r),parcelRequire("kviC1").Slice.empty);if(n&&n.slice.size1)break}return!!c.isAtom&&a.depth==o.depth-1&&(t&&t(e.tr.delete(a.pos-c.nodeSize,a.pos).scrollIntoView()),!0)};function i(e,t,r=!1){for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)break}return!1}let a=(e,t,r)=>{let{$head:n,empty:o}=e.selection,i=n;if(!o)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;i=s(n)}let a=i&&i.nodeBefore;return!!a&&!!parcelRequire("7T7aA").NodeSelection.isSelectable(a)&&(t&&t(e.tr.setSelection(parcelRequire("7T7aA").NodeSelection.create(e.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)};function s(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function c(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("forward",e):!(r.parentOffset{let n=c(e,r);if(!n)return!1;let o=p(n);if(!o)return!1;let a=o.nodeAfter;if(g(e,o,t,1))return!0;if(0==n.parent.content.size&&(i(a,"start")||parcelRequire("7T7aA").NodeSelection.isSelectable(a))){let r=(0,parcelRequire("4FvAQ").replaceStep)(e.doc,n.before(),n.after(),parcelRequire("kviC1").Slice.empty);if(r&&r.slice.size{let{$head:n,empty:o}=e.selection,i=n;if(!o)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset=0;t--){let r=e.node(t);if(e.index(t)+1{let{$head:r,$anchor:n}=e.selection;return!!r.parent.type.spec.code&&!!r.sameParent(n)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function d(e){for(let t=0;t{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let o=r.node(-1),i=r.indexAfter(-1),a=d(o.contentMatchAt(i));if(!a||!o.canReplaceWith(i,i,a))return!1;if(t){let n=r.after(),o=e.tr.replaceWith(n,n,a.createAndFill());o.setSelection(parcelRequire("7T7aA").Selection.near(o.doc.resolve(n),1)),t(o.scrollIntoView())}return!0},b=(e,t)=>{let r=e.selection,{$from:n,$to:o}=r;if(r instanceof parcelRequire("7T7aA").AllSelection||n.parent.inlineContent||o.parent.inlineContent)return!1;let i=d(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let r=(!n.parentOffset&&o.index(){let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let n=r.before();if((0,parcelRequire("4FvAQ").canSplit)(e.doc,n))return t&&t(e.tr.split(n).scrollIntoView()),!0}let n=r.blockRange(),o=n&&(0,parcelRequire("4FvAQ").liftTarget)(n);return null!=o&&(t&&t(e.tr.lift(n,o).scrollIntoView()),!0)},z=function(e){return(e,t)=>{let{$from:r,$to:n}=e.selection;if(e.selection instanceof parcelRequire("7T7aA").NodeSelection&&e.selection.node.isBlock)return!!r.parentOffset&&!!(0,parcelRequire("4FvAQ").canSplit)(e.doc,r.pos)&&(t&&t(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],i,a,s=!1,c=!1;for(let e=r.depth;;e--){if(r.node(e).isBlock){s=r.end(e)==r.pos+(r.depth-e),c=r.start(e)==r.pos-(r.depth-e),a=d(r.node(e-1).contentMatchAt(r.indexAfter(e-1)));let t=void 0;o.unshift(t||(s&&a?{type:a}:null)),i=e;break}if(1==e)return!1;o.unshift(null)}let u=e.tr;(e.selection instanceof parcelRequire("7T7aA").TextSelection||e.selection instanceof parcelRequire("7T7aA").AllSelection)&&u.deleteSelection();let l=u.mapping.map(r.pos),p=(0,parcelRequire("4FvAQ").canSplit)(u.doc,l,o.length,o);if(p||(o[0]=a?{type:a}:null,p=(0,parcelRequire("4FvAQ").canSplit)(u.doc,l,o.length,o)),u.split(l,o.length,o),!s&&c&&r.node(i).type!=a){let e=u.mapping.map(r.before(i)),t=u.doc.resolve(e);a&&r.node(i-1).canReplaceWith(t.index(),t.index()+1,a)&&u.setNodeMarkup(u.mapping.map(r.before(i)),a)}return t&&t(u.scrollIntoView()),!0}}(),O=(e,t)=>(t&&t(e.tr.setSelection(new(0,parcelRequire("7T7aA").AllSelection)(e.doc))),!0);function m(e,t,r){let n=t.nodeBefore,o=t.nodeAfter,i=t.index();return!!n&&!!o&&!!n.type.compatibleContent(o.type)&&(!n.content.size&&t.parent.canReplace(i-1,i)?(r&&r(e.tr.delete(t.pos-n.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(i,i+1)&&!!(o.isTextblock||(0,parcelRequire("4FvAQ").canJoin)(e.doc,t.pos))&&(r&&r(e.tr.join(t.pos).scrollIntoView()),!0))}function g(e,t,r,n){let o=t.nodeBefore,a=t.nodeAfter,s,c,u=o.type.spec.isolating||a.type.spec.isolating;if(!u&&m(e,t,r))return!0;let l=!u&&t.parent.canReplace(t.index(),t.index()+1);if(l&&(s=(c=o.contentMatchAt(o.childCount)).findWrapping(a.type))&&c.matchType(s[0]||a.type).validEnd){if(r){let n=t.pos+a.nodeSize,i=parcelRequire("kviC1").Fragment.empty;for(let e=s.length-1;e>=0;e--)i=parcelRequire("kviC1").Fragment.from(s[e].create(null,i));i=parcelRequire("kviC1").Fragment.from(o.copy(i));let c=e.tr.step(new(0,parcelRequire("4FvAQ").ReplaceAroundStep)(t.pos-1,n,t.pos,n,new(0,parcelRequire("kviC1").Slice)(i,1,0),s.length,!0)),u=c.doc.resolve(n+2*s.length);u.nodeAfter&&u.nodeAfter.type==o.type&&(0,parcelRequire("4FvAQ").canJoin)(c.doc,u.pos)&&c.join(u.pos),r(c.scrollIntoView())}return!0}let p=a.type.spec.isolating||n>0&&u?null:parcelRequire("7T7aA").Selection.findFrom(t,1),f=p&&p.$from.blockRange(p.$to),d=f&&(0,parcelRequire("4FvAQ").liftTarget)(f);if(null!=d&&d>=t.depth)return r&&r(e.tr.lift(f,d).scrollIntoView()),!0;if(l&&i(a,"start",!0)&&i(o,"end")){let n=o,i=[];for(;i.push(n),!n.isTextblock;)n=n.lastChild;let s=a,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(n.canReplace(n.childCount,n.childCount,s.content)){if(r){let n=parcelRequire("kviC1").Fragment.empty;for(let e=i.length-1;e>=0;e--)n=parcelRequire("kviC1").Fragment.from(i[e].copy(n));r(e.tr.step(new(0,parcelRequire("4FvAQ").ReplaceAroundStep)(t.pos-i.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new(0,parcelRequire("kviC1").Slice)(n,i.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function A(e){return function(t,r){let n=t.selection,o=e<0?n.$from:n.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return!!o.node(i).isTextblock&&(r&&r(t.tr.setSelection(parcelRequire("7T7aA").TextSelection.create(t.doc,e<0?o.start(i):o.end(i)))),!0)}}let v=A(-1),y=A(1);function _(e,t,r,n){for(let o=0;o{if(s||!n&&e.isAtom&&e.isInline&&t>=i.pos&&t+e.nodeSize<=a.pos)return!1;s=e.inlineContent&&e.type.allowsMarkType(r)}),s)return!0}return!1}function q(e){let t=[];for(let r=0;r{if(e.isAtom&&e.content.size&&e.isInline&&r>=n.pos&&r+e.nodeSize<=o.pos)return r+1>n.pos&&t.push(new(0,parcelRequire("7T7aA").SelectionRange)(n,n.doc.resolve(r+1))),n=n.doc.resolve(r+1+e.content.size),!1}),n.posr.doc.rangeHasMark(t.$from.pos,t.$to.pos,e)):!c.every(t=>{let r=!1;return s.doc.nodesBetween(t.$from.pos,t.$to.pos,(n,o,i)=>{if(r)return!1;r=!e.isInSet(n.marks)&&!!i&&i.type.allowsMarkType(e)&&!(n.isText&&/^\s*$/.test(n.textBetween(Math.max(0,t.$from.pos-o),Math.min(n.nodeSize,t.$to.pos-o))))}),!r});for(let r=0;r{if(!r.isGeneric)return e(r);let n=[];for(let e=0;en.push(r,o))}let o=[];for(let e=0;ee-t);for(let e=o.length-1;e>=0;e--)(0,parcelRequire("4FvAQ").canJoin)(r.doc,o[e])&&r.join(o[e]);e(r)}}function R(e,t){let r=Array.isArray(t)?e=>t.indexOf(e.type.name)>-1:t;return(t,n,o)=>e(t,n&&w(n,r),o)}function S(...e){return function(t,r,n){for(let o=0;oA),$parcel$export(e.exports,"history",()=>_),$parcel$export(e.exports,"undo",()=>x),$parcel$export(e.exports,"redo",()=>w);var r=200,n=function(){};n.prototype.append=function(e){return e.length?(e=n.from(e),!this.length&&e||e.length=t)?n.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},n.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},n.prototype.forEach=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},n.prototype.map=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(t,r){return n.push(e(t,r))},t,r),n},n.from=function(e){return e instanceof n?e:e&&e.length?new o(e):n.empty};var o=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,r){return 0==e&&r==this.length?this:new t(this.values.slice(e,r))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,r,n){for(var o=t;o=r;o--)if(!1===e(this.values[o],n+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=r)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=r)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(n);n.empty=new o([]);var i=function(e){function t(t,r){e.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return eo&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,r)-o,n+o))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){var o=this.left.length;if(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(r,o)-o,n+o)||r=r?this.right.slice(e-r,t-r):this.left.slice(e,r).append(this.right.slice(0,t-r))},t.prototype.leafAppend=function(e){var r=this.right.leafAppend(e);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(e){var r=this.left.leafPrepend(e);if(r)return new t(r,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(n),a=n;let s=500;class c{popEvent(e,t){let r,n,o,i;if(0==this.eventCount)return null;let a=this.items.length;for(;;a--)if(this.items.get(a-1).selection){--a;break}t&&(n=(r=this.remapping(a,this.items.length)).maps.length);let s=e.tr,u=[],p=[];return this.items.forEach((e,t)=>{if(!e.step){r||(n=(r=this.remapping(a,t+1)).maps.length),n--,p.push(e);return}if(r){p.push(new l(e.map));let t=e.step.map(r.slice(n)),o;t&&s.maybeStep(t).doc&&(o=s.mapping.maps[s.mapping.maps.length-1],u.push(new l(o,void 0,void 0,u.length+p.length))),n--,o&&r.appendMap(o,n)}else s.maybeStep(e.step);if(e.selection)return o=r?e.selection.map(r.slice(n)):e.selection,i=new c(this.items.slice(0,a).append(p.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:i,transform:s,selection:o}}addTransform(e,t,r,n){let o=[],i=this.eventCount,a=this.items,s=!n&&a.length?a.get(a.length-1):null;for(let r=0;rf&&(a=u(a,p),i-=p),new c(a.append(o),i)}remapping(e,t){let r=new(0,parcelRequire("4FvAQ").Mapping);return this.items.forEach((t,n)=>{let o=null!=t.mirrorOffset&&n-t.mirrorOffset>=e?r.maps.length-t.mirrorOffset:void 0;r.appendMap(t.map,o)},e,t),r}addMaps(e){return 0==this.eventCount?this:new c(this.items.append(e.map(e=>new l(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-t),o=e.mapping,i=e.steps.length,a=this.eventCount;this.items.forEach(e=>{e.selection&&a--},n);let u=t;this.items.forEach(t=>{let n=o.getMirror(--u);if(null==n)return;i=Math.min(i,n);let s=o.maps[n];if(t.step){let i=e.steps[n].invert(e.docs[n]),c=t.selection&&t.selection.map(o.slice(u+1,n));c&&a++,r.push(new l(s,i,c))}else r.push(new l(s))},n);let p=[];for(let e=t;es&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,n=[],o=0;return this.items.forEach((i,a)=>{if(a>=e)n.push(i),i.selection&&o++;else if(i.step){let e=i.step.map(t.slice(r)),a=e&&e.getMap();if(r--,a&&t.appendMap(a,r),e){let s=i.selection&&i.selection.map(t.slice(r));s&&o++;let c=new l(a.invert(),e,s),u,p=n.length-1;(u=n.length&&n[p].merge(c))?n[p]=u:n.push(c)}}else i.map&&r--},this.items.length,0),new c(a.from(n.reverse()),o)}constructor(e,t){this.items=e,this.eventCount=t}}function u(e,t){let r;return e.forEach((e,n)=>{if(e.selection&&0==t--)return r=n,!1}),e.slice(r)}c.empty=new c(a.empty,0);class l{merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new l(t.getMap().invert(),t,this.selection)}}constructor(e,t,r,n){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=n}}class p{constructor(e,t,r,n,o){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=n,this.prevComposition=o}}let f=20;function d(e,t,r,n){let o=r.getMeta(v),i;if(o)return o.historyState;r.getMeta(y)&&(e=new p(e.done,e.undone,null,0,-1));let a=r.getMeta("appendedTransaction");if(0==r.steps.length)return e;if(a&&a.getMeta(v))if(a.getMeta(v).redo)return new p(e.done.addTransform(r,void 0,n,g(t)),e.undone,b(r.mapping.maps),e.prevTime,e.prevComposition);else return new p(e.done,e.undone.addTransform(r,void 0,n,g(t)),null,e.prevTime,e.prevComposition);if(!1===r.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))if(i=r.getMeta("rebased"))return new p(e.done.rebased(r,i),e.undone.rebased(r,i),M(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);else return new p(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),M(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);{let o=r.getMeta("composition"),i=0==e.prevTime||!a&&e.prevComposition!=o&&(e.prevTime<(r.time||0)-n.newGroupDelay||!h(r,e.prevRanges)),s=a?M(e.prevRanges,r.mapping):b(r.mapping.maps);return new p(e.done.addTransform(r,i?t.selection.getBookmark():void 0,n,g(t)),c.empty,s,r.time,null==o?e.prevComposition:o)}}function h(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;return e.mapping.maps[0].forEach((e,n)=>{for(let o=0;o=t[o]&&(r=!0)}),r}function b(e){let t=[];for(let r=e.length-1;r>=0&&0==t.length;r--)e[r].forEach((e,r,n,o)=>t.push(n,o));return t}function M(e,t){if(!e)return null;let r=[];for(let n=0;nnew p(c.empty,c.empty,null,0,-1),apply:(t,r,n)=>d(r,n,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,n="historyUndo"==r?x:"historyRedo"==r?w:null;return!!n&&(t.preventDefault(),n(e.state,e.dispatch))}}}})}function q(e,t){return(r,n)=>{let o=v.getState(r);if(!o||0==(e?o.undone:o.done).eventCount)return!1;if(n){let i=z(o,r,e);i&&n(t?i.scrollIntoView():i)}return!0}}let x=q(!1,!0),w=q(!0,!0);q(!1,!1),q(!0,!1)}),parcelRegister("lfYp8",function(e,t){$parcel$export(e.exports,"keymap",()=>s),$parcel$export(e.exports,"keydownHandler",()=>c);var r=parcelRequire("3eKNZ");let n="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function o(e){let t,r,o,i,a=e.split(/-(?!$)/),s=a[a.length-1];"Space"==s&&(s=" ");for(let e=0;e127)&&(i=r.base[n.keyCode])&&i!=o){let r=t[a(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}}),parcelRegister("3eKNZ",function(e,t){$parcel$export(e.exports,"base",()=>r),$parcel$export(e.exports,"shift",()=>n),$parcel$export(e.exports,"keyName",()=>c);for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},n={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),i="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)r[48+a]=r[96+a]=String(a);for(var a=1;a<=24;a++)r[a+111]="F"+a;for(var a=65;a<=90;a++)r[a]=String.fromCharCode(a+32),n[a]=String.fromCharCode(a);for(var s in r)n.hasOwnProperty(s)||(n[s]=r[s]);function c(e){var t=!(o&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||i&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?n:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}}),parcelRegister("cC77I",function(e,t){var r=e.exports&&e.exports.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n=parcelRequire("7Qfu8"),o=parcelRequire("7thtb"),i=parcelRequire("aagPD"),a=parcelRequire("8zdu9"),s=parcelRequire("5LW9U"),c=parcelRequire("9rIYI"),u=function(e){function t(t){e.call(this,t),this.destination=t}return r(t,e),t}(o.Subscriber);e.exports.SubjectSubscriber=u;var l=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(t,e),t.prototype[c.rxSubscriber]=function(){return new u(this)},t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),o=0;or,e=>r=e),r=parcelRequire("fnLqe").FromObservable.create}),parcelRegister("eJ5lO",function(e,t){$parcel$export(e.exports,"concatMap",()=>r,e=>r=e);var r,n=parcelRequire("j9dDw");r=function(e,t){return n.mergeMap(e,t,1)}}),parcelRegister("2HUA6",function(e,t){var r=e.exports&&e.exports.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n=parcelRequire("7thtb");function o(e,t){return function(r){return r.lift(new i(e,t))}}e.exports.filter=o;var i=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))},e}(),a=function(e){function t(t,r,n){e.call(this,t),this.predicate=r,this.thisArg=n,this.count=0}return r(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}t&&this.destination.next(e)},t}(n.Subscriber)}),parcelRegister("a6htS",function(e,t){var r=e.exports&&e.exports.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n=parcelRequire("7thtb"),o=parcelRequire("6v8b0"),i=parcelRequire("7m4cA");function a(e){return function(t){return 0===e?new i.EmptyObservable:t.lift(new s(e))}}e.exports.take=a;var s=function(){function e(e){if(this.total=e,this.total<0)throw new o.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.total))},e}(),c=function(e){function t(t,r){e.call(this,t),this.total=r,this.count=0}return r(t,e),t.prototype._next=function(e){var t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))},t}(n.Subscriber)}),parcelRegister("lGXCs",function(e,t){$parcel$export(e.exports,"toArray",()=>r,e=>r=e);var r,n=parcelRequire("lyfdA");function o(e,t,r){return 0===r?[t]:(e.push(t),e)}r=function(){return n.reduce(o,[])}}),parcelRegister("guQFZ",function(e,t){var r;$parcel$export(e.exports,"of",()=>r,e=>r=e),r=parcelRequire("hnqWP").ArrayObservable.of}),parcelRegister("4iZtC",function(e,t){var r=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n=parcelRequire("fXXOd"),o=parcelRequire("jWN7t"),i=parcelRequire("7thtb"),a=parcelRequire("811AM");t.delay=function(e,t){void 0===t&&(t=n.async);var r=o.isDate(e)?e-t.now():Math.abs(e);return function(e){return e.lift(new s(r,t))}};var s=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.delay,this.scheduler))},e}(),c=function(e){function t(t,r,n){e.call(this,t),this.delay=r,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}return r(t,e),t.dispatch=function(e){for(var t=e.source,r=t.queue,n=e.scheduler,o=e.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(o);if(r.length>0){var i=Math.max(0,r[0].time-n.now());this.schedule(e,i)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,r=new u(t.now()+this.delay,e);this.queue.push(r),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(a.Notification.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e)},t.prototype._complete=function(){this.scheduleNotification(a.Notification.createComplete())},t}(i.Subscriber),u=function(){return function(e,t){this.time=e,this.notification=t}}()}),parcelRegister("aD3QS",function(e,t){var r=parcelRequire("3mTvL");!function(t){var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=10;function i(){this._events={},this._conf&&a.call(this,this._conf)}function a(e){e?(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),this._maxListeners=e.maxListeners!==t?e.maxListeners:o,e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this.newListener=e.newListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._maxListeners=o}function s(e,t){var n="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(n+=" Event name: "+t+"."),void 0!==r&&r.emitWarning){var o=Error(n);o.name="MaxListenersExceededWarning",o.emitter=this,o.count=e,r.emitWarning(o)}else console.error(n),console.trace&&console.trace()}function c(e){this._events={},this.newListener=!1,this.verboseMemoryLeak=!1,a.call(this,e)}function u(e,t,r,n){if(!r)return[];var o,i,a,s,c,l,p,f=[],d=t.length,h=t[n],b=t[n+1];if(n===d&&r._listeners)if("function"==typeof r._listeners)return e&&e.push(r._listeners),[r];else{for(o=0,i=r._listeners.length;o0&&i._listeners.length>this._maxListeners&&(i._listeners.warned=!0,s.call(this,i._listeners.length,a))):i._listeners=r;break}a=e.shift()}return!0}c.EventEmitter2=c,c.prototype.delimiter=".",c.prototype.setMaxListeners=function(e){e!==t&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},c.prototype.event="",c.prototype.once=function(e,t){return this._once(e,t,!1)},c.prototype.prependOnceListener=function(e,t){return this._once(e,t,!0)},c.prototype._once=function(e,t,r){return this._many(e,1,t,r),this},c.prototype.many=function(e,t,r){return this._many(e,t,r,!1)},c.prototype.prependMany=function(e,t,r){return this._many(e,t,r,!0)},c.prototype._many=function(e,t,r,n){var o=this;if("function"!=typeof r)throw Error("many only accepts instances of Function");function i(){return 0==--t&&o.off(e,i),r.apply(this,arguments)}return i._origin=r,this._on(e,i,n),o},c.prototype.emit=function(){this._events||i.call(this);var e,t,r,n,o,a=arguments[0];if("newListener"===a&&!this.newListener&&!this._events.newListener)return!1;var s=arguments.length;if(this._all&&this._all.length){if(o=this._all.slice(),s>3)for(n=0,e=Array(s);n3)for(n=1,e=Array(s-1);n3)for(n=1,e=Array(c);n3)for(n=1,e=Array(c-1);n0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,s.call(this,this._events[e].length,e))):this._events[e]=t,this},c.prototype.off=function(e,r){if("function"!=typeof r)throw Error("removeListener only takes instances of Function");var o,i=[];if(this.wildcard){var a="string"==typeof e?e.split(this.delimiter):e.slice();i=u.call(this,null,a,this.listenerTree,0)}else{if(!this._events[e])return this;o=this._events[e],i.push({_listeners:o})}for(var s=0;s0&&d(e[o]),0===Object.keys(i).length&&delete e[o])}}}return d(this.listenerTree),this},c.prototype.offAny=function(e){var t,r=0,n=0;if(e&&this._all&&this._all.length>0){for(r=0,n=(t=this._all).length;r0&&this.destination.next(t),e.prototype._complete.call(this)},t}(n.Subscriber),s=function(e){function t(t,r,n){e.call(this,t),this.bufferSize=r,this.startBufferEvery=n,this.buffers=[],this.count=0}return r(t,e),t.prototype._next=function(e){var t=this,r=t.bufferSize,n=t.startBufferEvery,o=t.buffers,i=t.count;this.count++,i%n==0&&o.push([]);for(var a=o.length;a--;){var s=o[a];s.push(e),s.length===r&&(o.splice(a,1),this.destination.next(s))}},t.prototype._complete=function(){for(var t=this,r=t.buffers,n=t.destination;r.length>0;){var o=r.shift();o.length>0&&n.next(o)}e.prototype._complete.call(this)},t}(n.Subscriber)}),parcelRegister("gs15i",function(e,t){var r;$parcel$export(e.exports,"fromPromise",()=>r,e=>r=e),r=parcelRequire("fY1wi").PromiseObservable.create}),parcelRegister("iYtUB",function(e,t){var r;$parcel$export(e.exports,"range",()=>r,e=>r=e),r=parcelRequire("5BGVZ").RangeObservable.create}),parcelRegister("fF23j",function(e,t){var r=parcelRequire("3mTvL");!function(){var t="input is invalid type",n="object"==typeof window,o=n?window:{};o.JS_SHA256_NO_WINDOW&&(n=!1);var i=!n&&"object"==typeof self,a=!o.JS_SHA256_NO_NODE_JS&&"object"==typeof r&&r.versions&&r.versions.node;a?o=$parcel$global:i&&(o=self);var s=!o.JS_SHA256_NO_COMMON_JS&&e.exports,c="function"==typeof define&&define.amd,u=!o.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,l="0123456789abcdef".split(""),p=[-0x80000000,8388608,32768,128],f=[24,16,8,0],d=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],h=["hex","array","digest","arrayBuffer"],b=[];(o.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),u&&(o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var M=function(e,t){return function(r){return new A(t,!0).update(r)[e]()}},z=function(e){var t=M("hex",e);a&&(t=O(t,e)),t.create=function(){return new A(e)},t.update=function(e){return t.create().update(e)};for(var r=0;r>6:(a<55296||a>=57344?s[l++]=224|a>>12:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++o)),s[l++]=240|a>>18,s[l++]=128|a>>12&63),s[l++]=128|a>>6&63),s[l++]=128|63&a);e=s}else if("object"===i){if(null===e)throw Error(t);else if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);e.length>64&&(e=new A(r,!0).update(e).array());var p=[],f=[];for(o=0;o<64;++o){var d=e[o]||0;p[o]=92^d,f[o]=54^d}A.call(this,r,n),this.update(f),this.oKeyPad=p,this.inner=!0,this.sharedMemory=n}A.prototype.update=function(e){if(!this.finalized){var r,n=typeof e;if("string"!==n){if("object"===n){if(null===e)throw Error(t);else if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);r=!0}for(var o,i,a=0,s=e.length,c=this.blocks;a>2]|=e[a]<>2]|=o<>2]|=(192|o>>6)<=57344?c[i>>2]|=(224|o>>12)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=64?(this.block=c[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=p[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},A.prototype.hash=function(){var e,t,r,n,o,i,a,s,c,u,l,p=this.h0,f=this.h1,h=this.h2,b=this.h3,M=this.h4,z=this.h5,O=this.h6,m=this.h7,g=this.blocks;for(e=16;e<64;++e)t=((o=g[e-15])>>>7|o<<25)^(o>>>18|o<<14)^o>>>3,r=((o=g[e-2])>>>17|o<<15)^(o>>>19|o<<13)^o>>>10,g[e]=g[e-16]+t+g[e-7]+r|0;for(e=0,l=f&h;e<64;e+=4)this.first?(this.is224?(s=300032,m=(o=g[0]-0x543c9a5b)-0x8f1a6c7|0,b=o+0x170e9b5|0):(s=0x2a01a605,m=(o=g[0]-0xc881298)-0x5ab00ac6|0,b=o+0x8909ae5|0),this.first=!1):(t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),r=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),n=(s=p&f)^p&h^l,o=m+r+(a=M&z^~M&O)+d[e]+g[e],i=t+n,m=b+o|0,b=o+i|0),t=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),r=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),n=(c=b&p)^b&f^s,o=O+r+(a=m&M^~m&z)+d[e+1]+g[e+1],i=t+n,O=h+o|0,t=((h=o+i|0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),r=(O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7),n=(u=h&b)^h&p^c,o=z+r+(a=O&m^~O&M)+d[e+2]+g[e+2],i=t+n,z=f+o|0,t=((f=o+i|0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(z>>>6|z<<26)^(z>>>11|z<<21)^(z>>>25|z<<7),n=(l=f&h)^f&b^u,o=M+r+(a=z&O^~z&m)+d[e+3]+g[e+3],i=t+n,M=p+o|0,p=o+i|0,this.chromeBugWorkAround=!0;this.h0=this.h0+p|0,this.h1=this.h1+f|0,this.h2=this.h2+h|0,this.h3=this.h3+b|0,this.h4=this.h4+M|0,this.h5=this.h5+z|0,this.h6=this.h6+O|0,this.h7=this.h7+m|0},A.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,o=this.h4,i=this.h5,a=this.h6,s=this.h7,c=l[e>>28&15]+l[e>>24&15]+l[e>>20&15]+l[e>>16&15]+l[e>>12&15]+l[e>>8&15]+l[e>>4&15]+l[15&e]+l[t>>28&15]+l[t>>24&15]+l[t>>20&15]+l[t>>16&15]+l[t>>12&15]+l[t>>8&15]+l[t>>4&15]+l[15&t]+l[r>>28&15]+l[r>>24&15]+l[r>>20&15]+l[r>>16&15]+l[r>>12&15]+l[r>>8&15]+l[r>>4&15]+l[15&r]+l[n>>28&15]+l[n>>24&15]+l[n>>20&15]+l[n>>16&15]+l[n>>12&15]+l[n>>8&15]+l[n>>4&15]+l[15&n]+l[o>>28&15]+l[o>>24&15]+l[o>>20&15]+l[o>>16&15]+l[o>>12&15]+l[o>>8&15]+l[o>>4&15]+l[15&o]+l[i>>28&15]+l[i>>24&15]+l[i>>20&15]+l[i>>16&15]+l[i>>12&15]+l[i>>8&15]+l[i>>4&15]+l[15&i]+l[a>>28&15]+l[a>>24&15]+l[a>>20&15]+l[a>>16&15]+l[a>>12&15]+l[a>>8&15]+l[a>>4&15]+l[15&a];return this.is224||(c+=l[s>>28&15]+l[s>>24&15]+l[s>>20&15]+l[s>>16&15]+l[s>>12&15]+l[s>>8&15]+l[s>>4&15]+l[15&s]),c},A.prototype.toString=A.prototype.hex,A.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,o=this.h4,i=this.h5,a=this.h6,s=this.h7,c=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n,o>>24&255,o>>16&255,o>>8&255,255&o,i>>24&255,i>>16&255,i>>8&255,255&i,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||c.push(s>>24&255,s>>16&255,s>>8&255,255&s),c},A.prototype.array=A.prototype.digest,A.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},v.prototype=new A,v.prototype.finalize=function(){if(A.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();A.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),A.prototype.finalize.call(this)}};var y=z();y.sha256=y,y.sha224=z(!0),y.sha256.hmac=g(),y.sha224.hmac=g(!0),s?e.exports=y:(o.sha256=y.sha256,o.sha224=y.sha224,c&&define(function(){return y}))}()}),parcelRegister("ebBFF",function(e,t){!function(t,r){e.exports=r()}("undefined"!=typeof self?self:e.exports,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t,r){function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var o=r(5),i=r(1),a=i.toHex,s=i.ceilHeapSize,c=r(6),u=function(e){for(e+=9;e%64>0;e+=1);return e},l=function(e,t){var r=new Uint8Array(e.buffer),n=t%4,o=t-n;switch(n){case 0:r[o+3]=0;case 1:r[o+2]=0;case 2:r[o+1]=0;case 3:r[o+0]=0}for(var i=(t>>2)+1;i>2]|=128<<24-(t%4<<3),e[((t>>2)+2&-16)+14]=r/0x20000000|0,e[((t>>2)+2&-16)+15]=r<<3},f=function(e,t){var r=new Int32Array(e,t+320,5),n=new Int32Array(5),o=new DataView(n.buffer);return o.setInt32(0,r[0],!1),o.setInt32(4,r[1],!1),o.setInt32(8,r[2],!1),o.setInt32(12,r[3],!1),o.setInt32(16,r[4],!1),n};e.exports=function(){function e(t){if(n(this,e),(t=t||65536)%64>0)throw Error("Chunk size must be a multiple of 128 bit");this._offset=0,this._maxChunkLen=t,this._padMaxChunkLen=u(t),this._heap=new ArrayBuffer(s(this._padMaxChunkLen+320+20)),this._h32=new Int32Array(this._heap),this._h8=new Int8Array(this._heap),this._core=new o({Int32Array:Int32Array},{},this._heap)}return e.prototype._initState=function(e,t){this._offset=0;var r=new Int32Array(e,t+320,5);r[0]=0x67452301,r[1]=-0x10325477,r[2]=-0x67452302,r[3]=0x10325476,r[4]=-0x3c2d1e10},e.prototype._padChunk=function(e,t){var r=u(e),n=new Int32Array(this._heap,0,r>>2);return l(n,e),p(n,e,t),r},e.prototype._write=function(e,t,r,n){c(e,this._h8,this._h32,t,r,n||0)},e.prototype._coreCall=function(e,t,r,n,o){var i=r;this._write(e,t,r),o&&(i=this._padChunk(r,n)),this._core.hash(i,this._padMaxChunkLen)},e.prototype.rawDigest=function(e){var t=e.byteLength||e.length||e.size||0;this._initState(this._heap,this._padMaxChunkLen);var r=0,n=this._maxChunkLen;for(r=0;t>r+n;r+=n)this._coreCall(e,r,n,t,!1);return this._coreCall(e,r,t-r,t,!0),f(this._heap,this._padMaxChunkLen)},e.prototype.digest=function(e){return a(this.rawDigest(e).buffer)},e.prototype.digestFromString=function(e){return this.digest(e)},e.prototype.digestFromBuffer=function(e){return this.digest(e)},e.prototype.digestFromArrayBuffer=function(e){return this.digest(e)},e.prototype.resetState=function(){return this._initState(this._heap,this._padMaxChunkLen),this},e.prototype.append=function(e){var t=0,r=e.byteLength||e.length||e.size||0,n=this._offset%this._maxChunkLen,o=void 0;for(this._offset+=r;t0},!1)}function u(e,t){for(var r={main:[t]},n={main:[]},o={main:{}};c(r);)for(var i=Object.keys(r),a=0;a>2]|0;s=n[t+324>>2]|0;u=n[t+328>>2]|0;p=n[t+332>>2]|0;d=n[t+336>>2]|0;for(r=0;(r|0)<(e|0);r=r+64|0){a=i;c=s;l=u;f=p;h=d;for(o=0;(o|0)<64;o=o+4|0){M=n[r+o>>2]|0;b=((i<<5|i>>>27)+(s&u|~s&p)|0)+((M+d|0)+0x5a827999|0)|0;d=p;p=u;u=s<<30|s>>>2;s=i;i=b;n[e+o>>2]=M}for(o=e+64|0;(o|0)<(e+80|0);o=o+4|0){M=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s&u|~s&p)|0)+((M+d|0)+0x5a827999|0)|0;d=p;p=u;u=s<<30|s>>>2;s=i;i=b;n[o>>2]=M}for(o=e+80|0;(o|0)<(e+160|0);o=o+4|0){M=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s^u^p)|0)+((M+d|0)+0x6ed9eba1|0)|0;d=p;p=u;u=s<<30|s>>>2;s=i;i=b;n[o>>2]=M}for(o=e+160|0;(o|0)<(e+240|0);o=o+4|0){M=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s&u|s&p|u&p)|0)+((M+d|0)-0x70e44324|0)|0;d=p;p=u;u=s<<30|s>>>2;s=i;i=b;n[o>>2]=M}for(o=e+240|0;(o|0)<(e+320|0);o=o+4|0){M=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s^u^p)|0)+((M+d|0)-0x359d3e2a|0)|0;d=p;p=u;u=s<<30|s>>>2;s=i;i=b;n[o>>2]=M}i=i+a|0;s=s+c|0;u=u+l|0;p=p+f|0;d=d+h|0}n[t+320>>2]=i;n[t+324>>2]=s;n[t+328>>2]=u;n[t+332>>2]=p;n[t+336>>2]=d}return{hash:o}}},function(e,t){var r=this,n=void 0;"undefined"!=typeof self&&void 0!==self.FileReaderSync&&(n=new self.FileReaderSync);var o=function(e,t,r,n,o,i){var a=void 0,s=i%4,c=(o+s)%4,u=o-c;switch(s){case 0:t[i]=e.charCodeAt(n+3);case 1:t[i+1-(s<<1)|0]=e.charCodeAt(n+2);case 2:t[i+2-(s<<1)|0]=e.charCodeAt(n+1);case 3:t[i+3-(s<<1)|0]=e.charCodeAt(n)}if(!(o>2]=e.charCodeAt(n+a)<<24|e.charCodeAt(n+a+1)<<16|e.charCodeAt(n+a+2)<<8|e.charCodeAt(n+a+3);switch(c){case 3:t[i+u+1|0]=e.charCodeAt(n+u+2);case 2:t[i+u+2|0]=e.charCodeAt(n+u+1);case 1:t[i+u+3|0]=e.charCodeAt(n+u)}}},i=function(e,t,r,n,o,i){var a=void 0,s=i%4,c=(o+s)%4,u=o-c;switch(s){case 0:t[i]=e[n+3];case 1:t[i+1-(s<<1)|0]=e[n+2];case 2:t[i+2-(s<<1)|0]=e[n+1];case 3:t[i+3-(s<<1)|0]=e[n]}if(!(o>2]=e[n+a]<<24|e[n+a+1]<<16|e[n+a+2]<<8|e[n+a+3];switch(c){case 3:t[i+u+1|0]=e[n+u+2];case 2:t[i+u+2|0]=e[n+u+1];case 1:t[i+u+3|0]=e[n+u]}}},a=function(e,t,r,o,i,a){var s=void 0,c=a%4,u=(i+c)%4,l=i-u,p=new Uint8Array(n.readAsArrayBuffer(e.slice(o,o+i)));switch(c){case 0:t[a]=p[3];case 1:t[a+1-(c<<1)|0]=p[2];case 2:t[a+2-(c<<1)|0]=p[1];case 3:t[a+3-(c<<1)|0]=p[0]}if(!(i>2]=p[s]<<24|p[s+1]<<16|p[s+2]<<8|p[s+3];switch(u){case 3:t[a+l+1|0]=p[l+2];case 2:t[a+l+2|0]=p[l+1];case 1:t[a+l+3|0]=p[l]}}};e.exports=function(e,t,n,s,c,u){if("string"==typeof e)return o(e,t,n,s,c,u);if(e instanceof Array||r&&r.Buffer&&r.Buffer.isBuffer(e))return i(e,t,n,s,c,u);if(e instanceof ArrayBuffer)return i(new Uint8Array(e),t,n,s,c,u);if(e.buffer instanceof ArrayBuffer)return i(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t,n,s,c,u);if(e instanceof Blob)return a(e,t,n,s,c,u);throw Error("Unsupported data type.")}},function(e,t,r){function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var o=r(0),i=r(1).toHex,a=function(){function e(){n(this,e),this._rusha=new o,this._rusha.resetState()}return e.prototype.update=function(e){return this._rusha.append(e),this},e.prototype.digest=function(e){var t=this._rusha.rawEnd().buffer;if(!e)return t;if("hex"===e)return i(t);throw Error("unsupported digest encoding")},e}();e.exports=function(){return new a}}])})}),parcelRegister("cZs6j",function(e,t){for(var r=parcelRequire("fhwsL").Buffer,n=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/i,o=[],i=0;i<256;i++)o[i]=(i+256).toString(16).substr(1);function a(e,t){var r=t||0,n=o;return n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]}e.exports=function(e,t){var o;if(r.isBuffer(e))o=a(e);else{if("[object String]"!==Object.prototype.toString.call(e))return!1;o=e}if(o=o.toLowerCase(),!n.test(o))return!1;if(void 0===t)t=s(o);else if(s(o)!==t)return!1;switch(t){case 1:case 2:return!0;case 3:case 4:case 5:return -1!==["8","9","a","b"].indexOf(o.charAt(19));default:throw Error("Invalid version provided.")}};var s=e.exports.version=function(e){return 0|e.charAt(14)}}),parcelRegister("kZdIc",function(e,t){var r,n=e.exports&&e.exports.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=parcelRequire("cC77I"),i=parcelRequire("3galV");r=new(parcelRequire("2PATA")).QueueScheduler(i.QueueAction);var a=parcelRequire("aagPD"),s=parcelRequire("iYkiN"),c=parcelRequire("8zdu9"),u=parcelRequire("5LW9U"),l=function(e){function t(t,r,n){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY),e.call(this),this.scheduler=n,this._events=[],this._bufferSize=t<1?1:t,this._windowTime=r<1?1:r}return n(t,e),t.prototype.next=function(t){var r=this._getNow();this._events.push(new p(r,t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,r=this._trimBufferThenGetEvents(),n=this.scheduler;if(this.closed)throw new c.ObjectUnsubscribedError;this.hasError||this.isStopped?t=a.Subscription.EMPTY:(this.observers.push(e),t=new u.SubjectSubscription(this,e)),n&&e.add(e=new s.ObserveOnSubscriber(e,n));for(var o=r.length,i=0;it&&(i=Math.max(i,o-t)),i>0&&n.splice(0,i),n},t}(o.Subject);e.exports.ReplaySubject=l;var p=function(){return function(e,t){this.time=e,this.value=t}}()}),parcelRegister("7wTVD",function(e,t){$parcel$export(e.exports,"devtools",()=>a),$parcel$export(e.exports,"subscribeWithSelector",()=>c);var r=Object.assign(Object.create(null),{url:"file:///node_modules/zustand/esm/middleware.mjs"});let n=new Map,o=e=>{let t=n.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},i=(e,t,r)=>{if(void 0===e)return{type:"untracked",connection:t.connect(r)};let o=n.get(r.name);if(o)return{type:"tracked",store:e,...o};let i={connection:t.connect(r),stores:{}};return n.set(r.name,i),{type:"tracked",store:e,...i}},a=(e,t={})=>(n,a,c)=>{let u,{enabled:l,anonymousActionType:p,store:f,...d}=t;try{u=(null!=l?l:(r.env?r.env.MODE:void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!u)return(r.env?r.env.MODE:void 0)!=="production"&&l&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,a,c);let{connection:h,...b}=i(f,u,d),M=!0;c.setState=(e,t,r)=>{let i=n(e,t);if(!M)return i;let s=void 0===r?{type:p||"anonymous"}:"string"==typeof r?{type:r}:r;return void 0===f?null==h||h.send(s,a()):null==h||h.send({...s,type:`${f}/${s.type}`},{...o(d.name),[f]:c.getState()}),i};let z=(...e)=>{let t=M;M=!1,n(...e),M=t},O=e(c.setState,a,c);if("untracked"===b.type?null==h||h.init(O):(b.stores[b.store]=c,null==h||h.init(Object.fromEntries(Object.entries(b.stores).map(([e,t])=>[e,e===b.store?O:t.getState()])))),c.dispatchFromDevtools&&"function"==typeof c.dispatch){let e=!1,t=c.dispatch;c.dispatch=(...n)=>{(r.env?r.env.MODE:void 0)==="production"||"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return h.subscribe(e=>{var t;switch(e.type){case"ACTION":if("string"!=typeof e.payload)return void console.error("[zustand devtools middleware] Unsupported action format");return s(e.payload,e=>{if("__setState"===e.type){if(void 0===f)return void z(e.state);1!==Object.keys(e.state).length&&console.error(` [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } `);let t=e.state[f];return void(null==t||JSON.stringify(c.getState())!==JSON.stringify(t)&&z(t))}c.dispatchFromDevtools&&"function"==typeof c.dispatch&&c.dispatch(e)});case"DISPATCH":switch(e.payload.type){case"RESET":if(z(O),void 0===f)return null==h?void 0:h.init(c.getState());return null==h?void 0:h.init(o(d.name));case"COMMIT":if(void 0===f){null==h||h.init(c.getState());break}return null==h?void 0:h.init(o(d.name));case"ROLLBACK":return s(e.state,e=>{if(void 0===f){z(e),null==h||h.init(c.getState());return}z(e[f]),null==h||h.init(o(d.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return s(e.state,e=>{if(void 0===f)return void z(e);JSON.stringify(c.getState())!==JSON.stringify(e[f])&&z(e[f])});case"IMPORT_STATE":{let{nextLiftedState:r}=e.payload,n=null==(t=r.computedStates.slice(-1)[0])?void 0:t.state;if(!n)return;void 0===f?z(n):z(n[f]),null==h||h.send(null,r);break}case"PAUSE_RECORDING":return M=!M}return}}),O},s=(e,t)=>{let r;try{r=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==r&&t(r)},c=e=>(t,r,n)=>{let o=n.subscribe;return n.subscribe=(e,t,r)=>{let i=e;if(t){let o=(null==r?void 0:r.equalityFn)||Object.is,a=e(n.getState());i=r=>{let n=e(r);if(!o(a,n)){let e=a;t(a=n,e)}},(null==r?void 0:r.fireImmediately)&&t(a,a)}return o(i)},e(t,r,n)}}),parcelRegister("jCh7o",function(e,t){$parcel$export(e.exports,"immer",()=>r);let r=e=>(t,r,n)=>(n.setState=(e,r,...n)=>t("function"==typeof e?(0,parcelRequire("g7NcR").produce)(e):e,r,...n),e(n.setState,r,n))}),parcelRegister("2d59r",function(e,t){$parcel$export(e.exports,"createStore",()=>o);var r=Object.assign(Object.create(null),{url:"file:///node_modules/zustand/esm/vanilla.mjs"});let n=e=>{let t,n=new Set,o=(e,r)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach(r=>r(t,e))}},i=()=>t,a={setState:o,getState:i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{(r.env?r.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(o,i,a),a},o=e=>e?n(e):n}),parcelRegister("aAuSn",function(e,t){var r=Array.prototype.slice,n=parcelRequire("ghDpO"),o=parcelRequire("b43aO"),i=e.exports=function(e,t,r){return r||(r={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e&&t&&("object"==typeof e||"object"==typeof t)?c(e,t,r):r.strict?e===t:e==t)};function a(e){return null==e}function s(e){return!!e&&"object"==typeof e&&"number"==typeof e.length&&"function"==typeof e.copy&&"function"==typeof e.slice&&(!(e.length>0)||"number"==typeof e[0])}function c(e,t,c){var u,l;if(a(e)||a(t)||e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&i(e=r.call(e),t=r.call(t),c);if(s(e)){if(!s(t)||e.length!==t.length)return!1;for(u=0;u=0;u--)if(p[u]!=f[u])return!1;for(u=p.length-1;u>=0;u--)if(!i(e[l=p[u]],t[l],c))return!1;return typeof e==typeof t}}),parcelRegister("ghDpO",function(e,t){(t=e.exports="function"==typeof Object.keys?Object.keys:r).shim=r;function r(e){var t=[];for(var r in e)t.push(r);return t}}),parcelRegister("b43aO",function(e,t){function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function n(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}()?r:n).supported=r,t.unsupported=n}),parcelRegister("iiL5q",function(e,t){$parcel$export(e.exports,"useStore",()=>s);var r=parcelRequire("gwFzn"),n=parcelRequire("bxoVL"),o=Object.assign(Object.create(null),{url:"file:///node_modules/zustand/esm/index.mjs"});let{useSyncExternalStoreWithSelector:i}=$parcel$interopDefault(n),a=!1;function s(e,t=e.getState,n){(o.env?o.env.MODE:void 0)!=="production"&&n&&!a&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),a=!0);let c=i(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(c),c}}),parcelRegister("gDm8X",function(e,t){$parcel$export(e.exports,"gzipSync",()=>ew),$parcel$export(e.exports,"gunzip",()=>eW);var r={},n=function(e,t,n,o,i){var a=new Worker(r[t]||(r[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(e){var t=e.data,r=t.$e$;if(r){var n=Error(r[0]);n.code=r[1],n.stack=r[2],i(n,null)}else i(null,t)},a.postMessage(n,o),a},o=Uint8Array,i=Uint16Array,a=Int32Array,s=new o([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),c=new o([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new o([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=function(e,t){for(var r=new i(31),n=0;n<31;++n)r[n]=t+=1<>1|(21845&O)<<1;m=(61680&(m=(52428&m)>>2|(13107&m)<<2))>>4|(3855&m)<<4,z[O]=((65280&m)>>8|(255&m)<<8)>>1}for(var g=function(e,t,r){for(var n,o=e.length,a=0,s=new i(t);a>u]=l}else for(a=0,n=new i(o);a>15-e[a]);return n},A=new o(288),O=0;O<144;++O)A[O]=8;for(var O=144;O<256;++O)A[O]=9;for(var O=256;O<280;++O)A[O]=7;for(var O=280;O<288;++O)A[O]=8;for(var v=new o(32),O=0;O<32;++O)v[O]=5;var y=g(A,9,0),_=g(A,9,1),q=g(v,5,0),x=g(v,5,1),w=function(e){for(var t=e[0],r=1;rt&&(t=e[r]);return t},R=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(7&t)&r},S=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(7&t)},W=function(e){return(e+7)/8|0},k=function(e,t,r){return(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length),new o(e.subarray(t,r))},E=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],L=function(e,t,r){var n=Error(t||E[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,L),!r)throw n;return n},N=function(e,t,r,n){var i=e.length,a=n?n.length:0;if(!i||t.f&&!t.l)return r||new o(0);var l=!r,p=l||2!=t.i,d=t.i;l&&(r=new o(3*i));var h=function(e){var t=r.length;if(e>t){var n=new o(Math.max(2*t,e));n.set(r),r=n}},M=t.f||0,z=t.p||0,O=t.b||0,m=t.l,A=t.d,v=t.m,y=t.n,q=8*i;do{if(!m){M=R(e,z,1);var E=R(e,z+1,3);if(z+=3,E)if(1==E)m=_,A=x,v=9,y=5;else if(2==E){var N=R(e,z,31)+257,C=R(e,z+10,15)+4,T=N+R(e,z+5,31)+1;z+=14;for(var D=new o(T),B=new o(19),I=0;I>4;if(U<16)D[I++]=U;else{var H=0,V=0;for(16==U?(V=3+R(e,z,3),z+=2,H=D[I-1]):17==U?(V=3+R(e,z,7),z+=3):18==U&&(V=11+R(e,z,127),z+=7);V--;)D[I++]=H}}var G=D.subarray(0,N),Y=D.subarray(N);v=w(G),y=w(Y),m=g(G,v,1),A=g(Y,y,1)}else L(1);else{var U=W(z)+4,K=e[U-4]|e[U-3]<<8,Q=U+K;if(Q>i){d&&L(0);break}p&&h(O+K),r.set(e.subarray(U,Q),O),t.b=O+=K,t.p=z=8*Q,t.f=M;continue}if(z>q){d&&L(0);break}}p&&h(O+131072);for(var $=(1<>4;if((z+=15&H)>q){d&&L(0);break}if(H||L(2),ee<256)r[O++]=ee;else if(256==ee){J=z,m=null;break}else{var et=ee-254;if(ee>264){var I=ee-257,er=s[I];et=R(e,z,(1<>4;en||L(3),z+=15&en;var Y=b[eo];if(eo>3){var er=c[eo];Y+=S(e,z)&(1<q){d&&L(0);break}p&&h(O+131072);var ei=O+et;if(O>8},T=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},D=function(e,t){for(var r=[],n=0;nh&&(h=s[n].s);var b=new i(h+1),M=B(r[f-1],b,0);if(M>t){var n=0,z=0,O=M-t,m=1<t)z+=m-(1<>=O;z>0;){var A=s[n].s;b[A]=0&&z;--n){var v=s[n].s;b[v]==t&&(--b[v],++z)}M=t}return{t:new o(b),l:M}},B=function(e,t,r){return -1==e.s?Math.max(B(e.l,t,r+1),B(e.r,t,r+1)):t[e.s]=r},I=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new i(++t),n=0,o=e[0],a=1,s=function(e){r[n++]=e},c=1;c<=t;++c)if(e[c]==o&&c!=t)++a;else{if(!o&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(o),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(o);a=1,o=e[c]}return{c:r.subarray(0,n),n:t}},P=function(e,t){for(var r=0,n=0;n>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var i=0;i4&&!H[u[G-1]];--G);var Y=d+5<<3,K=P(o,A)+P(a,v)+l,Q=P(o,_)+P(a,R)+l+14+3*G+P(j,H)+2*j[16]+3*j[17]+7*j[18];if(f>=0&&Y<=K&&Y<=Q)return F(t,h,e.subarray(f,f+d));if(C(t,h,1+(Q15&&(C(t,h,ee[X]>>5&127),h+=ee[X]>>12)}}else b=y,M=A,z=q,O=v;for(var X=0;X255){var et=er>>18&31;T(t,h,b[et+257]),h+=M[et+257],et>7&&(C(t,h,er>>23&31),h+=s[et]);var en=31&er;T(t,h,z[en]),h+=O[en],en>3&&(T(t,h,er>>5&8191),h+=c[en])}else T(t,h,b[er]),h+=M[er]}return T(t,h,b[256]),h+M[256]},X=new a([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),U=new o(0),H=function(e,t,r,n,u,l){var p=l.z||e.length,f=new o(n+p+5*(1+Math.ceil(p/7e3))+u),h=f.subarray(n,f.length-u),b=l.l,z=7&(l.r||0);if(t){z&&(h[0]=l.r>>3);for(var O=X[t-1],m=O>>13,g=8191&O,A=(1<7e3||C>24576)&&(U>423||!b)){z=j(e,h,0,w,R,S,L,C,D,N-D,z),C=E=L=0,D=N;for(var H=0;H<286;++H)R[H]=0;for(var H=0;H<30;++H)S[H]=0}var V=2,G=0,Y=g,K=I-P&32767;if(U>2&&B==x(N-K))for(var Q=Math.min(m,U)-1,$=Math.min(32767,N),Z=Math.min(258,U);K<=$&&--Y&&I!=P;){if(e[N+V]==e[N+V-K]){for(var J=0;JV){if(V=J,G=K,J>Q)break;for(var ee=Math.min(K,J-2),et=0,H=0;Het&&(et=eo,P=er)}}}P=v[I=P],K+=I-P&32767}if(G){w[C++]=0x10000000|d[V]<<18|M[G];var ei=31&d[V],ea=31&M[G];L+=s[ei]+c[ea],++R[257+ei],++S[ea],T=N+V,++E}else w[C++]=e[N],++R[e[N]]}}for(N=Math.max(N,T);N=p&&(h[z/8|0]=b,es=p),z=F(h,z+1,e.subarray(N,es))}l.i=p}return k(f,0,n+W(z)+u)},V=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&-0x12477ce0)^r>>>1;e[t]=r}return e}(),G=function(){var e=-1;return{p:function(t){for(var r=e,n=0;n>>8;e=r},d:function(){return~e}}},Y=function(){var e=1,t=0;return{p:function(r){for(var n=e,o=t,i=0|r.length,a=0;a!=i;){for(var s=Math.min(a+2655,i);a>16),o=(65535&o)+15*(o>>16)}e=n,t=o},d:function(){return e%=65521,t%=65521,(255&e)<<24|(65280&e)<<8|(255&t)<<8|t>>8}}},K=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),s=new o(a.length+e.length);s.set(a),s.set(e,a.length),e=s,i.w=a.length}return H(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,r,n,i)},Q=function(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r},$=function(e,t,r){for(var n=e(),o=e.toString(),i=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a>>0},ef=function(e,t){return ep(e,t)+0x100000000*ep(e,t+4)},ed=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},eh=function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:2*(9==t.level),e[9]=3,0!=t.mtime&&ed(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}},eb=function(e){(31!=e[0]||139!=e[1]||8!=e[2])&&L(6,"invalid gzip data");var t=e[3],r=10;4&t&&(r+=(e[10]|e[11]<<8)+2);for(var n=(t>>3&1)+(t>>4&1);n>0;n-=!e[r++]);return r+(2&t)},eM=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},ez=function(e){return 10+(e.filename?e.filename.length+1:0)},eO=function(e,t){var r=t.level,n=0==r?0:r<6?1:9==r?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var o=Y();o.p(t.dictionary),ed(e,2,o.d())}},em=function(e,t){return((15&e[0])!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&L(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&L(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function eg(e,t){return"function"==typeof e&&(t=e,e={}),this.ondata=t,e}var eA=function(){function e(e,t){if("function"==typeof e&&(t=e,e={}),this.ondata=t,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new o(98304),this.o.dictionary){var r=this.o.dictionary.subarray(-32768);this.b.set(r,32768-r.length),this.s.i=32768-r.length}}return e.prototype.p=function(e,t){this.ondata(K(e,this.o,0,0,this.s),t)},e.prototype.push=function(e,t){this.ondata||L(5),this.s.l&&L(4);var r=e.length+this.s.z;if(r>this.b.length){if(r>2*this.b.length-32768){var n=new o(-32768&r);n.set(this.b.subarray(0,this.s.z)),this.b=n}var i=this.b.length-this.s.z;i&&(this.b.set(e.subarray(0,i),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(i),32768),this.s.z=e.length-i+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=1&t,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2)},e}(),ev=function(){return function(e,t){eu([er,function(){return[ec,eA]}],this,eg.call(this,e,t),function(e){onmessage=ec(new eA(e.data))},6)}}();function ey(e,t){return K(e,t||{},0,0)}var e_=function(){function e(e,t){"function"==typeof e&&(t=e,e={}),this.ondata=t;var r=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:r?r.length:0},this.o=new o(32768),this.p=new o(0),r&&this.o.set(r)}return e.prototype.e=function(e){if(this.ondata||L(5),this.d&&L(4),this.p.length){if(e.length){var t=new o(this.p.length+e.length);t.set(this.p),t.set(e,this.p.length),this.p=t}}else this.p=e},e.prototype.c=function(e){this.s.i=+(this.d=e||!1);var t=this.s.b,r=N(this.p,this.s,this.o);this.ondata(k(r,t,this.s.b),this.d),this.o=k(r,this.s.b-32768),this.s.b=this.o.length,this.p=k(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),eq=function(){return function(e,t){eu([et,function(){return[ec,e_]}],this,eg.call(this,e,t),function(e){onmessage=ec(new e_(e.data))},7)}}();function ex(e,t){return N(e,{i:2},t&&t.out,t&&t.dictionary)}function ew(e,t){t||(t={});var r=G(),n=e.length;r.p(e);var o=K(e,t,ez(t),8),i=o.length;return eh(o,t),ed(o,i-8,r.d()),ed(o,i-4,n),o}(function(){function e(e,t){this.c=G(),this.l=0,this.v=1,eA.call(this,e,t)}e.prototype.push=function(e,t){this.c.p(e),this.l+=e.length,eA.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var r=K(e,this.o,this.v&&ez(this.o),t&&8,this.s);this.v&&(eh(r,this.o),this.v=0),t&&(ed(r,r.length-8,this.c.d()),ed(r,r.length-4,this.l)),this.ondata(r,t)}})();var eR=function(){function e(e,t){this.v=1,this.r=0,e_.call(this,e,t)}return e.prototype.push=function(e,t){if(e_.prototype.e.call(this,e),this.r+=e.length,this.v){var r=this.p.subarray(this.v-1),n=r.length>3?eb(r):4;if(n>r.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-r.length);this.p=r.subarray(n),this.v=0}e_.prototype.c.call(this,t),this.s.f&&!this.s.l&&(this.v=W(this.s.p)+9,this.s={i:0},this.o=new o(0),this.p.length&&this.push(new o(0),t))},e}(),eS=function(){return function(e,t){var r=this;eu([et,en,function(){return[ec,e_,eR]}],this,eg.call(this,e,t),function(e){var t=new eR(e.data);t.onmember=function(e){return postMessage(e)},onmessage=ec(t)},9,function(e){return r.onmember&&r.onmember(e)})}}();function eW(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&L(7),es(e,t,[et,en,function(){return[ek]}],function(e){return ei(ek(e.data[0],e.data[1]))},3,r)}function ek(e,t){var r=eb(e);return r+8>e.length&&L(6,"invalid gzip data"),N(e.subarray(r,-8),{i:2},t&&t.out||new o(eM(e)),t&&t.dictionary)}(function(){function e(e,t){this.c=Y(),this.v=1,eA.call(this,e,t)}e.prototype.push=function(e,t){this.c.p(e),eA.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var r=K(e,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(eO(r,this.o),this.v=0),t&&ed(r,r.length-4,this.c.d()),this.ondata(r,t)}})();var eE=function(){function e(e,t){e_.call(this,e,t),this.v=e&&e.dictionary?2:1}return e.prototype.push=function(e,t){if(e_.prototype.e.call(this,e),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(em(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&L(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),e_.prototype.c.call(this,t)},e}(),eL=function(){return function(e,t){eu([et,eo,function(){return[ec,e_,eE]}],this,eg.call(this,e,t),function(e){onmessage=ec(new eE(e.data))},11)}}(),eN=function(){function e(e,t){this.G=eR,this.I=e_,this.Z=eE,this.o=eg.call(this,e,t)||{}}return e.prototype.push=function(e,t){if(this.ondata||L(5),this.s)this.s.push(e,t);else{if(this.p&&this.p.length){var r=new o(this.p.length+e.length);r.set(this.p),r.set(e,this.p.length)}else this.p=e;if(this.p.length>2){var n=this,i=function(){n.ondata.apply(n,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o,i):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o,i):new this.Z(this.o,i),this.s.push(this.p,t),this.p=null}}},e}();!function(){(function(e,t){this.G=eS,this.I=eq,this.Z=eL,eN.call(this,e,t)}).prototype.push=function(e,t){eN.prototype.push.call(this,e,t)}}();var eC="undefined"!=typeof TextEncoder&&new TextEncoder,eT="undefined"!=typeof TextDecoder&&new TextDecoder,eD=0;try{eT.decode(U,{stream:!0}),eD=1}catch(e){}var eB=function(e){for(var t="",r=0;;){var n=e[r++],o=(n>127)+(n>223)+(n>239);if(r+o>e.length)return{s:t,r:k(e,r-1)};o?3==o?t+=String.fromCharCode(55296|(n=((15&n)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536)>>10,56320|1023&n):1&o?t+=String.fromCharCode((31&n)<<6|63&e[r++]):t+=String.fromCharCode((15&n)<<12|(63&e[r++])<<6|63&e[r++]):t+=String.fromCharCode(n)}};function eI(e,t){if(t){for(var r=new o(e.length),n=0;n>1)),s=0,c=function(e){a[s++]=e},n=0;na.length){var u=new o(s+8+(i-n<<1));u.set(a),a=u}var l=e.charCodeAt(n);l<128||t?c(l):(l<2048?c(192|l>>6):(l>55295&&l<57344?(c(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++n))>>18),c(128|l>>12&63)):c(224|l>>12),c(128|l>>6&63)),c(128|63&l))}return k(a,0,s)}function eP(e,t){if(t){for(var r="",n=0;n65535&&L(9),t+=n+4}return t},eU=function(e,t,r,n,o,i,a,s){var c=n.length,u=r.extra,l=s&&s.length,p=eX(u);ed(e,t,null!=a?0x2014b50:0x4034b50),t+=4,null!=a&&(e[t++]=20,e[t++]=r.os),e[t]=20,t+=2,e[t++]=r.flag<<1|(i<0&&8),e[t++]=o&&8,e[t++]=255&r.compression,e[t++]=r.compression>>8;var f=new Date(null==r.mtime?Date.now():r.mtime),d=f.getFullYear()-1980;if((d<0||d>119)&&L(10),ed(e,t,d<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>1),t+=4,-1!=i&&(ed(e,t,r.crc),ed(e,t+4,i<0?-i-2:i),ed(e,t+8,r.size)),ed(e,t+12,c),ed(e,t+14,p),t+=16,null!=a&&(ed(e,t,l),ed(e,t+6,r.attrs),ed(e,t+10,a),t+=14),e.set(n,t),t+=c,p)for(var h in u){var b=u[h],M=b.length;ed(e,t,+h),ed(e,t+2,M),e.set(b,t+4),t+=4+M}return l&&(e.set(s,t),t+=l),t},eH=function(e,t,r,n,o){ed(e,t,0x6054b50),ed(e,t+8,r),ed(e,t+10,r),ed(e,t+12,n),ed(e,t+16,o)},eV=function(){function e(e){this.filename=e,this.c=G(),this.size=0,this.compression=0}return e.prototype.process=function(e,t){this.ondata(null,e,t)},e.prototype.push=function(e,t){this.ondata||L(5),this.c.p(e),this.size+=e.length,t&&(this.crc=this.c.d()),this.process(e,t||!1)},e}();!function(){function e(e,t){var r=this;t||(t={}),eV.call(this,e),this.d=new eA(t,function(e,t){r.ondata(null,e,t)}),this.compression=8,this.flag=eF(t.level)}e.prototype.process=function(e,t){try{this.d.push(e,t)}catch(e){this.ondata(e,null,t)}},e.prototype.push=function(e,t){eV.prototype.push.call(this,e,t)}}(),function(){function e(e,t){var r=this;t||(t={}),eV.call(this,e),this.d=new ev(t,function(e,t,n){r.ondata(e,t,n)}),this.compression=8,this.flag=eF(t.level),this.terminate=this.d.terminate}e.prototype.process=function(e,t){this.d.push(e,t)},e.prototype.push=function(e,t){eV.prototype.push.call(this,e,t)}}(),function(){function e(e){this.ondata=e,this.u=[],this.d=1}e.prototype.add=function(e){var t=this;if(this.ondata||L(5),2&this.d)this.ondata(L(4+(1&this.d)*8,0,1),null,!1);else{var r=eI(e.filename),n=r.length,i=e.comment,a=i&&eI(i),s=n!=e.filename.length||a&&i.length!=a.length,c=n+eX(e.extra)+30;n>65535&&this.ondata(L(11,0,1),null,!1);var u=new o(c);eU(u,0,e,r,s,-1);var l=[u],p=function(){for(var e=0,r=l;e0){var n=Math.min(this.c,e.length),i=e.subarray(0,n);if(this.c-=n,this.d?this.d.push(i,!this.c):this.k[0].push(i),(e=e.subarray(n)).length)return this.push(e,t)}else{var a=0,s=0,c=void 0,u=void 0;this.p.length?e.length?((u=new o(this.p.length+e.length)).set(this.p),u.set(e,this.p.length)):u=this.p:u=e;for(var l=u.length,p=this.c,f=p&&this.d,d=function(){var e=ep(u,s);if(0x4034b50==e){a=1,c=s,h.d=null,h.c=0;var t=el(u,s+6),n=el(u,s+8),o=2048&t,i=8&t,f=el(u,s+26),d=el(u,s+28);if(l>s+30+f+d){var b,M,z=[];h.k.unshift(z),a=2;var O=ep(u,s+18),m=ep(u,s+22),g=eP(u.subarray(s+30,s+=30+f),!o);0xffffffff==O?(O=(b=i?[-2]:ej(u,s))[0],m=b[1]):i&&(O=-1),s+=d,h.c=O;var A={name:g,compression:n,start:function(){if(A.ondata||L(5),O){var e=r.o[n];e||A.ondata(L(14,"unknown compression type "+n,1),null,!1),(M=O<0?new e(g):new e(g,O,m)).ondata=function(e,t,r){A.ondata(e,t,r)};for(var t=0,o=z;t=0&&(A.size=O,A.originalSize=m),h.onfile(A)}return"break"}if(p){if(0x8074b50==e)return c=s+=12+(-2==p&&8),a=3,h.c=0,"break";else if(0x2014b50==e)return c=s-=4,a=3,h.c=0,"break"}},h=this;s=0?o=setTimeout(n,t-u):(o=null,r||(c=e.apply(a,i),a=i=null))}null==t&&(t=100);var o,i,a,s,c,u=function(){a=this,i=arguments,s=Date.now();var u=r&&!o;return o||(o=setTimeout(n,t)),u&&(c=e.apply(a,i),a=i=null),c};return u.clear=function(){o&&(clearTimeout(o),o=null)},u.flush=function(){o&&(c=e.apply(a,i),a=i=null,clearTimeout(o),o=null)},u}r.debounce=r,e.exports=r}),parcelRegister("4fCI9",function(e,t){$parcel$export(e.exports,"UnorderedSearchIndex",()=>a),$parcel$export(e.exports,"Search",()=>f),function(){(function(){}).prototype.expandToken=function(e){for(var t,r=[],n=0,o=e.length;n=0&&(p=this._wrapText(p),e=e.substring(0,d)+p+e.substring(o+1),o+=r,h+=r)}return e},e._wrapText=function(e){var t=this._wrapperTagName;return"<"+t+">"+e+""}}()}),parcelRegister("b0C22",function(e,t){$parcel$export(e.exports,"default",()=>y);var r="object"==typeof $parcel$global&&$parcel$global&&$parcel$global.Object===Object&&$parcel$global,n="object"==typeof self&&self&&self.Object===Object&&self,o=(r||n||Function("return this")()).Symbol,i=Object.prototype,a=i.hasOwnProperty,s=i.toString,c=o?o.toStringTag:void 0,u=function(e){var t=a.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var o=s.call(e);return n&&(t?e[c]=r:delete e[c]),o},l=Object.prototype.toString,p=function(e){return l.call(e)},f="[object Null]",d="[object Undefined]",h=o?o.toStringTag:void 0,b=function(e){return null==e?void 0===e?d:f:h&&h in Object(e)?u(e):p(e)},M=function(e,t){return function(r){return e(t(r))}}(Object.getPrototypeOf,Object),z=function(e){return null!=e&&"object"==typeof e},O="[object Object]",m=Object.prototype,g=Function.prototype.toString,A=m.hasOwnProperty,v=g.call(Object),y=function(e){if(!z(e)||b(e)!=O)return!1;var t=M(e);if(null===t)return!0;var r=A.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&g.call(r)==v}}),parcelRegister("8aej1",function(e,t){function r(e){return a(e)||i(e)||o(e)||n()}function n(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}}function i(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function a(e){if(Array.isArray(e))return s(e)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rc);var c=function(e){return function(t){return function(t){return function(n){if(n.type!==parcelRequire("kJOOQ").CALL_HISTORY_METHOD)return t(n);var o=n.payload,i=o.method,a=o.args;e[i].apply(e,r(a))}}}}}),parcelRegister("kJOOQ",function(e,t){$parcel$export(e.exports,"LOCATION_CHANGE",()=>r),$parcel$export(e.exports,"onLocationChanged",()=>n),$parcel$export(e.exports,"CALL_HISTORY_METHOD",()=>o),$parcel$export(e.exports,"push",()=>a),$parcel$export(e.exports,"replace",()=>s);var r="@@router/LOCATION_CHANGE",n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:r,payload:{location:e,action:t,isFirstRendering:n}}},o="@@router/CALL_HISTORY_METHOD",i=function(e){return function(){for(var t=arguments.length,r=Array(t),n=0;nn,e=>n=e);var n,o=r();o.withExtraArgument=r,n=o}),parcelRegister("lwdd5",function(e,t){e.exports="object"==typeof self&&self.self===self&&self||"object"==typeof $parcel$global&&$parcel$global.global===$parcel$global&&$parcel$global||e.exports}),parcelRegister("bsCwp",function(e,t){var r,n,o;function i(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t1?t-1:0),n=1;n2?r-2:0),o=2;or,e=>r=e),$parcel$export(e.exports,"createSelectorCreator",()=>n,e=>n=e),$parcel$export(e.exports,"createSelector",()=>o,e=>o=e),r=s,n=u,o=l}),parcelRegister("dBmJE",function(e,t){$parcel$export(e.exports,"ConnectedRouter",()=>C),$parcel$export(e.exports,"connectRouter",()=>T);var r=parcelRequire("gwFzn");parcelRequire("cKyDI");var n=parcelRequire("1lExz"),o=parcelRequire("aIWAM"),i=parcelRequire("14O8L");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=function(e){var t=e.getIn,r=e.toJS,n=function(e){return null!=e&&"object"===a(e)&&t(e,["location"])&&t(e,["action"])},o=function(e){var o=r(t(e,["router"]));if(!n(o))throw'Could not find router reducer in state tree, it must be mounted under "router"';return o},i=function(e){return r(t(o(e),["location"]))},s=function(e){return r(t(o(e),["location","search"]))},c=function(e){return r(t(o(e),["location","hash"]))},u=function(e){var t=null,r=null;return function(n){var o=(i(n)||{}).pathname;if(o===t)return r;t=o;var a=(0,parcelRequire("4y1GY").matchPath)(o,e);return a&&r&&a.url===r.url&&a.isExact===r.isExact||(r=a),r}};return{getLocation:i,getAction:function(e){return r(t(o(e),["action"]))},getRouter:o,getSearch:s,getHash:c,createMatchSelector:u}};function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&void 0!==arguments[0]?arguments[0]:n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.type,a=o.payload;if(i===parcelRequire("kJOOQ").LOCATION_CHANGE){var s=a.location,c=a.action;return a.isFirstRendering?e:r(e,{location:t(S(s)),action:c})}return e}}};function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function E(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2];r.inTimeTravelling?r.inTimeTravelling=!1:c(e,t,n)};return r.unlisten=s.listen(p),e.noInitialPop||p(s.location,s.action,!0),r}return f(o,[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.omitRouter,n=e.history,o=e.children;return t?$parcel$interopDefault(r).createElement($parcel$interopDefault(r).Fragment,null,o):$parcel$interopDefault(r).createElement(parcelRequire("4y1GY").Router,{history:n},o)}}]),o}(r.PureComponent);a.propTypes={store:$parcel$interopDefault(parcelRequire("fppBw")).shape({getState:$parcel$interopDefault(parcelRequire("fppBw")).func.isRequired,subscribe:$parcel$interopDefault(parcelRequire("fppBw")).func.isRequired}).isRequired,history:$parcel$interopDefault(parcelRequire("fppBw")).shape({action:$parcel$interopDefault(parcelRequire("fppBw")).string.isRequired,listen:$parcel$interopDefault(parcelRequire("fppBw")).func.isRequired,location:$parcel$interopDefault(parcelRequire("fppBw")).object.isRequired,push:$parcel$interopDefault(parcelRequire("fppBw")).func.isRequired}).isRequired,basename:$parcel$interopDefault(parcelRequire("fppBw")).string,children:$parcel$interopDefault(parcelRequire("fppBw")).oneOfType([$parcel$interopDefault(parcelRequire("fppBw")).func,$parcel$interopDefault(parcelRequire("fppBw")).node]),onLocationChanged:$parcel$interopDefault(parcelRequire("fppBw")).func.isRequired,noInitialPop:$parcel$interopDefault(parcelRequire("fppBw")).bool,noTimeTravelDebugging:$parcel$interopDefault(parcelRequire("fppBw")).bool,stateCompareFunction:$parcel$interopDefault(parcelRequire("fppBw")).func,omitRouter:$parcel$interopDefault(parcelRequire("fppBw")).bool};var c=function(e){return{onLocationChanged:function(t,r,n){return e((0,parcelRequire("kJOOQ").onLocationChanged)(t,r,n))}}},p=function(e){var t=e.context||o.ReactReduxContext;if(null==t)throw"Please upgrade to react-redux v6";return $parcel$interopDefault(r).createElement(t.Consumer,null,function(t){var n=t.store;return $parcel$interopDefault(r).createElement(a,u({store:n},e))})};return p.propTypes={context:$parcel$interopDefault(parcelRequire("fppBw")).object},(0,n.default)(null,c)(p)}(N),T=W(N),D=s(N);D.getLocation,D.getAction,D.getHash,D.getRouter,D.getSearch,D.createMatchSelector}),parcelRegister("cKyDI",function(e,t){$parcel$export(e.exports,"connect",()=>parcelRequire("1lExz").default),$parcel$export(e.exports,"Provider",()=>parcelRequire("745GZ").default),$parcel$export(e.exports,"ReactReduxContext",()=>parcelRequire("aIWAM").ReactReduxContext),$parcel$export(e.exports,"useDispatch",()=>parcelRequire("eVl82").useDispatch),$parcel$export(e.exports,"useSelector",()=>parcelRequire("5OG3u").useSelector);var r=parcelRequire("le4qT"),n=parcelRequire("bxoVL");parcelRequire("5iC62");var o=parcelRequire("4FhhO"),i=parcelRequire("ll7Rv"),a=parcelRequire("5OG3u"),s=parcelRequire("1lExz");parcelRequire("hVuLx"),(0,a.initializeUseSelector)(n.useSyncExternalStoreWithSelector),(0,s.initializeConnect)(r.useSyncExternalStore),(0,i.setBatch)(o.unstable_batchedUpdates)}),parcelRegister("87MXS",function(e,t){e.exports=parcelRequire("3F39B")}),parcelRegister("3F39B",function(e,t){$parcel$export(e.exports,"ContextConsumer",()=>r,e=>r=e),$parcel$export(e.exports,"ContextProvider",()=>n,e=>n=e),$parcel$export(e.exports,"Element",()=>o,e=>o=e),$parcel$export(e.exports,"ForwardRef",()=>i,e=>i=e),$parcel$export(e.exports,"Fragment",()=>a,e=>a=e),$parcel$export(e.exports,"Lazy",()=>s,e=>s=e),$parcel$export(e.exports,"Memo",()=>c,e=>c=e),$parcel$export(e.exports,"Portal",()=>u,e=>u=e),$parcel$export(e.exports,"Profiler",()=>l,e=>l=e),$parcel$export(e.exports,"StrictMode",()=>p,e=>p=e),$parcel$export(e.exports,"Suspense",()=>f,e=>f=e),$parcel$export(e.exports,"SuspenseList",()=>d,e=>d=e),$parcel$export(e.exports,"isAsyncMode",()=>h,e=>h=e),$parcel$export(e.exports,"isConcurrentMode",()=>b,e=>b=e),$parcel$export(e.exports,"isContextConsumer",()=>M,e=>M=e),$parcel$export(e.exports,"isContextProvider",()=>z,e=>z=e),$parcel$export(e.exports,"isElement",()=>O,e=>O=e),$parcel$export(e.exports,"isForwardRef",()=>m,e=>m=e),$parcel$export(e.exports,"isFragment",()=>g,e=>g=e),$parcel$export(e.exports,"isLazy",()=>A,e=>A=e),$parcel$export(e.exports,"isMemo",()=>v,e=>v=e),$parcel$export(e.exports,"isPortal",()=>y,e=>y=e),$parcel$export(e.exports,"isProfiler",()=>_,e=>_=e),$parcel$export(e.exports,"isStrictMode",()=>q,e=>q=e),$parcel$export(e.exports,"isSuspense",()=>x,e=>x=e),$parcel$export(e.exports,"isSuspenseList",()=>w,e=>w=e),$parcel$export(e.exports,"isValidElementType",()=>R,e=>R=e),$parcel$export(e.exports,"typeOf",()=>S,e=>S=e);var r,n,o,i,a,s,c,u,l,p,f,d,h,b,M,z,O,m,g,A,v,y,_,q,x,w,R,S,W,k=Symbol.for("react.element"),E=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),D=Symbol.for("react.context"),B=Symbol.for("react.server_context"),I=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen");function H(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case k:switch(e=e.type){case L:case C:case N:case P:case F:return e;default:switch(e=e&&e.$$typeof){case B:case D:case I:case X:case j:case T:return e;default:return t}}case E:return t}}}W=Symbol.for("react.module.reference"),r=D,n=T,o=k,i=I,a=L,s=X,c=j,u=E,l=C,p=N,f=P,d=F,h=function(){return!1},b=function(){return!1},M=function(e){return H(e)===D},z=function(e){return H(e)===T},O=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===k},m=function(e){return H(e)===I},g=function(e){return H(e)===L},A=function(e){return H(e)===X},v=function(e){return H(e)===j},y=function(e){return H(e)===E},_=function(e){return H(e)===C},q=function(e){return H(e)===N},x=function(e){return H(e)===P},w=function(e){return H(e)===F},R=function(e){return"string"==typeof e||"function"==typeof e||e===L||e===C||e===N||e===P||e===F||e===U||"object"==typeof e&&null!==e&&(e.$$typeof===X||e.$$typeof===j||e.$$typeof===T||e.$$typeof===D||e.$$typeof===I||e.$$typeof===W||void 0!==e.getModuleId)||!1},S=H}),parcelRegister("14O8L",function(e,t){var r=200,n="__lodash_hash_undefined__",o=1,i=2,a=0x1fffffffffffff,s="[object Arguments]",c="[object Array]",u="[object Boolean]",l="[object Date]",p="[object Error]",f="[object Function]",d="[object GeneratorFunction]",h="[object Map]",b="[object Number]",M="[object Object]",z="[object Promise]",O="[object RegExp]",m="[object Set]",g="[object String]",A="[object Symbol]",v="[object WeakMap]",y="[object ArrayBuffer]",_="[object DataView]",q="[object Float64Array]",x="[object Int8Array]",w="[object Int16Array]",R="[object Int32Array]",S="[object Uint8Array]",W="[object Uint8ClampedArray]",k="[object Uint16Array]",E="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,N=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T[q]=T[x]=T[w]=T[R]=T[S]=T[W]=T[k]=T[E]=!0,T[s]=T[c]=T[y]=T[u]=T[_]=T[l]=T[p]=T[f]=T[h]=T[b]=T[M]=T[O]=T[m]=T[g]=T[v]=!1;var D="object"==typeof $parcel$global&&$parcel$global&&$parcel$global.Object===Object&&$parcel$global,B="object"==typeof self&&self&&self.Object===Object&&self,I=D||B||Function("return this")(),P=t&&!t.nodeType&&t,F=P&&e&&!e.nodeType&&e,j=F&&F.exports===P&&D.process,X=function(){try{return j&&j.binding("util")}catch(e){}}(),U=X&&X.isTypedArray;function H(e,t){for(var r=-1,n=e?e.length:0;++r-1}function eD(e,t){var r=this.__data__,n=e0(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function eB(e){var t=-1,r=e?e.length:0;for(this.clear();++tu))return!1;var p=s.get(e);if(p&&s.get(t))return p==t;var f=-1,d=!0,h=a&o?new eU:void 0;for(s.set(e,t),s.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=a}function tb(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function tM(e){return!!e&&"object"==typeof e}var tz=U?G(U):e4;function tO(e){return tl(e)?eJ(e):e5(e)}e.exports=tf}),parcelRegister("6hqbZ",function(e,t){e.exports=parcelRequire("eblQb")}),parcelRegister("eblQb",function(e,t){var r=parcelRequire("ddePm"),n={},o=parcelRequire("7dvyf"),i=o.default,a=i(parcelRequire("l1aCK")),s=i(parcelRequire("7o4v7")),c=i(parcelRequire("jRtfH")),u=i(parcelRequire("isJpf")),l=i(parcelRequire("dW6Ee")),p=["componentRef","__relayContext","__rootIsQueryRenderer"],f={},o=parcelRequire("7dvyf"),d=(0,o.default)(parcelRequire("l1aCK")),h={},b=parcelRequire("bQThX");h=function(e,t){for(var r in t&&"object"==typeof t||b(!1),t)if(t.hasOwnProperty(r)){var n=t[r];n&&("object"==typeof n||"function"==typeof n)||b(!1)}};var M={};function z(e){return e.displayName||e.name||"Component"}function O(e){return"Relay("+z(e)+")"}var m=(M={getComponentName:z,getContainerName:O}).getComponentName,g=M.getContainerName,r=parcelRequire("ddePm"),A={},v=parcelRequire("gwFzn");A=v.createContext({rootIsQueryRenderer:!1});var b=parcelRequire("bQThX"),v=parcelRequire("gwFzn"),y=parcelRequire("lan9D"),_=y.getFragment,q=v.useContext;f=function(e,t,n){var o=g(e);h(m(e),t);var i={};for(var a in t)i[a]=_(t[a]);var s=n(e,i);function c(e,t){var n,o=q(r);null==o&&b(!1);var i=q(A);return v.createElement(s,(0,d.default)({},e,{__relayContext:o,__rootIsQueryRenderer:null!=(n=null==i?void 0:i.rootIsQueryRenderer)&&n,componentRef:e.componentRef||t}))}return s.displayName=o,c.displayName=o,v.forwardRef(c)};var x=M.getContainerName,w={},R={};R=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.execute&&"function"==typeof e.subscribe};var b=parcelRequire("bQThX");function S(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&R(e.environment)}var W=(w={assertRelayContext:function(e){return S(e)||b(!1),e},isRelayContext:S}).assertRelayContext,k=parcelRequire("3Nt2B"),v=parcelRequire("gwFzn"),y=parcelRequire("lan9D"),E=y.createFragmentSpecResolver,L=y.getDataIDsFromObject,N=y.isScalarAndEqual;function C(e,t){var r,n=x(e);return r=function(r){function o(e){i=r.call(this,e)||this,(0,l.default)((0,c.default)(i),"_handleFragmentDataUpdate",function(){var e=i.state.resolver;i.setState(function(t){return e===t.resolver?{data:t.resolver.resolve(),relayProp:T(t.relayProp.environment)}:null})});var o,i,a=W(e.__relayContext),s=null!=(o=e.__rootIsQueryRenderer)&&o,u=E(a,n,t,e,s);return i.state={data:u.resolve(),prevProps:e,prevPropsContext:a,relayProp:T(a.environment),resolver:u},i}(0,u.default)(o,r),o.getDerivedStateFromProps=function(e,r){var o,i=r.prevProps,a=W(e.__relayContext),s=null!=(o=e.__rootIsQueryRenderer)&&o,c=L(t,i),u=L(t,e),l=r.resolver;if(r.prevPropsContext.environment!==a.environment||!k(c,u))return{data:(l=E(a,n,t,e,s)).resolve(),prevPropsContext:a,prevProps:e,relayProp:T(a.environment),resolver:l};l.setProps(e);var p=l.resolve();return p!==r.data?{data:p,prevProps:e,prevPropsContext:a,relayProp:T(a.environment)}:null};var i=o.prototype;return i.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},i.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},i.componentWillUnmount=function(){this.state.resolver.dispose()},i.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data)return!0;for(var n=Object.keys(e),o=0;o3&&void 0!==arguments[3]?arguments[3]:X,o=e.operation,i=I(o,e.params.providedVariables,t),a=U(e,i,r);return{fragment:j(e.fragment,n,i,a),request:a,root:F(o,n,i)}},createRequestDescriptor:U}).createOperationDescriptor,V={},_=parcelRequire("7dvyf"),G=(0,_.default)(parcelRequire("bTRzt"));function Y(e,t,r,n){var o=r?[r]:[],i=n?[n]:[];return e.forEach(function(e){switch(e.type){case"NODE_DELETE":var r=K(e,t);r&&(o.push(r),i.push(r));break;case"RANGE_ADD":var n=Q(e,t);n&&(o.push(n),i.push(n));break;case"RANGE_DELETE":var a=$(e,t);a&&(o.push(a),i.push(a))}}),{optimisticUpdater:function(e,t){o.forEach(function(r){r(e,t)})},updater:function(e,t){i.forEach(function(r){r(e,t)})}}}function K(e,t){var r=e.deletedIDFieldName,n=J(t);return n?function(e,t){var o=e.getRootField(n);if(o){var i=o.getValue(r),a=Array.isArray(i)?i:[i];a.forEach(function(t){t&&"string"==typeof t&&e.delete(t)})}}:null}function Q(e,t){var r=e.parentID,n=e.connectionInfo,o=e.edgeName;if(!r)return null;var i=J(t);return n&&i?function(e,t){var a=e.get(r);if(a){var s=e.getRootField(i);if(s){var u,l=s.getLinkedRecord(o),p=(0,G.default)(n);try{for(p.s();!(u=p.n()).done;){var f=u.value;if(l){var d=c.getConnection(a,f.key,f.filters);if(d){var h=c.buildConnectionEdge(e,d,l);if(h)switch(f.rangeBehavior){case"append":c.insertEdgeAfter(d,h);break;case"prepend":c.insertEdgeBefore(d,h)}}}}}catch(e){p.e(e)}finally{p.f()}}}}:null}function $(e,t){var r=e.parentID,n=e.connectionKeys,o=e.pathToConnection,i=e.deletedIDFieldName;if(!r)return null;var a=J(t);return a?function(e,t){if(t){var s=[],c=t[a];if(c&&Array.isArray(i)){var u,l=(0,G.default)(i);try{for(l.s();!(u=l.n()).done;){var p=u.value;c&&"object"==typeof c&&(c=c[p])}}catch(e){l.e(e)}finally{l.f()}Array.isArray(c)?c.forEach(function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&s.push(e.id)}):c&&c.id&&"string"==typeof c.id&&s.push(c.id)}else c&&"string"==typeof i&&"object"==typeof c&&("string"==typeof(c=c[i])?s.push(c):Array.isArray(c)&&c.forEach(function(e){"string"==typeof e&&s.push(e)}));Z(r,n,o,e,s)}}:null}function Z(e,t,r,n,o){var i=n.get(e);if(i&&!(r.length<2)){for(var a=i,s=1;s0&&"LinkedField"===e.fragment.selections[0].kind?e.fragment.selections[0].name:null}parcelRequire("hzw7m"),V={MutationTypes:Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE"}),RangeOperations:Object.freeze({APPEND:"append",PREPEND:"prepend"}),convert:Y};var z=parcelRequire("bQThX");k=function(e,t){N(e)||z(!1);var r=L(t.mutation);if("mutation"!==r.params.operationKind)throw Error("commitMutation: Expected mutation operation");var n=t.optimisticUpdater,o=t.configs,i=t.optimisticResponse,a=H(r,t.variables);return o&&(n=V.convert(o,r,n).optimisticUpdater),e.applyMutation({operation:a,response:i,updater:n})};var ee={};ee=function(e,t){e.commitUpdate(t)};var et={},_=parcelRequire("7dvyf"),er=(0,_.default)(parcelRequire("gvI75")),E=parcelRequire("8AEJo"),en=E.getRequest,u=parcelRequire("70q7x"),eo=u.generateUniqueClientID,ei=C.createOperationDescriptor,_=parcelRequire("7dvyf");(0,_.default)(parcelRequire("4N8OD"));var ea=parcelRequire("9lZfN");ea.ACTOR_CHANGE,ea.CLIENT_COMPONENT,ea.CLIENT_EDGE_TO_CLIENT_OBJECT,ea.CLIENT_EXTENSION,ea.CONDITION,ea.DEFER,ea.FRAGMENT_SPREAD,ea.INLINE_FRAGMENT,ea.LINKED_FIELD,ea.LINKED_HANDLE,ea.MODULE_IMPORT,ea.RELAY_LIVE_RESOLVER,ea.RELAY_RESOLVER,ea.SCALAR_FIELD,ea.SCALAR_HANDLE,ea.STREAM,ea.TYPE_DISCRIMINATOR,parcelRequire("hzw7m"),Object.prototype.hasOwnProperty;var z=parcelRequire("bQThX");parcelRequire("hzw7m"),et=function(e,t){N(e)||z(!1);var r=en(t.mutation);if("mutation"!==r.params.operationKind)throw Error("commitMutation: Expected mutation operation");if("Request"!==r.kind)throw Error("commitMutation: Expected mutation to be of type request");var n=t.optimisticResponse,o=t.optimisticUpdater,i=t.updater,a=t.configs,s=t.cacheConfig,c=t.onError,u=t.onUnsubscribe,l=t.variables,p=t.uploadables,f=ei(r,l,s,eo());if("function"==typeof n&&(n=n()),a){var d=V.convert(a,r,o,i);o=d.optimisticUpdater,i=d.updater}var h=[];return{dispose:e.executeMutation({operation:f,optimisticResponse:n,optimisticUpdater:o,updater:i,uploadables:p}).subscribe({next:function(e){var r;Array.isArray(e)?e.forEach(function(e){e.errors&&h.push.apply(h,(0,er.default)(e.errors))}):e.errors&&h.push.apply(h,(0,er.default)(e.errors)),null==(r=t.onNext)||r.call(t)},complete:function(){var r=t.onCompleted;r&&r(e.lookup(f.fragment).data,0!==h.length?h:null)},error:c,unsubscribe:u}).unsubscribe}};var es={},ec={};parcelRequire("3Nt2B"),parcelRequire("hzw7m");var eu="function"==typeof WeakMap?new WeakMap:new Map;function el(e,t){if(null==t)return e;var r={};return Object.assign(r,e),Object.keys(t).forEach(function(e){var n=t[e].get,o=n();if(eu.has(n)){var i=eu.get(n);r[e]=i}else eu.set(n,o),r[e]=o}),r}el.tests_only_resetDebugCache=void 0,ec=el;var ep={},ef={},ed={};ed=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.then};var eh=eA,eb=function(){function e(e){this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){eh=e},e.from=function(e){return eM(e)?ez(e):ed(e)?eO(e):em(e)};var t=e.prototype;return t.catch=function(t){var r=this;return e.create(function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(r){try{t(r).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(t){e.error(t,!0)}}}),function(){return n.unsubscribe()}})},t.concat=function(t){var r=this;return e.create(function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=t.subscribe(e)}}),function(){n&&n.unsubscribe()}})},t.do=function(t){var r=this;return e.create(function(e){var n=function(r){return function(){try{t[r]&&t[r].apply(t,arguments)}catch(e){eh(e,!0)}e[r]&&e[r].apply(e,arguments)}};return r.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})})},t.finally=function(t){var r=this;return e.create(function(e){var n=r.subscribe(e);return function(){n.unsubscribe(),t()}})},t.ifEmpty=function(t){var r=this;return e.create(function(e){var n,o=!1;return n=r.subscribe({next:function(t){o=!0,e.next(t)},error:e.error,complete:function(){o?e.complete():n=t.subscribe(e)}}),function(){n&&n.unsubscribe()}})},t.subscribe=function(e){return eg(this._source,e)},t.map=function(t){var r=this;return e.create(function(e){var n=r.subscribe({complete:e.complete,error:e.error,next:function(r){try{var n=t(r);e.next(n)}catch(t){e.error(t,!0)}}});return function(){n.unsubscribe()}})},t.mergeMap=function(t){var r=this;return e.create(function(n){var o=[];function i(e){this._sub=e,o.push(e)}function a(){o.splice(o.indexOf(this._sub),1),0===o.length&&n.complete()}return r.subscribe({start:i,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:i,next:n.next,error:n.error,complete:a})}catch(e){n.error(e,!0)}},error:n.error,complete:a}),function(){o.forEach(function(e){return e.unsubscribe()}),o.length=0}})},t.poll=function(t){var r=this;return e.create(function(e){var n,o;return function i(){n=r.subscribe({next:e.next,error:e.error,complete:function(){o=setTimeout(i,t)}})}(),function(){clearTimeout(o),n.unsubscribe()}})},t.toPromise=function(){var e=this;return new Promise(function(t,r){var n=!1;e.subscribe({next:function(e){n||(n=!0,t(e))},error:r,complete:t})})},e}();function eM(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}function ez(e){return e instanceof eb?e:eb.create(function(t){return e.subscribe(t)})}function eO(e){return eb.create(function(t){e.then(function(e){t.next(e),t.complete()},t.error)})}function em(e){return eb.create(function(t){t.next(e),t.complete()})}function eg(e,t){var r,n=!1,o=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function i(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){eh(e,!0)}r=void 0}}var a=o({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(a)}catch(e){eh(e,!0)}finally{i()}}}});try{t.start&&t.start(a)}catch(e){eh(e,!0)}if(n)return a;var s=o({next:function(e){if(!n&&t.next)try{t.next(e)}catch(e){eh(e,!0)}},error:function(e,r){if(n||!t.error)n=!0,eh(e,r||!1),i();else{n=!0;try{t.error(e)}catch(e){eh(e,!0)}finally{i()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){eh(e,!0)}finally{i()}}}});try{r=e(s)}catch(e){s.error(e,!0)}return n&&i(),a}function eA(e,t){}ef=eb;var ev=(ep={convertFetch:function(e){return function(t,r,n,o,i){var a=e(t,r,n,o,i);return a instanceof Error?ef.create(function(e){return e.error(a)}):ef.from(a)}}}).convertFetch,z=parcelRequire("bQThX");es={create:function(e,t){var r=ev(e);return{execute:function(e,n,o,i,a){var s=ec(n,e.providedVariables);if("subscription"===e.operationKind)return t||z(!1),i&&z(!1),t(e,s,o);var c=o.poll;return null!=c?(i&&z(!1),r(e,s,{force:!0}).poll(c)):r(e,s,o,i,a)}}}};var ey={},_=parcelRequire("7dvyf"),e_=(0,_.default)(parcelRequire("4N8OD")),D=parcelRequire("ahEdt"),z=parcelRequire("bQThX");function eq(e,t){return JSON.stringify(D({queryID:e,variables:t}))}function ex(e,t){return e+t>=Date.now()}ey=function(){function e(e){var t=e.size,r=e.ttl;t>0||z(!1),r>0||z(!1),this._responses=new Map,this._size=t,this._ttl=r}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var r=this,n=eq(e,t);this._responses.forEach(function(e,t){ex(e.fetchTime,r._ttl)||r._responses.delete(t)});var o=this._responses.get(n);return null==o?null:Array.isArray(o.payload)?o.payload.map(function(e){return(0,e_.default)((0,e_.default)({},e),{},{extensions:(0,e_.default)((0,e_.default)({},e.extensions),{},{cacheTimestamp:o.fetchTime})})}):(0,e_.default)((0,e_.default)({},o.payload),{},{extensions:(0,e_.default)((0,e_.default)({},o.payload.extensions),{},{cacheTimestamp:o.fetchTime})})},t.set=function(e,t,r){var n=Date.now(),o=eq(e,t);if(this._responses.delete(o),this._responses.set(o,{fetchTime:n,payload:r}),this._responses.size>this._size){var i=this._responses.keys().next();i.done||this._responses.delete(i.value)}},e}();var ew={},_=parcelRequire("7dvyf"),eR=(0,_.default)(parcelRequire("4N8OD")),eS=C.createOperationDescriptor,eW={},_=parcelRequire("7dvyf"),ek=_.default,eE=ek(parcelRequire("bTRzt")),eL=parcelRequire("hOJCp"),eN=ek(parcelRequire("9DZlA"));eW=function(e,t,r,n,o){var i,a=(0,eE.default)(r);try{for(a.s();!(i=a.n()).done;){var s=i.value;e.relayFieldLogger({kind:"relay_resolver.error",owner:s.field.owner,fieldPath:s.field.path,error:s.error})}}catch(e){a.e(e)}finally{a.f()}if(r.length>0&&(eN.default.ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT||o))throw new eL.RelayFieldError("Relay: Unexpected resolver exception",r.map(function(e){return{message:e.error.message}}));if((eN.default.ENABLE_FIELD_ERROR_HANDLING||o)&&null!=n){if(null!=n){var c,u=(0,eE.default)(n);try{for(u.s();!(c=u.n()).done;){var l=c.value,p=l.path,f=l.owner,d=l.error;e.relayFieldLogger({kind:"relay_field_payload.error",owner:f,fieldPath:p,error:d})}}catch(e){u.e(e)}finally{u.f()}}if(eN.default.ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT||o)throw new eL.RelayFieldError("Relay: Unexpected response payload - this object includes an errors property in which you can access the underlying errors",n.map(function(e){return e.error}))}if(null!=t)switch(t.action){case"THROW":var h=t.field,b=h.path,M=h.owner;throw e.relayFieldLogger({kind:"missing_field.throw",owner:M,fieldPath:b}),Error("Relay: Missing @required value at path '".concat(b,"' in '").concat(M,"'."));case"LOG":t.fields.forEach(function(t){var r=t.path,n=t.owner;e.relayFieldLogger({kind:"missing_field.log",owner:n,fieldPath:r})});break;default:t.action}};var eC={},eT={},_=parcelRequire("7dvyf"),eD=_.default,eB=eD(parcelRequire("bTRzt")),eI=eD(parcelRequire("dW6Ee")),z=parcelRequire("bQThX");eT=function(){function e(){var e=this;(0,eI.default)(this,"_complete",!1),(0,eI.default)(this,"_events",[]),(0,eI.default)(this,"_sinks",new Set),(0,eI.default)(this,"_subscription",[]),this._observable=ef.create(function(t){e._sinks.add(t);for(var r=e._events,n=0;nt.length;)this._resolvers.pop().dispose();for(var r=0;r0?i.add(s):o.add(s))}}catch(e){a.e(e)}finally{a.f()}var u,l=(0,tE.default)(o);try{for(l.s();!(u=l.n()).done;){var p=u.value;this._resolveOwnerResolvers(p),this._ownersToPendingOperations.delete(p)}}catch(e){l.e(e)}finally{l.f()}var f,d=(0,tE.default)(i);try{for(d.s();!(f=d.n()).done;){var h=f.value;this._resolveOwnerResolvers(h)}}catch(e){d.e(e)}finally{d.f()}this._pendingOperationsToOwners.delete(t)}},t._resolveOwnerResolvers=function(e){var t=this._ownersToPendingPromise.get(e);null!=t&&t.resolve(),this._ownersToPendingPromise.delete(e)},t.getPendingOperationsAffectingOwner=function(e){var t,r=e.identifier,n=this._ownersToPendingOperations.get(r);if(null==n||0===n.size)return null;var o=this._ownersToPendingPromise.get(r);if(null!=o)return{promise:o.promise,pendingOperations:o.pendingOperations};var i=new Promise(function(e){t=e});null==t&&z(!1);var a=Array.from(n.values());return this._ownersToPendingPromise.set(r,{promise:i,resolve:t,pendingOperations:a}),{promise:i,pendingOperations:a}},e}();var tL={};tL=function(e){var t=void 0!==$parcel$global?$parcel$global:"undefined"!=typeof window?window:void 0,r=t&&t.__RELAY_DEVTOOLS_HOOK__;r&&r.registerEnvironment(e)};var tN=parcelRequire("eGOdg"),tC={};tC=function(e){};var tT={},_=parcelRequire("7dvyf"),tD=_.default,tB=tD(parcelRequire("bTRzt")),tI=tD(parcelRequire("gvI75")),tP=parcelRequire("1hwTW"),tF={};function tj(e,t,r){for(var n=arguments.length,o=Array(n>3?n-3:0),i=3;i2?r-2:0),o=2;o2?r-2:0),o=2;o0?"active":"inactive";break;default:this._state,z(!1)}this._operationExecutions.set(this._operation.request.identifier,e)},t._schedule=function(e){var t=this,r=this._scheduler;if(null!=r){var n=this._nextSubscriptionId++;ef.create(function(t){var n=r.schedule(function(){try{e(),t.complete()}catch(e){t.error(e)}});return function(){return r.cancel(n)}}).subscribe({complete:function(){return t._complete(n)},error:function(e){return t._error(e)},start:function(e){return t._start(n,e)}})}else e()},t._complete=function(e){this._subscriptions.delete(e),0===this._subscriptions.size&&(this.cancel(),this._sink.complete(),this._log({name:"execute.complete",executeId:this._executeId}))},t._error=function(e){this.cancel(),this._sink.error(e),this._log({name:"execute.error",executeId:this._executeId,error:e})},t._start=function(e,t){this._subscriptions.set(e,t),this._updateActiveState()},t._next=function(e,t){var r=this;this._schedule(function(){var e=tX(function(){r._handleNext(t),r._maybeCompleteSubscriptionOperationTracking()})[0];r._log({name:"execute.next",executeId:r._executeId,response:t,duration:e})})},t._handleErrorResponse=function(e){var t=this,r=[];return e.forEach(function(e){if(null!==e.data||null==e.extensions||e.hasOwnProperty("errors")){if(null==e.data){var n=e.hasOwnProperty("errors")&&null!=e.errors?e.errors:null,o=n?n.map(function(e){return e.message}).join("\n"):"(No errors)",i=tF.create("RelayNetwork","No data returned for operation `"+t._operation.request.node.params.name+"`, got error(s):\n"+o+"\n\nSee the error `source` property for more information.");throw i.source={errors:n,operation:t._operation.request.node,variables:t._operation.request.variables},i.stack,i}var a=e;r.push(a)}}),r},t._handleOptimisticResponses=function(e){if(e.length>1)return e.some(function(e){var t;return(null==(t=e.extensions)?void 0:t.isOptimistic)===!0})&&z(!1),!1;var t,r=e[0],n=(null==(t=r.extensions)?void 0:t.isOptimistic)===!0;return n&&"started"!==this._state&&z(!1),!!n&&(this._processOptimisticResponse(r,null,this._treatMissingFieldsAsNull),this._sink.next(r),!0)},t._handleNext=function(e){if("completed"!==this._state){this._seenActors.clear();var t=Array.isArray(e)?e:[e],r=this._handleErrorResponse(t);if(0===r.length){t.some(function(e){var t;return(null==(t=e.extensions)?void 0:t.is_final)===!0})&&(this._state="loading_final",this._updateActiveState(),this._incrementalPayloadsPending=!1),this._sink.next(e);return}if(!this._handleOptimisticResponses(r)){var n=t4(r),o=n[0],i=n[1],a=o.length>0;if(a){if(this._isSubscriptionOperation){var s=tG();this._operation={request:this._operation.request,fragment:t$(this._operation.fragment.node,s,this._operation.fragment.variables,this._operation.fragment.owner),root:tQ(this._operation.root.node,s,this._operation.root.variables)}}var c=this._processResponses(o);this._processPayloadFollowups(c)}if(i.length>0){var u=this._processIncrementalResponses(i);this._processPayloadFollowups(u)}this._isSubscriptionOperation&&(null==r[0].extensions?r[0].extensions={__relay_subscription_root_id:this._operation.fragment.dataID}:r[0].extensions.__relay_subscription_root_id=this._operation.fragment.dataID);var l=this._runPublishQueue(a?this._operation:void 0);a&&this._incrementalPayloadsPending&&this._retainData(),this._updateOperationTracker(l),this._sink.next(e)}}},t._processOptimisticResponse=function(e,t,r){var n=this;if(null!==this._optimisticUpdates&&z(!1),null!=e||null!=t){var o=[];if(e){var i=this._normalizeResponse(e,this._operation.root,tJ,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:[],shouldProcessClientComponents:this._shouldProcessClientComponents,treatMissingFieldsAsNull:r});t6(i),o.push({operation:this._operation,payload:i,updater:t}),this._processOptimisticFollowups(i,o)}else t&&o.push({operation:this._operation,payload:{errors:null,fieldPayloads:null,incrementalPlaceholders:null,followupPayloads:null,source:tZ.create(),isFinal:!1},updater:t});this._optimisticUpdates=o,o.forEach(function(e){return n._getPublishQueueAndSaveActor().applyUpdate(e)});var a=this._runPublishQueue();te.ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES&&this._updateOperationTracker(a)}},t._processOptimisticFollowups=function(e,t){if(e.followupPayloads&&e.followupPayloads.length){var r,n=e.followupPayloads,o=(0,tB.default)(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;switch(i.kind){case"ModuleImportPayload":var a=this._expectOperationLoader().get(i.operationReference);if(null==a)this._processAsyncOptimisticModuleImport(i);else{var s=this._processOptimisticModuleImport(a,i);t.push.apply(t,(0,tI.default)(s))}break;case"ActorPayload":break;default:z(!1)}}}catch(e){o.e(e)}finally{o.f()}}},t._normalizeFollowupPayload=function(e,t){var r="SplitOperation"===t.kind&&"ModuleImportPayload"===e.kind?tY(e.variables,t.argumentDefinitions,e.args):e.variables,n=tQ(t,e.dataID,r);return this._normalizeResponse({data:e.data},n,e.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:e.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents})},t._processOptimisticModuleImport=function(e,t){var r=tP(e),n=[],o=this._normalizeFollowupPayload(t,r);return t6(o),n.push({operation:this._operation,payload:o,updater:null}),this._processOptimisticFollowups(o,n),n},t._processAsyncOptimisticModuleImport=function(e){var t=this;this._expectOperationLoader().load(e.operationReference).then(function(r){if(null!=r&&"started"===t._state){var n,o=t._processOptimisticModuleImport(r,e);o.forEach(function(e){return t._getPublishQueueAndSaveActor().applyUpdate(e)}),null==t._optimisticUpdates||((n=t._optimisticUpdates).push.apply(n,(0,tI.default)(o)),t._runPublishQueue())}})},t._processResponses=function(e){var t=this;return null!==this._optimisticUpdates&&(this._optimisticUpdates.forEach(function(e){t._getPublishQueueAndSaveActor().revertUpdate(e)}),this._optimisticUpdates=null),this._incrementalPayloadsPending=!1,this._incrementalResults.clear(),this._source.clear(),e.map(function(e){var r=t._normalizeResponse(e,t._operation.root,tJ,{actorIdentifier:t._actorIdentifier,getDataID:t._getDataID,path:[],treatMissingFieldsAsNull:t._treatMissingFieldsAsNull,shouldProcessClientComponents:t._shouldProcessClientComponents});return t._getPublishQueueAndSaveActor().commitPayload(t._operation,r,t._updater),r})},t._processPayloadFollowups=function(e){var t=this;"completed"!==this._state&&e.forEach(function(e){var r=e.incrementalPlaceholders,n=e.followupPayloads,o=e.isFinal;if(t._state=o?"loading_final":"loading_incremental",t._updateActiveState(),o&&(t._incrementalPayloadsPending=!1),n&&0!==n.length&&n.forEach(function(e){var r,n=t._actorIdentifier;t._actorIdentifier=null!=(r=e.actorIdentifier)?r:t._actorIdentifier,t._processFollowupPayload(e),t._actorIdentifier=n}),r&&0!==r.length&&(t._incrementalPayloadsPending="loading_final"!==t._state,r.forEach(function(r){var n,o=t._actorIdentifier;t._actorIdentifier=null!=(n=r.actorIdentifier)?n:t._actorIdentifier,t._processIncrementalPlaceholder(e,r),t._actorIdentifier=o}),t._isClientPayload||"loading_final"===t._state)){var i=[];r.forEach(function(e){"defer"===e.kind&&i.push(t._processDeferResponse(e.label,e.path,e,{data:e.data}))}),i.length>0&&t._processPayloadFollowups(i)}})},t._maybeCompleteSubscriptionOperationTracking=function(){this._isSubscriptionOperation&&0===this._pendingModulePayloadsCount&&!1===this._incrementalPayloadsPending&&this._completeOperationTracker()},t._processFollowupPayload=function(e){var t=this;switch(e.kind){case"ModuleImportPayload":var r=this._expectOperationLoader(),n=r.get(e.operationReference);if(null!=n)this._processFollowupPayloadWithNormalizationNode(e,tP(n));else{var o=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var i=function(){t._pendingModulePayloadsCount--,t._maybeCompleteSubscriptionOperationTracking()},a=ef.from(new Promise(function(t,n){r.load(e.operationReference).then(t,n)}));ef.create(function(r){var n,o=a.subscribe({next:function(o){if(null!=o){var i=function(){try{var n=tP(o),i=te.BATCH_ASYNC_MODULE_UPDATES_FN,a=null!=i&&t._pendingModulePayloadsCount>1,s=tX(function(){if(t._handleFollowupPayload(e,n),a)t._scheduleAsyncStoreUpdate(i,r.complete);else{var o=t._runPublishQueue();t._updateOperationTracker(o)}})[0];t._log({name:"execute.async.module",executeId:t._executeId,operationName:n.name,duration:s}),a||r.complete()}catch(e){r.error(e)}},a=t._scheduler;null==a?i():n=a.schedule(i)}else r.complete()},error:r.error});return function(){o.unsubscribe(),null!=t._scheduler&&null!=n&&t._scheduler.cancel(n)}}).subscribe({complete:function(){t._complete(o),i()},error:function(e){t._error(e),i()},start:function(e){return t._start(o,e)}})}break;case"ActorPayload":this._processFollowupPayloadWithNormalizationNode(e,e.node);break;default:z(!1)}},t._processFollowupPayloadWithNormalizationNode=function(e,t){this._handleFollowupPayload(e,t),this._maybeCompleteSubscriptionOperationTracking()},t._handleFollowupPayload=function(e,t){var r=this._normalizeFollowupPayload(e,t);this._getPublishQueueAndSaveActor().commitPayload(this._operation,r),this._processPayloadFollowups([r])},t._processIncrementalPlaceholder=function(e,t){var r,n,o,i,a=t.label,s=t.path.map(String).join("."),c=this._incrementalResults.get(a);null==c&&(c=new Map,this._incrementalResults.set(a,c));var u=c.get(s),l=null!=u&&"response"===u.kind?u.responses:null;c.set(s,{kind:"placeholder",placeholder:t}),"stream"===t.kind?n=t.parentID:"defer"===t.kind?n=t.selector.dataID:z(!1);var p=e.source.get(n),f=(null!=(r=e.fieldPayloads)?r:[]).filter(function(e){var t=tV(e.dataID,e.fieldKey);return e.dataID===n||t===n});null==p&&z(!1);var d=this._source.get(n);if(null!=d){o=tK.update(d.record,p);var h=new Map,b=function(e){var t=t5(e);h.set(t,e)};d.fieldPayloads.forEach(b),f.forEach(b),i=Array.from(h.values())}else o=p,i=f;if(this._source.set(n,{record:o,fieldPayloads:i}),null!=l){var M=this._processIncrementalResponses(l);this._processPayloadFollowups(M)}},t._processIncrementalResponses=function(e){var t=this,r=[];return e.forEach(function(e){var n=e.label,o=e.path,i=e.response,a=t._incrementalResults.get(n);if(null==a&&(a=new Map,t._incrementalResults.set(n,a)),-1!==n.indexOf("$defer$")){var s=o.map(String).join("."),c=a.get(s);if(null==c){c={kind:"response",responses:[e]},a.set(s,c);return}if("response"===c.kind)return void c.responses.push(e);var u=c.placeholder;"defer"!==u.kind&&z(!1),r.push(t._processDeferResponse(n,o,u,i))}else{var l=o.slice(0,-2).map(String).join("."),p=a.get(l);if(null==p){p={kind:"response",responses:[e]},a.set(l,p);return}if("response"===p.kind)return void p.responses.push(e);var f=p.placeholder;"stream"!==f.kind&&z(!1),r.push(t._processStreamResponse(n,o,f,i))}}),r},t._processDeferResponse=function(e,t,r,n){var o=r.selector.dataID,i=this._actorIdentifier;this._actorIdentifier=null!=(u=r.actorIdentifier)?u:this._actorIdentifier;var a=this._normalizeResponse(n,r.selector,r.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:r.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents});this._getPublishQueueAndSaveActor().commitPayload(this._operation,a);var s=this._source.get(o);null==s&&z(!1);var c=s.fieldPayloads;if(0!==c.length){var u,l,p={errors:null,fieldPayloads:c,incrementalPlaceholders:null,followupPayloads:null,source:tZ.create(),isFinal:(null==(l=n.extensions)?void 0:l.is_final)===!0};this._getPublishQueueAndSaveActor().commitPayload(this._operation,p)}return this._actorIdentifier=i,a},t._processStreamResponse=function(e,t,r,n){var o=r.parentID,i=r.node,a=r.variables,s=r.actorIdentifier,c=this._actorIdentifier;this._actorIdentifier=null!=s?s:this._actorIdentifier;var u=i.selections[0];(null==u||"LinkedField"!==u.kind||!0!==u.plural)&&z(!1);var l=this._normalizeStreamItem(n,o,u,a,t,r.path),p=l.fieldPayloads,f=l.itemID,d=l.itemIndex,h=l.prevIDs,b=l.relayPayload,M=l.storageKey;if(this._getPublishQueueAndSaveActor().commitPayload(this._operation,b,function(e){var t=e.get(o);if(null!=t){var r=t.getLinkedRecords(M);if(null!=r&&!(r.length!==h.length||r.some(function(e,t){return h[t]!==(e&&e.getDataID())}))){var n=(0,tI.default)(r);n[d]=e.get(f),t.setLinkedRecords(n,M)}}}),0!==p.length){var O={errors:null,fieldPayloads:p,incrementalPlaceholders:null,followupPayloads:null,source:tZ.create(),isFinal:!1};this._getPublishQueueAndSaveActor().commitPayload(this._operation,O)}return this._actorIdentifier=c,b},t._normalizeStreamItem=function(e,t,r,n,o,i){var a,s,c,u,l=e.data;"object"!=typeof l&&z(!1);var p=null!=(a=r.alias)?a:r.name,f=t1(r,n),d=this._source.get(t);null==d&&z(!1);var h=d.record,b=d.fieldPayloads,M=tK.getLinkedRecordIDs(h,f);null==M&&z(!1);var O=o[o.length-1],m=parseInt(O,10);m===O&&m>=0||z(!1);var g=null!=(s=r.concreteType)?s:l[t0];"string"!=typeof g&&z(!1);var A=null!=(c=null!=(u=this._getDataID(l,g))?u:null==M?void 0:M[m])?c:tV(t,f,m);"string"!=typeof A&&z(!1);var v=tQ(r,A,n),y=tK.clone(h),_=(0,tI.default)(M);_[m]=A,tK.setLinkedRecordIDs(y,f,_),this._source.set(t,{record:y,fieldPayloads:b});var q=this._normalizeResponse(e,v,g,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:[].concat((0,tI.default)(i),[p,String(m)]),treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents});return{fieldPayloads:b,itemID:A,itemIndex:m,prevIDs:M,relayPayload:q,storageKey:f}},t._scheduleAsyncStoreUpdate=function(e,t){var r=this;this._completeFns.push(t),null==this._asyncStoreUpdateDisposable&&(this._asyncStoreUpdateDisposable=e(function(){r._asyncStoreUpdateDisposable=null;var e=r._runPublishQueue();r._updateOperationTracker(e);var t,n=(0,tB.default)(r._completeFns);try{for(n.s();!(t=n.n()).done;)(0,t.value)()}catch(e){n.e(e)}finally{n.f()}r._completeFns=[]}))},t._updateOperationTracker=function(e){null!=e&&e.length>0&&this._operationTracker.update(this._operation.request,new Set(e))},t._completeOperationTracker=function(){this._operationTracker.complete(this._operation.request)},t._getPublishQueueAndSaveActor=function(){return this._seenActors.add(this._actorIdentifier),this._getPublishQueue(this._actorIdentifier)},t._getActorsToVisit=function(){return 0===this._seenActors.size?new Set([this._actorIdentifier]):this._seenActors},t._runPublishQueue=function(e){var t,r=new Set,n=(0,tB.default)(this._getActorsToVisit());try{for(n.s();!(t=n.n()).done;){var o=t.value;this._getPublishQueue(o).run(e).forEach(function(e){return r.add(e)})}}catch(e){n.e(e)}finally{n.f()}return Array.from(r)},t._retainData=function(){var e,t=(0,tB.default)(this._getActorsToVisit());try{for(t.s();!(e=t.n()).done;){var r=e.value;this._retainDisposables.has(r)||this._retainDisposables.set(r,this._getStore(r).retain(this._operation))}}catch(e){t.e(e)}finally{t.f()}},t._disposeRetainedData=function(){var e,t=(0,tB.default)(this._retainDisposables.values());try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(e){t.e(e)}finally{t.f()}this._retainDisposables.clear()},t._expectOperationLoader=function(){var e=this._operationLoader;return e||z(!1),e},e}();function t4(e){var t=[],r=[];return e.forEach(function(e){if(null!=e.path||null!=e.label){var n=e.label,o=e.path;(null==n||null==o)&&z(!1),r.push({label:n,path:o,response:e})}else t.push(e)}),[t,r]}function t5(e){var t;return null!=(t=JSON.stringify(D(e)))?t:""}function t6(e){var t=e.incrementalPlaceholders;null!=t&&0!==t.length&&z(!1)}tT={execute:t2};var t8={},t7=parcelRequire("kQ6dV"),t9=parcelRequire("gjqZl"),re={},p=parcelRequire("a6k4O"),rt=p.ROOT_TYPE,rr=p.getStorageKey,rn=parcelRequire("gKlWo").readUpdatableFragment,ro=parcelRequire("9EQNR").readUpdatableQuery,z=parcelRequire("bQThX");re=function(){function e(e,t,r,n){this.__mutator=e,this.__recordSource=t,this._readSelector=r,this._missingFieldHandlers=n}var t=e.prototype;return t.create=function(e,t){return this.__recordSource.create(e,t)},t.delete=function(e){this.__recordSource.delete(e)},t.get=function(e){return this.__recordSource.get(e)},t.getRoot=function(){return this.__recordSource.getRoot()},t.getOperationRoot=function(){var e=this.__recordSource.get(this._readSelector.dataID);return e||(e=this.__recordSource.create(this._readSelector.dataID,rt)),e},t._getRootField=function(e,t,r){var n=e.node.selections.find(function(e){return"LinkedField"===e.kind&&e.name===t||"RequiredField"===e.kind&&e.field.name===t});return n&&"RequiredField"===n.kind&&(n=n.field),n&&"LinkedField"===n.kind||z(!1),n.plural!==r&&z(!1),n},t.getRootField=function(e){var t=rr(this._getRootField(this._readSelector,e,!1),this._readSelector.variables);return this.getOperationRoot().getLinkedRecord(t)},t.getPluralRootField=function(e){var t=rr(this._getRootField(this._readSelector,e,!0),this._readSelector.variables);return this.getOperationRoot().getLinkedRecords(t)},t.invalidateStore=function(){this.__recordSource.invalidateStore()},t.readUpdatableQuery=function(e,t){return ro(e,t,this,this._missingFieldHandlers)},t.readUpdatableFragment=function(e,t){return rn(e,t,this,this._missingFieldHandlers)},e}();var ri=parcelRequire("2Nqi8"),tZ=parcelRequire("fWVgk"),z=parcelRequire("bQThX");parcelRequire("hzw7m");var ra=void 0!==$parcel$global?$parcel$global:"undefined"!=typeof window?window:void 0,rs=null!=(a=null==ra||null==(s=ra.ErrorUtils)?void 0:s.applyWithGuard)?a:function(e,t,r,n,o){return e.apply(t,r)};function rc(e,t){return ri.read(e,t).data}t8=function(){function e(e,t,r,n){this._hasStoreSnapshot=!1,this._handlerProvider=t||null,this._pendingBackupRebase=!1,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=e,this._appliedOptimisticUpdates=new Set,this._gcHold=null,this._getDataID=r,this._missingFieldHandlers=n}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&z(!1),this._pendingOptimisticUpdates.add(e)},t.revertUpdate=function(e){this._pendingOptimisticUpdates.has(e)?this._pendingOptimisticUpdates.delete(e):this._appliedOptimisticUpdates.has(e)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(e))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(e,t,r){this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",operation:e,payload:t,updater:r})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"updater",updater:e})},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(e){var t=0===this._appliedOptimisticUpdates&&!!this._gcHold;if(!this._pendingBackupRebase&&0===this._pendingOptimisticUpdates.size&&!t)return[];this._pendingBackupRebase&&this._hasStoreSnapshot&&(this._store.restore(),this._hasStoreSnapshot=!1);var r=this._commitData();return(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size)&&(this._hasStoreSnapshot||(this._store.snapshot(),this._hasStoreSnapshot=!0),this._applyUpdates()),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._store.notify(e,r)},t._publishSourceFromPayload=function(e){var t=this,r=e.payload,n=e.operation,o=e.updater,i=r.source,a=r.fieldPayloads,s=new t7(this._store.getSource(),i),c=new t9(s,this._getDataID,this._handlerProvider,this._missingFieldHandlers);if(a&&a.length&&a.forEach(function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||z(!1),r.update(c,e)}),o){var u=n.fragment;null==u&&z(!1),o(new re(s,c,u,this._missingFieldHandlers),rc(i,u))}var l=c.getIDsMarkedForInvalidation();return this._store.publish(i,l),c.isStoreMarkedForInvalidation()},t._commitData=function(){var e=this;if(!this._pendingData.size)return!1;var t=!1;return this._pendingData.forEach(function(r){if("payload"===r.kind){var n=e._publishSourceFromPayload(r);t=t||n}else if("source"===r.kind){var o=r.source;e._store.publish(o)}else{var i=r.updater,a=tZ.create(),s=new t9(new t7(e._store.getSource(),a),e._getDataID,e._handlerProvider,e._missingFieldHandlers);rs(i,null,[s],null,"RelayPublishQueue:commitData"),t=t||s.isStoreMarkedForInvalidation();var c=s.getIDsMarkedForInvalidation();e._store.publish(a,c)}}),this._pendingData.clear(),t},t._applyUpdates=function(){var e=this,t=tZ.create(),r=new t7(this._store.getSource(),t),n=new t9(r,this._getDataID,this._handlerProvider,this._missingFieldHandlers),o=function(t){if(t.storeUpdater)rs(t.storeUpdater,null,[n],null,"RelayPublishQueue:applyUpdates");else{var o,i=t.operation,a=t.payload,s=t.updater,c=a.source,u=a.fieldPayloads;c&&n.publishSource(c,u),s&&(c&&(o=rc(c,i.fragment)),rs(s,null,[new re(r,n,i.fragment,e._missingFieldHandlers),o],null,"RelayPublishQueue:applyUpdates"))}};this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(o),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach(function(t){o(t),e._appliedOptimisticUpdates.add(t)}),this._pendingOptimisticUpdates.clear()),this._store.publish(t)},e}();var tZ=parcelRequire("fWVgk");parcelRequire("bQThX");var ru=function(){function e(e){var t,r,n,o,i,a,s,c,u,l,p=this;this.configName=e.configName,this._treatMissingFieldsAsNull=!0===e.treatMissingFieldsAsNull;var f=e.operationLoader;this.__log=null!=(t=e.log)?t:rp,this.relayFieldLogger=null!=(r=e.relayFieldLogger)?r:tC,this._defaultRenderPolicy=null!=(n=e.UNSTABLE_defaultRenderPolicy)?n:"partial",this._operationLoader=f,this._operationExecutions=new Map,this._network=tR(this,e.network),this._getDataID=null!=(o=e.getDataID)?o:tN,this._missingFieldHandlers=null!=(i=e.missingFieldHandlers)?i:[],this._publishQueue=new t8(e.store,null!=(a=e.handlerProvider)?a:W,this._getDataID,this._missingFieldHandlers),this._scheduler=null!=(s=e.scheduler)?s:null,this._store=e.store,this.options=e.options,this._isServer=null!=(c=e.isServer)&&c,this._normalizeResponse=null!=(u=e.normalizeResponse)?u:th,this.__setNet=function(e){return p._network=tR(p,e)},this._operationTracker=null!=(l=e.operationTracker)?l:new tk,this._shouldProcessClientComponents=e.shouldProcessClientComponents,tL(this)}var t=e.prototype;return t.getStore=function(){return this._store},t.getNetwork=function(){return this._network},t.getOperationTracker=function(){return this._operationTracker},t.getScheduler=function(){return this._scheduler},t.isRequestActive=function(e){return"active"===this._operationExecutions.get(e)},t.UNSTABLE_getDefaultRenderPolicy=function(){return this._defaultRenderPolicy},t.applyUpdate=function(e){var t=this,r=function(){t._scheduleUpdates(function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()})};return this._scheduleUpdates(function(){t._publishQueue.applyUpdate(e),t._publishQueue.run()}),{dispose:r}},t.revertUpdate=function(e){var t=this;this._scheduleUpdates(function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()})},t.replaceUpdate=function(e,t){var r=this;this._scheduleUpdates(function(){r._publishQueue.revertUpdate(e),r._publishQueue.applyUpdate(t),r._publishQueue.run()})},t.applyMutation=function(e){var t=this._execute({createSource:function(){return ef.create(function(e){})},isClientPayload:!1,operation:e.operation,optimisticConfig:e,updater:null}).subscribe({});return{dispose:function(){return t.unsubscribe()}}},t.check=function(e){return 0!==this._missingFieldHandlers.length||rl(e)?this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers):this._store.check(e)},t.commitPayload=function(e,t){this._execute({createSource:function(){return ef.from({data:t})},isClientPayload:!0,operation:e,optimisticConfig:null,updater:null}).subscribe({})},t.commitUpdate=function(e){var t=this;this._scheduleUpdates(function(){t._publishQueue.commitUpdate(e),t._publishQueue.run()})},t.lookup=function(e){return this._store.lookup(e)},t.subscribe=function(e,t){return this._store.subscribe(e,t)},t.retain=function(e){return this._store.retain(e)},t.isServer=function(){return this._isServer},t._checkSelectorAndHandleMissingFields=function(e,t){var r=this,n=tZ.create(),o=this._store.getSource(),i=this._store.check(e,{handlers:t,defaultActorIdentifier:tx,getSourceForActor:function(e){return tw(e),o},getTargetForActor:function(e){return tw(e),n}});return n.size()>0&&this._scheduleUpdates(function(){r._publishQueue.commitSource(n),r._publishQueue.run()}),i},t._scheduleUpdates=function(e){var t=this._scheduler;null!=t?t.schedule(e):e()},t.execute=function(e){var t=this,r=e.operation;return this._execute({createSource:function(){return t.getNetwork().execute(r.request.node.params,r.request.variables,r.request.cacheConfig||{},null)},isClientPayload:!1,operation:r,optimisticConfig:null,updater:null})},t.executeSubscription=function(e){var t=this,r=e.operation,n=e.updater;return this._execute({createSource:function(){return t.getNetwork().execute(r.request.node.params,r.request.variables,r.request.cacheConfig||{},null)},isClientPayload:!1,operation:r,optimisticConfig:null,updater:n})},t.executeMutation=function(e){var t,r=this,n=e.operation,o=e.optimisticResponse,i=e.optimisticUpdater,a=e.updater,s=e.uploadables;return(o||i)&&(t={operation:n,response:o,updater:i}),this._execute({createSource:function(){return r.getNetwork().execute(n.request.node.params,n.request.variables,(0,t_.default)((0,t_.default)({},n.request.cacheConfig),{},{force:!0}),s)},isClientPayload:!1,operation:n,optimisticConfig:t,updater:a})},t.executeWithSource=function(e){var t=e.operation,r=e.source;return this._execute({createSource:function(){return r},isClientPayload:!1,operation:t,optimisticConfig:null,updater:null})},t.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!=(e=this.configName)?e:"",")")},t._execute=function(e){var t=this,r=e.createSource,n=e.isClientPayload,o=e.operation,i=e.optimisticConfig,a=e.updater,s=this._publishQueue,c=this._store;return ef.create(function(e){var u=tT.execute({actorIdentifier:tx,getDataID:t._getDataID,isClientPayload:n,log:t.__log,operation:o,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,operationTracker:t._operationTracker,optimisticConfig:i,getPublishQueue:function(e){return tw(e),s},scheduler:t._scheduler,shouldProcessClientComponents:t._shouldProcessClientComponents,sink:e,source:r(),getStore:function(e){return tw(e),c},treatMissingFieldsAsNull:t._treatMissingFieldsAsNull,updater:a,normalizeResponse:t._normalizeResponse});return function(){return u.cancel()}})},e}();function rl(e){return"Operation"===e.root.node.kind&&null!=e.root.node.clientAbstractTypes}function rp(){}ru.prototype["@@RelayModernEnvironment"]=!0,ty=ru;var tK=parcelRequire("c4ZG3"),P=parcelRequire("3o9ph"),rf={},_=parcelRequire("7dvyf"),rd=_.default,rh=rd(parcelRequire("bTRzt")),rb=rd(parcelRequire("dW6Ee")),tq=parcelRequire("bd1WG"),rM=tq.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,rz=tq.assertInternalActorIdentifier;parcelRequire("8YAvI");var te=parcelRequire("9DZlA"),rO=parcelRequire("8yHCQ"),rm=parcelRequire("5wm2f"),tN=parcelRequire("eGOdg"),tK=parcelRequire("c4ZG3"),rg=parcelRequire("hprpJ"),ri=parcelRequire("2Nqi8"),rA=parcelRequire("b7ANd"),rv=parcelRequire("7sSWY"),p=(parcelRequire("a6k4O"),parcelRequire("a6k4O")),ry=p.ROOT_ID,r_=p.ROOT_TYPE,rq=parcelRequire("fj00V").RecordResolverCache,z=parcelRequire("bQThX"),rx=10;function rw(e){if(!e.has(ry)){var t=tK.create(ry,r_);e.set(ry,t)}}function rR(e,t,r,n,o,i){n&&n.forEach(function(n){var o,a=e.get(n),s=t.get(n);null!==s&&(o=null!=a?tK.clone(a):null!=s?tK.clone(s):null)&&(tK.setValue(o,p.INVALIDATED_AT_KEY,r),i.add(n),e.set(n,o))});for(var a=t.getRecordIDs(),s=0;st)?{status:"stale"}:"missing"===i?{status:"missing"}:null!=r&&null!=n&&r<=Date.now()-n?{status:"stale"}:{status:"available",fetchTime:null!=r?r:null}}rf=function(){function e(e,t){var r,n,o,i,a,s=this;(0,rb.default)(this,"_gcStep",function(){s._gcRun&&(s._gcRun.next().done?s._gcRun=null:s._gcScheduler(s._gcStep))}),this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=null!=(r=null==t?void 0:t.gcReleaseBufferSize)?r:rx,this._gcRun=null,this._gcScheduler=null!=(n=null==t?void 0:t.gcScheduler)?n:rO,this._getDataID=null!=(o=null==t?void 0:t.getDataID)?o:tN,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=null!=(i=null==t?void 0:t.log)?i:null,this._queryCacheExpirationTime=null==t?void 0:t.queryCacheExpirationTime,this._operationLoader=null!=(a=null==t?void 0:t.operationLoader)?a:null,this._optimisticSource=null,this._recordSource=e,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._resolverCache=new rq(function(){return s._getMutableRecordSource()}),this._storeSubscriptions=new rv(null==t?void 0:t.log,this._resolverCache),this._updatedRecordIDs=new Set,this._shouldProcessClientComponents=null==t?void 0:t.shouldProcessClientComponents,rw(this._recordSource)}var t=e.prototype;return t.getSource=function(){var e;return null!=(e=this._optimisticSource)?e:this._recordSource},t._getMutableRecordSource=function(){var e;return null!=(e=this._optimisticSource)?e:this._recordSource},t.check=function(e,t){var r,n,o,i,a=e.root,s=this._getMutableRecordSource(),c=this._globalInvalidationEpoch,u=this._roots.get(e.request.identifier),l=null!=u?u.epoch:null;if(null!=c&&(null==l||l<=c))return{status:"stale"};var p=null!=(r=null==t?void 0:t.handlers)?r:[],f=null!=(n=null==t?void 0:t.getSourceForActor)?n:function(e){return rz(e),s},d=null!=(o=null==t?void 0:t.getTargetForActor)?o:function(e){return rz(e),s};return rS(rm.check(f,d,null!=(i=null==t?void 0:t.defaultActorIdentifier)?i:rM,a,p,this._operationLoader,this._getDataID,this._shouldProcessClientComponents),l,null==u?void 0:u.fetchTime,this._queryCacheExpirationTime)},t.retain=function(e){var t=this,r=e.request.identifier,n=!1,o=function(){if(!n){n=!0;var e=t._roots.get(r);if(null!=e&&(e.refCount--,0===e.refCount)){var o=t._queryCacheExpirationTime;if(null!=e.fetchTime&&null!=o&&e.fetchTime<=Date.now()-o)t._roots.delete(r),t.scheduleGC();else if(t._releaseBuffer.push(r),t._releaseBuffer.length>t._gcReleaseBufferSize){var i=t._releaseBuffer.shift();t._roots.delete(i),t.scheduleGC()}}}},i=this._roots.get(r);return null!=i?(0===i.refCount&&(this._releaseBuffer=this._releaseBuffer.filter(function(e){return e!==r})),i.refCount+=1):this._roots.set(r,{operation:e,refCount:1,epoch:null,fetchTime:null}),{dispose:o}},t.lookup=function(e){var t=this.getSource();return ri.read(t,e,this._resolverCache)},t.notify=function(e,t){var r=this,n=this.__log;null!=n&&n({name:"store.notify.start",sourceOperation:e}),this._currentWriteEpoch++,!0===t&&(this._globalInvalidationEpoch=this._currentWriteEpoch),te.ENABLE_RELAY_RESOLVERS&&this._resolverCache.invalidateDataIDs(this._updatedRecordIDs);var o=this.getSource(),i=[];if(this._storeSubscriptions.updateSubscriptions(o,this._updatedRecordIDs,i,e),this._invalidationSubscriptions.forEach(function(e){r._updateInvalidationSubscription(e,!0===t)}),null!=n&&n({name:"store.notify.complete",sourceOperation:e,updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs}),this._updatedRecordIDs.clear(),this._invalidatedRecordIDs.clear(),null!=e){var a=e.request.identifier,s=this._roots.get(a);if(null!=s)s.epoch=this._currentWriteEpoch,s.fetchTime=Date.now();else if("query"===e.request.node.params.operationKind&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e.scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"RelayModernStore()"},t.getEpoch=function(){return this._currentWriteEpoch},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t.lookupInvalidationState=function(e){var t=this,r=new Map;return e.forEach(function(e){var n,o=t.getSource().get(e);r.set(e,null!=(n=tK.getInvalidationEpoch(o))?n:null)}),r.set("global",this._globalInvalidationEpoch),{dataIDs:e,invalidations:r}},t.checkInvalidationState=function(e){var t=this.lookupInvalidationState(e.dataIDs).invalidations,r=e.invalidations;if(t.get("global")!==r.get("global"))return!0;var n,o=(0,rh.default)(e.dataIDs);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(t.get(i)!==r.get(i))return!0}}catch(e){o.e(e)}finally{o.f()}return!1},t.subscribeToInvalidationState=function(e,t){var r=this,n={callback:t,invalidationState:e},o=function(){r._invalidationSubscriptions.delete(n)};return this._invalidationSubscriptions.add(n),{dispose:o}},t._updateInvalidationSubscription=function(e,t){var r=this,n=e.callback,o=e.invalidationState.dataIDs;(t||o.some(function(e){return r._invalidatedRecordIDs.has(e)}))&&n()},t.snapshot=function(){null!=this._optimisticSource&&z(!1);var e=this.__log;null!=e&&e({name:"store.snapshot"}),this._storeSubscriptions.snapshotSubscriptions(this.getSource()),this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._optimisticSource=rg.create(this.getSource())},t.restore=function(){null==this._optimisticSource&&z(!1);var e=this.__log;null!=e&&e({name:"store.restore"}),this._optimisticSource=null,this._shouldScheduleGC&&this.scheduleGC(),this._storeSubscriptions.restoreSubscriptions()},t.scheduleGC=function(){if(this._gcHoldCounter>0){this._shouldScheduleGC=!0;return}this._gcRun||(this._gcRun=this._collect(),this._gcScheduler(this._gcStep))},t.__gc=function(){if(null==this._optimisticSource)for(var e=this._collect();!e.next().done;);},t._collect=function*(){o:for(;;){var e,t=this._currentWriteEpoch,r=new Set,n=(0,rh.default)(this._roots.values());try{for(n.s();!(e=n.n()).done;){var o=e.value.operation.root;if(rA.mark(this._recordSource,o,r,this._operationLoader,this._shouldProcessClientComponents),yield,t!==this._currentWriteEpoch)continue o}}catch(e){n.e(e)}finally{n.f()}var i=this.__log;if(null!=i&&i({name:"store.gc",references:r}),0===r.size)this._recordSource.clear();else for(var a=this._recordSource.getRecordIDs(),s=0;s0){for(var n=[],o=r.length-1;o>=0;o--){var i=r[o](e,t);n.unshift(i)}return{stop:function(e){n.forEach(function(t){return t(e)})}}}return r5},attachProfileHandler:function(e,t){r4.hasOwnProperty(e)||(r4[e]=[]),r4[e].push(t)},detachProfileHandler:function(e,t){r4.hasOwnProperty(e)&&r6(r4[e],t)}};var D=parcelRequire("ahEdt");e.exports={Environment:ty,Network:es,Observable:ef,QueryResponseCache:ey,RecordSource:tZ,Record:tK,ReplaySubject:eT,Store:rf,areEqualSelectors:P.areEqualSelectors,createFragmentSpecResolver:e1,createNormalizationSelector:P.createNormalizationSelector,createOperationDescriptor:C.createOperationDescriptor,createReaderSelector:P.createReaderSelector,createRequestDescriptor:C.createRequestDescriptor,getArgumentValues:p.getArgumentValues,getDataIDsFromFragment:P.getDataIDsFromFragment,getDataIDsFromObject:P.getDataIDsFromObject,getNode:E.getNode,getFragment:E.getFragment,getInlineDataFragment:E.getInlineDataFragment,getModuleComponentKey:p.getModuleComponentKey,getModuleOperationKey:p.getModuleOperationKey,getPaginationFragment:E.getPaginationFragment,getPluralSelector:P.getPluralSelector,getRefetchableFragment:E.getRefetchableFragment,getRequest:E.getRequest,getRequestIdentifier:T,getSelector:P.getSelector,getSelectorsFromObject:P.getSelectorsFromObject,getSingularSelector:P.getSingularSelector,getStorageKey:p.getStorageKey,getVariablesFromFragment:P.getVariablesFromFragment,getVariablesFromObject:P.getVariablesFromObject,getVariablesFromPluralFragment:P.getVariablesFromPluralFragment,getVariablesFromSingularFragment:P.getVariablesFromSingularFragment,handlePotentialSnapshotErrors:eW,graphql:E.graphql,isFragment:E.isFragment,isInlineDataFragment:E.isInlineDataFragment,isSuspenseSentinel:tf,suspenseSentinel:td,isRequest:E.isRequest,readInlineData:tg,MutationTypes:V.MutationTypes,RangeOperations:V.RangeOperations,DefaultHandlerProvider:W,ConnectionHandler:c,MutationHandlers:y,VIEWER_ID:rk.VIEWER_ID,VIEWER_TYPE:rk.VIEWER_TYPE,applyOptimisticMutation:k,commitLocalUpdate:ee,commitMutation:et,fetchQuery:ew,fetchQuery_DEPRECATED:eY,isRelayModernEnvironment:N,requestSubscription:rE,ConnectionInterface:h,PreloadableQueryRegistry:e$,RelayProfiler:r3,createPayloadFor3DField:rT,RelayConcreteNode:ea,RelayError:tF,RelayFeatureFlags:te,DEFAULT_HANDLE_KEY:r2.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:p.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:p.FRAGMENT_OWNER_KEY,ID_KEY:p.ID_KEY,REF_KEY:p.REF_KEY,REFS_KEY:p.REFS_KEY,ROOT_ID:p.ROOT_ID,ROOT_TYPE:p.ROOT_TYPE,TYPENAME_KEY:p.TYPENAME_KEY,deepFreeze:rP,generateClientID:eZ,generateUniqueClientID:eJ,getRelayHandleKey:d,isClientID:e0,isPromise:ed,isScalarAndEqual:e7,recycleNodesInto:e9,stableCopy:D,getFragmentIdentifier:rF,getRefetchMetadata:rK,getPaginationMetadata:rY,getPaginationVariables:rQ,getPendingOperationsForFragment:e6,getValueAtPath:r0,__internal:{ResolverFragments:rW,OperationTracker:tk,createRelayContext:tl,getOperationVariables:B.getOperationVariables,getLocalVariables:B.getLocalVariables,fetchQuery:eC.fetchQuery,fetchQueryDeduped:eC.fetchQueryDeduped,getPromiseForActiveRequest:eC.getPromiseForActiveRequest,getObservableForActiveRequest:eC.getObservableForActiveRequest,normalizeResponse:th,withProvidedVariables:ec}}}),parcelRegister("9DZlA",function(e,t){e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_LOAD_QUERY_REQUEST_DEDUPING:!0,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1,BATCH_ASYNC_MODULE_UPDATES_FN:null,ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT:!1,MAX_DATA_ID_LENGTH:null,STRING_INTERN_LEVEL:0,LOG_MISSING_RECORDS_IN_PROD:!1,ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION:!1,ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES:!1,ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE:!1,ENABLE_FIELD_ERROR_HANDLING:!1,ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT:!1,ENABLE_FIELD_ERROR_HANDLING_CATCH_DIRECTIVE:!1,PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION:!1,MARK_RESOLVER_VALUES_AS_CLEAN_AFTER_FRAGMENT_REREAD:!1}}),parcelRegister("7dvyf",function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}),parcelRegister("gvI75",function(e,t){var r=parcelRequire("j5DMw"),n=parcelRequire("7vXph"),o=parcelRequire("A9nvM"),i=parcelRequire("89Nxc");e.exports=function(e){return r(e)||n(e)||o(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports}),parcelRegister("bTRzt",function(e,t){var r=parcelRequire("A9nvM");e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports}),parcelRegister("4N8OD",function(e,t){var r=parcelRequire("dW6Ee");function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t0)null==o?e[d]=(0,n.default)({},t,r):o[t]=r;else if(null!=o&&delete o[t]){for(var i in o)if(o.hasOwnProperty(i))return;delete e[d]}}function q(e,t,r){e[t]=r}function x(e,t){var r=v(e,O);return null==r||l(r)?null:("object"==typeof r&&(r=r.id),"string"!=typeof r&&A(!1),u(t,r))}function w(e,t){var r=v(e,O);return null==r||l(r)?null:(Array.isArray(r)||A(!1),r.map(function(e){return null==e?null:("object"==typeof e&&(e=e.id),"string"!=typeof e&&A(!1),u(t,e))}))}parcelRequire("hzw7m"),e.exports={clone:function(e){return(0,a.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==h&&r!==m&&(t[r]=e[r])},create:function(e,t){var r={};return r[h]=e,r[m]=t,r},freeze:function(e){s(e)},fromObject:function(e){return e},getDataID:function(e){return e[h]},getErrors:function(e,t){var r;return null==(r=e[d])?void 0:r[t]},getFields:function(e){return d in e?Object.keys(e).filter(function(e){return e!==d}):Object.keys(e)},getInvalidationEpoch:function(e){if(null==e)return null;var t=e[b];return"number"!=typeof t?null:t},getLinkedRecordID:function(e,t){var r=e[t];if(null==r)return r;var n=r;return"object"==typeof n&&n&&"string"==typeof n[M]||A(!1),n[M]},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[z])||A(!1),r[z])},getType:function(e){return e[m]},getValue:v,hasValue:function(e,t){return t in e},hasLinkedRecordID:function(e,t){var r=e[t];if(null==r)return!1;var n=r;return"object"==typeof n&&n&&"string"==typeof n[M]},hasLinkedRecordIDs:function(e,t){var r=e[t];return null!=r&&"object"==typeof r&&Array.isArray(r[z])&&r[z].every(function(e){return"string"==typeof e})},merge:function(e,t){if(!(d in e)&&!(d in t))return(0,a.default)((0,a.default)({},e),t);var r=e[d],n=(0,o.default)(e,[d].map(i.default)),s=t[d],c=(0,o.default)(t,[d].map(i.default)),u=(0,a.default)((0,a.default)({},n),c);if(null==r&&null==s)return u;var l={};for(var p in r)c.hasOwnProperty(p)||(l[p]=r[p]);for(var f in s)l[f]=s[f];for(var h in l){u[d]=l;break}return u},setErrors:_,setValue:q,setLinkedRecordID:function(e,t,r){var n={};n[M]=r,e[t]=n},setLinkedRecordIDs:function(e,t,r){var n={};n[z]=r,e[t]=n},update:y,getActorLinkedRecordID:function(e,t){var r=e[t];return null==r?r:(("object"!=typeof r||"string"!=typeof r[M]||null==r[f])&&A(!1),[r[f],r[M]])},setActorLinkedRecordID:function(e,t,r,n){var o={};o[M]=n,o[f]=r,e[t]=o},getResolverLinkedRecordID:x,getResolverLinkedRecordIDs:w,toJSON:function(e){return e}}}),parcelRegister("fWVgk",function(e,t){var r=(0,parcelRequire("7dvyf").default)(parcelRequire("bTRzt")),n=parcelRequire("c4ZG3"),o=parcelRequire("gotsH"),i=o.EXISTENT,a=o.NONEXISTENT,s=o.UNKNOWN;e.exports=function(){function e(e){var t=this;this._records=new Map,null!=e&&Object.keys(e).forEach(function(r){var o=e[r],i=n.fromObject(o);t._records.set(r,i)})}e.create=function(t){return new e(t)};var t=e.prototype;return t.clear=function(){this._records=new Map},t.delete=function(e){this._records.set(e,null)},t.get=function(e){return this._records.get(e)},t.getRecordIDs=function(){return Array.from(this._records.keys())},t.getStatus=function(e){return this._records.has(e)?null==this._records.get(e)?a:i:s},t.has=function(e){return this._records.has(e)},t.remove=function(e){this._records.delete(e)},t.set=function(e,t){this._records.set(e,t)},t.size=function(){return this._records.size},t.toJSON=function(){var e,t={},o=(0,r.default)(this._records);try{for(o.s();!(e=o.n()).done;){var i=e.value,a=i[0],s=i[1];t[a]=n.toJSON(s)}}catch(e){o.e(e)}finally{o.f()}return t},e}()}),parcelRegister("80YOC",function(e,t){var r=parcelRequire("7dvyf").default,n=r(parcelRequire("bTRzt")),o=r(parcelRequire("gvI75")),i={},a="actor_key",s=parcelRequire("bd1WG").getActorIdentifier;function c(e){if(null!=e&&"object"==typeof e&&"string"==typeof e[a])return s(e[a])}(i={ACTOR_IDENTIFIER_FIELD_NAME:a,getActorIdentifierFromPayload:c}).ACTOR_IDENTIFIER_FIELD_NAME;var u=i.getActorIdentifierFromPayload,l=parcelRequire("9lZfN"),p=l.ACTOR_CHANGE,f=l.CLIENT_COMPONENT,d=l.CLIENT_EDGE_TO_CLIENT_OBJECT,h=l.CLIENT_EXTENSION,b=l.CONDITION,M=l.DEFER,z=l.FRAGMENT_SPREAD,O=l.INLINE_FRAGMENT,m=l.LINKED_FIELD,g=l.LINKED_HANDLE,A=l.MODULE_IMPORT,v=l.RELAY_LIVE_RESOLVER,y=l.RELAY_RESOLVER,_=l.SCALAR_FIELD,q=l.SCALAR_HANDLE,x=l.STREAM,w=l.TYPE_DISCRIMINATOR,R=parcelRequire("70q7x"),S=R.generateClientID;R.isClientID;var W=parcelRequire("kpcDM").getLocalVariables,k=parcelRequire("hOJCp"),E=k.buildErrorTrie,L=k.getErrorsByKey,N=k.getNestedErrorTrieByKey,C=parcelRequire("c4ZG3"),T=parcelRequire("3o9ph").createNormalizationSelector,D=parcelRequire("a6k4O");D.ROOT_ID;var B=D.TYPENAME_KEY,I=D.getArgumentValues,P=D.getHandleStorageKey,F=D.getModuleComponentKey,j=D.getModuleOperationKey,X=D.getStorageKey,U=parcelRequire("cHFgk"),H=U.TYPE_SCHEMA_TYPE,V=U.generateTypeID;parcelRequire("3Nt2B");var G=parcelRequire("bQThX");function Y(e,t,r,n,o){var i=t.dataID,a=t.node;return new K(e,t.variables,n).normalizeResponse(a,i,r,o)}parcelRequire("hzw7m");var K=function(){function e(e,t,r){this._actorIdentifier=r.actorIdentifier,this._getDataId=r.getDataID,this._handleFieldPayloads=[],this._treatMissingFieldsAsNull=r.treatMissingFieldsAsNull,this._incrementalPlaceholders=[],this._isClientExtension=!1,this._isUnmatchedAbstractType=!1,this._followupPayloads=[],this._path=r.path?(0,o.default)(r.path):[],this._recordSource=e,this._variables=t,this._shouldProcessClientComponents=r.shouldProcessClientComponents}var t=e.prototype;return t.normalizeResponse=function(e,t,r,n){var o=this._recordSource.get(t);return o||G(!1),this._assignClientAbstractTypes(e),this._errorTrie=E(n),this._traverseSelections(e,o,r),{errors:n,fieldPayloads:this._handleFieldPayloads,incrementalPlaceholders:this._incrementalPlaceholders,followupPayloads:this._followupPayloads,source:this._recordSource,isFinal:!1}},t._assignClientAbstractTypes=function(e){var t=e.clientAbstractTypes;if(null!=t)for(var r=0,o=Object.keys(t);r1&&void 0!==arguments[1]?arguments[1]:a,i=o(),p=n(),f=u(i),d=u(e),h=u(new Set),b=s(!1),M=b[0],z=b[1],O=l(function(t){f.current===i&&d.current===e&&(h.current.delete(t),p.current&&z(h.current.size>0))},[i,p,e]);return c(function(){(f.current!==i||d.current!==e)&&(h.current=new Set,p.current&&z(!1),f.current=i,d.current=e)},[i,p,e]),[l(function(n){p.current&&z(!0);var o=t(i,(0,r.default)((0,r.default)({},n),{},{mutation:e,onCompleted:function(e,t){var r;O(o),null==(r=n.onCompleted)||r.call(n,e,t)},onError:function(e){var t;O(o),null==(t=n.onError)||t.call(n,e)},onUnsubscribe:function(){var e;O(o),null==(e=n.onUnsubscribe)||e.call(n)},onNext:function(){var e;null==(e=n.onNext)||e.call(n)}}));return h.current.add(o),o},[O,t,i,p,e]),M]}}),parcelRegister("ctS2H",function(e,t){var r=parcelRequire("7dvyf"),n=(0,r.default)(parcelRequire("4N8OD")),o={},r=parcelRequire("7dvyf"),i=(0,r.default)(parcelRequire("4N8OD")),a=parcelRequire("5U6n8"),s=parcelRequire("fYVz6"),c={},u=parcelRequire("cdYu4"),l=parcelRequire("bQThX"),p=parcelRequire("gwFzn"),f=parcelRequire("lan9D"),d=f.__internal.getObservableForActiveRequest,h=f.getSelector,b=p.useEffect,M=p.useState,z=p.useMemo;c=function(e,t){var r=u(),n=z(function(){var n=h(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&l(!1),d(r,n.owner))},[r,e,t]),o=M(null!=n),i=o[0],a=o[1];return b(function(){var e;if(a(null!=n),null!=n){var t=function(){a(!1)};e=n.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}},[n]),i};var u=parcelRequire("cdYu4"),l=parcelRequire("bQThX"),p=parcelRequire("gwFzn"),O=p.useCallback,m=p.useEffect,g=p.useState,f=parcelRequire("lan9D"),A=f.__internal.fetchQuery,v=f.ConnectionInterface,y=f.createOperationDescriptor,_=f.getPaginationVariables,q=f.getRefetchMetadata,x=f.getSelector,w=f.getValueAtPath;function R(e,t,r,n){var o,i,a,s=v.get(),c=s.EDGES,u=s.PAGE_INFO,p=s.HAS_NEXT_PAGE,f=s.HAS_PREV_PAGE,d=s.END_CURSOR,h=s.START_CURSOR,b=w(r,n);if(null==b)return{cursor:null,hasMore:!1};"object"!=typeof b&&l(!1);var M=b[c],z=b[u];if(null==M||null==z)return{cursor:null,hasMore:!1};Array.isArray(M)||l(!1),"object"!=typeof z&&l(!1);var O="forward"===e?null!=(o=z[d])?o:null:null!=(i=z[h])?i:null;return null!==O&&"string"!=typeof O&&l(!1),a="forward"===e?null!=O&&!0===z[p]:null!=O&&!0===z[f],{cursor:O,hasMore:a}}parcelRequire("hzw7m"),o=function(e){var t=e.direction,r=e.fragmentNode,n=e.fragmentRef,o=e.fragmentIdentifier,p=e.fragmentData,f=e.connectionPathInFragmentData,d=e.paginationRequest,h=e.paginationMetadata,b=e.componentDisplayName,M=e.observer,z=e.onReset,v=u(),w=a(),S=w.isFetchingRef,W=w.startFetch,k=w.disposeFetch,E=w.completeFetch,L=q(r,b).identifierInfo,N=(null==L?void 0:L.identifierField)!=null&&null!=p&&"object"==typeof p?p[L.identifierField]:null,C=s(),T=g(v),D=T[0],B=T[1],I=g(o),P=I[0],F=I[1],j=c(r,n);(v!==D||o!==P)&&(k(),z(),B(v),F(o));var X=R(t,r,p,f),U=X.cursor,H=X.hasMore;return m(function(){return function(){k()}},[k]),[O(function(e,o){var a=null==o?void 0:o.onComplete;if(!0!==C.current)return{dispose:function(){}};var s=x(r,n);if(!0===S.current||null==p||j)return a&&a(null),{dispose:function(){}};(null==s||"PluralReaderSelector"===s.kind)&&l(!1);var c=s.owner.variables,u=s.variables,f=null==o?void 0:o.UNSTABLE_extraVariables,b=_(t,e,U,(0,i.default)((0,i.default)({},c),u),(0,i.default)({},f),h);return null!=L&&(b[L.identifierQueryVariableName]=N),A(v,y(d,b,{force:!0})).subscribe((0,i.default)((0,i.default)({},M),{},{start:function(e){W(e),M.start&&M.start(e)},complete:function(){E(),M.complete&&M.complete(),a&&a(null)},error:function(e){E(),M.error&&M.error(e),a&&a(e)}})),{dispose:k}},[v,N,t,U,W,k,E,S,j,p,r.name,n,b]),H,k]};var S=parcelRequire("jfwgE"),u=parcelRequire("cdYu4"),W=parcelRequire("dXLJe"),p=parcelRequire("gwFzn"),k=p.useCallback,E=(p.useDebugValue,p.useState),f=parcelRequire("lan9D"),L=f.getFragment,N=f.getFragmentIdentifier,C=f.getPaginationMetadata;function T(e){var t=u(),r=E(!1),i=r[0],a=r[1],s=function(e){var r,n=null==(r=t.getScheduler())?void 0:r.schedule;n?n(function(){a(e)}):a(e)},c={start:function(){return s(!0)},complete:function(){return s(!1)},error:function(){return s(!1)}},l=function(){return s(!1)},p=o((0,n.default)((0,n.default)({},e),{},{observer:c,onReset:l}));return[p[0],p[1],i,p[2]]}e.exports=function(e,t){var r=L(e);W(r,"first argument of usePaginationFragment()");var o="usePaginationFragment()",i=C(r,o),a=i.connectionPathInFragmentData,s=i.paginationRequest,c=i.paginationMetadata,u=S(r,t,o),l=u.fragmentData,p=u.fragmentRef,f=u.refetch,d=N(r,p),h=T({componentDisplayName:o,connectionPathInFragmentData:a,direction:"backward",fragmentData:l,fragmentIdentifier:d,fragmentNode:r,fragmentRef:p,paginationMetadata:c,paginationRequest:s}),b=h[0],M=h[1],z=h[2],O=h[3],m=T({componentDisplayName:o,connectionPathInFragmentData:a,direction:"forward",fragmentData:l,fragmentIdentifier:d,fragmentNode:r,fragmentRef:p,paginationMetadata:c,paginationRequest:s}),g=m[0],A=m[1],v=m[2],y=m[3];return{data:l,loadNext:g,loadPrevious:b,hasNext:A,hasPrevious:M,isLoadingNext:v,isLoadingPrevious:z,refetch:k(function(e,t){return y(),O(),f(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))},[y,O,f])}}}),parcelRegister("h4xdD",function(e,t){var r=(0,parcelRequire("7dvyf").default)(parcelRequire("bTRzt")),n=parcelRequire("kgUNJ"),o=n.loadQuery,i=n.useTrackLoadQueryInRender,a=parcelRequire("fYVz6"),s=parcelRequire("cdYu4"),c=parcelRequire("gwFzn"),u=c.useCallback,l=c.useEffect,p=c.useRef,f=c.useState,d=parcelRequire("lan9D").getRequest,h={kind:"NullQueryReference"};function b(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==d(e).params.metadata.live}e.exports=function(e,t){var n=null!=t?t:h,c=s();i();var d=a(),M=p(new Set([n])),z=f(function(){return n}),O=z[0],m=z[1],g=f(function(){return n}),A=g[0],v=g[1];n!==A&&(M.current.add(n),v(n),m(n));var y=u(function(){d.current&&(M.current.add(h),m(h))},[d]),_=u(function(t,r){var n=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(d.current){var i,a=o(null!=(i=null==r?void 0:r.__environment)?i:c,e,t,n);M.current.add(a),m(a)}},[c,e,m,d]),q=p(!1);return l(function(){return function(){q.current=!0}},[]),l(function(){if(!0===q.current){q.current=!1,"NullQueryReference"!==O.kind&&_(O.variables,{fetchPolicy:O.fetchPolicy,networkCacheConfig:O.networkCacheConfig});return}var t=M.current;if(d.current){var n,o=(0,r.default)(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i===O)break;t.delete(i),"NullQueryReference"!==i.kind&&(b(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){o.e(e)}finally{o.f()}}},[O,d,_,e]),l(function(){return function(){var t,n=(0,r.default)(M.current);try{for(n.s();!(t=n.n()).done;){var o=t.value;"NullQueryReference"!==o.kind&&(b(e)?o.dispose&&o.dispose():o.releaseQuery&&o.releaseQuery())}}catch(e){n.e(e)}finally{n.f()}}},[e]),["NullQueryReference"===O.kind?null:O,_,y]}}),parcelRegister("8mdVS",function(e,t){var r=parcelRequire("kgUNJ").useTrackLoadQueryInRender,n=parcelRequire("2VcGn"),o=parcelRequire("ax2Om"),i=parcelRequire("cdYu4"),a=parcelRequire("bQThX");parcelRequire("gwFzn").useDebugValue;var s=parcelRequire("lan9D").__internal,c=s.fetchQueryDeduped,u=s.fetchQuery;parcelRequire("hzw7m"),e.exports=function(e,t,s){r();var l=i(),p=t.fetchKey,f=t.fetchPolicy,d=t.source,h=o(e,t.variables,t.networkCacheConfig);if("PreloadedQuery_DEPRECATED"===t.kind)h.request.node.params.name!==t.name&&a(!1),b={componentDisplayName:"usePreloadedQuery()",fetchKey:p,fetchObservable:c(l,h.request.identifier,function(){return l===t.environment&&null!=d?l.executeWithSource({operation:h,source:d}):l.execute({operation:h})}),fetchPolicy:f,query:h,renderPolicy:null==s?void 0:s.UNSTABLE_renderPolicy};else{var b,M,z=u(l,h);null!=d&&l===t.environment?M=d.ifEmpty(z):(t.environment,M=z),b={componentDisplayName:"usePreloadedQuery()",fetchObservable:M,fetchKey:p,fetchPolicy:f,query:h,renderPolicy:null==s?void 0:s.UNSTABLE_renderPolicy}}return n(b)}}),parcelRegister("1Q1T2",function(e,t){var r=parcelRequire("jfwgE"),n=parcelRequire("dXLJe");parcelRequire("gwFzn").useDebugValue;var o=parcelRequire("lan9D").getFragment;e.exports=function(e,t){var i=o(e);n(i,"first argument of useRefetchableFragment()");var a=r(i,t,"useRefetchableFragment()");return[a.fragmentData,a.refetch]}}),parcelRegister("fXECE",function(e,t){var r=parcelRequire("cdYu4"),n=parcelRequire("gwFzn"),o=n.useEffect,i=n.useRef;e.exports=function(e,t){var n=r(),a=i(null);return o(function(){var r=n.getStore(),o=r.lookupInvalidationState(e),i=r.subscribeToInvalidationState(o,t);return a.current=i,function(){return i.dispose()}},[Array.from(e).sort().join(""),t,n]),{dispose:function(){null!=a.current&&a.current.dispose()}}}}),parcelRegister("hdLtK",function(e,t){var r=parcelRequire("cdYu4"),n=parcelRequire("gwFzn").useEffect,o=parcelRequire("lan9D").requestSubscription;e.exports=function(e,t){var i=null!=t?t:o,a=r();n(function(){return i(a,e).dispose},[a,e,i])}}),parcelRegister("8aLmh",function(e,t){var r=parcelRequire("7dvyf"),n=r.default,o=n(parcelRequire("bTRzt")),i=n(parcelRequire("dW6Ee")),a=parcelRequire("bd1WG"),s=a.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,c=a.assertInternalActorIdentifier;parcelRequire("8YAvI");var u=parcelRequire("8yHCQ"),l=parcelRequire("5wm2f"),p=parcelRequire("eGOdg"),f=parcelRequire("c4ZG3"),d=parcelRequire("hprpJ"),h=parcelRequire("2Nqi8"),b=parcelRequire("b7ANd"),M=parcelRequire("7sSWY"),z=(parcelRequire("a6k4O"),parcelRequire("a6k4O")),O=z.ROOT_ID,m=z.ROOT_TYPE,g={},r=parcelRequire("7dvyf"),A=(0,r.default)(parcelRequire("bTRzt")),v=parcelRequire("hrF5e"),y=parcelRequire("9lZfN").RELAY_LIVE_RESOLVER,_=parcelRequire("9DZlA"),q=parcelRequire("bAYfv"),x=parcelRequire("70q7x"),w=x.generateClientID,R=x.generateClientObjectClientID,f=parcelRequire("c4ZG3"),S=parcelRequire("3o9ph").createNormalizationSelector,W=parcelRequire("fWVgk"),k=parcelRequire("80YOC").normalize,z=parcelRequire("a6k4O"),E=z.RELAY_RESOLVER_ERROR_KEY,L=z.RELAY_RESOLVER_INVALIDATION_KEY,N=z.RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS,C=z.RELAY_RESOLVER_SNAPSHOT_KEY,T=z.RELAY_RESOLVER_VALUE_KEY,D=z.getStorageKey,B=parcelRequire("2EioI"),I={};I=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.read&&"function"==typeof e.subscribe};var P=parcelRequire("gXI8O").isSuspenseSentinel,F=parcelRequire("bQThX");parcelRequire("hzw7m");var j="__resolverLiveStateSubscription",X="__resolverLiveStateValue",U="__resolverLiveStateDirty",H="__RELAY_RESOLVER__",V="__relay_model_instance";function G(e,t,r){var n=e.get(t);n||(n=new Set,e.set(t,n)),n.add(r)}function Y(e,t,r){var n=new Set;if(null!=r){var o,i=(0,A.default)(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;t.has(a)||(n.add(a),e.remove(a))}}catch(e){i.e(e)}finally{i.f()}}var s,c=(0,A.default)(t.getRecordIDs());try{for(c.s();!(s=c.n()).done;){var u=s.value,l=et(t,u);if(e.has(u)){var p=et(e,u),d=f.update(p,l);d!==p&&(n.add(u),e.set(u,d),$(p,e))}else e.set(u,l)}}catch(e){c.e(e)}finally{c.f()}return n}function K(e){var t=new Set;return f.getFields(e).forEach(function(r){if(f.hasLinkedRecordID(e,r)){var n,o=f.getLinkedRecordID(e,r);null!=o&&t.add(o)}else f.hasLinkedRecordIDs(e,r)&&(null==(n=f.getLinkedRecordIDs(e,r))||n.forEach(function(e){null!=e&&t.add(e)}))}),t}function Q(e,t){var r=t.get(e);if(r){var n=f.clone(r);f.setValue(n,L,!0),t.set(e,n)}}function $(e,t){var r,n=K(e),o=(0,A.default)(n);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=t.get(i);null!=a&&J(a)&&Q(i,t)}}catch(e){o.e(e)}finally{o.f()}}function Z(e,t){if(0!==t.size){var r,n=(0,A.default)(t);try{for(n.s();!(r=n.n()).done;){var o=r.value,i=e.get(o);null!=i&&J(i)&&ee(i)}}catch(e){n.e(e)}finally{n.f()}}}function J(e){return f.getType(e)===H}function ee(e){var t=f.getValue(e,j);null!=t&&t()}function et(e,t){var r=e.get(t);return null==r&&F(!1),r}function er(e){return e}function en(e,t){var r,n=null!=(r=e.concreteType)?r:t.__typename;return null==n&&F(!1),n}var eo=(g={LiveResolverCache:function(){function e(e,t){this._resolverIDToRecordIDs=new Map,this._recordIDToResolverIDs=new Map,this._getRecordSource=e,this._store=t,this._handlingBatch=!1,this._liveResolverBatchRecordSource=null}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,r,n,o){var i,a=this._getRecordSource(),s=et(a,e),c=D(t,r),u=f.getLinkedRecordID(s,c),l=null==u?null:a.get(u);if(null==l||this._isInvalid(l,o)){null!=l&&ee(l),u=null!=(m=u)?m:w(e,c),l=f.create(u,H);var p=n();if(f.setValue(l,C,p.snapshot),f.setValue(l,E,p.error),t.kind===y){if(null!=p.resolverResult){null!=p.error&&F(!1);var d=p.resolverResult;O=this._setLiveStateValue(l,u,d,t,r)}}else O=this._setResolverValue(l,p.resolverResult,t,r);a.set(u,l);var h=et(a,e),b=f.clone(h);if(f.setLinkedRecordID(b,c,u),a.set(e,b),null!=t.fragment){var M=w(e,D(t.fragment,r));G(this._resolverIDToRecordIDs,M,u),G(this._recordIDToResolverIDs,e,M);var z=null==(g=p.snapshot)?void 0:g.seenRecords;if(null!=z){var O,m,g,v,_=(0,A.default)(z);try{for(_.s();!(v=_.n()).done;){var q=v.value;G(this._recordIDToResolverIDs,q,M)}}catch(e){_.e(e)}finally{_.f()}}}}else if(t.kind===y&&f.getValue(l,U)){u=null!=(x=u)?x:w(e,c),l=f.clone(l);var x,R=f.getValue(l,X);I(R)||F(!1),O=this._setLiveResolverValue(l,R,t,r),f.setValue(l,U,!1),a.set(u,l)}var S=this._getResolverValue(l),W=f.getValue(l,C),k=f.getValue(l,E),L=null;return P(S)&&(L=null!=(i=u)?i:w(e,c)),[S,u,k,W,L,O]},t.getLiveResolverPromise=function(e){var t=this._getRecordSource().get(e);null==t&&F(!1);var r=f.getValue(t,X);return new Promise(function(e){var t=r.subscribe(function(){t(),e()})})},t._setLiveStateValue=function(e,t,r,n,o){var i=this._makeLiveStateHandler(t),a=r.subscribe(i);f.setValue(e,X,r);var s=this._setLiveResolverValue(e,r,n,o);return f.setValue(e,U,!1),f.setValue(e,j,a),s},t._makeLiveStateHandler=function(e){var t=this;return function(){var r=t._getRecordSource().get(e);if(r&&f.hasValue(r,X)){var n=f.clone(r);f.setValue(n,U,!0),t._setLiveResolverUpdate(e,n)}}},t._setLiveResolverUpdate=function(e,t){if(this._handlingBatch)null==this._liveResolverBatchRecordSource&&(this._liveResolverBatchRecordSource=W.create()),this._liveResolverBatchRecordSource.set(e,t);else{var r=W.create();r.set(e,t),this._store.publish(r),this._store.notify()}},t.batchLiveStateUpdates=function(e){this._handlingBatch&&F(!1),this._handlingBatch=!0;try{e()}finally{null!=this._liveResolverBatchRecordSource&&(this._store.publish(this._liveResolverBatchRecordSource),this._store.notify()),this._liveResolverBatchRecordSource=null,this._handlingBatch=!1}},t._setLiveResolverValue=function(e,t,r,n){var o=null,i=null;try{o=t.read()}catch(e){i=e}return f.setValue(e,E,i),this._setResolverValue(e,o,r,n)},t._setResolverValue=function(e,t,r,n){var o=r.normalizationInfo,i=null;if(null==t||null==o||P(t))q(t),f.setValue(e,T,t);else{var a=B(e),s=new Set,c=this._getRecordSource();if(o.plural){Array.isArray(t)||F(!1),d=[];for(var u=W.create(),l=0;lt)?{status:"stale"}:"missing"===i?{status:"missing"}:null!=r&&null!=n&&r<=Date.now()-n?{status:"stale"}:{status:"available",fetchTime:null!=r?r:null}}e.exports=function(){function e(e,t){var r,n,o,a,s,c,l,f=this;(0,i.default)(this,"_gcStep",function(){f._gcRun&&(f._gcRun.next().done?f._gcRun=null:f._gcScheduler(f._gcStep))}),this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=null!=(r=null==t?void 0:t.gcReleaseBufferSize)?r:es,this._gcRun=null,this._gcScheduler=null!=(n=null==t?void 0:t.gcScheduler)?n:u,this._getDataID=null!=(o=null==t?void 0:t.getDataID)?o:p,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=null!=(a=null==t?void 0:t.log)?a:null,this._queryCacheExpirationTime=null==t?void 0:t.queryCacheExpirationTime,this._operationLoader=null!=(s=null==t?void 0:t.operationLoader)?s:null,this._optimisticSource=null,this._recordSource=e,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._resolverCache=new eo(function(){return f._getMutableRecordSource()},this),this._storeSubscriptions=new M(null==t?void 0:t.log,this._resolverCache),this._updatedRecordIDs=new Set,this._treatMissingFieldsAsNull=null!=(c=null==t?void 0:t.treatMissingFieldsAsNull)&&c,this._actorIdentifier=null==t?void 0:t.actorIdentifier,this._shouldProcessClientComponents=null!=(l=null==t?void 0:t.shouldProcessClientComponents)&&l,ec(this._recordSource)}var t=e.prototype;return t.getSource=function(){var e;return null!=(e=this._optimisticSource)?e:this._recordSource},t._getMutableRecordSource=function(){var e;return null!=(e=this._optimisticSource)?e:this._recordSource},t.getLiveResolverPromise=function(e){return this._resolverCache.getLiveResolverPromise(e)},t.batchLiveStateUpdates=function(e){null!=this.__log&&this.__log({name:"liveresolver.batch.start"});try{this._resolverCache.batchLiveStateUpdates(e)}finally{null!=this.__log&&this.__log({name:"liveresolver.batch.end"})}},t.check=function(e,t){var r,n,o,i,a=e.root,u=this._getMutableRecordSource(),p=this._globalInvalidationEpoch,f=this._roots.get(e.request.identifier),d=null!=f?f.epoch:null;if(null!=p&&(null==d||d<=p))return{status:"stale"};var h=null!=(r=null==t?void 0:t.handlers)?r:[],b=null!=(n=null==t?void 0:t.getSourceForActor)?n:function(e){return c(e),u},M=null!=(o=null==t?void 0:t.getTargetForActor)?o:function(e){return c(e),u};return el(l.check(b,M,null!=(i=null==t?void 0:t.defaultActorIdentifier)?i:s,a,h,this._operationLoader,this._getDataID,this._shouldProcessClientComponents),d,null==f?void 0:f.fetchTime,this._queryCacheExpirationTime)},t.retain=function(e){var t=this,r=e.request.identifier,n=!1,o=function(){if(!n){n=!0;var e=t._roots.get(r);if(null!=e&&(e.refCount--,0===e.refCount)){var o=t._queryCacheExpirationTime;if(null!=e.fetchTime&&null!=o&&e.fetchTime<=Date.now()-o)t._roots.delete(r),t.scheduleGC();else if(t._releaseBuffer.push(r),t._releaseBuffer.length>t._gcReleaseBufferSize){var i=t._releaseBuffer.shift();t._roots.delete(i),t.scheduleGC()}}}},i=this._roots.get(r);return null!=i?(0===i.refCount&&(this._releaseBuffer=this._releaseBuffer.filter(function(e){return e!==r})),i.refCount+=1):this._roots.set(r,{operation:e,refCount:1,epoch:null,fetchTime:null}),{dispose:o}},t.lookup=function(e){var t=this.getSource();return h.read(t,e,this._resolverCache)},t.notify=function(e,t){var r=this,n=this.__log;null!=n&&n({name:"store.notify.start",sourceOperation:e}),this._currentWriteEpoch++,!0===t&&(this._globalInvalidationEpoch=this._currentWriteEpoch),this._resolverCache.invalidateDataIDs(this._updatedRecordIDs);var o=this.getSource(),i=[];if(this._storeSubscriptions.updateSubscriptions(o,this._updatedRecordIDs,i,e),this._invalidationSubscriptions.forEach(function(e){r._updateInvalidationSubscription(e,!0===t)}),null!=n&&n({name:"store.notify.complete",sourceOperation:e,updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs}),this._updatedRecordIDs.clear(),this._invalidatedRecordIDs.clear(),null!=e){var a=e.request.identifier,s=this._roots.get(a);if(null!=s)s.epoch=this._currentWriteEpoch,s.fetchTime=Date.now();else if("query"===e.request.node.params.operationKind&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e.scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"LiveResolverStore()"},t.getEpoch=function(){return this._currentWriteEpoch},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t.lookupInvalidationState=function(e){var t=this,r=new Map;return e.forEach(function(e){var n,o=t.getSource().get(e);r.set(e,null!=(n=f.getInvalidationEpoch(o))?n:null)}),r.set("global",this._globalInvalidationEpoch),{dataIDs:e,invalidations:r}},t.checkInvalidationState=function(e){var t=this.lookupInvalidationState(e.dataIDs).invalidations,r=e.invalidations;if(t.get("global")!==r.get("global"))return!0;var n,i=(0,o.default)(e.dataIDs);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(t.get(a)!==r.get(a))return!0}}catch(e){i.e(e)}finally{i.f()}return!1},t.subscribeToInvalidationState=function(e,t){var r=this,n={callback:t,invalidationState:e},o=function(){r._invalidationSubscriptions.delete(n)};return this._invalidationSubscriptions.add(n),{dispose:o}},t._updateInvalidationSubscription=function(e,t){var r=this,n=e.callback,o=e.invalidationState.dataIDs;(t||o.some(function(e){return r._invalidatedRecordIDs.has(e)}))&&n()},t.snapshot=function(){null!=this._optimisticSource&&F(!1);var e=this.__log;null!=e&&e({name:"store.snapshot"}),this._storeSubscriptions.snapshotSubscriptions(this.getSource()),this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._optimisticSource=d.create(this.getSource())},t.restore=function(){var e=this._optimisticSource;e||F(!1);var t=this.__log;null!=t&&t({name:"store.restore"});var r=d.getOptimisticRecordIDs(e);this._resolverCache.unsubscribeFromLiveResolverRecords(r),this._optimisticSource=null,this._shouldScheduleGC&&this.scheduleGC(),this._storeSubscriptions.restoreSubscriptions(),this._resolverCache.invalidateResolverRecords(r)},t.scheduleGC=function(){if(this._gcHoldCounter>0){this._shouldScheduleGC=!0;return}this._gcRun||(this._gcRun=this._collect(),this._gcScheduler(this._gcStep))},t.__gc=function(){if(null==this._optimisticSource)for(var e=this._collect();!e.next().done;);},t._collect=function*(){o:for(;;){var e,t=this._currentWriteEpoch,r=new Set,n=(0,o.default)(this._roots.values());try{for(n.s();!(e=n.n()).done;){var i=e.value.operation.root;if(b.mark(this._recordSource,i,r,this._operationLoader,this._shouldProcessClientComponents),yield,t!==this._currentWriteEpoch)continue o}}catch(e){n.e(e)}finally{n.f()}var a=this.__log;if(null!=a&&a({name:"store.gc",references:r}),0===r.size)this._recordSource.clear();else for(var s=this._recordSource.getRecordIDs(),c=0;ceb);let n=1/0;function o(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-n?"-0":t}function i(e){return null==e?"":o(e)}function a(e){return"string"==typeof e}function s(e){return"number"==typeof e}function c(e){return!0===e||!1===e||l(e)&&"[object Boolean]"==d(e)}function u(e){return"object"==typeof e}function l(e){return u(e)&&null!==e}function p(e){return null!=e}function f(e){return!e.trim().length}function d(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let h="Incorrect 'index' type",b=e=>`Invalid value for key ${e}`,M=e=>`Pattern length exceeds max of ${e}.`,z=e=>`Missing ${e} property in key`,O=e=>`Property 'weight' in key '${e}' must be a positive integer`,m=Object.prototype.hasOwnProperty;class g{get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=A(e);t+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}}function A(e){let t=null,n=null,o=null,i=1,s=null;if(a(e)||r(e))o=e,t=v(e),n=y(e);else{if(!m.call(e,"name"))throw Error(z("name"));let r=e.name;if(o=r,m.call(e,"weight")&&(i=e.weight)<=0)throw Error(O(r));t=v(r),n=y(r),s=e.getFn}return{path:t,id:n,weight:i,src:o,getFn:s}}function v(e){return r(e)?e:e.split(".")}function y(e){return r(e)?e.join("."):e}let _={location:0,threshold:.6,distance:100},q={useExtendedSearch:!1,getFn:function(e,t){let n=[],o=!1,u=(e,t,l)=>{if(p(e))if(t[l]){let f=e[t[l]];if(!p(f))return;if(l===t.length-1&&(a(f)||s(f)||c(f)))n.push(i(f));else if(r(f)){o=!0;for(let e=0,r=f.length;ee.score===t.score?e.idx{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,a(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();a(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(p(i)){if(r(i)){let e=[],t=[{nestedArrIndex:-1,value:i}];for(;t.length;){let{nestedArrIndex:n,value:o}=t.pop();if(p(o))if(a(o)&&!f(o)){let t={v:o,i:n,n:this.norm.get(o)};e.push(t)}else r(o)&&o.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}n.$[o]=e}else if(a(i)&&!f(i)){let e={v:i,n:this.norm.get(i)};n.$[o]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}constructor({getFn:e=x.getFn,fieldNormWeight:t=x.fieldNormWeight}={}){this.norm=R(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}}function W(e,t,{getFn:r=x.getFn,fieldNormWeight:n=x.fieldNormWeight}={}){let o=new S({getFn:r,fieldNormWeight:n});return o.setKeys(e.map(A)),o.setSources(t),o.create(),o}function k(e,{getFn:t=x.getFn,fieldNormWeight:r=x.fieldNormWeight}={}){let{keys:n,records:o}=e,i=new S({getFn:t,fieldNormWeight:r});return i.setKeys(n),i.setIndexRecords(o),i}function E(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:o=x.distance,ignoreLocation:i=x.ignoreLocation}={}){let a=t/e.length;if(i)return a;let s=Math.abs(n-r);return o?a+s/o:s?1:a}function L(e=[],t=x.minMatchCharLength){let r=[],n=-1,o=-1,i=0;for(let a=e.length;i=t&&r.push([n,o]),n=-1)}return e[i-1]&&i-n>=t&&r.push([n,i-1]),r}let N=32;function C(e,t,r,{location:n=x.location,distance:o=x.distance,threshold:i=x.threshold,findAllMatches:a=x.findAllMatches,minMatchCharLength:s=x.minMatchCharLength,includeMatches:c=x.includeMatches,ignoreLocation:u=x.ignoreLocation}={}){let l;if(t.length>N)throw Error(M(N));let p=t.length,f=e.length,d=Math.max(0,Math.min(n,f)),h=i,b=d,z=s>1||c,O=z?Array(f):[];for(;(l=e.indexOf(t,b))>-1;)if(h=Math.min(E(t,{currentLocation:l,expectedLocation:d,distance:o,ignoreLocation:u}),h),b=l+p,z){let e=0;for(;e=c;i-=1){let a=i-1,s=r[e.charAt(a)];if(z&&(O[a]=+!!s),M[i]=(M[i+1]<<1|1)&s,n&&(M[i]|=(m[i+1]|m[i])<<1|1|m[i+1]),M[i]&v&&(g=E(t,{errors:n,currentLocation:a,expectedLocation:d,distance:o,ignoreLocation:u}))<=h){if(h=g,(b=a)<=d)break;c=Math.max(1,2*d-b)}}if(E(t,{errors:n+1,currentLocation:d,expectedLocation:d,distance:o,ignoreLocation:u})>h)break;m=M}let y={isMatch:b>=0,score:Math.max(.001,g)};if(z){let e=L(O,s);e.length?c&&(y.indices=e):y.isMatch=!1}return y}function T(e){let t={};for(let r=0,n=e.length;r{let{isMatch:h,score:b,indices:M}=C(e,t,f,{location:n+d,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,includeMatches:r,ignoreLocation:c});h&&(p=!0),l+=b,h&&M&&(u=[...u,...M])});let f={isMatch:p,score:p?l/this.chunks.length:1};return p&&r&&(f.indices=u),f}constructor(e,{location:t=x.location,threshold:r=x.threshold,distance:n=x.distance,includeMatches:o=x.includeMatches,findAllMatches:i=x.findAllMatches,minMatchCharLength:a=x.minMatchCharLength,isCaseSensitive:s=x.isCaseSensitive,ignoreLocation:c=x.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:c},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:T(e),startIndex:t})},l=this.pattern.length;if(l>N){let e=0,t=l%N,r=l-t;for(;e-1;)r=t+o,n.push([t,r-1]);let i=!!n.length;return{isMatch:i,score:+!i,indices:n}}constructor(e){super(e)}}let Y=[P,G,j,X,H,U,F,V],K=Y.length,Q=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,$="|";function Z(e,t={}){return e.split($).map(e=>{let r=e.trim().split(Q).filter(e=>e&&!!e.trim()),n=[];for(let e=0,o=r.length;e!!(e[eo.AND]||e[eo.OR]),es=e=>!!e[ei.PATH],ec=e=>!r(e)&&u(e)&&!ea(e),eu=e=>({[eo.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function el(e,t,{auto:n=!0}={}){let o=e=>{let i=Object.keys(e),s=es(e);if(!s&&i.length>1&&!ea(e))return o(eu(e));if(ec(e)){let r=s?e[ei.PATH]:i[0],o=s?e[ei.PATTERN]:e[r];if(!a(o))throw Error(b(r));let c={keyId:y(r),pattern:o};return n&&(c.searcher=en(o,t)),c}let c={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];r(n)&&n.forEach(e=>{c.children.push(o(e))})}),c};return ea(e)||(e=eu(e)),o(e)}function ep(e,{ignoreFieldNorm:t=x.ignoreFieldNorm}){e.forEach(e=>{let r=1;e.matches.forEach(({key:e,norm:n,score:o})=>{let i=e?e.weight:null;r*=Math.pow(0===o&&i?Number.EPSILON:o,(i||1)*(t?1:n))}),e.score=r})}function ef(e,t){let r=e.matches;t.matches=[],p(r)&&r.forEach(e=>{if(!p(e.indices)||!e.indices.length)return;let{indices:r,value:n}=e,o={indices:r,value:n};e.key&&(o.key=e.key.src),e.idx>-1&&(o.refIndex=e.idx),t.matches.push(o)})}function ed(e,t){t.score=e.score}function eh(e,t,{includeMatches:r=x.includeMatches,includeScore:n=x.includeScore}={}){let o=[];return r&&o.push(ef),n&&o.push(ed),e.map(e=>{let{idx:r}=e,n={item:t[r],refIndex:r};return o.length&&o.forEach(t=>{t(e,n)}),n})}class eb{setCollection(e,t){if(this._docs=e,t&&!(t instanceof S))throw Error(h);this._myIndex=t||W(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){p(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,n=this._docs.length;r-1&&(u=u.slice(0,t)),eh(u,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){let t=en(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:e,i:r,n:o})=>{if(!p(e))return;let{isMatch:i,score:a,indices:s}=t.searchIn(e);i&&n.push({item:e,idx:r,matches:[{score:a,value:e,norm:o,indices:s}]})}),n}_searchLogical(e){let t=el(e,this.options),r=(e,t,n)=>{if(!e.children){let{keyId:r,searcher:o}=e,i=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:o});return i&&i.length?[{idx:n,item:t,matches:i}]:[]}let o=[];for(let i=0,a=e.children.length;i{if(p(e)){let a=r(t,e,n);a.length&&(o[n]||(o[n]={idx:n,item:e,matches:[]},i.push(o[n])),a.forEach(({matches:e})=>{o[n].matches.push(...e)}))}}),i}_searchObjectList(e){let t=en(e,this.options),{keys:r,records:n}=this._myIndex,o=[];return n.forEach(({$:e,i:n})=>{if(!p(e))return;let i=[];r.forEach((r,n)=>{i.push(...this._findMatches({key:r,value:e[n],searcher:t}))}),i.length&&o.push({idx:n,item:e,matches:i})}),o}_findMatches({key:e,value:t,searcher:n}){if(!p(t))return[];let o=[];if(r(t))t.forEach(({v:t,i:r,n:i})=>{if(!p(t))return;let{isMatch:a,score:s,indices:c}=n.searchIn(t);a&&o.push({score:s,key:e,value:t,idx:r,norm:i,indices:c})});else{let{v:r,n:i}=t,{isMatch:a,score:s,indices:c}=n.searchIn(r);a&&o.push({score:s,key:e,value:r,norm:i,indices:c})}return o}constructor(e,t={},r){this.options={...x,...t},this.options.useExtendedSearch,this._keyStore=new g(this.options.keys),this.setCollection(e,r)}}eb.version="6.6.2",eb.createIndex=W,eb.parseIndex=k,eb.config=x,eb.parseQuery=el,er(ee)}),parcelRegister("4ow2D",function(e,t){$parcel$export(e.exports,"default",()=>r);function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}}),parcelRegister("1iGel",function(e,t){$parcel$export(e.exports,"default",()=>o);var r=parcelRequire("8icoW");function n(e,t){for(var n=0;no);var r=parcelRequire("4eQbn"),n=parcelRequire("3uu23");function o(e,t){if(t&&("object"==(0,r.default)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,n.default)(e)}}),parcelRegister("gRL3C",function(e,t){$parcel$export(e.exports,"default",()=>r);function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}}),parcelRegister("hvsbO",function(e,t){$parcel$export(e.exports,"default",()=>n);var r=parcelRequire("BUmYY");function n(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.default)(e,t)}}),parcelRegister("eH9u1",function(e,t){e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var n,o,i,a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}}),parcelRegister("g6wBx",function(e,t){!function(t,r){e.exports=r()}(e.exports,function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,r){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,r)}function r(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function n(e,o,i){return(n=r()?Reflect.construct:function(e,r,n){var o=[null];o.push.apply(o,r);var i=new(Function.bind.apply(e,o));return n&&t(i,n.prototype),i}).apply(null,arguments)}function o(e){return i(e)||a(e)||s(e)||u()}function i(e){if(Array.isArray(e))return c(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1?r-1:0),o=1;o/gm),Q=M(/\${[\w\W]*}/gm),$=M(/^data-[\-\w.\u00B7-\uFFFF]/),Z=M(/^aria-[\-\w]+$/),J=M(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=M(/^(?:\w+script|data):/i),et=M(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),er=M(/^html$/i),en=M(/^[a-z][.\w]*(-[.\w]+)+$/i),eo=function(){return"undefined"==typeof window?null:window},ei=function(t,r){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null,o="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(o)&&(n=r.currentScript.getAttribute(o));var i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function ea(){var t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eo(),i=function(e){return ea(e)};if(i.version="2.5.7",i.removed=[],!n||!n.document||9!==n.document.nodeType)return i.isSupported=!1,i;var a=n.document,s=n.document,c=n.DocumentFragment,u=n.HTMLTemplateElement,l=n.Node,p=n.Element,f=n.NodeFilter,d=n.NamedNodeMap,h=void 0===d?n.NamedNodeMap||n.MozNamedAttrMap:d,M=n.HTMLFormElement,z=n.DOMParser,O=n.trustedTypes,m=p.prototype,g=T(m,"cloneNode"),E=T(m,"nextSibling"),L=T(m,"childNodes"),es=T(m,"parentNode");if("function"==typeof u){var ec=s.createElement("template");ec.content&&ec.content.ownerDocument&&(s=ec.content.ownerDocument)}var eu=ei(O,a),el=eu?eu.createHTML(""):"",ep=s,ef=ep.implementation,ed=ep.createNodeIterator,eh=ep.createDocumentFragment,eb=ep.getElementsByTagName,eM=a.importNode,ez={};try{ez=C(s).documentMode?s.documentMode:{}}catch(e){}var eO={};i.isSupported="function"==typeof es&&ef&&void 0!==ef.createHTMLDocument&&9!==ez;var em=Y,eg=K,eA=Q,ev=$,ey=Z,e_=ee,eq=et,ex=en,ew=J,eR=null,eS=N({},[].concat(o(D),o(B),o(I),o(F),o(X))),eW=null,ek=N({},[].concat(o(U),o(H),o(V),o(G))),eE=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eL=null,eN=null,eC=!0,eT=!0,eD=!1,eB=!0,eI=!1,eP=!0,eF=!1,ej=!1,eX=!1,eU=!1,eH=!1,eV=!1,eG=!0,eY=!1,eK="user-content-",eQ=!0,e$=!1,eZ={},eJ=null,e0=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),e1=null,e2=N({},["audio","video","img","source","image","track"]),e3=null,e4=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),e5="http://www.w3.org/1998/Math/MathML",e6="http://www.w3.org/2000/svg",e8="http://www.w3.org/1999/xhtml",e7=e8,e9=!1,te=null,tt=N({},[e5,e6,e8],q),tr=["application/xhtml+xml","text/html"],tn="text/html",to=null,ti=s.createElement("form"),ta=function(e){return e instanceof RegExp||e instanceof Function},ts=function(n){to&&to===n||(n&&"object"===e(n)||(n={}),n=C(n),r="application/xhtml+xml"===(t=t=-1===tr.indexOf(n.PARSER_MEDIA_TYPE)?tn:n.PARSER_MEDIA_TYPE)?q:_,eR="ALLOWED_TAGS"in n?N({},n.ALLOWED_TAGS,r):eS,eW="ALLOWED_ATTR"in n?N({},n.ALLOWED_ATTR,r):ek,te="ALLOWED_NAMESPACES"in n?N({},n.ALLOWED_NAMESPACES,q):tt,e3="ADD_URI_SAFE_ATTR"in n?N(C(e4),n.ADD_URI_SAFE_ATTR,r):e4,e1="ADD_DATA_URI_TAGS"in n?N(C(e2),n.ADD_DATA_URI_TAGS,r):e2,eJ="FORBID_CONTENTS"in n?N({},n.FORBID_CONTENTS,r):e0,eL="FORBID_TAGS"in n?N({},n.FORBID_TAGS,r):{},eN="FORBID_ATTR"in n?N({},n.FORBID_ATTR,r):{},eZ="USE_PROFILES"in n&&n.USE_PROFILES,eC=!1!==n.ALLOW_ARIA_ATTR,eT=!1!==n.ALLOW_DATA_ATTR,eD=n.ALLOW_UNKNOWN_PROTOCOLS||!1,eB=!1!==n.ALLOW_SELF_CLOSE_IN_ATTR,eI=n.SAFE_FOR_TEMPLATES||!1,eP=!1!==n.SAFE_FOR_XML,eF=n.WHOLE_DOCUMENT||!1,eU=n.RETURN_DOM||!1,eH=n.RETURN_DOM_FRAGMENT||!1,eV=n.RETURN_TRUSTED_TYPE||!1,eX=n.FORCE_BODY||!1,eG=!1!==n.SANITIZE_DOM,eY=n.SANITIZE_NAMED_PROPS||!1,eQ=!1!==n.KEEP_CONTENT,e$=n.IN_PLACE||!1,ew=n.ALLOWED_URI_REGEXP||ew,e7=n.NAMESPACE||e8,eE=n.CUSTOM_ELEMENT_HANDLING||{},n.CUSTOM_ELEMENT_HANDLING&&ta(n.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eE.tagNameCheck=n.CUSTOM_ELEMENT_HANDLING.tagNameCheck),n.CUSTOM_ELEMENT_HANDLING&&ta(n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eE.attributeNameCheck=n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),n.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eE.allowCustomizedBuiltInElements=n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eI&&(eT=!1),eH&&(eU=!0),eZ&&(eR=N({},o(X)),eW=[],!0===eZ.html&&(N(eR,D),N(eW,U)),!0===eZ.svg&&(N(eR,B),N(eW,H),N(eW,G)),!0===eZ.svgFilters&&(N(eR,I),N(eW,H),N(eW,G)),!0===eZ.mathMl&&(N(eR,F),N(eW,V),N(eW,G))),n.ADD_TAGS&&(eR===eS&&(eR=C(eR)),N(eR,n.ADD_TAGS,r)),n.ADD_ATTR&&(eW===ek&&(eW=C(eW)),N(eW,n.ADD_ATTR,r)),n.ADD_URI_SAFE_ATTR&&N(e3,n.ADD_URI_SAFE_ATTR,r),n.FORBID_CONTENTS&&(eJ===e0&&(eJ=C(eJ)),N(eJ,n.FORBID_CONTENTS,r)),eQ&&(eR["#text"]=!0),eF&&N(eR,["html","head","body"]),eR.table&&(N(eR,["tbody"]),delete eL.tbody),b&&b(n),to=n)},tc=N({},["mi","mo","mn","ms","mtext"]),tu=N({},["annotation-xml"]),tl=N({},["title","style","font","a","script"]),tp=N({},B);N(tp,I),N(tp,P);var tf=N({},F);N(tf,j);var td=function(e){var r=es(e);r&&r.tagName||(r={namespaceURI:e7,tagName:"template"});var n=_(e.tagName),o=_(r.tagName);return!!te[e.namespaceURI]&&(e.namespaceURI===e6?r.namespaceURI===e8?"svg"===n:r.namespaceURI===e5?"svg"===n&&("annotation-xml"===o||tc[o]):!!tp[n]:e.namespaceURI===e5?r.namespaceURI===e8?"math"===n:r.namespaceURI===e6?"math"===n&&tu[o]:!!tf[n]:e.namespaceURI===e8?(r.namespaceURI!==e6||!!tu[o])&&(r.namespaceURI!==e5||!!tc[o])&&!tf[n]&&(tl[n]||!tp[n]):"application/xhtml+xml"===t&&!!te[e.namespaceURI])},th=function(e){y(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=el}catch(t){e.remove()}}},tb=function(e,t){try{y(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!eW[e])if(eU||eH)try{th(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tM=function(e){if(eX)e=""+e;else{var r,n,o=x(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===t&&e7===e8&&(e=''+e+"");var i=eu?eu.createHTML(e):e;if(e7===e8)try{r=new z().parseFromString(i,t)}catch(e){}if(!r||!r.documentElement){r=ef.createDocument(e7,"template",null);try{r.documentElement.innerHTML=e9?el:i}catch(e){}}var a=r.body||r.documentElement;return(e&&n&&a.insertBefore(s.createTextNode(n),a.childNodes[0]||null),e7===e8)?eb.call(r,eF?"html":"body")[0]:eF?r.documentElement:a},tz=function(e){return ed.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null,!1)},tO=function(e){return e instanceof M&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},tm=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},tg=function(e,t,r){eO[e]&&A(eO[e],function(e){e.call(i,t,r,to)})},tA=function(e){if(tg("beforeSanitizeElements",e,null),tO(e)||W(/[\u0080-\uFFFF]/,e.nodeName))return th(e),!0;var t,n=r(e.nodeName);if(tg("uponSanitizeElement",e,{tagName:n,allowedTags:eR}),e.hasChildNodes()&&!tm(e.firstElementChild)&&(!tm(e.content)||!tm(e.content.firstElementChild))&&W(/<[/\w]/g,e.innerHTML)&&W(/<[/\w]/g,e.textContent)||"select"===n&&W(/