diff --git a/dist/200.html b/dist/200.html index 5193cacd..5109f6d4 100644 --- a/dist/200.html +++ b/dist/200.html @@ -1 +1 @@ -Iris \ No newline at end of file +Iris \ No newline at end of file diff --git a/dist/bundle.68229.esm.js b/dist/bundle.68229.esm.js deleted file mode 100644 index d3210a9a..00000000 --- a/dist/bundle.68229.esm.js +++ /dev/null @@ -1,1529 +0,0 @@ -!function(n){function e(e){for(var l,t,r=e[0],o=e[1],u=0,s=[];un.length)&&(e=n.length);for(var l=0,t=new Array(e);ln;const x=(n,e)=>-1!==e.indexOf(n.name.slice(-4)),C=n=>x(n,["webm",".mp4",".ogg"]),S=n=>x(n,[".mp3",".wav",".m4a"]),E=n=>x(n,[".jpg","jpeg",".gif",".png"]);e.a=class extends t.Component{constructor(){super(),this.eventListeners={}}componentDidMount(){s.a.local.get("player").on(((n,e,l,t)=>{if(this.player=n,this.eventListeners.player=t,this.setState({player:n}),this.torrent&&this.player&&this.player.filePath!==this.state.activeFilePath){const n=this.getActiveFile(this.torrent);n&&this.openFile(n)}}));const n=this.props.showFiles;n&&this.setState({showFiles:n}),r.a.settings.local.enableWebtorrent&&this.startTorrenting()}componentWillUnmount(){Object.values(this.eventListeners).forEach((n=>n.off()))}onPlay(n){n.target.muted||s.a.local.get("player").get("paused").put(!0)}async startTorrenting(n){this.setState({torrenting:!0});const e=this.props.torrentId,l=await i.a.getWebTorrentClient(),t=l.get(e);t?this.onTorrent(t,n):l.add(e,(e=>this.onTorrent(e,n)))}playAudio(n,e){e&&e.preventDefault(),s.a.local.get("player").put({torrentId:this.props.torrentId,filePath:n,paused:!1})}pauseAudio(n){n&&n.preventDefault(),s.a.local.get("player").put({paused:!0})}openFile(n,e){const l=a()(this.base),t=C(n),i=!t&&S(n);if(this.state.activeFilePath===n.path){if(t){const n=l.find("video").get(0);n&&n.play()}else i&&s.a.local.get("player").get("paused").put(!1);return}let o,u,c;t||(o=n.path.split("/")),this.setState({activeFilePath:n.path,splitPath:o,isAudioOpen:i}),e?(u=!0,c=!1):(u=t&&r.a.settings.local.autoplayWebtorrent,c=u);const h=l.find(".player");h.empty(),i&&e&&this.playAudio(n.path),i||n.appendTo(h.get(0),{autoplay:u,muted:c}),l.find(".info").toggle(!t);const p=l.find("video, audio").get(0);p&&(p.addEventListener("ended",(()=>{this.openNextFile("VIDEO"===p.tagName?C:S)})),p.onplay=p.onvolumechange=this.onPlay)}getNextIndex(n){const e=this.state.torrent.files,l=e.findIndex((n=>n.path===this.state.activeFilePath));let t=e.findIndex(((e,t)=>t>l&&n(e)));return-1===t&&(t=e.findIndex((e=>n(e)))),-1===t&&(t=l),t}openNextFile(n){const e=this.getNextIndex(n);this.openFile(this.state.torrent.files[e],!0)}getActiveFile(n){const e=this.player;let l;return e&&e.torrentId===this.props.torrentId&&(l=n.files.find((n=>n.path===e.filePath))),l}onTorrent(n,e){this.torrent=n;const l=n.files.find((n=>C(n))),t=n.files.find((n=>S(n))),i=n.files.find((n=>E(n)));let r=n.files.find((n=>E(n)&&(n.name.indexOf("cover")>-1||n.name.indexOf("poster")>-1)));r=r||i,r&&r.appendTo(a()(this.base).find(".cover").get(0));const o=this.getActiveFile(n)||l||t||i||n.files[0];this.setState({torrent:n,cover:i}),o&&this.openFile(o,e)}showFilesClicked(n){n.preventDefault(),this.setState({showFiles:!this.state.showFiles})}openTorrentClicked(n){n.preventDefault(),this.startTorrenting(!0)}render(){const n=this.state,e=n.torrent,l=n.player;let t="";return n.isAudioOpen&&(t=l&&l.torrentId===this.props.torrentId&&!l.paused?Object(i.b)(h||(h=k` - ${0} - `),(n=>this.pauseAudio(n)),c.a.pause):Object(i.b)(p||(p=k` - ${0} - `),(e=>this.playAudio(n.activeFilePath,e)),c.a.play)),Object(i.b)(f||(f=k` -
- ${0} - ${0} -
-
- ${0} -
- ${0} -
- ${0} -
- ${0} - Magnet link - ${0} - ${0} -
- `),r.a.settings.local.enableWebtorrent||n.torrenting?"":Object(i.b)(d||(d=k` - Show attachment - `),(n=>this.openTorrentClicked(n))),n.torrenting&&!n.torrent?Object(i.b)(g||(g=k`

Loading attachment...

`)):"",n.isAudioOpen?"":"display:none",n.splitPath?n.splitPath.map(((e,l)=>l===n.splitPath.length-1?(n.isAudioOpen&&(e=e.split(".").slice(0,-1).join(".")),Object(i.b)(m||(m=k`

${0}

`),e)):Object(i.b)(v||(v=k`

${0}

`),e))):"",n.hasNext?Object(i.b)(b||(b=k`prev`)):"",t,n.hasNext?Object(i.b)(y||(y=k`next`)):"",this.props.torrentId,e&&e.files?Object(i.b)(_||(_=k` - ${0} - `),(n=>this.showFilesClicked(n)),Object(o.c)("show_files")):"",n.showFiles&&e&&e.files?Object(i.b)(w||(w=k` -

${0}: ${0}

-
- ${0} -
- `),Object(o.c)("peers"),e.numPeers,e.files.map((e=>Object(i.b)(F||(F=k` -
-
${0}
-
${0}
-
- `),(()=>this.openFile(e,!0)),n.activeFilePath===e.path?"active":"",e.name,i.a.formatBytes(e.length))))):"")}}},"3QNJ":function(n,e,l){"use strict";function t(){return(t=Object.assign||function(n){for(var e=1;e=0||(i[l]=n[l]);return i}(n,["context","children"]);return Object(Sn.cloneElement)(e,l)}function h(){var n=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(n),this._vdom=Object(Sn.h)(c,s({},this._props,{context:n.detail.context}),function n(e,l){if(3===e.nodeType)return e.data;if(1!==e.nodeType)return null;var t=[],i={},r=0,o=e.attributes,u=e.childNodes;for(r=o.length;r--;)"slot"!==o[r].name&&(i[o[r].name]=o[r].value,i[p(o[r].name)]=o[r].value);for(r=u.length;r--;){var a=n(u[r],null),s=u[r].slot;s?i[s]=Object(Sn.h)(g,{name:s},a):t[r]=a}var c=l?Object(Sn.h)(g,null,t):t;return Object(Sn.h)(l||e.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Sn.hydrate:Sn.render)(this._vdom,this._root)}function p(n){return n.replace(/-(\w)/g,(function(n,e){return e?e.toUpperCase():""}))}function f(n,e,l){if(this._vdom){var t={};t[n]=l=null==l?void 0:l,t[p(n)]=l,this._vdom=Object(Sn.cloneElement)(this._vdom,t),Object(Sn.render)(this._vdom,this._root)}}function d(){Object(Sn.render)(this._vdom=null,this._root)}function g(n,e){var l=this;return Object(Sn.h)("slot",s({},n,{ref:function(n){n?(l.ref=n,l._listener||(l._listener=function(n){n.stopPropagation(),n.detail.context=e},n.addEventListener("_preact",l._listener))):l.ref.removeEventListener("_preact",l._listener)}}))}function m(){return(m=Object.assign||function(n){for(var e=1;e-1&&e<1?Math.round(1e6*e)/1e4+"%":e+"px"}function y(n){if(Nn.hasOwnProperty(n))return Nn[n];var e=n.replace(Rn,"-$1").toLowerCase().replace(zn,"-ms-");return Nn[n]=e,Nn[n]}function _(n){for(var e=5381,l=n.length;l;)e=33*e^n.charCodeAt(--l);return e>>>0}function w(){throw new Error("jsxstyle error: `injectOptions` must be called before any jsxstyle components mount.")}function F(){throw new Error("jsxstyle error: `injectOptions` should be called once and only once.")}function k(){return(k=Object.assign||function(n){for(var e=1;e`Missing ${n} property in key`)("name"));const r=n.name;if(t=r,we.call(n,"weight")&&(i=n.weight,i<=0))throw new Error((n=>`Property 'weight' in key '${n}' must be a positive integer`)(r));e=W(r),l=G(r)}return{path:e,id:l,weight:i,src:t}}function W(n){return P(n)?n:n.split(".")}function G(n){return P(n)?n.join("."):n}function q(n,e,{getFn:l=xe.getFn}={}){const t=new Se({getFn:l});return t.setKeys(n.map(H)),t.setSources(e),t.create(),t}function K(n,{errors:e=0,currentLocation:l=0,expectedLocation:t=0,distance:i=xe.distance,ignoreLocation:r=xe.ignoreLocation}={}){const o=e/n.length;if(r)return o;const u=Math.abs(t-l);return i?o+u/i:u?1:o}function V(n,e,l,{location:t=xe.location,distance:i=xe.distance,threshold:r=xe.threshold,findAllMatches:o=xe.findAllMatches,minMatchCharLength:u=xe.minMatchCharLength,includeMatches:a=xe.includeMatches,ignoreLocation:s=xe.ignoreLocation}={}){if(e.length>Ee)throw new Error(`Pattern length exceeds max of ${Ee}.`);const c=e.length,h=n.length,p=Math.max(0,Math.min(t,h));let f=r,d=p;const g=u>1||a,m=g?Array(h):[];let v;for(;(v=n.indexOf(e,d))>-1;){let n=K(e,{currentLocation:v,expectedLocation:p,distance:i,ignoreLocation:s});if(f=Math.min(n,f),d=v+c,g){let n=0;for(;n=a;r-=1){let o=r-1,u=l[n.charAt(o)];if(g&&(m[o]=+!!u),F[r]=(F[r+1]<<1|1)&u,t&&(F[r]|=(b[r+1]|b[r])<<1|1|b[r+1]),F[r]&w&&(y=K(e,{errors:t,currentLocation:o,expectedLocation:p,distance:i,ignoreLocation:s}),y<=f)){if(f=y,d=o,d<=p)break;a=Math.max(1,2*p-d)}}if(K(e,{errors:t+1,currentLocation:p,expectedLocation:p,distance:i,ignoreLocation:s})>f)break;b=F}const F={isMatch:d>=0,score:Math.max(.001,y)};if(g){const n=function(n=[],e=xe.minMatchCharLength){let l=[],t=-1,i=-1,r=0;for(let o=n.length;r=e&&l.push([t,i]),t=-1)}return n[r-1]&&r-t>=e&&l.push([t,r-1]),l}(m,u);n.length?a&&(F.indices=n):F.isMatch=!1}return F}function J(n){let e={};for(let l=0,t=n.length;l{let i=Object.keys(n);const r=(n=>!!n[ze])(n);if(!r&&i.length>1&&!Ue(n))return t(He(n));if((n=>!P(n)&&R(n)&&!Ue(n))(n)){const t=r?n[ze]:i[0],o=r?n[Ne]:n[t];if(!$(o))throw new Error((n=>`Invalid value for key ${n}`)(t));const u={keyId:G(t),pattern:o};return l&&(u.searcher=Q(o,e)),u}let o={children:[],operator:i[0]};return i.forEach((e=>{const l=n[e];P(l)&&l.forEach((n=>{o.children.push(t(n))}))})),o};return Ue(n)||(n=He(n)),t(n)}function X(n,e){const l=n.matches;e.matches=[],z(l)&&l.forEach((n=>{if(!z(n.indices)||!n.indices.length)return;const{indices:l,value:t}=n;let i={indices:l,value:t};n.key&&(i.key=n.key.src),n.idx>-1&&(i.refIndex=n.idx),e.matches.push(i)}))}function nn(n,e){e.score=n.score}function en(n,e){return n.raw=e,n}var ln,tn=l("GLQ6"),rn=l.n(tn),on=function(){function n(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!n.gun)throw new Error("Missing opt.gun");if(!n.class&&!n.name)throw new Error("You must supply either opt.name or opt.class");if(this.class=n.class,this.serializer=n.serializer,this.class&&!this.class.deserialize&&!this.serializer)throw new Error("opt.class must have deserialize() method or opt.serializer must be defined");this.name=n.name||n.class.name,this.gun=n.gun,this.indexes=n.indexes||[],this.indexer=n.indexer,this.askPeers=void 0===n.askPeers||n.askPeers}return n.prototype.put=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=n;this.serializer&&(l=this.serializer.serialize(n)),this.class&&(l=n.serialize());var t=void 0;return t=e.id||l.id?this.gun.get(this.name).get("id").get(e.id||l.id).put(l):n.getId?this.gun.get(this.name).get("id").get(n.getId()).put(l):this.gun.get(this.name).get("id").set(l),this._addToIndexes(l,t),l.id||rn.a.node.soul(t)||t._.link},n.prototype._addToIndexes=async function(n,e){var l=this;rn.a.node.is(n)&&(n=await n.open());var t=function(n,t){l.gun.get(l.name).get(n).get(t).put(e)};if(this.indexer)for(var i=await this.indexer(n),r=Object.keys(i),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};if(e.callback){var l=0,t=function(t,i,r){if(t&&!(e.limit&&l++>=e.limit)){if(e.selector)for(var o=Object.keys(e.selector),u=0;u-1&&(i=e.orderBy),this.gun.get(this.name).get(i).map().on(t),this.askPeers&&this.gun.get("trustedIndexes").on((function(e,l){n.gun.user(l).get(n.name).get(i).map().on(t)}))}},n.prototype.delete=function(){},n}(),un=l("mXm3"),an=l("Ymal"),sn=l.n(an),cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hn={email:/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i,bitcoin:/^[13][a-km-zA-HJ-NP-Z0-9]{26,33}$/,bitcoin_address:/^[13][a-km-zA-HJ-NP-Z0-9]{26,33}$/,ip:/^(([1-9]?\d|1\d\d|2[0-5][0-5]|2[0-4]\d)\.){3}([1-9]?\d|1\d\d|2[0-5][0-5]|2[0-4]\d)$/,ipv6:/^(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}$/,gpg_fingerprint:null,gpg_keyid:null,google_oauth2:null,tel:/^\d{7,}$/,phone:/^\d{7,}$/,keyID:null,url:/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi,account:/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i,uuid:/[0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}/},pn=function(){function n(e,l){if(function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),"object"==typeof e){if("string"!=typeof e.value)throw new Error("param1.value must be a string, got "+cn(e.value)+": "+JSON.stringify(e.value));if("string"!=typeof e.type)throw new Error("param1.type must be a string, got "+cn(e.type)+": "+JSON.stringify(e.type));l=e.value,e=e.type}if("string"!=typeof e)throw new Error("First param must be a string, got "+(void 0===e?"undefined":cn(e))+": "+JSON.stringify(e));if(!e.length)throw new Error("First param string is empty");if(l){if("string"!=typeof l)throw new Error("Second parameter must be a string, got "+(void 0===l?"undefined":cn(l))+": "+JSON.stringify(l));if(!l.length)throw new Error("Second param string is empty");this.type=e,this.value=l}else{this.value=e;var t=n.guessTypeOf(this.value);if(!t)throw new Error("Type of attribute was omitted and could not be guessed");this.type=t}}return n.getUuid=function(){return new n("uuid",function n(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,n)}())},n.getUniqueIdValidators=function(){return hn},n.isUniqueType=function(n){return Object.keys(hn).indexOf(n)>-1},n.prototype.isUniqueType=function(){return n.isUniqueType(this.type)},n.guessTypeOf=function(n){for(var e in hn)if(n.match(hn[e]))return e},n.equals=function(n,e){return n.equals(e)},n.prototype.equals=function(n){return n&&this.type===n.type&&this.value===n.value},n.prototype.uri=function(){return encodeURIComponent(this.value)+":"+encodeURIComponent(this.type)},n.prototype.identiconXml=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un.a.getHash(encodeURIComponent(this.type)+":"+encodeURIComponent(this.value),"hex").then((function(e){return new sn.a(e,{width:n.width,format:"svg"}).toString(!0)}))},n.prototype.identiconSrc=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un.a.getHash(encodeURIComponent(this.type)+":"+encodeURIComponent(this.value),"hex").then((function(e){return"data:image/svg+xml;base64,"+new sn.a(e,{width:n.width,format:"svg"}).toString()}))},n.prototype.identicon=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n=t({width:50,showType:!0},n),un.a.injectCss();var e=document.createElement("div");e.className="iris-identicon",e.style.width=n.width+"px",e.style.height=n.width+"px";var l=document.createElement("img");if(l.alt="",l.width=n.width,l.height=n.width,this.identiconSrc(n).then((function(n){return l.src=n})),n.showType){var i=document.createElement("span");i.className="iris-distance",i.style.fontSize=n.width>50?n.width/4+"px":"10px",i.textContent=this.type.slice(0,5),e.appendChild(i)}return e.appendChild(l),e},n}(),fn=(l("ED03"),void 0),dn=function(){function n(){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n)}return n.getActiveKey=async function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"iris.key",t=arguments[2];if(fn)return fn;if(t){var i=e+"/"+l;if(t.existsSync(i)){var r=t.readFileSync(i,"utf8");fn=n.fromString(r)}else{var o=await n.generate();t.writeFileSync(i,n.toString(fn=fn||o)),t.chmodSync(i,400)}if(!fn)throw new Error("loading default key failed - check "+e+"/"+l)}else{var u=window.localStorage.getItem("iris.myKey");if(u)fn=n.fromString(u);else{var a=await n.generate();fn=fn||a,window.localStorage.setItem("iris.myKey",n.toString(fn))}if(!fn)throw new Error("loading default key failed - check localStorage iris.myKey")}return fn},n.getDefault=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"iris.key";return n.getActiveKey(e,l)},n.getActivePub=async function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"iris.key",t=await n.getActiveKey(e,l);return t.pub},n.setActiveKey=function(e){var l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"iris.key",r=arguments[4];if(fn=e,l)if(un.a.isNode){var o=t+"/"+i;r.writeFileSync(o,n.toString(fn)),r.chmodSync(o,400)}else window.localStorage.setItem("iris.myKey",n.toString(fn))},n.toString=function(n){return JSON.stringify(n)},n.getId=function(n){if(!n||!n.pub)throw new Error("missing param");return n.pub},n.fromString=function(n){return JSON.parse(n)},n.generate=function(){return rn.a.SEA.pair()},n.sign=async function(n,e){return"a"+await rn.a.SEA.sign(n,e)},n.verify=function(n,e){return rn.a.SEA.verify(n.slice(1),e)},n}(),gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mn="Invalid message:",vn=function(n){function e(){return i(this,e),r(this,n.apply(this,arguments))}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(e,n),e}(Error),bn=function(){function n(e){if(i(this,n),e.signedData&&(this.signedData=e.signedData),e.pubKey&&(this.pubKey=e.pubKey),e.sig){if("string"!=typeof e.sig)throw new vn("SignedMessage signature must be a string");this.sig=e.sig,this.getHash()}this._validate()}return n._getArray=function(n){for(var e=[],l=Object.keys(n),t=0;tn.maxRating)throw new vn(mn+" Rating is above maxRating");if(n.rating(this.signedData.maxRating+this.signedData.minRating)/2},n.prototype.isNegative=function(){return"rating"===this.signedData.type&&this.signedData.rating<(this.signedData.maxRating+this.signedData.minRating)/2},n.prototype.isNeutral=function(){return"rating"===this.signedData.type&&this.signedData.rating===(this.signedData.maxRating+this.signedData.minRating)/2},n.prototype.sign=async function(n){return this.sig=await dn.sign(this.signedData,n),this.pubKey=n.pub,await this.getHash(),!0},n.create=async function(e,l){!e.author&&l&&(e.author={keyID:dn.getId(l)}),e.time=e.time||(new Date).toISOString();var t=new n({signedData:e});return l&&await t.sign(l),t},n.createVerification=function(e,l){return e.type="verification",n.create(e,l)},n.createRating=function(e,l){return e.type="rating",e.context=e.context||"iris",e.maxRating=e.maxRating||10,e.minRating=e.minRating||-10,n.create(e,l)},n.prototype.getAuthor=function(n){var e=this.getAuthorIterable(),l=Array.isArray(e),t=0;for(e=l?e:e[Symbol.iterator]();;){var i;if(l){if(t>=e.length)break;i=e[t++]}else{if((t=e.next()).done)break;i=t.value}var r=i;if(r.isUniqueType())return n.getContacts(r)}},n.prototype.getRecipient=function(n){if(this.signedData.recipient){var e=this.getRecipientIterable(),l=Array.isArray(e),t=0;for(e=l?e:e[Symbol.iterator]();;){var i;if(l){if(t>=e.length)break;i=e[t++]}else{if((t=e.next()).done)break;i=t.value}var r=i;if(r.isUniqueType())return n.getContacts(r)}}},n.prototype.getHash=async function(){return this.sig&&!this.hash&&(this.hash=await un.a.getHash(this.sig)),this.hash},n.prototype.getId=function(){return this.getHash()},n.fromSig=async function(e){if(!e.sig)throw new Error("Missing signature in object:",e);if(!e.pubKey)throw new Error("Missing pubKey in object:");return new n({signedData:await dn.verify(e.sig,e.pubKey),sig:e.sig,pubKey:e.pubKey})},n.prototype.verify=async function(){if(!this.pubKey)throw new vn(mn+" SignedMessage has no .pubKey");if(!this.sig)throw new vn(mn+" SignedMessage has no .sig");if(this.signedData=await dn.verify(this.sig,this.pubKey),!this.signedData)throw new vn(mn+" Invalid signature");if(this.hash){if(this.hash!==await un.a.getHash(this.sig))throw new vn(mn+" Invalid message hash")}else this.getHash();return!0},n.prototype.serialize=function(){return{sig:this.sig,pubKey:this.pubKey}},n.prototype.toString=function(){return JSON.stringify(this.serialize())},n.deserialize=async function(e){return n.fromSig(e)},n.fromString=async function(e){return n.fromSig(JSON.parse(e))},n.setReaction=async function(n,e,l){var t=await e.getHash();n.get("reactions").get(t).put(l),n.get("reactions").get(t).put(l),n.get("messagesByHash").get(t).get("reactions").get(this.rootContact.value).put(l),n.get("messagesByHash").get(t).get("reactions").get(this.rootContact.value).put(l)},n}(),yn=function(){function n(e,l){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.gun=e,this.linkTo=l}return n.create=function(e,l,t){if(!l.linkTo&&!l.attrs)throw new Error("You must specify either data.linkTo or data.attrs");if(l.linkTo&&!l.attrs){var i=new pn(l.linkTo);l.attrs={},Object.prototype.hasOwnProperty.call(l.attrs,i.uri())||(l.attrs[i.uri()]=i)}else l.linkTo=n.getLinkTo(l.attrs);var r=l.linkTo.uri(),o=e.top(r+"/attrs").put(l.attrs);return delete l.attrs,e.put(l),e.get("attrs").put(o),new n(e,r,t)},n.getLinkTo=function(e){for(var l=n.getMostVerifiedAttributes(e),t=Object.keys(l),i=void 0,r=0;r-1;t.verifications=isNaN(t.verifications)?1:t.verifications,t.unverifications=isNaN(t.unverifications)?0:t.unverifications,2*t.verifications>3*t.unverifications&&(!i||t.verifications-t.unverifications>e[t.type].verificationScore)&&(e[t.type]={attribute:t,verificationScore:t.verifications-t.unverifications},t.verified&&(e[t.type].verified=!0))})),e},n.getAttrs=async function(n){var e=await un.a.loadGunDepth(n.get("attrs"),2);return e&&void 0!==e._&&delete e._,e||{}},n.prototype.getId=function(){return this.linkTo.value},n.prototype.sent=function(n,e){n._getSentMsgs(this,e)},n.prototype.received=function(n,e){n._getReceivedMsgs(this,e)},n.prototype.verified=async function(e){var l=await n.getAttrs(this.gun).then(),t=n.getMostVerifiedAttributes(l);return Object.prototype.hasOwnProperty.call(t,e)?t[e].attribute.value:void 0},n.prototype.profileCard=function(){var e=this,l=document.createElement("div");l.className="iris-card";var t=this.identicon({width:60});t.style.order=1,t.style.flexShrink=0,t.style.marginRight="15px";var i=document.createElement("div");i.style.padding="5px",i.style.order=2,i.style.flexGrow=1;var r=document.createElement("span"),o=document.createElement("small");return l.appendChild(t),l.appendChild(i),i.appendChild(r),i.appendChild(o),this.gun.on((async function(l){if(l){var t=await n.getAttrs(e.gun),i=await e.gun.get("linkTo").then(),u="https://iris.to/#/identities/"+i.type+"/"+i.value,a=n.getMostVerifiedAttributes(t);r.innerHTML=''+(a.type&&a.type.attribute.value||a.nickname&&a.nickname.attribute.value||i.type+":"+i.value)+"
",r.innerHTML+='Received: +'+(l.receivedPositive||0)+' / -'+(l.receivedNegative||0)+"
",o.innerHTML="",Object.keys(t).forEach((function(n){var e=t[n];e.link&&(o.innerHTML+=e.type+': '+e.value+" ")}))}})),l},n.appendSearchWidget=function(n,e){var l=document.createElement("form"),t=document.createElement("input");t.type="text",t.placeholder="Search",t.id="irisSearchInput",l.innerHTML+='
';var i=document.createElement("div");return n.appendChild(l),l.appendChild(t),l.appendChild(i),t.addEventListener("keyup",(async function(){var n=await e.search(t.value);i.innerHTML="",n.sort((function(n,e){return n.trustDistance-e.trustDistance})),n.forEach((function(n){i.appendChild(n.profileCard())}))})),l},n._ordinal=function(n){if(0===n)return"";var e=["th","st","nd","rd"],l=n%100;return n+(e[(l-20)%10]||e[l]||e[0])},n.prototype.identicon=function(){function e(e){if(e){var l="rgba(0,0,0,0.2)",i="none",o="";if(t.outerGlow){var u="0px 0px 0px 0px #82FF84";e.receivedPositive>20*e.receivedNegative?u="0px 0px "+t.border*e.receivedPositive/50+"px 0px #82FF84":e.receivedPositive<3*e.receivedNegative&&(u="0px 0px "+t.border*e.receivedNegative/10+"px 0px #BF0400"),r.style.boxShadow=u}e.receivedPositive+e.receivedNegative>0&&(e.receivedPositive>e.receivedNegative?(o="rotate("+(-e.receivedPositive/(e.receivedPositive+e.receivedNegative)*360-180)/2+"deg)",l="#A94442",i="linear-gradient("+e.receivedPositive/(e.receivedPositive+e.receivedNegative)*360+"deg, transparent 50%, #3C763D 50%), linear-gradient(0deg, #3C763D 50%, transparent 50%)"):(o="rotate("+((-e.receivedNegative/(e.receivedPositive+e.receivedNegative)*360-180)/2+180)+"deg)",l="#3C763D",i="linear-gradient("+e.receivedNegative/(e.receivedPositive+e.receivedNegative)*360+"deg, transparent 50%, #A94442 50%), linear-gradient(0deg, #A94442 50%, transparent 50%)")),r.style.backgroundColor=l,r.style.backgroundImage=i,r.style.transform=o,r.style.opacity=(e.receivedPositive+e.receivedNegative)/10*.5+.35,t.showDistance&&(a.textContent="number"==typeof e.trustDistance?n._ordinal(e.trustDistance):"✕")}}function l(n){un.a.getHash(encodeURIComponent(n.type)+":"+encodeURIComponent(n.value),"hex").then((function(n){var e=new sn.a(n,{width:t.width,format:"svg"});u.src=u.src||"data:image/svg+xml;base64,"+e.toString()}))}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=o({width:50,border:4,showDistance:!0,outerGlow:!1},t),un.a.injectCss();var i=document.createElement("div");i.className="iris-identicon",i.style.width=t.width+"px",i.style.height=t.width+"px";var r=document.createElement("div");r.className="iris-pie",r.style.width=t.width+"px";var u=document.createElement("img");u.alt="",u.width=t.width,u.height=t.width,u.style.borderWidth=t.border+"px";var a=void 0;return t.border&&((a=document.createElement("span")).className="iris-distance",a.style.fontSize=t.width>50?t.width/4+"px":"10px",i.appendChild(a)),i.appendChild(r),i.appendChild(u),this.linkTo?l(this.linkTo):this.gun.get("linkTo").on(l),this.gun.on(e),i},n.prototype.serialize=function(){return this.gun},n.deserialize=function(e,l){var t=new pn({type:"uuid",value:l.id});return new n(l.gun,t)},n}(),_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},wn={email:/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i,bitcoin:/^[13][a-km-zA-HJ-NP-Z0-9]{26,33}$/,bitcoin_address:/^[13][a-km-zA-HJ-NP-Z0-9]{26,33}$/,ip:/^(([1-9]?\d|1\d\d|2[0-5][0-5]|2[0-4]\d)\.){3}([1-9]?\d|1\d\d|2[0-5][0-5]|2[0-4]\d)$/,ipv6:/^(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}$/,gpg_fingerprint:null,gpg_keyid:null,google_oauth2:null,tel:/^\d{7,}$/,phone:/^\d{7,}$/,keyID:null,url:/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi,account:/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i,uuid:/[0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}/},Fn=function(){function n(e,l){if(function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),"object"==typeof e){if("string"!=typeof e.value)throw new Error("param1.value must be a string, got "+_n(e.value)+": "+JSON.stringify(e.value));if("string"!=typeof e.type)throw new Error("param1.type must be a string, got "+_n(e.type)+": "+JSON.stringify(e.type));l=e.value,e=e.type}if("string"!=typeof e)throw new Error("First param must be a string, got "+(void 0===e?"undefined":_n(e))+": "+JSON.stringify(e));if(!e.length)throw new Error("First param string is empty");if(l){if("string"!=typeof l)throw new Error("Second parameter must be a string, got "+(void 0===l?"undefined":_n(l))+": "+JSON.stringify(l));if(!l.length)throw new Error("Second param string is empty");this.type=e,this.value=l}else{this.value=e;var t=n.guessTypeOf(this.value);if(!t)throw new Error("Type of attribute was omitted and could not be guessed");this.type=t}}return n.getUuid=function(){return new n("uuid",function n(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,n)}())},n.getUniqueIdValidators=function(){return wn},n.isUniqueType=function(n){return Object.keys(wn).indexOf(n)>-1},n.prototype.isUniqueType=function(){return n.isUniqueType(this.type)},n.guessTypeOf=function(n){for(var e in wn)if(n.match(wn[e]))return e},n.equals=function(n,e){return n.equals(e)},n.prototype.equals=function(n){return n&&this.type===n.type&&this.value===n.value},n.prototype.uri=function(){return encodeURIComponent(this.value)+":"+encodeURIComponent(this.type)},n.prototype.identiconXml=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un.a.getHash(encodeURIComponent(this.type)+":"+encodeURIComponent(this.value),"hex").then((function(e){return new sn.a(e,{width:n.width,format:"svg"}).toString(!0)}))},n.prototype.identiconSrc=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un.a.getHash(encodeURIComponent(this.type)+":"+encodeURIComponent(this.value),"hex").then((function(e){return"data:image/svg+xml;base64,"+new sn.a(e,{width:n.width,format:"svg"}).toString()}))},n.prototype.identicon=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n=u({width:50,showType:!0},n),un.a.injectCss();var e=document.createElement("div");e.className="iris-identicon",e.style.width=n.width+"px",e.style.height=n.width+"px";var l=document.createElement("img");if(l.alt="",l.width=n.width,l.height=n.width,this.identiconSrc(n).then((function(n){return l.src=n})),n.showType){var t=document.createElement("span");t.className="iris-distance",t.style.fontSize=n.width>50?n.width/4+"px":"10px",t.textContent=this.type.slice(0,5),e.appendChild(t)}return e.appendChild(l),e},n}(),kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xn=function(){function n(e){var l=this;if(function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.DEFAULT_PERMISSIONS={read:!0,write:!0},this.key=e.key,this.gun=e.gun,this.myGroupSecret=e.myGroupSecret,this.theirSecretUuids={},this.theirGroupSecrets={},this.user=this.gun.user(),this.user.auth(this.key),this.user.put({epub:this.key.epub}),this.secrets={},this.ourSecretChannelIds={},this.theirSecretChannelIds={},this.messages={},this.chatLinks={},this.groupSubscriptions={},this.directSubscriptions={},this.getParticipantsCallbacks={},e.chatLink&&this.useChatLink(e),"string"==typeof e.participants)this.addParticipant(e.participants,e.save);else if(Array.isArray(e.participants)){var t={};e.participants.forEach((function(n){return t[n]=a({},l.DEFAULT_PERMISSIONS)})),e.participants=t}"object"==typeof e.participants&&(Object.keys(e.participants).forEach((function(n){n!==l.key.pub&&l.addParticipant(n,e.save,a({},l.DEFAULT_PERMISSIONS,e.participants[n]))})),e.participants[this.key.pub]=e.participants[this.key.pub]||a({},this.DEFAULT_PERMISSIONS),e.uuid?(this.uuid=e.uuid,this.name=e.name):(e.uuid=Fn.getUuid().value,this.uuid=e.uuid,e.participants[this.key.pub].admin=!0,e.participants[this.key.pub].founder=!0),this.getChatLinks({subscribe:!0}));this.participants=e.participants,e.uuid&&(this.putDirect("S"+this.uuid,this.getMyGroupSecret()),this.getMySecretUuid().then((function(n){l.putDirect(l.uuid,n)})),this.onTheirDirect(this.uuid,(function(n,e,t){l.theirSecretUuids[t]=n})),this.onTheirDirect("S"+this.uuid,(function(n,e,t){l.theirGroupSecrets[t]=n}))),this.onTheir("participants",(function(n,t,i){for(var r=!1,o=Object.keys(l.participants),u=0;u3&&void 0!==arguments[3])||arguments[3],r=await rn.a.SEA.secret(l.epub,l);i&&n.getMyChatLinks(e,l,void 0,void 0,!0);var o={};e.user().get("chats").map().on((async function(i,u){if(i&&!o[u]){if(o[u]=!0,u.length>44)return void e.user().get("chats").get(u).put(null);var a=await un.a.gunOnceDefined(e.user().get("chats").get(u).get("pub")),s=await rn.a.SEA.decrypt(a,r);s.pub||"string"==typeof s?t(new n({key:l,gun:e,participants:s.pub||s,save:!1})):s.uuid&&s.participants&&s.myGroupSecret&&t(new n({key:l,gun:e,participants:s.participants,uuid:s.uuid,myGroupSecret:s.myGroupSecret,save:!1}))}}))},n.prototype.getMyGroupSecret=function(){return this.myGroupSecret||this.changeMyGroupSecret(),this.myGroupSecret},n.prototype.getOurSecretChannelId=async function(n){if(!this.ourSecretChannelIds[n]){var e=await this.getSecret(n);this.ourSecretChannelIds[n]=await un.a.getHash(e+n)}return this.ourSecretChannelIds[n]},n.prototype.getTheirSecretChannelId=async function(n){if(!this.theirSecretChannelIds[n]){var e=await this.getSecret(n);this.theirSecretChannelIds[n]=await un.a.getHash(e+this.key.pub)}return this.theirSecretChannelIds[n]},n.prototype.getMessages=async function(n){var e=this;if(this.getCurrentParticipants().forEach((async function(l){if(l!==e.key.pub){var t=void 0;t=e.uuid?await e.getTheirSecretUuid(l):await e.getTheirSecretChannelId(l),e.gun.user(l).get("chats").get(t).get("msgs").map().once((function(t,i){e.messageReceived(n,t,e.uuid||l,!1,i,l)}))}if(!e.uuid){var i=await e.getOurSecretChannelId(l);e.user.get("chats").get(i).get("msgs").map().once((function(t,i){e.messageReceived(n,t,l,!0,i,e.key.pub)}))}})),this.uuid){var l=await this.getMySecretUuid();this.user.get("chats").get(l).get("msgs").map().once((function(l,t){e.messageReceived(n,l,e.uuid,!0,t,e.key.pub)}))}},n.prototype.messageReceived=async function(n,e,l,t,i,r){if(!this.messages[i]&&e){var o=this.uuid?await this.getTheirGroupSecret(r):await this.getSecret(l),u=await rn.a.SEA.decrypt(e,o);if("object"==typeof u){var a={selfAuthored:t,channelId:l,from:r};this.messages[i]=u,n(u,a)}}},n.prototype.getLatestMsg=async function(n){var e=this,l=async function(l,t){e.latest?("string"==typeof e.latest.time?e.latest.time:e.latest.time.toISOString())1&&void 0!==arguments[1])||arguments[1],l=this,t=arguments[2],i=arguments[3];if(void 0===t&&(t=this.DEFAULT_PERMISSIONS),!this.secrets[n]||JSON.stringify(this.secrets[n])!==JSON.stringify(t)){this.secrets[n]=null,this.getSecret(n);var r=await this.getOurSecretChannelId(n);if(e){var o=await rn.a.SEA.secret(this.key.epub,this.key);this.gun.user().get("chats").get(r).get("pub").put(await rn.a.SEA.encrypt({pub:n},o))}this.uuid&&(this.participants[n]=t,e&&(this.putDirect("S"+this.uuid,this.getMyGroupSecret()),this.getMySecretUuid().then((function(n){l.putDirect(l.uuid,n)})),this.onTheirDirect(this.uuid,(function(n,e,t){l.theirSecretUuids[t]=n})),this.onTheirDirect("S"+this.uuid,(function(n,e,t){l.theirGroupSecrets[t]=n})),this.save())),i&&(Object.values(this.directSubscriptions).forEach((function(e){e.forEach((function(e){e.from&&e.from!==n||l._onTheirDirectFromUser(n,e.key,e.callback)}))})),Object.values(this.groupSubscriptions).forEach((function(e){e.forEach((function(e){e.from&&e.from!==n||(t.write?l._onTheirGroupFromUser(n,e.key,e.callback):e.event&&e.event.off())}))})))}},n.prototype.send=async function(n){if("string"==typeof n){if(0===(n=n.trim()).length)return;n={time:(new Date).toISOString(),text:n}}else{if("object"!=typeof n)throw new Error("msg param must be a string or an object");n.time=n.time||(new Date).toISOString()}if(this.uuid){var e=await rn.a.SEA.encrypt(JSON.stringify(n),this.getMyGroupSecret()),l=await this.getMySecretUuid();this.user.get("chats").get(l).get("msgs").get(""+n.time).put(e),this.user.get("chats").get(l).get("latestMsg").put(e)}else for(var t=this.getCurrentParticipants(),i=0;i1&&void 0!==arguments[1]?arguments[1]:5;l*=1e3,this.put("typing",(n=void 0===n||n)?(new Date).toISOString():new Date(0).toISOString()),clearTimeout(this.setTypingTimeout),this.setTypingTimeout=setTimeout((function(){return e.put("typing",!1)}),l)},n.prototype.getTyping=function(n){var e=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;l*=1e3,this.onTheir("typing",(function(t,i,r){if(n){var o=t&&new Date-new Date(t)<=l;n(o,r),e.getTypingTimeouts=e.getTypingTimeouts||{},clearTimeout(e.getTypingTimeouts[r]),o&&(e.getTypingTimeouts[r]=setTimeout((function(){return n(!1,r)}),l))}}))},n.addChatButton=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(e=a({label:"Chat"},e)).channelOptions)throw new Error("addChatButton missing options.channelOptions param");un.a.injectCss();var l=void 0,t=void 0,i=un.a.createElement("div","iris-chat-open-button",document.body);i.setAttribute("id","iris-chat-open-button"),i.innerHTML=' '+e.label,i.addEventListener("click",(function(){i.setAttribute("style","display: none"),l?t.setAttribute("style",""):(l=new n(e.channelOptions),t=l.getChatBox(),document.body.appendChild(t))}))},n.prototype.getSimpleLink=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://iris.to/";return this.uuid?n+"?channelId="+this.uuid+"&inviter="+this.key.pub:n+"?chatWith="+this.getCurrentParticipants()[0]},n.prototype.getChatLinks=async function(e){var l=this,t=e.callback,i=e.urlRoot,r=e.subscribe;if(i=i||"https://iris.to/",!this.uuid)throw new Error("Only group channels may have chat links");var o=[],u={};this.on("chatLinks",(function(e,a){e&&"object"===(void 0===e?"undefined":kn(e))&&Object.keys(e).forEach((function(s){var c=e[s];if(null===c)return u[s]&&u[s].off(),delete u[s],void(t&&t({id:s,url:null}));if(-1===o.indexOf(s)){var h=[];o.push(s);var p=n.formatChatLink({urlRoot:i,inviter:a,channelId:l.uuid,sharedSecret:c.sharedSecret,linkId:s});t&&t({url:p,id:s}),r&&l.gun.user(c.sharedKey.pub).get("chatRequests").map().on((async function(n,e,t,i){if(n&&"string"==typeof n&&!(n.length<10)){u[s]=i;var r=JSON.stringify(n);if(-1===h.indexOf(r)){h.push(r);var o=await rn.a.SEA.decrypt(n,c.sharedSecret);l.addParticipant(o,void 0,void 0,!0)}}}))}}))}))},n.prototype.createChatLink=async function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://iris.to/",l=await rn.a.SEA.pair(),t=JSON.stringify(l),i=await rn.a.SEA.secret(l.epub,l),r=await rn.a.SEA.encrypt(t,i),o=await rn.a.SEA.secret(this.key.epub,this.key),u=await rn.a.SEA.encrypt(t,o),a=await un.a.getHash(r);return a=a.slice(0,12),await un.a.gunAsAnotherUser(this.gun,l,(function(n){return n.get("chatRequests").put({a:1}).then()})),this.chatLinks[a]={sharedKey:l,sharedSecret:i},this.put("chatLinks",this.chatLinks),this.user.get("chatLinks").get(a).put({encryptedSharedKey:r,ownerEncryptedSharedKey:u}),n.formatChatLink({urlRoot:e,channelId:this.uuid,inviter:this.key.pub,sharedSecret:i,linkId:a})},n.prototype.getChatBox=function(){var e=this;un.a.injectCss();var l=!1,t=un.a.createElement("div","iris-chat-box"),i=un.a.createElement("div","iris-chat-header",t),r=un.a.createElement("span","iris-chat-minimize",i);r.innerText="—",r.addEventListener("click",(function(n){n.stopPropagation(),t.setAttribute("class","iris-chat-box minimized"),l=!0}));var o=un.a.createElement("div","iris-chat-header-text",i),u=un.a.createElement("span","iris-online-indicator",o);u.innerHTML="●";var a=un.a.createElement("span",void 0,o),s=un.a.createElement("span","iris-chat-close",i);s.innerHTML="×",s.addEventListener("click",(function(){t.setAttribute("style","display: none");var n=document.getElementById("iris-chat-open-button");n&&n.setAttribute("style","")})),i.addEventListener("click",(function(){l&&(t.setAttribute("class","iris-chat-box"),l=!1)}));var c=un.a.createElement("div","iris-chat-messages",t),h=un.a.createElement("div","iris-typing-indicator",t);h.innerText="typing...",this.getTyping((function(n){h.setAttribute("class","iris-typing-indicator"+(n?" yes":""))}));var p=un.a.createElement("div","iris-chat-input-wrapper",t),f=un.a.createElement("textarea",void 0,p);if(f.setAttribute("rows","1"),f.setAttribute("placeholder","Type a message"),un.a.isMobile){var d=un.a.createElement("button",void 0,p);d.innerHTML='\n \n ',d.addEventListener("click",(function(){e.send(f.value),f.value="",e.setTyping(!1)}))}var g=this.getCurrentParticipants();if(g.length){var m=g[0];this.gun.user(m).get("profile").get("name").on((function(n){return a.innerText=n})),n.getActivity(this.gun,m,(function(n){u.setAttribute("class","iris-online-indicator"+(n.isActive?" yes":"")),c.querySelectorAll(".iris-chat-message:not(.delivered)").forEach((function(e){if(e.getAttribute("data-time")<=n.lastActive){var l=e.getAttribute("class");e.setAttribute("class",l+" delivered")}}))}))}return this.getTheirMsgsLastSeenTime((function(n){c.querySelectorAll(".iris-seen:not(.yes)").forEach((function(e){var l=e.parentElement.parentElement.parentElement;if(l.getAttribute("data-time")<=n){var t=l.getAttribute("class");-1===t.indexOf("delivered")&&l.setAttribute("class",t+" delivered"),e.setAttribute("class","iris-seen yes")}}))})),this.getMessages((function(n,l){var t=un.a.createElement("div","iris-msg-content");t.innerText=n.text;var i=un.a.createElement("div","time",t);(i.innerText=un.a.formatTime(new Date(n.time)),l.selfAuthored)&&(un.a.createElement("span",e.theirMsgsLastSeenTime>=n.time?"iris-seen yes":"iris-seen",i).innerHTML=' ');t.innerHTML=t.innerHTML.replace(/\n/g,"
\n");var r=un.a.createElement("div",(l.selfAuthored?"our":"their")+" iris-chat-message");r.appendChild(t),r.setAttribute("data-time",n.time);for(var o=c.children.length;o>=0;o--)if(0===o)c.insertBefore(r,c.firstChild);else{var u=c.children[o-1].getAttribute("data-time");if(u&&unew Date(e.getTime()-1e4)&&i2&&void 0!==arguments[2]?arguments[2]:"https://iris.to/",i=arguments[3],r=arguments[4],o=e.user();o.auth(l);var u=await rn.a.SEA.secret(l.epub,l),a=[];o.get("chatLinks").map().on((function(s,c){if(s&&-1===a.indexOf(c)){var h=[];o.get("chatLinks").get(c).get("ownerEncryptedSharedKey").on((async function(o){if(o&&-1===a.indexOf(c)){a.push(c);var s=await rn.a.SEA.decrypt(o,u),p=await rn.a.SEA.secret(s.epub,s),f=n.formatChatLink({urlRoot:t,chatWith:l.pub,sharedSecret:p,linkId:c});i&&i({url:f,id:c}),r&&e.user(s.pub).get("chatRequests").map().on((async function(t,i){if(t){var r=JSON.stringify(t);if(-1===h.indexOf(r)){h.push(r);var o=await rn.a.SEA.decrypt(t,p);new n({gun:e,key:l,participants:o}).save()}un.a.gunAsAnotherUser(e,s,(function(n){n.get("chatRequests").get(i).put(null)}))}}))}}))}}))},n.prototype.removeGroupChatLink=function(n){this.chatLinks[n]=null,this.put("chatLinks",this.chatLinks),this.gun.user().get("chatLinks").get(n).put(null)},n.removePrivateChatLink=function(n,e,l){n.user().auth(e),n.user().get("chatLinks").get(l).put(null)},n.deleteChannel=async function(e,l,t){e.user().auth(l);var i=await n.getOurSecretChannelId(e,t,l);e.user().get("channels").get(i).put(null),e.user().get("channels").get(i).off()},n}(),Cn=l("t10x"),Sn=l("hosL"),En=function(n,e,l,t){function i(){var e=Reflect.construct(HTMLElement,[],i);return e._vdomComponent=n,e._root=t&&t.shadow?e.attachShadow({mode:"open"}):e,e}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=h,i.prototype.attributeChangedCallback=f,i.prototype.disconnectedCallback=d,l=l||n.observedAttributes||Object.keys(n.propTypes||{}),i.observedAttributes=l,l.forEach((function(n){Object.defineProperty(i.prototype,n,{get:function(){return this._vdom.props[n]},set:function(e){this._vdom?this.attributeChangedCallback(n,null,e):(this._props||(this._props={}),this._props[n]=e,this.connectedCallback());var l=typeof e;null!=e&&"string"!==l&&"boolean"!==l&&"number"!==l||this.setAttribute(n,e)}})})),customElements.define(e||n.tagName||n.displayName||n.name,i)},Tn=function n(e,l,t,i){var r;l[0]=0;for(var o=1;o=5&&((i||!n&&5===t)&&(o.push(t,0,i,l),t=6),n&&(o.push(t,n,0,l),t=6)),i=""},a=0;a"===e?(t=1,i=""):i=e+i[0]:r?e===r?r="":i+=e:'"'===e||"'"===e?r=e:">"===e?(u(),t=1):t&&("="===e?(t=5,l=i,i=""):"/"===e&&(t<5||">"===n[a][s+1])?(u(),3===t&&(o=o[0]),t=o,(o=o[0]).push(2,0,t),t=0):" "===e||"\t"===e||"\n"===e||"\r"===e?(u(),t=2):i+=e),3===t&&"!--"===i&&(t=4,o=o[0])}return u(),o}(n)),e),arguments,[])).length>1?e:e[0]}.bind(Sn.h);!("undefined"==typeof window||!window.document||!window.document.createElement)&&!ln&&((ln=document.createElement("style")).type="text/css",ln.nonce=l.nc,ln.appendChild(document.createTextNode("/* jsxstyle */")),document.head.appendChild(ln));var jn={Block:{display:"block"},Box:null,Col:{display:"flex",flexDirection:"column"},Grid:{display:"grid"},Inline:{display:"inline"},InlineBlock:{display:"inline-block"},InlineCol:{display:"inline-flex",flexDirection:"column"},InlineRow:{display:"inline-flex",flexDirection:"row"},Row:{display:"flex",flexDirection:"row"},Flex:{display:"flex"},InlineFlex:{display:"inline-flex"},Table:{display:"table"},TableCell:{display:"table-cell"},TableRow:{display:"table-row"}},Dn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexNegative:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},In=["Webkit","ms","Moz","O"];Object.keys(Dn).forEach((function(n){In.forEach((function(e){Dn[function(n,e){return n+e.charAt(0).toUpperCase()+e.substring(1)}(e,n)]=Dn[n]}))}));var Mn,Pn,$n,Ln,Bn,Rn=/([A-Z])/g,zn=/^ms-/,Nn={},Un=/[A-Z]/g,Hn={after:!0,before:!0,placeholder:!0,selection:!0},Wn={active:!0,checked:!0,disabled:!0,empty:!0,enabled:!0,focus:!0,hover:!0,invalid:!0,link:!0,required:!0,target:!0,valid:!0},Gn={children:!0,class:!0,className:!0,component:!0,mediaQueries:!0,props:!0,style:!0},qn={paddingH:["paddingLeft","paddingRight"],paddingV:["paddingTop","paddingBottom"],marginH:["marginLeft","marginRight"],marginV:["marginTop","marginBottom"]},Kn=(Pn={},$n=function(n){return"_"+_(n).toString(36)},Ln=!1,Bn={reset:function(){Pn={}},injectOptions:function(n){n&&(n.getClassName&&($n=n.getClassName),n.onInsertRule&&(Mn=n.onInsertRule),n.pretty&&(Ln=n.pretty)),Bn.injectOptions=F},getClassName:function(n,e){Bn.injectOptions=w;var l=function(n,e){if(void 0===e&&(e=!1),"object"!=typeof n||null===n)return null;var l=Object.keys(n).sort(),t=l.length;if(0===t)return null;var i,r=n.mediaQueries,o=!1,u={},a={classNameKey:"",stylesByKey:u},s="",c={},h={};if(null!=r){var p=-1;for(var f in r)h[f]="@"+(1e3+ ++p)}for(var d=-1;++d1&&g.slice(0,Un.lastIndex-1);C&&null!=r&&r.hasOwnProperty(C)&&(o=!0,k=C,v=g[x=Un.lastIndex-1].toLowerCase()+g.slice(x+1),C=Un.test(g)&&v.slice(0,Un.lastIndex-x-1)),C&&Hn.hasOwnProperty(C)&&(w=C,x=Un.lastIndex-1,C=Un.test(g)&&g[x].toLowerCase()+g.slice(x+1,Un.lastIndex-1)),C&&Wn.hasOwnProperty(C)&&(F=C,x=Un.lastIndex-1),x>0&&(m=g[x].toLowerCase()+g.slice(x+1));var S=n[g],E=e?" ":"",T=":"+E,O=e?"\n":"",A=";"+O,j=e?" ":"";if("animation"===m&&S&&"object"==typeof S){var D=O;for(var I in S){var M=S[I];for(var P in D+=I+E+"{"+O,M){var $=b(P,M[P]);D+=j+y(P)+T+$+A}D+="}"+O}var L="jsxstyle_"+_(D).toString(36);m="animationName",S=L,(i=i||{})[L]=D}else if(""===(S=b(m,n[g])))continue;var B=k&&r[k],R="."+(k&&h[k]||"")+(F?":"+F:"")+(w?"::"+w:"");u.hasOwnProperty(R)||(u[R]={styles:O},B&&(u[R].mediaQuery=B),F&&(u[R].pseudoclass=F),w&&(u[R].pseudoelement=w)),B?(c[B]=c[B]||"",c[B]+=v+":"+S+";"):s+=g+":"+S+";";var z=T+S+A,N=qn[m];u[R].styles+=N?j+y(N[0])+z+j+y(N[1])+z:j+y(m)+z}}if(o)for(var U=Object.keys(c).sort(),H=-1,W=U.length;++H\n ',"\n ','\n '],["\n <","\n onClick=","\n cursor=","\n borderRadius=",'\n overflow="hidden"\n userSelect="none"\n class="identicon-container ','">\n ',"\n ','\n ']),Zn=C(['',""],['',""]),Xn=function(n){function e(){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?n:e}(this,n.call(this));return l.eventListeners={},l}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(e,n),e.prototype.componentDidUpdate=function(n){n.user!==this.props.user&&(this.resetEventListeners(),this.setState({name:"",photo:""}),this.componentDidMount())},e.prototype.componentDidMount=function(){var n=this;this.props.user&&(new Fn({type:"keyID",value:this.props.user}).identiconSrc({width:this.props.width,showType:!1}).then((function(e){n.setState({identicon:e})})),un.a.getPublicState().user(this.props.user).get("profile").get("photo").on((function(e){"string"==typeof e&&0===e.indexOf("data:image")&&n.setState({photo:e})})),this.props.showTooltip&&un.a.getPublicState().user(this.props.user).get("profile").get("name").on((function(e,l,t,i){n.eventListeners.name=i,n.setState({name:e})})))},e.prototype.resetEventListeners=function(){Object.values(this.eventListeners).forEach((function(n){return n.off()})),this.eventListeners={}},e.prototype.componentWillUnmount=function(){this.resetEventListeners()},e.prototype.render=function(){return An(Qn,Vn,this.props.onClick,this.props.onClick?"pointer":"",parseInt(this.props.width)||80,this.props.showTooltip?"tooltip":"",this.props.showTooltip&&this.state.name?An(Zn,this.state.name):"",this.props.width||80,this.props.width||80,this.state.photo||this.state.identicon,this.state.name||"")},e}(Sn.Component);!un.a.isNode&&En(Xn,"iris-identicon",["user","onClick","width","showTooltip"]);var ne=Xn,ee=void 0,le=function(){function n(){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n)}return n.getActiveKey=async function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"iris.key",t=arguments[2];if(ee)return ee;if(t){var i=e+"/"+l;if(t.existsSync(i)){var r=t.readFileSync(i,"utf8");ee=n.fromString(r)}else{var o=await n.generate();t.writeFileSync(i,n.toString(ee=ee||o)),t.chmodSync(i,400)}if(!ee)throw new Error("loading default key failed - check "+e+"/"+l)}else{var u=window.localStorage.getItem("iris.myKey");if(u)ee=n.fromString(u);else{var a=await n.generate();ee=ee||a,window.localStorage.setItem("iris.myKey",n.toString(ee))}if(!ee)throw new Error("loading default key failed - check localStorage iris.myKey")}return ee},n.getDefault=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"iris.key";return n.getActiveKey(e,l)},n.getActivePub=async function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"iris.key",t=await n.getActiveKey(e,l);return t.pub},n.setActiveKey=function(e){var l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"iris.key",r=arguments[4];if(ee=e,l)if(un.a.isNode){var o=t+"/"+i;r.writeFileSync(o,n.toString(ee)),r.chmodSync(o,400)}else window.localStorage.setItem("iris.myKey",n.toString(ee))},n.toString=function(n){return JSON.stringify(n)},n.getId=function(n){if(!n||!n.pub)throw new Error("missing param");return n.pub},n.fromString=function(n){return JSON.parse(n)},n.generate=function(){return rn.a.SEA.pair()},n.sign=async function(n,e){return"a"+await rn.a.SEA.sign(n,e)},n.verify=function(n,e){return rn.a.SEA.verify(n.slice(1),e)},n}(),te=S(['\n \n \n ',"\n \n "],['\n \n \n ',"\n \n "]),pe=function(n){function e(){return T(this,e),O(this,n.apply(this,arguments))}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(e,n),e.prototype.getValue=function(n){var e=this;this.getNode(n).on((function(n,l,t,i){e.eventListeners[e.path]=i,e.setState({value:n})}))},e.prototype.onChange=async function(n){var e=n.target.files[0],l=await function(n){return new Promise((function(e,l){var t=new FileReader;t.readAsDataURL(n),t.onload=function(){return e(t.result)},t.onerror=function(n){return l(n)}}))}(e);this.getNode().put(l)},e.prototype.renderInput=function(){var n=this;return An(ue,this.state.value,this.props.placeholder||this.path,(function(e){return n.onInput(e)}),!this.isEditable())},e.prototype.renderTag=function(){var n=this,e=this.props.placeholder||this.props.path,l=this.props.tag||"span";return An(ae,l,this.ref,this.isEditable(),e,(function(e){return n.onInput(e)}),this.state.value,l)},e.prototype.onClick=function(){this.isEditable()&&this.base.firstChild.click()},e.prototype.render=function(){var n=this,e=this.isEditable(),l=this.state.value,t=l&&0===l.indexOf("data:image")?l:this.props.placeholder,i=this.props,r=void 0;t?r=An(se,e?"cursor: pointer;":"",(function(e){return n.onClick(e)}),l,{alt:i.alt,width:i.width,height:i.height}):e&&(r=An(ce,this.props["btn-class"],(function(e){return n.onClick(e)})));return An(he,(function(e){return n.onChange(e)}),r)},e}(oe);!un.a.isNode&&En(pe,"iris-img",["path","user","placeholder","editable","alt","width","height"]);var fe,de=pe,ge=((fe=[""]).raw=[""],fe),me=function(n){function e(){return A(this,e),j(this,n.apply(this,arguments))}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(e,n),e.prototype.copyToClipboard=function(n){if(window.clipboardData&&window.clipboardData.setData)return window.clipboardData.setData("Text",n);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var e=document.createElement("textarea");e.textContent=n,e.style.position="fixed",document.body.appendChild(e),e.select();try{return document.execCommand("copy")}catch(n){return console.warn("Copy to clipboard failed.",n),!1}finally{document.body.removeChild(e)}}},e.prototype.copy=function(n,e){var l=this;this.copyToClipboard(e);var t=n.target;this.originalWidth=this.originalWidth||t.offsetWidth+1,t.style.width=this.originalWidth,this.setState({copied:!0}),clearTimeout(this.timeout),this.timeout=setTimeout((function(){return l.setState({copied:!1})}),2e3)},e.prototype.onClick=function(n){var e=this;n.preventDefault();var l="function"==typeof this.props.str?this.props.str():this.props.str;navigator.share&&un.a.isMobile&&!this.props["not-shareable"]?navigator.share({url:l,title:this.props.title}).catch((function(t){console.error("share failed",t),e.copy(n,l)})):this.copy(n,l)},e.prototype.render=function(){var n=this;return An(ge,this.props["inner-class"]||"copy-button",(function(e){return n.onClick(e)}),this.state.copied?this.props["copied-text"]||"Copied":this.props.text||"Copy")},e}(Sn.Component);!un.a.isNode&&En(me,"iris-copy-button",["str","not-shareable","text","copied-text","title","inner-class"]);var ve=me,be=function(n,e){return n.raw=e,n}(['\n \n '],['\n \n ']),ye=function(n){function e(){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?n:e}(this,n.call(this));return l.eventListeners={},l}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(e,n),e.prototype.onClick=function(n){n.preventDefault();var e=!this.state.following;un.a.getPublicState().user().get("follow").get(this.props.user).put(e)},e.prototype.componentDidMount=function(){var n=this;un.a.injectCss(),le.getDefault().then((function(e){un.a.getPublicState().user().auth(e),un.a.getPublicState().user().get("follow").get(n.props.user).on((function(e,l,t,i){n.setState({following:e}),n.eventListeners.follow=i}))}))},e.prototype.componentWillUnmount=function(){Object.values(this.eventListeners).forEach((function(n){return n.off()}))},e.prototype.render=function(){var n=this;return An(be,this.state.following?"following":"",this.props["inner-class"]||"",(function(e){return n.onClick(e)}),this.state.following?"Following":"Follow")},e}(Sn.Component);!un.a.isNode&&En(ye,"iris-follow-button",["user"]);var _e=ye;const we=Object.prototype.hasOwnProperty;class Fe{constructor(n){this._keys=[],this._keyMap={};let e=0;n.forEach((n=>{let l=H(n);e+=l.weight,this._keys.push(l),this._keyMap[l.id]=l,e+=l.weight})),this._keys.forEach((n=>{n.weight/=e}))}get(n){return this._keyMap[n]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}const ke={useExtendedSearch:!1,getFn:function(n,e){let l=[],t=!1;const i=(n,e,r)=>{if(z(n))if(e[r]){const o=n[e[r]];if(!z(o))return;if(r===e.length-1&&($(o)||L(o)||B(o)))l.push(function(n){return null==n?"":function(n){if("string"==typeof n)return n;let e=n+"";return"0"==e&&1/n==-1/0?"-0":e}(n)}(o));else if(P(o)){t=!0;for(let n=0,l=o.length;nn.score===e.score?n.idx{this._keysMap[n.id]=e}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,$(this.docs[0])?this.docs.forEach(((n,e)=>{this._addString(n,e)})):this.docs.forEach(((n,e)=>{this._addObject(n,e)})),this.norm.clear())}add(n){const e=this.size();$(n)?this._addString(n,e):this._addObject(n,e)}removeAt(n){this.records.splice(n,1);for(let e=n,l=this.size();e{let i=this.getFn(n,e.path);if(z(i))if(P(i)){let n=[];const e=[{nestedArrIndex:-1,value:i}];for(;e.length;){const{nestedArrIndex:l,value:t}=e.pop();if(z(t))if($(t)&&!N(t)){let e={v:t,i:l,n:this.norm.get(t)};n.push(e)}else P(t)&&t.forEach(((n,l)=>{e.push({nestedArrIndex:l,value:n})}))}l.$[t]=n}else if(!N(i)){let n={v:i,n:this.norm.get(i)};l.$[t]=n}})),this.records.push(l)}toJSON(){return{keys:this.keys,records:this.records}}}const Ee=32;class Te{constructor(n,{location:e=xe.location,threshold:l=xe.threshold,distance:t=xe.distance,includeMatches:i=xe.includeMatches,findAllMatches:r=xe.findAllMatches,minMatchCharLength:o=xe.minMatchCharLength,isCaseSensitive:u=xe.isCaseSensitive,ignoreLocation:a=xe.ignoreLocation}={}){if(this.options={location:e,threshold:l,distance:t,includeMatches:i,findAllMatches:r,minMatchCharLength:o,isCaseSensitive:u,ignoreLocation:a},this.pattern=u?n:n.toLowerCase(),this.chunks=[],!this.pattern.length)return;const s=(n,e)=>{this.chunks.push({pattern:n,alphabet:J(n),startIndex:e})},c=this.pattern.length;if(c>Ee){let n=0;const e=c%Ee,l=c-e;for(;n{const{isMatch:d,score:g,indices:m}=V(n,e,p,{location:t+f,distance:i,threshold:r,findAllMatches:o,minMatchCharLength:u,includeMatches:l,ignoreLocation:a});d&&(h=!0),c+=g,d&&m&&(s=[...s,...m])}));let p={isMatch:h,score:h?c/this.chunks.length:1};return h&&l&&(p.indices=s),p}}class Oe{constructor(n){this.pattern=n}static isMultiMatch(n){return Y(n,this.multiRegex)}static isSingleMatch(n){return Y(n,this.singleRegex)}search(){}}class Ae extends Oe{constructor(n,{location:e=xe.location,threshold:l=xe.threshold,distance:t=xe.distance,includeMatches:i=xe.includeMatches,findAllMatches:r=xe.findAllMatches,minMatchCharLength:o=xe.minMatchCharLength,isCaseSensitive:u=xe.isCaseSensitive,ignoreLocation:a=xe.ignoreLocation}={}){super(n),this._bitapSearch=new Te(n,{location:e,threshold:l,distance:t,includeMatches:i,findAllMatches:r,minMatchCharLength:o,isCaseSensitive:u,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(n){return this._bitapSearch.searchIn(n)}}class je extends Oe{constructor(n){super(n)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(n){let e,l=0;const t=[],i=this.pattern.length;for(;(e=n.indexOf(this.pattern,l))>-1;)l=e+i,t.push([e,l-1]);const r=!!t.length;return{isMatch:r,score:r?0:1,indices:t}}}const De=[class extends Oe{constructor(n){super(n)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(n){const e=n===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},je,class extends Oe{constructor(n){super(n)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(n){const e=n.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends Oe{constructor(n){super(n)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(n){const e=!n.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,n.length-1]}}},class extends Oe{constructor(n){super(n)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(n){const e=!n.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,n.length-1]}}},class extends Oe{constructor(n){super(n)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(n){const e=n.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[n.length-this.pattern.length,n.length-1]}}},class extends Oe{constructor(n){super(n)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(n){const e=-1===n.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,n.length-1]}}},Ae],Ie=De.length,Me=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,Pe=new Set([Ae.type,je.type]);class $e{constructor(n,{isCaseSensitive:e=xe.isCaseSensitive,includeMatches:l=xe.includeMatches,minMatchCharLength:t=xe.minMatchCharLength,ignoreLocation:i=xe.ignoreLocation,findAllMatches:r=xe.findAllMatches,location:o=xe.location,threshold:u=xe.threshold,distance:a=xe.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:l,minMatchCharLength:t,findAllMatches:r,ignoreLocation:i,location:o,threshold:u,distance:a},this.pattern=e?n:n.toLowerCase(),this.query=function(n,e={}){return n.split("|").map((n=>{let l=n.trim().split(Me).filter((n=>n&&!!n.trim())),t=[];for(let n=0,i=l.length;n!(!n[Be]&&!n[Re]),He=n=>({[Be]:Object.keys(n).map((e=>({[e]:n[e]})))});class We{constructor(n,e={},l){this.options=I(I({},xe),e),this._keyStore=new Fe(this.options.keys),this.setCollection(n,l)}setCollection(n,e){if(this._docs=n,e&&!(e instanceof Se))throw new Error("Incorrect 'index' type");this._myIndex=e||q(this.options.keys,this._docs,{getFn:this.options.getFn})}add(n){z(n)&&(this._docs.push(n),this._myIndex.add(n))}remove(n=(()=>!1)){const e=[];for(let l=0,t=this._docs.length;l{let l=1;n.matches.forEach((({key:n,norm:t,score:i})=>{const r=n?n.weight:null;l*=Math.pow(0===i&&r?Number.EPSILON:i,(r||1)*(e?1:t))})),n.score=l}))}(u,{ignoreFieldNorm:o}),i&&u.sort(r),L(e)&&e>-1&&(u=u.slice(0,e)),function(n,e,{includeMatches:l=xe.includeMatches,includeScore:t=xe.includeScore}={}){const i=[];return l&&i.push(X),t&&i.push(nn),n.map((n=>{const{idx:l}=n,t={item:e[l],refIndex:l};return i.length&&i.forEach((e=>{e(n,t)})),t}))}(u,this._docs,{includeMatches:l,includeScore:t})}_searchStringList(n){const e=Q(n,this.options),{records:l}=this._myIndex,t=[];return l.forEach((({v:n,i:l,n:i})=>{if(!z(n))return;const{isMatch:r,score:o,indices:u}=e.searchIn(n);r&&t.push({item:n,idx:l,matches:[{score:o,value:n,norm:i,indices:u}]})})),t}_searchLogical(n){const e=Z(n,this.options),l=(n,e,t)=>{if(!n.children){const{keyId:l,searcher:i}=n,r=this._findMatches({key:this._keyStore.get(l),value:this._myIndex.getValueForItemAtKeyId(e,l),searcher:i});return r&&r.length?[{idx:t,item:e,matches:r}]:[]}switch(n.operator){case Be:{const i=[];for(let r=0,o=n.children.length;r{if(z(n)){let o=l(e,n,r);o.length&&(t[r]||(t[r]={idx:r,item:n,matches:[]},i.push(t[r])),o.forEach((({matches:n})=>{t[r].matches.push(...n)})))}})),i}_searchObjectList(n){const e=Q(n,this.options),{keys:l,records:t}=this._myIndex,i=[];return t.forEach((({$:n,i:t})=>{if(!z(n))return;let r=[];l.forEach(((l,t)=>{r.push(...this._findMatches({key:l,value:n[t],searcher:e}))})),r.length&&i.push({idx:t,item:n,matches:r})})),i}_findMatches({key:n,value:e,searcher:l}){if(!z(e))return[];let t=[];if(P(e))e.forEach((({v:e,i:i,n:r})=>{if(!z(e))return;const{isMatch:o,score:u,indices:a}=l.searchIn(e);o&&t.push({score:u,key:n,value:e,idx:i,norm:r,indices:a})}));else{const{v:i,n:r}=e,{isMatch:o,score:u,indices:a}=l.searchIn(i);o&&t.push({score:u,key:n,value:i,norm:r,indices:a})}return t}}We.version="6.4.6",We.createIndex=q,We.parseIndex=function(n,{getFn:e=xe.getFn}={}){const{keys:l,records:t}=n,i=new Se({getFn:e});return i.setKeys(l),i.setIndexRecords(t),i},We.config=xe,We.parseQuery=Z,function(...n){Le.push(...n)}($e);var Ge=We,qe=en(['\n \n "],['\n \n "]),Ke=en(['\n \n ',"
\n \n ","\n \n \n \n "],['\n
\n ',"
\n \n ","\n \n \n \n "]),Ve=en(['\n
\n \n <'," user="," width=40/>\n <",' alignItems="center" marginLeft="5px">Suggested\n \n '],['\n \n \n <'," user="," width=40/>\n <",' alignItems="center" marginLeft="5px">Suggested\n \n ']),Je="hyECQHwSo7fgr2MVfPyakvayPeixxsaAWVtZ-vbaiSc.TXIp8MnCtrnW6n2MrYquWPcc-DTmZzMBmc2yaGv9gIU",Ye=function(n){function e(){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?n:e}(this,n.call(this));return l.eventListeners={},l.state={results:[]},l.follows={},l.debouncedIndexAndSearch=un.a.debounce((function(){l.fuse=new Ge(Object.values(l.follows),{keys:["name"],includeScore:!0,includeMatches:!0,threshold:.3}),l.search()}),200),le.getDefault().then((function(n){l.key=n,un.a.getPublicState().user().auth(n),l.getFollowsFn((function(){return l.debouncedIndexAndSearch()}))})),l}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(e,n),e.prototype.onInput=function(){this.search()},e.prototype.close=function(){this.base.querySelector("input").value="",this.setState({results:[],query:""})},e.prototype.getFollowsFn=function(n,e){var l=this,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=function(e,t,i){l.follows[e]?(l.follows[e].followDistance>t&&(l.follows[e].followDistance=t),l.follows[e].followers.add(i)):(l.follows[e]={key:e,followDistance:t,followers:new Set([i])},un.a.getPublicState().user(e).get("profile").get("name").on((function(t){l.follows[e].name=t,n(e,l.follows[e])}))),n(e,l.follows[e])};return r(e=e||this.key.pub,i-1),un.a.getPublicState().user(e).get("follow").map().once((function(o,u){o&&(l.hasFollows=!0,r(u,i,e),i1)return this.props["on-select"]({key:l[1]});null}if(e&&this.fuse){var t=this.fuse.search(e).slice(0,5);if(t.length){var i=function e(l){"Escape"===l.key&&(document.removeEventListener("keyup",e),n.close())};document.removeEventListener("keyup",i),document.addEventListener("keyup",i)}this.setState({results:t,query:e})}else this.setState({results:[],query:e})},e.prototype.onClick=function(n,e){this.close();var l=this.props.onSelect||window.onIrisSearchSelect;l&&(n.preventDefault(),n.stopPropagation(),l(e))},e.prototype.render=function(){var n=this;return An(qe,(function(e){return n.onSubmit(e)}),this.props["inner-class"]||"",(function(){return n.onInput()}),Yn,this.offsetLeft||"",this.state.results.map((function(e){var l=e.item,t="";return 1===l.followDistance&&(t="Following"),2===l.followDistance&&(t=1===l.followers.size&&n.follows[[].concat(l.followers)[0]]&&n.follows[[].concat(l.followers)[0]].name?"Followed by "+n.follows[[].concat(l.followers)[0]].name:"Followed by "+l.followers.size+" users you follow"),An(Ke,l.key,(function(e){return n.onClick(e,l)}),ne,l.key,Yn,l.name||"",t)})),this.state.query&&!this.hasFollows?An(Ve,(function(e){return n.onClick(e,{key:Je})}),Je,ne,Je,Jn):"")},e}(Sn.Component);!un.a.isNode&&En(Ye,"iris-search",["on-select","inner-class"]);e.a={VERSION:Cn.a,Collection:on,SignedMessage:bn,Contact:yn,Attribute:pn,Key:dn,Channel:xn,util:un.a,components:{Identicon:ne,TextNode:oe,ImageNode:de,CopyButton:ve,FollowButton:_e,Search:Ye}}},"5IsQ":function(n){function e(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function t(n){if(a===setTimeout)return setTimeout(n,0);if((a===e||!a)&&setTimeout)return a=setTimeout,setTimeout(n,0);try{return a(n,0)}catch(e){try{return a.call(null,n,0)}catch(e){return a.call(this,n,0)}}}function i(){f&&h&&(f=!1,h.length?p=h.concat(p):d=-1,p.length&&r())}function r(){if(!f){var n=t(i);f=!0;for(var e=p.length;e;){for(h=p,p=[];++d1)for(var l=1;lSMS verified so others can find you.",give_your_profile_link_to_someone:"give your profile link to someone",if_other_person_doesnt_see_message:"If the other person doesn't see your message, you can give them your invite link through some other channel:",type_a_message:"Type a message",beware_of_sharing_invite_link_publicly:"Beware of sharing your invite link publicly: you might get spammed with message requests. Publicly share your profile link instead.",your_invite_links:"Your Invite Links",create_new_invite_link:"Create new invite link",copy_your_invite_link:"Copy your invite link",have_someones_invite_link:"Have someone's invite link?",paste_their_invite_link:"Paste their invite link",give_your_invite_link:"Give your invite link:",or_scan_qr_code:"Or scan their QR code",or_show_qr_code:"Or show your QR code",new_group:"New group",group_name:"Group name",create:"Create",settings:"Settings",profile:"Profile",your_name:"Your name",profile_photo:"Profile photo",add_profile_photo:"Add profile photo",profile_photo_too_big:"Profile photo too big: maximum size is 200KB",cancel:"Cancel",use_photo:"Use photo",remove_photo:"Remove photo",about_text:"About text",account:"Account",save_backup_of_privkey_first:"Save a backup of your private key first!",otherwise_cant_log_in_again:"Otherwise you can't log in back to this account.",log_out:"Log out",private_key:"Private key",download_private_key:"Download private key",private_key_warning:"DANGER! Private key gives access to your account. Don't give or show your private key to anyone else!",copy_private_key:"Copy private key",show_privkey_qr:"Show private key QR code",hide_privkey_qr:"Hide private key QR code",privkey_storage_recommendation:"The safest place to store your private key is a password manager.",language:"Language",peers:"Peers",peer_url:"Peer url",public:"Public",remove:"Remove",enable:"Enable",disable:"Disable",from:"from",add:"Add",public_peer_info:"Public peers are automatically discoverable by people you chat with (and others).",peers_info:"Peers are GunDB nodes that you can easily spin up. Upcoming: direct connection with friends over WebRTC.",webrtc_connection_options:"WebRTC connection options",webrtc_info:"WebRTC is used for video calls. If you're behind a NAT, you might need to specify a TURN server here, which will relay your video traffic.",restore_defaults:"Restore defaults",about:"About",application_security_warning:"The application is an unaudited proof-of-concept implementation, so don't use it for security critical purposes.",donate:"Donate",donate_info:"Donations help keep the project going and are very much appreciated. You can donate via Open Collective or bitcoin",logout_confirmation_info:"You cannot log in again unless you have saved a copy of your private key.",participants:"Participants",admin:"admin",add_participant:"Add participant",new_participants_profile_link:"New participant's profile link",invite_links:"Invite links",copy:"Copy",follows_you:"Follows you",follow:"Follow",unfollow:"Unfollow",following:"Following",followers:"Followers",add_friend:"Add friend",send_message:"Send message",copy_link:"Copy link",show_qr_code:"Show QR code",chat_settings:"Chat Settings",nicknames:"Nicknames",nickname:"Nickname",video_call:"Video call",online:"online",last_active:"last active",their_nickname_for_you:"Their nickname for you",notifications:"Notifications",all_messages:"All messages",mentions_only:"Mentions only",nothing:"Nothing",delete_chat:"Delete chat",block_user:"Block user",typing:"Typing...",attachment:"attachment",note_to_self:"Note to Self",today:"today",yesterday:"yesterday",copied:"Copied",answer:"answer",reject:"reject",incoming_call:"Incoming call",call_rejected:"Call rejected",close:"Close",call_ended:"Call ended",calling:"Calling",on_call_with:"On call with",delete:"Delete",confirm_delete_msg:"Delete message?",search:"Search",feed_up:"Newer",feed_top:"Newest",feed_down:"Older",feed_bottom:"Oldest",email_optional:"Email (optional)",delivery:"Delivery",address:"Address",confirmation:"Confirmation",payment_method:"Payment method",summary:"Summary",download_webtorrent:"Download Webtorrent Desktop to host your media files and paste their magnet links below.",visibility:"Your posts, replies and likes are only shown to your followers and their network.",iris_is_like:"Iris is like the social networking apps we're used to, but better.",this_is_a_prototype_store:"This is a prototype store that shows items from merchants in your social network. Orders are sent via Iris private message. Your own store can be found here.",add_to_cart:"Add to cart",web_push_subscriptions:"Web push subscriptions",enable_public_peer_discovery:"Enable public peer discovery",there_is_a_bug:"There's a bug that may cause high CPU and bandwidth usage when connecting to more than 1 peer. Working on it!",set_up_your_own_peer:"Set up your own peer",also:"Also",or_small:"or",automatically_load_webtorrent_attachments:"Automatically load webtorrent attachments",autoplay_webtorrent_videos:"Autoplay webtorrent videos",home:"Home",media:"Media",messages:"Messages",market:"Market",contacts:"Contacts",explorer:"Explorer",no_contacts_in_list:"You don't have any contacts in your list."},es:{language_name:"Español",whats_your_name:"¿Cuál es tu nombre?",new_user_go:"Ir",already_have_an_account:"¿Ya tienes una cuenta?",back:"volver",scan_private_key_qr_code:"Escanee el código QR de clave privada",paste_private_key:"Pegar una clave privada",get_notified_new_messages:"Recibe notificaciones de nuevos mensajes",turn_on_desktop_notifications:"Activa las notificaciones de escritorio",new_chat:"Nueva conversación",if_other_person_doesnt_see_message:"Si la otra persona no ve su mensaje, puede darle su enlace de chat a través de otro canal:",type_a_message:"Escribe un mensaje",beware_of_sharing_invite_link_publicly:"Tenga cuidado de compartir su enlace de chat públicamente: puede recibir spam con solicitudes de mensajes. Comparta públicamente su enlace de perfil en su lugar.",your_invite_links:"Tus enlaces de chat",create_new_invite_link:"Crear nuevo enlace de chat",copy_your_invite_link:"Copia tu enlace de chat",have_someones_invite_link:"¿Tienes el enlace de chat de alguien?",paste_their_invite_link:"Pegue su enlace de chat",give_your_invite_link:"Pasa tu enlace de chat:",or_scan_qr_code:"O escanee su código QR",or_show_qr_code:"O muestra tu código QR",new_group:"Nuevo grupo",group_name:"Nombre del grupo",create:"Crear",settings:"Configuraciones",profile:"Perfil",your_name:"Tu nombre",profile_photo:"Foto de perfil",add_profile_photo:"Añadir foto de perfil",profile_photo_too_big:"Foto de perfil demasiado grande: el tamaño máximo es de 200 KB",cancel:"Cancelar",use_photo:"Usar foto",remove_photo:"Eliminar foto",about_text:"Sobre el texto",account:"Cuenta",save_backup_of_privkey_first:"¡tenga una copia de seguridad de su clave privada primero!",otherwise_cant_log_in_again:"De lo contrario, no puede volver a iniciar sesión en esta cuenta.",log_out:"Cerrar sesión",private_key:"Llave privada",download_private_key:"Descargar clave privada",private_key_warning:" ¡PELIGRO! La clave privada se utiliza para iniciar sesión en su cuenta . ¡No le dé ni muestre su clave privada a nadie más!",copy_private_key:"Copiar clave privada",show_privkey_qr:"Mostrar código QR de clave privada",hide_privkey_qr:"Ocultar código QR de clave privada",privkey_storage_recommendation:"El lugar más seguro para almacenar su clave privada es un administrador de contraseñas .",language:"Idioma",peers:"Pares",peer_url:"Par url",public:"Público",remove:"Remove",enable:"Eliminar",disable:"Inhabilitar",from:"desde",add:"Añadir",public_peer_info:"Las personas con las que chatea (y otras) pueden detectar automáticamente a los pares públicos .",peers_info:"Los pares son nodos GunDB que puede ​​girar fácilmente . Próximamente: conexión directa con amigos a través de WebRTC.",webrtc_connection_options:"Opciones de conexión de WebRTC",webrtc_info:"WebRTC se utiliza para videollamadas. Si está detrás de un NAT, es posible que deba especificar un servidor TURN aquí, que retransmitirá su tráfico de video. El ancho de banda no es gratuito, por lo que no hay servidores TURN gratuitos disponibles.",restore_defaults:"Restaurar los valores predeterminados",about:"Acerca de",application_security_warning:"La aplicación es una implementación de prueba de concepto no auditada, así que no la use con fines críticos de seguridad.",donate:"Donar",donate_info:" Donaciones ayudan a mantener el proyecto en marcha y son muy apreciados. Puede donar a través de Open Collective o bitcoin ",logout_confirmation_info:" no puede iniciar sesión de nuevo a menos que haya guardado una copia de su clave privada.",participants:"Participantes",admin:"administración",add_participant:"Añada participante",new_participants_profile_link:"Enlace de chat del nuevo participante",add_friend:"Añadir amigo",send_message:"Enviar mensaje",copy_link:"Copiar link",chat_settings:"Configuraciones de chat",nicknames:"Apodos",nickname:"Apodo",video_call:"Videollamada",online:"en línea",last_active:"Último Activo",their_nickname_for_you:"Su apodo para ti",notifications:"Notificaciones",all_messages:"Todos los mensajes",mentions_only:"Solo menciones",nothing:"Nada",delete_chat:"Eliminar chat",block_user:"Bloquear usuario",typing:"Escribiendo...",attachment:"adjunto archivo",note_to_self:"Nota personal",today:"hoy",yesterday:"ayer",copied:"Copiado",answer:"responder",reject:"rechazar",incoming_call:"Llamada entrante",call_rejected:"Llamada rechazada",close:"Cerrar",call_ended:"Llamada finalizada",calling:"Llamando",on_call_with:"En comunicación con",no_contacts_in_list:"No tienes ningún contacto en tu lista."},"pt-BR":{language_name:"Português Brasil",whats_your_name:"Qual o seu nome?",new_user_go:"Vai",already_have_an_account:"Já tem uma conta?",back:"Voltar",scan_private_key_qr_code:"Ler QR code da chave privada",paste_private_key:"Cole a chave privada",get_notified_new_messages:"Ser notificado de novas mensagens",turn_on_desktop_notifications:"Ativar notificações no desktop",new_chat:"Nova conversa",if_other_person_doesnt_see_message:"Se a outra pessoa não vê sua mensagens, você pode passar pra ela o seu link do bate-papo através de outro canal.",type_a_message:"Digite uma mensagem",beware_of_sharing_invite_link_publicly:"Cuidado ao compartilhar seu link de bate-papo publicamente: você pode receber spam com solicitações de mensagem. Ao invés disso, compartilhe publicamente seu Link do perfil.",your_invite_links:"Seus links de bate-papo",create_new_invite_link:"Criar um novo link de bate-papo",copy_your_invite_link:"Copiar seu link de bate-papo",have_someones_invite_link:"Tem o link de bate-papo de alguém?",paste_their_invite_link:"Cole o link da outra pessoa",give_your_invite_link:"Forneça seu link de bate-papo:",or_scan_qr_code:"Ou leia o QR code",or_show_qr_code:"Ou mostre seu QR code",new_group:"Novo grupo",group_name:"Nome do grupo",create:"Criar",profile:"Perfil",settings:"Configurações",your_name:"Seu nome",profile_photo:"Foto do perfil",add_profile_photo:"Adicionar foto do perfil",profile_photo_too_big:"Foto do perfil muito grande: tamanho máximo é 200KB",cancel:"Cancelar",use_photo:"Usar foto",remove_photo:"Remover foto",about_text:"Texto sobre",account:"Conta",save_backup_of_privkey_first:"Faça backup da sua chave privada primeiro!",otherwise_cant_log_in_again:"Caso contrário você não vai conseguir acessar sua conta novamente.",log_out:"Sair",private_key:"Chave privada",download_private_key:"Baixar chave privada",private_key_warning:"PERIGO! A chave privada é usada para acessar sua conta. Não compartilhe ou mostre sua chave privada para ninguém!",copy_private_key:"Copiar chave privada",show_privkey_qr:"Mostrar QR code da chave privada",hide_privkey_qr:"Esconder QR code da chave privada",privkey_storage_recommendation:"O lugar mais seguro para armazenar sua chave privada é um gerenciardor de senhas.",language:"Idioma",peers:"Peers",peer_url:"Peer url",public:"Público",remove:"Remover",enable:"Ativar",disable:"Desativar",from:"de",add:"Adicionar",public_peer_info:"Peers públicos são encontrados automaticamente por pessoas que você bate-papo (e outros).",peers_info:"Peers são nós do GunDB que você pode facilmente trocar. Novidade pela frente: conexão direta com seus amigos utilizando WebRTC.",webrtc_connection_options:"Opções de conexão WebRTC",webrtc_info:"WebRTC é utilizado para chamadas de vídeo. Se você está atrás de um NAT, você precisa especificar aqui um servidor TURN que vai retransmitir o tráfego de vídeo. A largura de banda não é gratuita, portanto, não há servidores TURN gratuitos disponíveis.",restore_defaults:"Restaurar padrões",about:"Sobre",application_security_warning:"O aplicativo é uma implementação de prova de conceito não auditada; portanto, não o use para fins críticos de segurança.",donate:"Doe",donate_info:"Ajude a manter o projeto com doações, nós agrademos muito. Você pode doar por Open Collective ou bitcoin",logout_confirmation_info:"Você não pode logar novamente ao menos que você tenha salvado uma cópia da sua chave primária.",participants:"participantes",admin:"administração",add_participant:"Adicionar participante",new_participants_profile_link:"Link do bate-papo do novo participante.",add_friend:"Adicionar amigo",send_message:"Enviar mensagem",copy_link:"Copiar link",chat_settings:"Configurações do bate-papo",nicknames:"Apelidos",nickname:"Apelido",video_call:"Chamada de vídeo",online:"online",last_active:"última atividade",their_nickname_for_you:"Apelido deles para você",notifications:"Notificações",all_messages:"Todas mensagens",mentions_only:"Somente menções",nothing:"Nada",delete_chat:"Apagar bate-papo",block_user:"Bloquear usuário",typing:"Digitando...",attachment:"anexo",note_to_self:"Nota pessoal",today:"hoje",yesterday:"ontem",copied:"Copiado",answer:"resposta",reject:"rejeitado",incoming_call:"Chamada entrante",call_rejected:"Chamada rejeitada",close:"Fechar",call_ended:"Chamada encerrada",calling:"Chamando",on_call_with:"Em chamada com",no_contacts_in_list:"Você não tem nenhum contato na sua lista."},ru:{language_name:"Русский",whats_your_name:"Как вас зовут?",new_user_go:"Поехали!",already_have_an_account:"Уже есть аккаунт?",back:"Назад",scan_private_key_qr_code:"Отсканируйте QR-код приватного ключа",paste_private_key:"Вставьте приватный ключ",get_notified_new_messages:"Узнавайте о новых сообщениях",turn_on_desktop_notifications:"Включить уведомления на рабочем столе",new_chat:"Новый чат",if_other_person_doesnt_see_message:"Если собеседник не видит сообщение, вы можете дать вашу ссылку на чат через другой канал связи:",type_a_message:"Напишите сообщение",beware_of_sharing_invite_link_publicly:"Аккуратно распространяйте вашу ссылку на чат: вас могут заспамить сообщениями. Лучше расшарьте ссылку на ваш профиль.",your_invite_links:"Ссылки на ваши чаты",create_new_invite_link:"Создать новую ссылку на чат",copy_your_invite_link:"Скопировать вашу ссылку на чат",have_someones_invite_link:"Есть чья-то ссылка на чат?",paste_their_invite_link:"Вставьте свою ссылку на чат",give_your_invite_link:"Дайте свою ссылку на чат:",or_scan_qr_code:"Или отсканируйте их QR-код",or_show_qr_code:"Или покажите свой QR-код",new_group:"Новая группа",group_name:"Название группы",create:"Создать",settings:"Настройки",profile:"Профиль",your_name:"Ваше имя",profile_photo:"Аватар",add_profile_photo:"Добавить аватар",profile_photo_too_big:"Аватар слишком большой: макс. размер 200KB",cancel:"Отмена",use_photo:"Использовать фото",remove_photo:"Убрать фото",about_text:"Описание",account:"Аккаунт",save_backup_of_privkey_first:"Сначала сохраните копию приватного ключа!",otherwise_cant_log_in_again:"Иначе вы не сможите войти в аккаунт.",log_out:"Выйти",private_key:"Приватный ключ",download_private_key:"Скачать приватный ключ",private_key_warning:"ОПАСНО! Приватный ключ используется для входа в ваш аккаунт. Никому не показывайте ключ!",copy_private_key:"Скопировать приватный ключ",show_privkey_qr:"Показать QR-код приватного ключа",hide_privkey_qr:"Спрятать QR-код приватного ключа",privkey_storage_recommendation:"Лучшее место для хранения приватного ключа — менеджер паролей.",language:"Язык",peers:"Пиры",peer_url:"Ссылка пира",public:"Публичный",remove:"Убрать",enable:"Включить",disable:"Выключить",from:"от кого",add:"Добавить",public_peer_info:"Публичные пиры автоматически обнаруживаются людьми, с которыми вы общаетесь (и другими).",peers_info:"Пиры — это ноды GunDB, вы можете легко развернуть ноду у себя. Скоро будет возможно общаться с друзьями напрямую через WebRTC.",webrtc_connection_options:"Опции подключения через WebRTC",webrtc_info:"WebRTC используется для видеозвонков. Если вы используете NAT, возможно вам понадобится TURN-сервер, который будет обслуживать ваш видео-трафик. Передача данных стоит денег, поэтому бесплатных TURN-серверов мы не предоставляем.",restore_defaults:"Восстановить исходные настройки",about:"Про Iris",application_security_warning:"Приложение является экспериментальным, поэтому не используйте его для критичных процессов и не храните в нем секретные данные.",donate:"Задонатить",donate_info:"Донаты помогают проекту развиваться и приветствуются. Вы можете задонатить через via Open Collective или прислать BTC",logout_confirmation_info:"Вы не сможете заново войти пока не скопируете приватный ключ.",participants:"участники",admin:"админ",add_participant:"Добавить участника",new_participants_profile_link:"Ссылка на чат для нового участника",add_friend:"Добавить друга",send_message:"Отправить сообщение",copy_link:"Скопировать ссылку",chat_settings:"Настройки чата",nicknames:"Никнеймы",nickname:"Никнейм",video_call:"Видео-звонок",online:"онлайн",last_active:"последняя активность",their_nickname_for_you:"Их никнейм для вас",notifications:"Уведомления",all_messages:"Все сообщения",mentions_only:"Только упоминания меня",nothing:"Ничего",delete_chat:"Удалить чат",block_user:"Заблокировать",typing:"Печатает...",attachment:"вложение",note_to_self:"Заметка для себя",today:"сегодня",yesterday:"вчера",copied:"Скопировано",answer:"ответить",reject:"отклонить",incoming_call:"Входящий звонок",call_rejected:"Звонок отклонен",close:"Закрыть",call_ended:"Звонок завершен",calling:"Звоню",on_call_with:"На звонке с"},de:{language_name:"Deutsch",whats_your_name:"Was ist Ihr Name?",new_user_go:"Auf Gehts",already_have_an_account:"Haben sie schon ein Konto eingerichtet?",back:"zurück",scan_private_key_qr_code:"Scan einen privaten Schlüssel QR code",paste_private_key:"Füge einen privaten Schlüssel ein",get_notified_new_messages:"Werde über neue Nachrichten notifiziert",turn_on_desktop_notifications:"Stelle Desktop Notifikationen ein",new_chat:"Neue Unterhaltung",if_other_person_doesnt_see_message:"Sollte die andere Person die Nachricht nicht sehen, können Sie Ihren Unterhaltung's link über einen anderen Kanal senden:",type_a_message:"Schreiben sie eine Nachricht",beware_of_sharing_invite_link_publicly:"Vorsicht wenn Unterhaltung's links in der Öffentlichkeit geteilt werden: Sie können mit Nachricht Anfragen gespammt werden. Teilen sie lieber ihren Profil link.",your_invite_links:"Ihre Unterhaltung's links",create_new_invite_link:"Machen Sie einen neuen Unterhaltung's link",copy_your_invite_link:"Kopieren Sie ihren Unterhaltung's link",have_someones_invite_link:"Haben Sie einen Unterhaltung's link von jemandem?",paste_their_invite_link:"Fügen Sie den Unterhaltung's link hier ein",give_your_invite_link:"Geben Sie ihren Unterhaltung's link:",or_scan_qr_code:"Oder scannen Sie den QR code",or_show_qr_code:"Oder zeigen Sie ihren QR code",new_group:"Neue Gruppe",group_name:"Gruppen Name",create:"Erstellen",settings:"Einstellungen",profile:"Profile",your_name:"Ihr Name",profile_photo:"Profil Bild",add_profile_photo:"Profil Bild hinzufügen",profile_photo_too_big:"Profil Bild zu gross: maximale Grösse ist 200KB",cancel:"Abbrechen",use_photo:"Bild benutzen",remove_photo:"Bild entfernen",about_text:"'Über uns' Text",account:"Konto",save_backup_of_privkey_first:"Speichern Sie ein Backup für Ihren privaten Schlüssel!",otherwise_cant_log_in_again:"Sonst können Sie nicht mehr in Ihr Konto einloggen.",log_out:"Ausloggen",private_key:"Privater Schlüssel",download_private_key:"Download Privaten Schlüssel",private_key_warning:"Warnung! Der private Schlüssel ist benötigt um in Ihr Konto einzuloggen. Geben Sie niemals Ihren privaten Schlüssel an Andere weiter!",copy_private_key:"Kopieren Sie den privaten Schlüssel",show_privkey_qr:"Zeigen Sie den privaten Schlüssel QR code",hide_privkey_qr:"Blended Sie den privaten Schlüssel QR code aus",privkey_storage_recommendation:"Der sicherste Platz für Ihren privaten Schlüssel ist ein Passwor Manager.",language:"Sprache",peers:"Peers",peer_url:"Peer url",public:"Öffentlich",remove:"Entfernen",enable:"Einstellen",disable:"Ausstellen",from:"Von",add:"Hinzufügen",public_peer_info:"Öffentliche peers sind automatisch auffindbar für Leute in Ihren Unterhaltungen (und ausserhalb).",peers_info:"Peers sind GunDB nodes die Sie einfach hochfahren können. Kommend: Direkte Verbindung zu Freunden über WebRTC.",webrtc_connection_options:"WebRTC Verbindungsoptionen",webrtc_info:"WebRTC ist für Videoanrufe benutzt. Wenn Sie hinter einem NAT sind, müssen Sie wahrscheinlich einen TURN server hier definieren, der dann Ihr Video Verkehr weiterleitet. Bandwidth ist nicht kostenfrei, darum gibt es nicht viele kostenfreie TURN servers.",restore_defaults:"Einstellungen zurückstellen",about:"Über uns",application_security_warning:"Diese App ist ein ungeprüftes 'proof-of-concept' Implementation, also nicht für Sicherheit nötige Dinge benutzten.",donate:"Spenden",donate_info:"Spenden helfen dem Projekt weiter zu gehen und werden dankbar angenommen. Sie können via Open Collective oder bitcoin spenden.",logout_confirmation_info:"Sie können nicht wieder einloggen, ausser Sie haben saved eine Kopie ihres privaten Schlüssels gespeichert.",participants:"Teilnehmer",admin:"admin",add_participant:"Teilnehmer hinzufügen",new_participants_profile_link:"Neuer Teilnehmer's Unterhaltung's link",add_friend:"Freund hinzufügen",send_message:"Nachricht senden",copy_link:"Link kopieren",chat_settings:"Unterhaltunseinstellungen",nicknames:"Nicknames",nickname:"Nickname",video_call:"Video Anruf",online:"online",last_active:"Letztmals aktiv",their_nickname_for_you:"Ihr Nickname für die Anderen",notifications:"Notifikationen",all_messages:"Alle Nachrichten",mentions_only:"Nur Erwähnungen",nothing:"Nichts",delete_chat:"Unterhaltung löschen",block_user:"Benutzer blockieren",typing:"Schreibt...",attachment:"Anhang",note_to_self:"Notiz zu Selbst",today:"heute",yesterday:"gestern",copied:"Kopiert",answer:"antworten",reject:"ablehnen",incoming_call:"Einkommender Anruf",call_rejected:"Anruf abgelehnt",close:"Schliessen",call_ended:"Anruf beendet",calling:"Rufe an",on_call_with:"Anruf mit"},fi:{language_name:"Suomi",whats_your_name:"Mikä on nimesi?",new_user_go:"Aloita",already_have_an_account:"Onko sinulla jo tili?",back:"Takaisin",scan_private_key_qr_code:"Skannaa salaisen avaimen QR-koodi",paste_private_key:"Liitä salainen avain",get_notified_new_messages:"Tilaa ilmoitukset uusista viesteistä",turn_on_desktop_notifications:"Ota käyttöön työpöytäilmoitukset",new_chat:"Uusi keskustelu",if_other_person_doesnt_see_message:"Jos toinen käyttäjä ei näe viestiäsi, voit antaa hänelle sinun kutsulinkkisi jotain muuta kautta:",type_a_message:"Kirjoita viesti",beware_of_sharing_invite_link_publicly:"Jos jaat kutsulinkkisi julkisesti: saatat saada viestipyyntö-spämmiä. Sen sijaan voit turvallisesti jakaa profiililinkkisi julkisesti.",your_invite_links:"Kutsulinkkisi",create_new_invite_link:"Luo uusi kutsulinkki",copy_your_invite_link:"Kopioi kutsulinkkisi",have_someones_invite_link:"Saitko toisen käyttäjän kutsulinkin?",paste_their_invite_link:"Liitä kutsulinkki",give_your_invite_link:"Anna oma kutsulinkkisi:",or_scan_qr_code:"Tai skannaa toisen QR-koodi",or_show_qr_code:"Tai näytä oma QR-koodisi",new_group:"Uusi ryhmä",group_name:"Ryhmän nimi",create:"Luo",settings:"Asetukset",profile:"Profiili",your_name:"Nimesi",profile_photo:"Profiilikuva",add_profile_photo:"Lisää profiilikuva",profile_photo_too_big:"Profiilikuva on liian suuri: maksimikoko on 200KB",cancel:"Peruuta",use_photo:"Käytä kuvaa",remove_photo:"Poista kuva",about_text:"Kuvausteksti",account:"Tili",save_backup_of_privkey_first:"Tallenna ensin varmuuskopio salaisesta avaimestasi!",otherwise_cant_log_in_again:"Muuten et voi kirjautua takaisin tälle tilille.",log_out:"Kirjaudu ulos",private_key:"Salainen avain",download_private_key:"Lataa salainen avain tiedostona",private_key_warning:"VAROITUS! Salainen avain antaa pääsyn tilillesi. Älä anna tai näytä salaista avaintasi kenellekään.",copy_private_key:"Kopioi salainen avain",show_privkey_qr:"Näytä salaisen avaimen QR-koodi",hide_privkey_qr:"Piilota salaisen avaimen QR-koodi",privkey_storage_recommendation:"Turvallisin säilytyspaikka salaiselle avaimellesi on salasananhallintaohjelma (password manager).",language:"Kieli",peers:"Yhteyspisteet (peers)",peer_url:"Peer url",public:"Julkinen",remove:"Poista",enable:"Käytä",disable:"Poista käytöstä",from:"lähde",add:"Lisää",public_peer_info:"Julkiset yhteyspisteet näkyvät automaattisesti käyttäjille, joiden kanssa keskustelet (ja muille).",peers_info:"Yhteyspisteet ovat GunDB-solmuja, joiden pystyttämisestä tietoa täällä. Tulossa: suorat yhteydet kavereiden kesken WebRTC:llä.",webrtc_connection_options:"WebRTC-yhteysasetukset",webrtc_info:"WebRTC:tä käytetään videopuheluihin. Jos olet NATin takana, sinun tarvitsee ehkä määrittää tähän TURN-palvelin, joka välittää videoliikenteesi. Tiedonsiirto ei ole ilmaista, joten ilmaisia TURN-palvelimia ei ole saatavilla.",restore_defaults:"Palauta oletusarvot",about:"Tietoa",application_security_warning:"Sovellus on auditoimaton konseptitoteutus, joten älä käytä sitä tarkoituksiin joissa turvallisuus on oleellisen tärkeää.",donate:"Lahjoita",donate_info:"Lahjoitukset pitävät projektin pystyssä ja arvostamme niitä suuresti. Voit lahjoittaa Open Collectiven kautta tai bitcoinilla",logout_confirmation_info:"Et voi kirjautua takaisin sisään ellet ole tallentanut varmuuskopiota salaisesta avaimestasi.",participants:"osallistujat",admin:"ylläpitäjä",add_participant:"Lisää osallistuja",new_participants_profile_link:"Uuden osallistujan kutsulinkki",add_friend:"Lisää kaveriksi",send_message:"Lähetä viesti",copy_link:"Kopioi linkki",chat_settings:"Keskustelun asetukset",nicknames:"Lempinimet",nickname:"Lempinimi",video_call:"Videopuhelu",online:"paikalla",last_active:"viimeksi aktiivisena",their_nickname_for_you:"Hänen lempinimensä sinulle",notifications:"Ilmoitukset",all_messages:"Kaikki viestit",mentions_only:"Vain maininnat",nothing:"Ei mitään",delete_chat:"Poista keskustelu",block_user:"Estä käyttäjä",typing:"Kirjoittaa...",attachment:"liite",note_to_self:"Muistiinpanot",today:"tänään",yesterday:"eilen",copied:"Kopioitu",answer:"vastaa",reject:"hylkää",incoming_call:"Saapuva puhelu",call_rejected:"Puhelu hylätty",close:"Sulje",call_ended:"Puhelu päättyi",calling:"Soitetaan",on_call_with:"Puhelu käyttäjälle",total:"Yhteensä",home:"Koti",messages:"Viestit",market:"Tori",contacts:"Yhteystiedot",explorer:"Hakemisto",no_followers_yet:"Jaa linkkisi, niin muut voivat seurata sinua:",next:"Seuraava",shopping_carts:"Ostoskorit",shopping_cart:"Ostoskori",cart:"Kori",delivery:"Yhteystiedot",payment:"Maksutapa",payment_method:"Maksutapa",confirm:"Yhteenveto",address:"Osoite",email_optional:"Sähköposti (valinnainen)",name:"Nimi",confirm_button:"Vahvista",summary:"Yhteenveto",following:"Seurataan",followers:"Seuraajat",likes:"Tykkäykset",replies:"Vastaukset",posts:"Julkaisut",type_a_message_or_paste_a_magnet_link:"Kirjoita viesti tai liitä magnet-linkki",download_webtorrent:"Lataa Webtorrent Desktop mediatiedostojen jakamiseen ja liitä niiden magnet-linkki alle.",alternatively:"Vaihtoehtoisesti",alternatively_get_sms_verified:"Vaihtoehtoisesti tunnistaudu tekstiviestillä",visibility:"Julkaisut, vastaukset ja tykkäykset näkyvät vain seuraajillesi ja heidän verkostoillensa.",no_followers_yet_info:"Julkaisut, vastaukset ja tykkäykset näkyvät vain seuraajillesi ja heidän verkostoillensa.",iris_is_like:"Iiris on kuin tuntemamme sosiaalisen median sovellukset, mutta parempi.",copy:"Kopioi",this_is_a_prototype_store:"Tori on prototyyppi, ja se näyttää myynnissä olevat tavarat sosiaalisessa verkostossasi. Iriksessä tuotteet tilataan yksityisviesteillä. Tästä pääset omaan kauppaasi.",add_to_cart:"Lisää koriin",switch_account:"Vaihda tiliä",web_push_subscriptions:"Selaimen ilmoitustilaukset (web push subscriptions)",enable_public_peer_discovery:"Salli julkisten yhteyspisteiden hakeminen",maximum_number_of_peer_connections:"Maksimimäärä yhteyspisteitä",there_is_a_bug:"Bugin vuoksi useampaan kuin yhteen yhteyspisteeseen yhdistäminen voi kuormittaa tietokoneen suoritinta ja viedä verkkokaistaa. Korjaaminen on työn alla!",set_up_your_own_peer:"Pystytä oma yhteyspisteesi",also:"Myös",or_small:"tai",automatically_load_webtorrent_attachments:"Lataa webtorrentin liitteet automaattisesti",autoplay_webtorrent_videos:"Käynnistä webtorrentin videot automaattisesti",search:"Etsi"},it:{language_name:"Italian",whats_your_name:"Quale è il tuo nome??",new_user_go:"Inizia",already_have_an_account:"Hai già un account?",back:"Indietro",scan_private_key_qr_code:"Scansione codice QR di chiave privata",paste_private_key:"Incolla una chiave privata",get_notified_new_messages:"Ricevi una notifica per i nuovi messaggi",turn_on_desktop_notifications:"Attiva le notifiche desktop",new_chat:"Nuova chat",if_other_person_doesnt_see_message:"Se l'altra persona non vede il tuo messaggio, puoi dargli il tuo invite link attraverso qualche altro canale:",type_a_message:"Scrivi un messaggio",beware_of_sharing_invite_link_publicly:"Fai attenzione a condividere pubblicamente il tuo invite link: potresti ricevere spam con richieste di messaggi. Condividi pubblicamente invece il tuo link di profilo.",your_invite_links:"I tuoi invite link",create_new_invite_link:"Crea nuovo invite link",copy_your_invite_link:"Copia il tuo invite link",have_someones_invite_link:"Hai il invite link di quakcuno?",paste_their_invite_link:"Incolla il loro invite link",give_your_invite_link:"Dai il tuo invite link:",or_scan_qr_code:"O scansiona il loro codice QR",or_show_qr_code:"O mostra il tuo codice QR",new_group:"Nuovo gruppo",group_name:"Nome gruppo",create:"Crea",profile:"Profilo",settings:"Impostazioni",your_name:"Il tuo nome",profile_photo:"Foto di profilo",add_profile_photo:"Aggiungi foto di profilo",profile_photo_too_big:"Foto di profilo troppo grande: dimensione massima di 200KB",cancel:"Cancella",use_photo:"Usa foto",remove_photo:"Rimuovi foto",about_text:"Riguardo a te",account:"Account",save_backup_of_privkey_first:"Salva prima un backup della tua chiave privata!",otherwise_cant_log_in_again:"Altrimenti non potrai riautenticarti a questo account.",log_out:"Scollegati",private_key:"Chiave privata",download_private_key:"Scarica chiave privata",private_key_warning:"PERICOLO! La chiave privata è usata per autenticarti al tuo account. Non dare o mostrare la tua chiave privata a nessun altro!",copy_private_key:"Copia chiave privata",show_privkey_qr:"Mostra il codice QR della chiave privata",hide_privkey_qr:"Nascondi il codice QR della chaive privata",privkey_storage_recommendation:"Il posto più sicuro dove archiviare la chiave privata è un gestore password.",language:"Lingua",peers:"Peer",peer_url:"Peer url",public:"Pubblico",remove:"Rimuovi",enable:"Abilita",disable:"Disabilita",from:"da",add:"Aggiungi",public_peer_info:"Peer pubblici sono automaticamente rilevabili dalle persone con cui scrivi (e altri).",peers_info:"I peer sono nodi GunDB che puoi facilmente montare. In arrivo: connessione diretta con gli amici attraverso WebRTC.",webrtc_connection_options:"Opzioni di connessione WebRTC",webrtc_info:"WebRTC è usato per le video chiamate. Se sei dietro ad una NAT, potresti aver bisogno di specificare un server TURN qui, che inoltrerà il tuo traffico video. La banda di trasferimento non è gratuita, non ci sono server TURN gratuiti in giro.",restore_defaults:"Ripristina le impostazioni predifinite",about:"A proposito",application_security_warning:"L'applicazione è un'implementazione di prova del concetto non certificata, quindi non utilizzarla per fini che richiedano un uso sicuro in situazioni critiche.",donate:"Dona",donate_info:"Le donazioni aiutano a mantenere il progetto e sono molto apprezzate. Puoi donare attraverso Open Collective o bitcoin",logout_confirmation_info:"Non puoi autenticarti a meno che tu non abbia salvato una copia della tua chiave privata.",participants:"partecipanti",admin:"admin",add_participant:"Aggiungi partecipante",new_participants_profile_link:"Nuovi invite link del participante",add_friend:"Aggiungi amico",send_message:"Invia messaggio",copy_link:"Copia link",chat_settings:"Impostazioni della Chat",nicknames:"Soprannome",nickname:"Soprannome",video_call:"Chiamata video",online:"online",last_active:"ultimo attivo",their_nickname_for_you:"Il loro soprannome per te",notifications:"Notifiche",all_messages:"Tutti i messaggi",mentions_only:"Solo menzioni",nothing:"Nulla",delete_chat:"Cancella chat",block_user:"Blocca utente",typing:"Sta scrivendo...",attachment:"allegato",note_to_self:"Nota a te stesso",today:"oggi",yesterday:"ieri",copied:"Copiato",answer:"rispondere",reject:"rifiutare",incoming_call:"Chiamata in arrivo",call_rejected:"Chiamata respinta",close:"Chiudere",call_ended:"Chiamata conclusa",calling:"Chiamata in corso",on_call_with:"In chiamata con",no_contacts_in_list:"Non hai contatti nella tua lista."},"zh-cn":{language_name:"中文",whats_your_name:"你叫什么名字?",new_user_go:"开始",already_have_an_account:"已有账户?",back:"后退",scan_private_key_qr_code:"请扫描私钥的二维码",paste_private_key:"请复制你的私钥",get_notified_new_messages:"接收新消息的提醒",turn_on_desktop_notifications:"打开桌面消息提醒",new_chat:"新的聊天",if_other_person_doesnt_see_message:"如果其他人无法看到你的消息,你可以把 你的 聊天链接在其他频道发送给他们:",type_a_message:"请输入消息",beware_of_sharing_invite_link_publicly:"请注意,公开分享你的聊天链接将有可能让你收到垃圾消息申请。推荐分享你的账号链接。",your_invite_links:"你的聊天链接",create_new_invite_link:"创建新的聊天链接",copy_your_invite_link:"复制你的聊天链接",have_someones_invite_link:"有其他人的聊天链接?",paste_their_invite_link:"请将聊天链接粘贴在此",give_your_invite_link:"你的聊天链接:",or_scan_qr_code:"或扫描他们的二维码",or_show_qr_code:"或展示你的二维码",new_group:"新的聊天群组",group_name:"群组名称",create:"创建",profile:"个人资料",settings:"设定",your_name:"你的名字",profile_photo:"头像",add_profile_photo:"添加头像",profile_photo_too_big:"头像超过最大尺寸(200KB)",cancel:"取消",use_photo:"选取照片",remove_photo:"移除照片",about_text:"简介",account:"账号",save_backup_of_privkey_first:"首先请妥善保管你的私钥!",otherwise_cant_log_in_again:"否则你将无法登录这个账号。",log_out:"登出",private_key:"私钥",download_private_key:"下载私钥",private_key_warning:"危险! 私钥可以用来 登录你的账号。 不要将你的私钥交给或展示给任何其他人!",copy_private_key:"复制私钥",show_privkey_qr:"显示私钥二维码",hide_privkey_qr:"隐藏私钥二维码",privkey_storage_recommendation:"密码管理器是保存私钥最安全的方式。",language:"语言",peers:"节点",peer_url:"节点地址",public:"公开",remove:"移除",enable:"启用",disable:"禁用",from:"来自于",add:"添加",public_peer_info:"公开 节点可被自动发现",peers_info:"GunDB 的节点可以帮助加速连接速度 。即将支持:通过 WebRTC 直接连接聊天对象。",webrtc_connection_options:"WebRTC 连接选项",webrtc_info:"本应用的视频聊天使用了 WebRTC。 如果你在一个内部网络中,你可能需要手动指定一个用作转发视频流量的 Turn server。网络带宽是收费的所以我们不提供免费的 Turn server。",restore_defaults:"恢复默认值",about:"关于",application_security_warning:"本应用的实现暂时还未进行代码审计,仍处在概念验证阶段,所以请大家不要在任何安全等级高的场景下使用。",donate:"Donate",donate_info:"捐款可以帮助我们继续更好地开发。 你可以通过 Open Collective比特币(Bitcoin)来完成捐款,非常感谢你的帮助。比特币地址",logout_confirmation_info:"如果你不保存好你的私钥,你将无法再次登录。 ",participants:"参与者",admin:"管理员",add_participant:"添加参与者",new_participants_profile_link:"新加参与者的聊天链接",add_friend:"添加好友",send_message:"发送消息",copy_link:"复制链接",chat_settings:"聊天设置",nicknames:"所有昵称",nickname:"昵称",video_call:"视频通话",online:"在线",last_active:"上次在线",their_nickname_for_you:"其他人给你起的昵称",notifications:"通知",all_messages:"所有消息",mentions_only:"只提到",nothing:"无",delete_chat:"删除聊天",block_user:"屏蔽用户",typing:"正在输入...",attachment:"福建",note_to_self:"个人备忘录",today:"今天",yesterday:"昨天",copied:"已复制",answer:"接通",reject:"拒绝",incoming_call:"来电",call_rejected:"通话被拒绝",close:"关闭",call_ended:"通话结束",calling:"拨号中",on_call_with:"通话对象:"},ko:{language_name:"한글",whats_your_name:"이름?",new_user_go:"진행",already_have_an_account:"기존 계정이 있나요?",back:"뒤로",scan_private_key_qr_code:"프라이빗 키 스캔 QR 코드",paste_private_key:"프라이빗 키 붙여넣기",get_notified_new_messages:"신규 메시지 통보",turn_on_desktop_notifications:"데스크탑 통보 시작",new_chat:"신규 채팅",public_messages:"공개 메시지",follow_someone_info:"제안 그들의 네트워크의 내용을 보기위하여 펄로우 하기:",creator_of_this_distribution:"본Iris 배분을 위한 저작권자",no_followers_yet:"약력 링크를 소개하여 타인들이 펄로우 하게 함:",no_followers_yet_info:"당신의 게시, 응답, 좋아요는 당신의 펄로워 및 네트워크에 보여짐.",alternatively:"대안으로,",alternatively_get_sms_verified:"대안으로, 타인이 당신을 찾을 수 있도록 하기 SMS 확인 .",give_your_profile_link_to_someone:"당신의 약력 링크를 타인에게 전달",if_other_person_doesnt_see_message:"타인이 당신의 메시지를 보지 못하면 다른 채널의 링크로 초대 할 수 있음 당신:",type_a_message:"메시지 입력",beware_of_sharing_invite_link_publicly:"경고 초대링크를 공개적으로 사용하는 것은: 스팸을 받을수 있으니 공개 할 시는 당신의 profile link를 사용하세요.",your_invite_links:"당신의 초대 링크",create_new_invite_link:"새 초대링크 생성",copy_your_invite_link:"초대링크 복사",have_someones_invite_link:"타인의 초대링크 보유?",paste_their_invite_link:"그들의 초대링크 붙이기",give_your_invite_link:"당신의 초대링크 제공:",or_scan_qr_code:"아니면 그들의 QR코드 스캔",or_show_qr_code:"아니면 당신의 QR코드 공개",new_group:"신규 그룹",group_name:"그룹 이름",create:"생성",settings:"환경",profile:"약력",your_name:"성명",profile_photo:"약력 사진",add_profile_photo:"약력 사진 추가",profile_photo_too_big:"약력 사진 크기 초과: 최대 사이즈 200KB",cancel:"취소",use_photo:"사진 사용",remove_photo:"사진 제거",about_text:" 원문",account:"계정",save_backup_of_privkey_first:"먼저 당신의 프라이빗 키 백업 저장!",otherwise_cant_log_in_again:"아니면 이 계정으로 다시 로그인 할 수 없음.",log_out:"로그 아웃",private_key:"프라이빗 키",download_private_key:"프라이빗 키 내려받기",private_key_warning:"위험! 프라이빗키 는 당신 계정을 사용할 수 있음. 타인에게 당신의 프라이빗 키를 보여주거나 공유하지 말것!",copy_private_key:"프라이빗 키 복사",show_privkey_qr:"프라이빗 키 QR 코드 공개",hide_privkey_qr:"프라이빗 코 QR 코드 숭기기",privkey_storage_recommendation:"안전하게 당신의 프라이빗 키를 저장하는 장소는 패스워드 관리자.",language:"언어",peers:"친구",peer_url:"친구 url",public:"공개",remove:"제거",enable:"동작",disable:"비동작",from:"전송자",add:"추가",public_peer_info:"공개 친구는 자동적으로 당신이 채팅하고 있는(타인들도)사람들로부터 보여질 수 있음.",peers_info:"친구는 GunDB 노드이며 쉽게 공유. 향후 계획: 친구들과 직접 접속 WebRTC.",webrtc_connection_options:"WebRTC 접속 옵션",webrtc_info:"WebRTC 는 화상 통신에 사용. 당신이 NAT에 속해 있으면, TURN 서버를 여기에 추가 해야 할 수도 있음, 화상 트래픽 전송. 통신량은 무료가 아니라 무료 TURN 서버를 찾기가 쉽지 않음.",restore_defaults:"조건 원상회복",about:"About",application_security_warning:"본 응용은 검증되지 않은 아이디어 차원의 도구이어서 비밀을 요하는 중요한 목적으로 사용 할 수 없음.",donate:"기부",donate_info:"기부 는 본 프로젝트를 진행 하는데 도움이 되고 감사 드립니다. 기부 하려면 여기서 하면 됩니다 Open Collective or bitcoin",logout_confirmation_info:"당신은 로그인 다시 할 수 없음만약 당신이 프라이빗 키를 저장해 두자 않았으ㅁ.",participants:"참여자",admin:"관리자",add_participant:"참여자 추가",new_participants_profile_link:"신규 참여자 약력 링크",invite_links:"링크 초대",copy:"복사",follows_you:"당신 펄로우",follow:"펄로우",unfollow:"펄로우 취소",following:"펄러우 진행중",followers:"펄로워들",add_friend:"친구 추가",send_message:"메시지 전송",copy_link:"링크 복사",show_qr_code:"QR코드 공유",chat_settings:"채팅 환경",nicknames:"닉네임들",nickname:"닉네임",video_call:"화상채팅",online:"온라인",last_active:"마지막 활동",their_nickname_for_you:"당신을 위한 그들의 닉네임",notifications:"통보",all_messages:"모든 메시지",mentions_only:"단지 멘션",nothing:"존대하지 않음",delete_chat:"책 삭제",block_user:"사용자 거부",typing:"타이핑 중...",attachment:"첨부",note_to_self:"자신에게 메모",today:"오늘",yesterday:"어제",copied:"복사완료",answer:"대답",reject:"거부",incoming_call:"전화 수신",call_rejected:"응답 거부",close:"닫기",call_ended:"통화 종료",calling:"통화",on_call_with:"통화 상대",delete:"삭제",confirm_delete_msg:"메시지 삭제?",search:"검색",feed_up:"신규",feed_top:"최신",feed_down:"과거",feed_bottom:"최대 과거",email_optional:"이메일 (옵션)",delivery:"전달",address:"주소",confirmation:"확인",payment_method:"지불 방법",summary:"요약",download_webtorrent:"다운로드 Webtorrent Desktop 미디어 파일을호스트 하고 붙여 넣기 위하여 마그넷링크 아래 제공.",visibility:"당신의 게시물, 답변과 좋아요는 당신의 펄로워들과 네트워크에만 보여짐.",iris_is_like:"Iris는 소셜네트워킹 앱이지만 더 향상된 기능임.",this_is_a_prototype_store:"ㅇ본 화면은 시범 상점이며 당신의 소셜네트워크의 판매점을 보여 줌. 주문은 Iris 개인 메시지로 함. 당신의 상점은 여기에 볼 수 있음. 여기.",add_to_cart:"카트에 추가",web_push_subscriptions:"웹 푸시 구독",enable_public_peer_discovery:"공개 친구 찾기 동작",there_is_a_bug:"1명 이상의 친구와 접속하면 CPU와 통신량이 급증하는 문제가 있어 수정 하고 있음!",set_up_your_own_peer:"당신의 자체 친구 설정",also:"그리고",or_small:"또는",automatically_load_webtorrent_attachments:"자동적으로 webtorrent 첨부 파일 로드",autoplay_webtorrent_videos:"자동으로 webtorrent 비디오 시작",no_contacts_in_list:"더 이상 친구 리스트가 없음."}}},"5WRv":function(n,e,l){var t=l("iNmH"),i=l("Qatm"),r=l("Zhxd"),o=l("kluZ");n.exports=function(n){return t(n)||i(n)||r(n)||o()},n.exports.default=n.exports,n.exports.__esModule=!0},"5rjA":function(n,e,l){"use strict";var t=l("hosL"),i=l("kpue"),r=l("jMw0"),o=l("24Gu"),u=l("CGOa"),a=l("3QNJ"),s=l("qIEf"),c=l.n(s),h=l("lBHI");let p,f,d,g,m,v,b,y=n=>n;const _=new u.a({stripPrefix:!1,stripTrailingSlash:!1}),w=200,F=Object(i.b)(p||(p=y``));e.a=class extends t.Component{constructor(){super(),this.i=0}componentDidMount(){c()(this.base).find("a").click((n=>{const e=c()(n.target).attr("href");e&&0===e.indexOf("https://iris.to/")&&(n.preventDefault(),window.location=e.replace("https://iris.to/",""))}));const n=this.getSeenStatus().seen;n.seen||n.delivered||h.a.local.get("channels").get(this.props.chatId).get("theirLastActiveTime").on(((n,e,l,t)=>{this.getSeenStatus().delivered&&(this.setState({}),t.off())})),n.seen||h.a.local.get("channels").get(this.props.chatId).get("theirMsgsLastSeenTime").on(((n,e,l,t)=>{this.getSeenStatus().seen&&(this.setState({}),t.off())}))}getSeenStatus(){const n=r.a.channels[this.props.chatId],e="object"==typeof this.props.time?this.props.time:new Date(this.props.time);return{seen:n&&n.theirMsgsLastSeenDate>=e,delivered:n&&n.activity&&n.activity.lastActive&&new Date(n.activity.lastActive)>=e}}onNameClick(n){c()(".new-msg").val(`${c()(".new-msg").val().trim()} @${n} `),c()(".new-msg").focus()}openAttachmentsGallery(n){const e=this.state.msg||this.props;c()("#floating-day-separator").remove();const l=c()("
").attr("id","attachment-gallery").addClass("gallery").addClass("attachment-preview");let t,r,o,u;c()("body").append(l),l.fadeIn(w),e.attachments&&e.attachments.forEach((a=>{if(0===a.type.indexOf("image")&&a.data)if(u=i.a.setImgSrc(c()(""),a.data),1===e.attachments.length){l.css({"justify-content":"center"});let e=c()(n.target);t=e.offset().left,r=e.offset().top-c()(window).scrollTop(),o=e.width();let i=u.clone().attr("id","transition-img").data("originalDimensions",{left:t,top:r,width:o});i.css({position:"fixed",left:t,top:r,width:o,"max-width":"none","max-height":"none"}),u.css({visibility:"hidden","align-self":"center"}),l.append(u),c()("body").append(i);let a=u.offset();i.animate({width:u.width(),left:a.left,top:a.top},{duration:w,complete:()=>{u.css({visibility:"visible"}),i.hide()}})}else l.css({"justify-content":""}),l.append(u)})),l.one("click",(()=>{this.closeAttachmentsGallery()})),c()(document).off("keyup").on("keyup",(n=>{"Escape"===n.key&&(c()(document).off("keyup"),c()("#attachment-gallery:visible").length&&this.closeAttachmentsGallery())}))}closeAttachmentsGallery(){let n=c()("#transition-img");if(n.length){let e=n.data("originalDimensions");n.show(),c()("#attachment-gallery img").remove(),n.animate(e,{duration:w,complete:()=>{n.remove()}})}c()("#attachment-gallery").fadeOut({duration:w,complete:()=>c()("#attachment-gallery").remove()});const e=window.location.pathname.replace("/profile/","").replace("/chat/","");e&&r.a.channels[e]&&(r.a.channels[e].attachments=null),"activeElement"in document&&document.activeElement.blur()}render(){let n,e=this.props.name||this.state.name;const l=r.a.channels[this.props.chatId];if(l&&l.uuid&&!this.props.selfAuthored){const t=l.participantProfiles[this.props.from];e=t&&t.name,n=t&&t.color}const t=this.props.text&&2===this.props.text.length&&i.a.isEmoji(this.props.text),u=document.createElement("p");u.innerText=this.props.text;const s=t?u.innerHTML:i.a.highlightEmoji(u.innerHTML),c=_.link(s),h="object"==typeof this.props.time?this.props.time:new Date(this.props.time),p=this.getSeenStatus(),w=p.seen?"seen":"",k=p.delivered?"delivered":"",x=this.props.selfAuthored?"our":"their";return Object(i.b)(f||(f=y` -
-
-
- ${0} -
- ${0} - ${0} -
- ${0} -
-
- ${0} - ${0} -
-
-
-
- `),x,w,k,e&&this.props.showName&&Object(i.b)(d||(d=y`${0}`),(()=>this.onNameClick(e)),n,e),this.props.torrentId?Object(i.b)(g||(g=y` - <${0} torrentId=${0}/> - `),o.a,this.props.torrentId):"",this.props.attachments&&this.props.attachments.map((n=>Object(i.b)(m||(m=y`
`),n.data,(n=>{this.openAttachmentsGallery(n)})))),t&&"emoji-only",{__html:c},this.props.replyingTo?Object(i.b)(v||(v=y` - - `),encodeURIComponent(this.props.replyingTo)):"",this.props.hash?Object(i.b)(b||(b=y`${0}`),encodeURIComponent(this.props.hash),i.a.getRelativeTimeText(h)):a.a.util.formatTime(h),this.props.selfAuthored&&F)}}},"8VmE":function(n){function e(){return n.exports=e=Object.assign||function(n){for(var e=1;e-1}function p(n,e,l){for(var t=-1,i=null==n?0:n.length;++t-1;);return l}function M(n,e){for(var l=n.length;l--&&_(e,n[l],0)>-1;);return l}function P(n,e){for(var l=n.length,t=0;l--;)n[l]===e&&++t;return t}function $(n){return"\\"+Qe[n]}function L(n){return Ge.test(n)}function B(n){var e=-1,l=Array(n.size);return n.forEach((function(n,t){l[++e]=[t,n]})),l}function R(n,e){return function(l){return n(e(l))}}function z(n,e){for(var l=-1,t=n.length,i=0,r=[];++l"']/g,Rn=RegExp(Ln.source),zn=RegExp(Bn.source),Nn=/<%-([\s\S]+?)%>/g,Un=/<%([\s\S]+?)%>/g,Hn=/<%=([\s\S]+?)%>/g,Wn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gn=/^\w*$/,qn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kn=/[\\^$.*+?()[\]{}|]/g,Vn=RegExp(Kn.source),Jn=/^\s+/,Yn=/\s/,Qn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zn=/\{\n\/\* \[wrapped with (.+)\] \*/,Xn=/,? & /,ne=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,te=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ie=/\w*$/,re=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ue=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,se=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,he=/($^)/,pe=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\u2700-\\u27bf",ge="a-z\\xdf-\\xf6\\xf8-\\xff",me="A-Z\\xc0-\\xd6\\xd8-\\xde",ve="\\ufe0e\\ufe0f",be="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ye="['’]",_e="[\\ud800-\\udfff]",we="["+be+"]",Fe="["+fe+"]",ke="\\d+",xe="[\\u2700-\\u27bf]",Ce="["+ge+"]",Se="[^\\ud800-\\udfff"+be+ke+de+ge+me+"]",Ee="\\ud83c[\\udffb-\\udfff]",Te="[^\\ud800-\\udfff]",Oe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ae="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+me+"]",De="(?:"+Ce+"|"+Se+")",Ie="(?:"+je+"|"+Se+")",Me="(?:['’](?:d|ll|m|re|s|t|ve))?",Pe="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Fe+"|"+Ee+")"+"?",Le="[\\ufe0e\\ufe0f]?",Be=Le+$e+("(?:\\u200d(?:"+[Te,Oe,Ae].join("|")+")"+Le+$e+")*"),Re="(?:"+[xe,Oe,Ae].join("|")+")"+Be,ze="(?:"+[Te+Fe+"?",Fe,Oe,Ae,_e].join("|")+")",Ne=RegExp(ye,"g"),Ue=RegExp(Fe,"g"),He=RegExp(Ee+"(?="+Ee+")|"+ze+Be,"g"),We=RegExp([je+"?"+Ce+"+"+Me+"(?="+[we,je,"$"].join("|")+")",Ie+"+"+Pe+"(?="+[we,je+De,"$"].join("|")+")",je+"?"+De+"+"+Me,je+"+"+Pe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,Re].join("|"),"g"),Ge=RegExp("[\\u200d\\ud800-\\udfff"+fe+ve+"]"),qe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ke=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ve=-1,Je={};Je[Cn]=Je[Sn]=Je[En]=Je[Tn]=Je[On]=Je[An]=Je[jn]=Je[Dn]=Je[In]=!0,Je[un]=Je[an]=Je[kn]=Je[sn]=Je[xn]=Je[cn]=Je[hn]=Je[pn]=Je[dn]=Je[gn]=Je[mn]=Je[bn]=Je[yn]=Je[_n]=Je[Fn]=!1;var Ye={};Ye[un]=Ye[an]=Ye[kn]=Ye[xn]=Ye[sn]=Ye[cn]=Ye[Cn]=Ye[Sn]=Ye[En]=Ye[Tn]=Ye[On]=Ye[dn]=Ye[gn]=Ye[mn]=Ye[bn]=Ye[yn]=Ye[_n]=Ye[wn]=Ye[An]=Ye[jn]=Ye[Dn]=Ye[In]=!0,Ye[hn]=Ye[pn]=Ye[Fn]=!1;var Qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ze=parseFloat,Xe=parseInt,nl="object"==typeof n&&n&&n.Object===Object&&n,el="object"==typeof self&&self&&self.Object===Object&&self,ll=nl||el||Function("return this")(),tl=e&&!e.nodeType&&e,il=tl&&"object"==typeof t&&t&&!t.nodeType&&t,rl=il&&il.exports===tl,ol=rl&&nl.process,ul=function(){try{var n=il&&il.require&&il.require("util").types;return n||ol&&ol.binding&&ol.binding("util")}catch(n){}}(),al=ul&&ul.isArrayBuffer,sl=ul&&ul.isDate,cl=ul&&ul.isMap,hl=ul&&ul.isRegExp,pl=ul&&ul.isSet,fl=ul&&ul.isTypedArray,dl=x("length"),gl=C({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ml=C({"&":"&","<":"<",">":">",'"':""","'":"'"}),vl=C({"&":"&","<":"<",">":">",""":'"',"'":"'"}),bl=function n(e){function l(n){if(Bi(n)&&!Ou(n)&&!(n instanceof C)){if(n instanceof i)return n;if(Er.call(n,"__wrapped__"))return ci(n)}return new i(n)}function t(){}function i(n,e){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=q}function C(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=rn,this.__views__=[]}function Yn(n){var e=-1,l=null==n?0:n.length;for(this.clear();++e=e?n:e)),n}function Oe(n,e,l,t,i,r){var o,a=1&e,s=2&e,c=4&e;if(l&&(o=i?l(n,t,i,r):l(n)),o!==q)return o;if(!Li(n))return n;var h=Ou(n);if(h){if(o=function(n){var e=n.length,l=new n.constructor(e);e&&"string"==typeof n[0]&&Er.call(n,"index")&&(l.index=n.index,l.input=n.input);return l}(n),!a)return ct(n,o)}else{var p=Bo(n),f=p==pn||p==fn;if(ju(n))return it(n,a);if(p==mn||p==un||f&&!i){if(o=s||f?{}:qt(n),!a)return s?function(n,e){return ht(n,Lo(n),e)}(n,function(n,e){return n&&ht(e,Xi(e),n)}(o,n)):function(n,e){return ht(n,$o(n),e)}(n,Ce(o,n))}else{if(!Ye[p])return i?n:{};o=function(n,e,l){var t=n.constructor;switch(e){case kn:return rt(n);case sn:case cn:return new t(+n);case xn:return function(n,e){var l=e?rt(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.byteLength)}(n,l);case Cn:case Sn:case En:case Tn:case On:case An:case jn:case Dn:case In:return ot(n,l);case dn:return new t;case gn:case _n:return new t(n);case bn:return function(n){var e=new n.constructor(n.source,ie.exec(n));return e.lastIndex=n.lastIndex,e}(n);case yn:return new t;case wn:return i=n,ko?yr(ko.call(i)):{}}var i}(n,p,a)}}r||(r=new me);var d=r.get(n);if(d)return d;r.set(n,o),Pu(n)?n.forEach((function(t){o.add(Oe(t,e,l,t,n,r))})):Iu(n)&&n.forEach((function(t,i){o.set(i,Oe(t,e,l,i,n,r))}));var g=h?q:(c?s?Bt:Lt:s?Xi:Zi)(n);return u(g||n,(function(t,i){g&&(t=n[i=t]),Fe(o,i,Oe(t,e,l,i,n,r))})),o}function Ae(n,e,l){var t=l.length;if(null==n)return!t;for(n=yr(n);t--;){var i=l[t],r=n[i];if(r===q&&!(i in n)||!(0,e[i])(r))return!1}return!0}function je(n,e,l){if("function"!=typeof n)throw new Fr(K);return No((function(){n.apply(q,l)}),e)}function De(n,e,l,t){var i=-1,r=h,o=!0,u=n.length,a=[],s=e.length;if(!u)return a;l&&(e=f(e,A(l))),t?(r=p,o=!1):e.length>=200&&(r=D,o=!1,e=new ge(e));n:for(;++i0&&l(u)?e>1?$e(u,e-1,l,t,i):d(i,u):t||(i[i.length]=u)}return i}function Le(n,e){return n&&To(n,e,Zi)}function Be(n,e){return n&&Oo(n,e,Zi)}function Re(n,e){return c(e,(function(e){return Mi(n[e])}))}function ze(n,e){for(var l=0,t=(e=lt(e,n)).length;null!=n&&le}function nl(n,e){return null!=n&&Er.call(n,e)}function el(n,e){return null!=n&&e in yr(n)}function tl(n,e,l){for(var t=l?p:h,i=n[0].length,r=n.length,o=r,u=dr(r),a=1/0,s=[];o--;){var c=n[o];o&&e&&(c=f(c,A(e))),a=to(c.length,a),u[o]=!l&&(e||i>=120&&c.length>=120)?new ge(o&&c):q}c=n[0];var d=-1,g=u[0];n:for(;++d=u?a:a*("desc"==l[t]?-1:1)}return n.index-e.index}(n,e,l)}))}function Al(n,e,l){for(var t=-1,i=e.length,r={};++t-1;)u!==n&&Nr.call(u,a,1),Nr.call(n,a,1);return n}function Dl(n,e){for(var l=n?e.length:0,t=l-1;l--;){var i=e[l];if(l==t||i!==r){var r=i;Vt(i)?Nr.call(n,i,1):Vl(n,i)}}return n}function Il(n,e){return n+Yr(oo()*(e-n+1))}function Ml(n,e){var l="";if(!n||e<1||e>ln)return l;do{e%2&&(l+=n),(e=Yr(e/2))&&(n+=n)}while(e);return l}function Pl(n,e){return Uo(ei(n,e,or),n+"")}function $l(n){return be(er(n))}function Ll(n,e){var l=er(n);return ui(l,Te(e,0,l.length))}function Bl(n,e,l,t){if(!Li(n))return n;for(var i=-1,r=(e=lt(e,n)).length,o=r-1,u=n;null!=u&&++ii?0:i+e),(l=l>i?i:l)<0&&(l+=i),i=e>l?0:l-e>>>0,e>>>=0;for(var r=dr(i);++t>>1,o=n[r];null!==o&&!Ui(o)&&(l?o<=e:o=200){var s=e?null:Mo(n);if(s)return N(s);o=!1,i=D,a=new ge}else a=e?[]:u;n:for(;++t=t?n:zl(n,e,l)}function it(n,e){if(e)return n.slice();var l=n.length,t=Lr?Lr(l):new n.constructor(l);return n.copy(t),t}function rt(n){var e=new n.constructor(n.byteLength);return new $r(e).set(new $r(n)),e}function ot(n,e){var l=e?rt(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.length)}function ut(n,e){if(n!==e){var l=n!==q,t=null===n,i=n==n,r=Ui(n),o=e!==q,u=null===e,a=e==e,s=Ui(e);if(!u&&!s&&!r&&n>e||r&&o&&a&&!u&&!s||t&&o&&a||!l&&a||!i)return 1;if(!t&&!r&&!s&&n1?l[i-1]:q,o=i>2?l[2]:q;for(r=n.length>3&&"function"==typeof r?(i--,r):q,o&&Jt(l[0],l[1],o)&&(r=i<3?q:r,i=1),e=yr(e);++t-1?i[r?e[o]:o]:q}}function _t(n){return $t((function(e){var l=e.length,t=l,r=i.prototype.thru;for(n&&e.reverse();t--;){var o=e[t];if("function"!=typeof o)throw new Fr(K);if(r&&!u&&"wrapper"==Rt(o))var u=new i([],!0)}for(t=u?t:l;++t1&&b.reverse(),c&&au))return!1;var s=r.get(n),c=r.get(e);if(s&&c)return s==e&&c==n;var h=-1,p=!0,f=2&l?new ge:q;for(r.set(n,e),r.set(e,n);++h-1&&n%1==0&&n1?"& ":"")+e[t],e=e.join(l>2?", ":" "),n.replace(Qn,"{\n/* [wrapped with "+e+"] */\n")}(t,function(n,e){return u(on,(function(l){var t="_."+l[0];e&l[1]&&!h(n,t)&&n.push(t)})),n.sort()}(function(n){var e=n.match(Zn);return e?e[1].split(Xn):[]}(t),l)))}function oi(n){var e=0,l=0;return function(){var t=io(),i=16-(t-l);if(l=t,i>0){if(++e>=800)return arguments[0]}else e=0;return n.apply(q,arguments)}}function ui(n,e){var l=-1,t=n.length,i=t-1;for(e=e===q?t:e;++l0&&(l=e.apply(this,arguments)),n<=1&&(e=q),l}}function Ei(n,e,l){function t(e){var l=s,t=c;return s=c=q,g=e,p=n.apply(t,l)}function i(n){return g=n,f=No(o,e),m?t(n):p}function r(n){var l=n-d;return d===q||l>=e||l<0||v&&n-g>=h}function o(){var n=mu();if(r(n))return u(n);f=No(o,function(n){var l=e-(n-d);return v?to(l,h-(n-g)):l}(n))}function u(n){return f=q,b&&s?t(n):(s=c=q,p)}function a(){var n=mu(),l=r(n);if(s=arguments,c=this,d=n,l){if(f===q)return i(d);if(v)return Io(f),f=No(o,e),t(d)}return f===q&&(f=No(o,e)),p}var s,c,h,p,f,d,g=0,m=!1,v=!1,b=!0;if("function"!=typeof n)throw new Fr(K);return e=Ki(e)||0,Li(l)&&(m=!!l.leading,h=(v="maxWait"in l)?lo(Ki(l.maxWait)||0,e):h,b="trailing"in l?!!l.trailing:b),a.cancel=function(){f!==q&&Io(f),g=0,s=d=c=f=q},a.flush=function(){return f===q?p:u(mu())},a}function Ti(n,e){if("function"!=typeof n||null!=e&&"function"!=typeof e)throw new Fr(K);var l=function l(){var t=arguments,i=e?e.apply(this,t):t[0],r=l.cache;if(r.has(i))return r.get(i);var o=n.apply(this,t);return l.cache=r.set(i,o)||r,o};return l.cache=new(Ti.Cache||de),l}function Oi(n){if("function"!=typeof n)throw new Fr(K);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function Ai(n,e){return n===e||n!=n&&e!=e}function ji(n){return null!=n&&$i(n.length)&&!Mi(n)}function Di(n){return Bi(n)&&ji(n)}function Ii(n){if(!Bi(n))return!1;var e=Ge(n);return e==hn||"[object DOMException]"==e||"string"==typeof n.message&&"string"==typeof n.name&&!zi(n)}function Mi(n){if(!Li(n))return!1;var e=Ge(n);return e==pn||e==fn||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Pi(n){return"number"==typeof n&&n==Gi(n)}function $i(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=ln}function Li(n){var e=typeof n;return null!=n&&("object"==e||"function"==e)}function Bi(n){return null!=n&&"object"==typeof n}function Ri(n){return"number"==typeof n||Bi(n)&&Ge(n)==gn}function zi(n){if(!Bi(n)||Ge(n)!=mn)return!1;var e=Br(n);if(null===e)return!0;var l=Er.call(e,"constructor")&&e.constructor;return"function"==typeof l&&l instanceof l&&Sr.call(l)==jr}function Ni(n){return"string"==typeof n||!Ou(n)&&Bi(n)&&Ge(n)==_n}function Ui(n){return"symbol"==typeof n||Bi(n)&&Ge(n)==wn}function Hi(n){if(!n)return[];if(ji(n))return Ni(n)?W(n):ct(n);if(Hr&&n[Hr])return function(n){for(var e,l=[];!(e=n.next()).done;)l.push(e.value);return l}(n[Hr]());var e=Bo(n);return(e==dn?B:e==yn?N:er)(n)}function Wi(n){return n?(n=Ki(n))===en||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function Gi(n){var e=Wi(n),l=e%1;return e==e?l?e-l:e:0}function qi(n){return n?Te(Gi(n),0,rn):0}function Ki(n){if("number"==typeof n)return n;if(Ui(n))return tn;if(Li(n)){var e="function"==typeof n.valueOf?n.valueOf():n;n=Li(e)?e+"":e}if("string"!=typeof n)return 0===n?n:+n;n=O(n);var l=oe.test(n);return l||ae.test(n)?Xe(n.slice(2),l?2:8):re.test(n)?tn:+n}function Vi(n){return ht(n,Xi(n))}function Ji(n){return null==n?"":ql(n)}function Yi(n,e,l){var t=null==n?q:ze(n,e);return t===q?l:t}function Qi(n,e){return null!=n&&Gt(n,e,el)}function Zi(n){return ji(n)?ve(n):wl(n)}function Xi(n){return ji(n)?ve(n,!0):Fl(n)}function nr(n,e){if(null==n)return{};var l=f(Bt(n),(function(n){return[n]}));return e=Nt(e),Al(n,l,(function(n,l){return e(n,l[0])}))}function er(n){return null==n?[]:j(n,Zi(n))}function lr(n){return aa(Ji(n).toLowerCase())}function tr(n){return(n=Ji(n))&&n.replace(ce,gl).replace(Ue,"")}function ir(n,e,l){return n=Ji(n),(e=l?q:e)===q?function(n){return qe.test(n)}(n)?function(n){return n.match(We)||[]}(n):function(n){return n.match(ne)||[]}(n):n.match(e)||[]}function rr(n){return function(){return n}}function or(n){return n}function ur(n){return _l("function"==typeof n?n:Oe(n,1))}function ar(n,e,l){var t=Zi(e),i=Re(e,t);null!=l||Li(e)&&(i.length||!t.length)||(l=e,e=n,n=this,i=Re(e,Zi(e)));var r=!(Li(l)&&"chain"in l&&!l.chain),o=Mi(n);return u(i,(function(l){var t=e[l];n[l]=t,o&&(n.prototype[l]=function(){var e=this.__chain__;if(r||e){var l=n(this.__wrapped__),i=l.__actions__=ct(this.__actions__);return i.push({func:t,args:arguments,thisArg:n}),l.__chain__=e,l}return t.apply(n,d([this.value()],arguments))})})),n}function sr(){}function cr(n){return Yt(n)?x(ai(n)):function(n){return function(e){return ze(e,n)}}(n)}function hr(){return[]}function pr(){return!1}var fr,dr=(e=null==e?ll:bl.defaults(ll.Object(),e,bl.pick(ll,Ke))).Array,gr=e.Date,mr=e.Error,vr=e.Function,br=e.Math,yr=e.Object,_r=e.RegExp,wr=e.String,Fr=e.TypeError,kr=dr.prototype,xr=yr.prototype,Cr=e["__core-js_shared__"],Sr=vr.prototype.toString,Er=xr.hasOwnProperty,Tr=0,Or=(fr=/[^.]+$/.exec(Cr&&Cr.keys&&Cr.keys.IE_PROTO||""))?"Symbol(src)_1."+fr:"",Ar=xr.toString,jr=Sr.call(yr),Dr=ll._,Ir=_r("^"+Sr.call(Er).replace(Kn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mr=rl?e.Buffer:q,Pr=e.Symbol,$r=e.Uint8Array,Lr=Mr?Mr.allocUnsafe:q,Br=R(yr.getPrototypeOf,yr),Rr=yr.create,zr=xr.propertyIsEnumerable,Nr=kr.splice,Ur=Pr?Pr.isConcatSpreadable:q,Hr=Pr?Pr.iterator:q,Wr=Pr?Pr.toStringTag:q,Gr=function(){try{var n=Wt(yr,"defineProperty");return n({},"",{}),n}catch(n){}}(),qr=e.clearTimeout!==ll.clearTimeout&&e.clearTimeout,Kr=gr&&gr.now!==ll.Date.now&&gr.now,Vr=e.setTimeout!==ll.setTimeout&&e.setTimeout,Jr=br.ceil,Yr=br.floor,Qr=yr.getOwnPropertySymbols,Zr=Mr?Mr.isBuffer:q,Xr=e.isFinite,no=kr.join,eo=R(yr.keys,yr),lo=br.max,to=br.min,io=gr.now,ro=e.parseInt,oo=br.random,uo=kr.reverse,ao=Wt(e,"DataView"),so=Wt(e,"Map"),co=Wt(e,"Promise"),ho=Wt(e,"Set"),po=Wt(e,"WeakMap"),fo=Wt(yr,"create"),go=po&&new po,mo={},vo=si(ao),bo=si(so),yo=si(co),_o=si(ho),wo=si(po),Fo=Pr?Pr.prototype:q,ko=Fo?Fo.valueOf:q,xo=Fo?Fo.toString:q,Co=function(){function n(){}return function(e){if(!Li(e))return{};if(Rr)return Rr(e);n.prototype=e;var l=new n;return n.prototype=q,l}}();l.templateSettings={escape:Nn,evaluate:Un,interpolate:Hn,variable:"",imports:{_:l}},(l.prototype=t.prototype).constructor=l,(i.prototype=Co(t.prototype)).constructor=i,(C.prototype=Co(t.prototype)).constructor=C,Yn.prototype.clear=function(){this.__data__=fo?fo(null):{},this.size=0},Yn.prototype.delete=function(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e},Yn.prototype.get=function(n){var e=this.__data__;if(fo){var l=e[n];return l===V?q:l}return Er.call(e,n)?e[n]:q},Yn.prototype.has=function(n){var e=this.__data__;return fo?e[n]!==q:Er.call(e,n)},Yn.prototype.set=function(n,e){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=fo&&e===q?V:e,this},fe.prototype.clear=function(){this.__data__=[],this.size=0},fe.prototype.delete=function(n){var e=this.__data__,l=ke(e,n);return!(l<0)&&(l==e.length-1?e.pop():Nr.call(e,l,1),--this.size,!0)},fe.prototype.get=function(n){var e=this.__data__,l=ke(e,n);return l<0?q:e[l][1]},fe.prototype.has=function(n){return ke(this.__data__,n)>-1},fe.prototype.set=function(n,e){var l=this.__data__,t=ke(l,n);return t<0?(++this.size,l.push([n,e])):l[t][1]=e,this},de.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(so||fe),string:new Yn}},de.prototype.delete=function(n){var e=Ut(this,n).delete(n);return this.size-=e?1:0,e},de.prototype.get=function(n){return Ut(this,n).get(n)},de.prototype.has=function(n){return Ut(this,n).has(n)},de.prototype.set=function(n,e){var l=Ut(this,n),t=l.size;return l.set(n,e),this.size+=l.size==t?0:1,this},ge.prototype.add=ge.prototype.push=function(n){return this.__data__.set(n,V),this},ge.prototype.has=function(n){return this.__data__.has(n)},me.prototype.clear=function(){this.__data__=new fe,this.size=0},me.prototype.delete=function(n){var e=this.__data__,l=e.delete(n);return this.size=e.size,l},me.prototype.get=function(n){return this.__data__.get(n)},me.prototype.has=function(n){return this.__data__.has(n)},me.prototype.set=function(n,e){var l=this.__data__;if(l instanceof fe){var t=l.__data__;if(!so||t.length<199)return t.push([n,e]),this.size=++l.size,this;l=this.__data__=new de(t)}return l.set(n,e),this.size=l.size,this};var So=dt(Le),Eo=dt(Be,!0),To=gt(),Oo=gt(!0),Ao=go?function(n,e){return go.set(n,e),n}:or,jo=Gr?function(n,e){return Gr(n,"toString",{configurable:!0,enumerable:!1,value:rr(e),writable:!0})}:or,Do=Pl,Io=qr||function(n){return ll.clearTimeout(n)},Mo=ho&&1/N(new ho([,-0]))[1]==en?function(n){return new ho(n)}:sr,Po=go?function(n){return go.get(n)}:sr,$o=Qr?function(n){return null==n?[]:(n=yr(n),c(Qr(n),(function(e){return zr.call(n,e)})))}:hr,Lo=Qr?function(n){for(var e=[];n;)d(e,$o(n)),n=Br(n);return e}:hr,Bo=Ge;(ao&&Bo(new ao(new ArrayBuffer(1)))!=xn||so&&Bo(new so)!=dn||co&&Bo(co.resolve())!=vn||ho&&Bo(new ho)!=yn||po&&Bo(new po)!=Fn)&&(Bo=function(n){var e=Ge(n),l=e==mn?n.constructor:q,t=l?si(l):"";if(t)switch(t){case vo:return xn;case bo:return dn;case yo:return vn;case _o:return yn;case wo:return Fn}return e});var Ro=Cr?Mi:pr,zo=oi(Ao),No=Vr||function(n,e){return ll.setTimeout(n,e)},Uo=oi(jo),Ho=function(n){var e=Ti(n,(function(n){return 500===l.size&&l.clear(),n})),l=e.cache;return e}((function(n){var e=[];return 46===n.charCodeAt(0)&&e.push(""),n.replace(qn,(function(n,l,t,i){e.push(t?i.replace(le,"$1"):l||n)})),e})),Wo=Pl((function(n,e){return Di(n)?De(n,$e(e,1,Di,!0)):[]})),Go=Pl((function(n,e){var l=gi(e);return Di(l)&&(l=q),Di(n)?De(n,$e(e,1,Di,!0),Nt(l,2)):[]})),qo=Pl((function(n,e){var l=gi(e);return Di(l)&&(l=q),Di(n)?De(n,$e(e,1,Di,!0),q,l):[]})),Ko=Pl((function(n){var e=f(n,nt);return e.length&&e[0]===n[0]?tl(e):[]})),Vo=Pl((function(n){var e=gi(n),l=f(n,nt);return e===gi(l)?e=q:l.pop(),l.length&&l[0]===n[0]?tl(l,Nt(e,2)):[]})),Jo=Pl((function(n){var e=gi(n),l=f(n,nt);return(e="function"==typeof e?e:q)&&l.pop(),l.length&&l[0]===n[0]?tl(l,q,e):[]})),Yo=Pl(mi),Qo=$t((function(n,e){var l=null==n?0:n.length,t=Ee(n,e);return Dl(n,f(e,(function(n){return Vt(n,l)?+n:n})).sort(ut)),t})),Zo=Pl((function(n){return Kl($e(n,1,Di,!0))})),Xo=Pl((function(n){var e=gi(n);return Di(e)&&(e=q),Kl($e(n,1,Di,!0),Nt(e,2))})),nu=Pl((function(n){var e=gi(n);return e="function"==typeof e?e:q,Kl($e(n,1,Di,!0),q,e)})),eu=Pl((function(n,e){return Di(n)?De(n,e):[]})),lu=Pl((function(n){return Zl(c(n,Di))})),tu=Pl((function(n){var e=gi(n);return Di(e)&&(e=q),Zl(c(n,Di),Nt(e,2))})),iu=Pl((function(n){var e=gi(n);return e="function"==typeof e?e:q,Zl(c(n,Di),q,e)})),ru=Pl(bi),ou=Pl((function(n){var e=n.length,l=e>1?n[e-1]:q;return l="function"==typeof l?(n.pop(),l):q,yi(n,l)})),uu=$t((function(n){var e=n.length,l=e?n[0]:0,t=this.__wrapped__,r=function(e){return Ee(e,n)};return!(e>1||this.__actions__.length)&&t instanceof C&&Vt(l)?((t=t.slice(l,+l+(e?1:0))).__actions__.push({func:wi,args:[r],thisArg:q}),new i(t,this.__chain__).thru((function(n){return e&&!n.length&&n.push(q),n}))):this.thru(r)})),au=pt((function(n,e,l){Er.call(n,l)?++n[l]:Se(n,l,1)})),su=yt(hi),cu=yt(pi),hu=pt((function(n,e,l){Er.call(n,l)?n[l].push(e):Se(n,l,[e])})),pu=Pl((function(n,e,l){var t=-1,i="function"==typeof e,o=ji(n)?dr(n.length):[];return So(n,(function(n){o[++t]=i?r(e,n,l):il(n,e,l)})),o})),fu=pt((function(n,e,l){Se(n,l,e)})),du=pt((function(n,e,l){n[l?0:1].push(e)}),(function(){return[[],[]]})),gu=Pl((function(n,e){if(null==n)return[];var l=e.length;return l>1&&Jt(n,e[0],e[1])?e=[]:l>2&&Jt(e[0],e[1],e[2])&&(e=[e[0]]),Ol(n,$e(e,1),[])})),mu=Kr||function(){return ll.Date.now()},vu=Pl((function(n,e,l){var t=1;if(l.length){var i=z(l,zt(vu));t|=Q}return jt(n,t,e,l,i)})),bu=Pl((function(n,e,l){var t=3;if(l.length){var i=z(l,zt(bu));t|=Q}return jt(e,t,n,l,i)})),yu=Pl((function(n,e){return je(n,1,e)})),_u=Pl((function(n,e,l){return je(n,Ki(e)||0,l)}));Ti.Cache=de;var wu,Fu=Do((function(n,e){var l=(e=1==e.length&&Ou(e[0])?f(e[0],A(Nt())):f($e(e,1),A(Nt()))).length;return Pl((function(t){for(var i=-1,o=to(t.length,l);++i=e})),Tu=ol(function(){return arguments}())?ol:function(n){return Bi(n)&&Er.call(n,"callee")&&!zr.call(n,"callee")},Ou=dr.isArray,Au=al?A(al):function(n){return Bi(n)&&Ge(n)==kn},ju=Zr||pr,Du=sl?A(sl):function(n){return Bi(n)&&Ge(n)==cn},Iu=cl?A(cl):function(n){return Bi(n)&&Bo(n)==dn},Mu=hl?A(hl):function(n){return Bi(n)&&Ge(n)==bn},Pu=pl?A(pl):function(n){return Bi(n)&&Bo(n)==yn},$u=fl?A(fl):function(n){return Bi(n)&&$i(n.length)&&!!Je[Ge(n)]},Lu=Et(kl),Bu=Et((function(n,e){return n<=e})),Ru=ft((function(n,e){if(Zt(e)||ji(e))ht(e,Zi(e),n);else for(var l in e)Er.call(e,l)&&Fe(n,l,e[l])})),zu=ft((function(n,e){ht(e,Xi(e),n)})),Nu=ft((function(n,e,l,t){ht(e,Xi(e),n,t)})),Uu=ft((function(n,e,l,t){ht(e,Zi(e),n,t)})),Hu=$t(Ee),Wu=Pl((function(n,e){n=yr(n);var l=-1,t=e.length,i=t>2?e[2]:q;for(i&&Jt(e[0],e[1],i)&&(t=1);++l1),e})),ht(n,Bt(n),l),t&&(l=Oe(l,7,Mt));for(var i=e.length;i--;)Vl(l,e[i]);return l})),Zu=$t((function(n,e){return null==n?{}:function(n,e){return Al(n,e,(function(e,l){return Qi(n,l)}))}(n,e)})),Xu=At(Zi),na=At(Xi),ea=vt((function(n,e,l){return e=e.toLowerCase(),n+(l?lr(e):e)})),la=vt((function(n,e,l){return n+(l?"-":"")+e.toLowerCase()})),ta=vt((function(n,e,l){return n+(l?" ":"")+e.toLowerCase()})),ia=mt("toLowerCase"),ra=vt((function(n,e,l){return n+(l?"_":"")+e.toLowerCase()})),oa=vt((function(n,e,l){return n+(l?" ":"")+aa(e)})),ua=vt((function(n,e,l){return n+(l?" ":"")+e.toUpperCase()})),aa=mt("toUpperCase"),sa=Pl((function(n,e){try{return r(n,q,e)}catch(n){return Ii(n)?n:new mr(n)}})),ca=$t((function(n,e){return u(e,(function(e){e=ai(e),Se(n,e,vu(n[e],n))})),n})),ha=_t(),pa=_t(!0),fa=Pl((function(n,e){return function(l){return il(l,n,e)}})),da=Pl((function(n,e){return function(l){return il(n,l,e)}})),ga=xt(f),ma=xt(s),va=xt(v),ba=St(),ya=St(!0),_a=kt((function(n,e){return n+e}),0),wa=Ot("ceil"),Fa=kt((function(n,e){return n/e}),1),ka=Ot("floor"),xa=kt((function(n,e){return n*e}),1),Ca=Ot("round"),Sa=kt((function(n,e){return n-e}),0);return l.after=function(n,e){if("function"!=typeof e)throw new Fr(K);return n=Gi(n),function(){if(--n<1)return e.apply(this,arguments)}},l.ary=Ci,l.assign=Ru,l.assignIn=zu,l.assignInWith=Nu,l.assignWith=Uu,l.at=Hu,l.before=Si,l.bind=vu,l.bindAll=ca,l.bindKey=bu,l.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Ou(n)?n:[n]},l.chain=_i,l.chunk=function(n,e,l){e=(l?Jt(n,e,l):e===q)?1:lo(Gi(e),0);var t=null==n?0:n.length;if(!t||e<1)return[];for(var i=0,r=0,o=dr(Jr(t/e));ii?0:i+l),(t=t===q||t>i?i:Gi(t))<0&&(t+=i),t=l>t?0:qi(t);l>>0)?(n=Ji(n))&&("string"==typeof e||null!=e&&!Mu(e))&&!(e=ql(e))&&L(n)?tt(W(n),0,l):n.split(e,l):[]},l.spread=function(n,e){if("function"!=typeof n)throw new Fr(K);return e=null==e?0:lo(Gi(e),0),Pl((function(l){var t=l[e],i=tt(l,0,e);return t&&d(i,t),r(n,this,i)}))},l.tail=function(n){var e=null==n?0:n.length;return e?zl(n,1,e):[]},l.take=function(n,e,l){return n&&n.length?zl(n,0,(e=l||e===q?1:Gi(e))<0?0:e):[]},l.takeRight=function(n,e,l){var t=null==n?0:n.length;return t?zl(n,(e=t-(e=l||e===q?1:Gi(e)))<0?0:e,t):[]},l.takeRightWhile=function(n,e){return n&&n.length?Yl(n,Nt(e,3),!1,!0):[]},l.takeWhile=function(n,e){return n&&n.length?Yl(n,Nt(e,3)):[]},l.tap=function(n,e){return e(n),n},l.throttle=function(n,e,l){var t=!0,i=!0;if("function"!=typeof n)throw new Fr(K);return Li(l)&&(t="leading"in l?!!l.leading:t,i="trailing"in l?!!l.trailing:i),Ei(n,e,{leading:t,maxWait:e,trailing:i})},l.thru=wi,l.toArray=Hi,l.toPairs=Xu,l.toPairsIn=na,l.toPath=function(n){return Ou(n)?f(n,ai):Ui(n)?[n]:ct(Ho(Ji(n)))},l.toPlainObject=Vi,l.transform=function(n,e,l){var t=Ou(n),i=t||ju(n)||$u(n);if(e=Nt(e,4),null==l){var r=n&&n.constructor;l=i?t?new r:[]:Li(n)&&Mi(r)?Co(Br(n)):{}}return(i?u:Le)(n,(function(n,t,i){return e(l,n,t,i)})),l},l.unary=function(n){return Ci(n,1)},l.union=Zo,l.unionBy=Xo,l.unionWith=nu,l.uniq=function(n){return n&&n.length?Kl(n):[]},l.uniqBy=function(n,e){return n&&n.length?Kl(n,Nt(e,2)):[]},l.uniqWith=function(n,e){return e="function"==typeof e?e:q,n&&n.length?Kl(n,q,e):[]},l.unset=function(n,e){return null==n||Vl(n,e)},l.unzip=bi,l.unzipWith=yi,l.update=function(n,e,l){return null==n?n:Jl(n,e,et(l))},l.updateWith=function(n,e,l,t){return t="function"==typeof t?t:q,null==n?n:Jl(n,e,et(l),t)},l.values=er,l.valuesIn=function(n){return null==n?[]:j(n,Xi(n))},l.without=eu,l.words=ir,l.wrap=function(n,e){return ku(et(e),n)},l.xor=lu,l.xorBy=tu,l.xorWith=iu,l.zip=ru,l.zipObject=function(n,e){return Xl(n||[],e||[],Fe)},l.zipObjectDeep=function(n,e){return Xl(n||[],e||[],Bl)},l.zipWith=ou,l.entries=Xu,l.entriesIn=na,l.extend=zu,l.extendWith=Nu,ar(l,l),l.add=_a,l.attempt=sa,l.camelCase=ea,l.capitalize=lr,l.ceil=wa,l.clamp=function(n,e,l){return l===q&&(l=e,e=q),l!==q&&(l=(l=Ki(l))==l?l:0),e!==q&&(e=(e=Ki(e))==e?e:0),Te(Ki(n),e,l)},l.clone=function(n){return Oe(n,4)},l.cloneDeep=function(n){return Oe(n,5)},l.cloneDeepWith=function(n,e){return Oe(n,5,e="function"==typeof e?e:q)},l.cloneWith=function(n,e){return Oe(n,4,e="function"==typeof e?e:q)},l.conformsTo=function(n,e){return null==e||Ae(n,e,Zi(e))},l.deburr=tr,l.defaultTo=function(n,e){return null==n||n!=n?e:n},l.divide=Fa,l.endsWith=function(n,e,l){n=Ji(n),e=ql(e);var t=n.length,i=l=l===q?t:Te(Gi(l),0,t);return(l-=e.length)>=0&&n.slice(l,i)==e},l.eq=Ai,l.escape=function(n){return(n=Ji(n))&&zn.test(n)?n.replace(Bn,ml):n},l.escapeRegExp=function(n){return(n=Ji(n))&&Vn.test(n)?n.replace(Kn,"\\$&"):n},l.every=function(n,e,l){var t=Ou(n)?s:Ie;return l&&Jt(n,e,l)&&(e=q),t(n,Nt(e,3))},l.find=su,l.findIndex=hi,l.findKey=function(n,e){return b(n,Nt(e,3),Le)},l.findLast=cu,l.findLastIndex=pi,l.findLastKey=function(n,e){return b(n,Nt(e,3),Be)},l.floor=ka,l.forEach=Fi,l.forEachRight=ki,l.forIn=function(n,e){return null==n?n:To(n,Nt(e,3),Xi)},l.forInRight=function(n,e){return null==n?n:Oo(n,Nt(e,3),Xi)},l.forOwn=function(n,e){return n&&Le(n,Nt(e,3))},l.forOwnRight=function(n,e){return n&&Be(n,Nt(e,3))},l.get=Yi,l.gt=Su,l.gte=Eu,l.has=function(n,e){return null!=n&&Gt(n,e,nl)},l.hasIn=Qi,l.head=di,l.identity=or,l.includes=function(n,e,l,t){n=ji(n)?n:er(n),l=l&&!t?Gi(l):0;var i=n.length;return l<0&&(l=lo(i+l,0)),Ni(n)?l<=i&&n.indexOf(e,l)>-1:!!i&&_(n,e,l)>-1},l.indexOf=function(n,e,l){var t=null==n?0:n.length;if(!t)return-1;var i=null==l?0:Gi(l);return i<0&&(i=lo(t+i,0)),_(n,e,i)},l.inRange=function(n,e,l){return e=Wi(e),l===q?(l=e,e=0):l=Wi(l),function(n,e,l){return n>=to(e,l)&&n=-9007199254740991&&n<=ln},l.isSet=Pu,l.isString=Ni,l.isSymbol=Ui,l.isTypedArray=$u,l.isUndefined=function(n){return n===q},l.isWeakMap=function(n){return Bi(n)&&Bo(n)==Fn},l.isWeakSet=function(n){return Bi(n)&&"[object WeakSet]"==Ge(n)},l.join=function(n,e){return null==n?"":no.call(n,e)},l.kebabCase=la,l.last=gi,l.lastIndexOf=function(n,e,l){var t=null==n?0:n.length;if(!t)return-1;var i=t;return l!==q&&(i=(i=Gi(l))<0?lo(t+i,0):to(i,t-1)),e==e?function(n,e,l){for(var t=l+1;t--;)if(n[t]===e)return t;return t}(n,e,i):y(n,F,i,!0)},l.lowerCase=ta,l.lowerFirst=ia,l.lt=Lu,l.lte=Bu,l.max=function(n){return n&&n.length?Me(n,or,Qe):q},l.maxBy=function(n,e){return n&&n.length?Me(n,Nt(e,2),Qe):q},l.mean=function(n){return k(n,or)},l.meanBy=function(n,e){return k(n,Nt(e,2))},l.min=function(n){return n&&n.length?Me(n,or,kl):q},l.minBy=function(n,e){return n&&n.length?Me(n,Nt(e,2),kl):q},l.stubArray=hr,l.stubFalse=pr,l.stubObject=function(){return{}},l.stubString=function(){return""},l.stubTrue=function(){return!0},l.multiply=xa,l.nth=function(n,e){return n&&n.length?Tl(n,Gi(e)):q},l.noConflict=function(){return ll._===this&&(ll._=Dr),this},l.noop=sr,l.now=mu,l.pad=function(n,e,l){n=Ji(n);var t=(e=Gi(e))?H(n):0;if(!e||t>=e)return n;var i=(e-t)/2;return Ct(Yr(i),l)+n+Ct(Jr(i),l)},l.padEnd=function(n,e,l){n=Ji(n);var t=(e=Gi(e))?H(n):0;return e&&te){var t=n;n=e,e=t}if(l||n%1||e%1){var i=oo();return to(n+i*(e-n+Ze("1e-"+((i+"").length-1))),e)}return Il(n,e)},l.reduce=function(n,e,l){var t=Ou(n)?g:S,i=arguments.length<3;return t(n,Nt(e,4),l,i,So)},l.reduceRight=function(n,e,l){var t=Ou(n)?m:S,i=arguments.length<3;return t(n,Nt(e,4),l,i,Eo)},l.repeat=function(n,e,l){return e=(l?Jt(n,e,l):e===q)?1:Gi(e),Ml(Ji(n),e)},l.replace=function(){var n=arguments,e=Ji(n[0]);return n.length<3?e:e.replace(n[1],n[2])},l.result=function(n,e,l){var t=-1,i=(e=lt(e,n)).length;for(i||(i=1,n=q);++tln)return[];var l=rn,t=to(n,rn);e=Nt(e),n-=rn;for(var i=T(t,e);++l=r)return n;var u=l-H(t);if(u<1)return t;var a=o?tt(o,0,u).join(""):n.slice(0,u);if(i===q)return a+t;if(o&&(u+=a.length-u),Mu(i)){if(n.slice(u).search(i)){var s,c=a;for(i.global||(i=_r(i.source,Ji(ie.exec(i))+"g")),i.lastIndex=0;s=i.exec(c);)var h=s.index;a=a.slice(0,h===q?u:h)}}else if(n.indexOf(ql(i),u)!=u){var p=a.lastIndexOf(i);p>-1&&(a=a.slice(0,p))}return a+t},l.unescape=function(n){return(n=Ji(n))&&Rn.test(n)?n.replace(Ln,vl):n},l.uniqueId=function(n){var e=++Tr;return Ji(n)+e},l.upperCase=ua,l.upperFirst=aa,l.each=Fi,l.eachRight=ki,l.first=di,ar(l,(wu={},Le(l,(function(n,e){Er.call(l.prototype,e)||(wu[e]=n)})),wu),{chain:!1}),l.VERSION="4.17.21",u(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){l[n].placeholder=l})),u(["drop","take"],(function(n,e){C.prototype[n]=function(l){l=l===q?1:lo(Gi(l),0);var t=this.__filtered__&&!e?new C(this):this.clone();return t.__filtered__?t.__takeCount__=to(l,t.__takeCount__):t.__views__.push({size:to(l,rn),type:n+(t.__dir__<0?"Right":"")}),t},C.prototype[n+"Right"]=function(e){return this.reverse()[n](e).reverse()}})),u(["filter","map","takeWhile"],(function(n,e){var l=e+1,t=1==l||3==l;C.prototype[n]=function(n){var e=this.clone();return e.__iteratees__.push({iteratee:Nt(n,3),type:l}),e.__filtered__=e.__filtered__||t,e}})),u(["head","last"],(function(n,e){var l="take"+(e?"Right":"");C.prototype[n]=function(){return this[l](1).value()[0]}})),u(["initial","tail"],(function(n,e){var l="drop"+(e?"":"Right");C.prototype[n]=function(){return this.__filtered__?new C(this):this[l](1)}})),C.prototype.compact=function(){return this.filter(or)},C.prototype.find=function(n){return this.filter(n).head()},C.prototype.findLast=function(n){return this.reverse().find(n)},C.prototype.invokeMap=Pl((function(n,e){return"function"==typeof n?new C(this):this.map((function(l){return il(l,n,e)}))})),C.prototype.reject=function(n){return this.filter(Oi(Nt(n)))},C.prototype.slice=function(n,e){n=Gi(n);var l=this;return l.__filtered__&&(n>0||e<0)?new C(l):(n<0?l=l.takeRight(-n):n&&(l=l.drop(n)),e!==q&&(l=(e=Gi(e))<0?l.dropRight(-e):l.take(e-n)),l)},C.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},C.prototype.toArray=function(){return this.take(rn)},Le(C.prototype,(function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=l[r?"take"+("last"==e?"Right":""):e],u=r||/^find/.test(e);o&&(l.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof C,c=a[0],h=s||Ou(e),p=function(n){var e=o.apply(l,d([n],a));return r&&f?e[0]:e};h&&t&&"function"==typeof c&&1!=c.length&&(s=h=!1);var f=this.__chain__,g=!!this.__actions__.length,m=u&&!f,v=s&&!g;if(!u&&h){e=v?e:new C(this);var b=n.apply(e,a);return b.__actions__.push({func:wi,args:[p],thisArg:q}),new i(b,f)}return m&&v?n.apply(this,a):(b=this.thru(p),m?r?b.value()[0]:b.value():b)})})),u(["pop","push","shift","sort","splice","unshift"],(function(n){var e=kr[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",i=/^(?:pop|shift)$/.test(n);l.prototype[n]=function(){var n=arguments;if(i&&!this.__chain__){var l=this.value();return e.apply(Ou(l)?l:[],n)}return this[t]((function(l){return e.apply(Ou(l)?l:[],n)}))}})),Le(C.prototype,(function(n,e){var t=l[e];if(t){var i=t.name+"";Er.call(mo,i)||(mo[i]=[]),mo[i].push({name:e,func:t})}})),mo[wt(q,2).name]=[{name:"wrapper",func:q}],C.prototype.clone=function(){var n=new C(this.__wrapped__);return n.__actions__=ct(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=ct(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=ct(this.__views__),n},C.prototype.reverse=function(){if(this.__filtered__){var n=new C(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},C.prototype.value=function(){var n=this.__wrapped__.value(),e=this.__dir__,l=Ou(n),t=e<0,i=l?n.length:0,r=function(n,e,l){var t=-1,i=l.length;for(;++t=this.__values__.length;return{done:n,value:n?q:this.__values__[this.__index__++]}},l.prototype.plant=function(n){for(var e,l=this;l instanceof t;){var i=ci(l);i.__index__=0,i.__values__=q,e?r.__wrapped__=i:e=i;var r=i;l=l.__wrapped__}return r.__wrapped__=n,e},l.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof C){var e=n;return this.__actions__.length&&(e=new C(this)),(e=e.reverse()).__actions__.push({func:wi,args:[vi],thisArg:q}),new i(e,this.__chain__)}return this.thru(vi)},l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=function(){return Ql(this.__wrapped__,this.__actions__)},l.prototype.first=l.prototype.head,Hr&&(l.prototype[Hr]=function(){return this}),l}();ll._=bl,(i=function(){return bl}.call(e,l,e,t))===q||(t.exports=i)}).call(this)}).call(this,l("pCvA"),l("RoC8")(n))},BCmN:function(n,e,l){"use strict";function t(n){n(),setTimeout(n,100)}var i=l("hosL"),r=l("kpue"),o=l("zf15"),u=l("lBHI"),a=l("jMw0"),s=l("Gbvz"),c=l("24Gu"),h=l("qIEf"),p=l.n(h),f=l("tMPu"),d=l.n(f),g=l("3QNJ");let m,v,b,y,_=n=>n;e.a=class extends i.Component{componentDidMount(){const n=p()(this.base).find(".new-msg");this.picker=new d.a({position:"top-start"}),this.picker.on("emoji",(e=>{n.val(n.val()+e),n.focus()})),g.a.util.isMobile||!1===this.props.autofocus||p()(this.base).find(".new-msg").focus(),this.props.replyingTo||u.a.local.get("channels").get("public").get("msgDraft").once((e=>n.val(e)))}componentDidUpdate(){g.a.util.isMobile||!1===this.props.autofocus||p()(this.base).find(".new-msg").focus()}async send(n){n.time=(new Date).toISOString(),n.type="post";const e=(await g.a.SignedMessage.create(n,a.a.getKey())).toString(),l=await g.a.util.getHash(e);u.a.public.get("#").get(l).put(e),n.replyingTo?(t((()=>u.a.public.user().get("replies").put({a:null}))),t((()=>u.a.public.user().get("replies").get(n.replyingTo).put({a:null}))),t((()=>u.a.public.user().get("replies").get(n.replyingTo).get(n.time).put(l)))):u.a.public.user().get(this.props.index||"msgs").get(n.time).put(l),n.torrentId&&u.a.public.user().get("media").get(n.time).put(l)}async onMsgFormSubmit(n){n.preventDefault(),this.props.replyingTo||u.a.local.get("channels").get("public").get("msgDraft").put(null);const e=p()(this.base).find(".new-msg"),l=e.val();if(!l.length&&!this.state.attachments&&!this.state.torrentId)return;if("media"===this.props.index&&!this.state.torrentId)return;const t={text:l};this.props.replyingTo&&(t.replyingTo=this.props.replyingTo),this.state.attachments&&(t.attachments=this.state.attachments),this.state.torrentId&&(t.torrentId=this.state.torrentId),this.send(t),this.setState({attachments:null,torrentId:null}),e.val(""),e.height(""),this.props.onSubmit&&this.props.onSubmit(t)}onEmojiButtonClick(n){n.preventDefault(),this.picker.pickerVisible?this.picker.hidePicker():this.picker.showPicker(n.target)}setTextareaHeight(n){n.style.height="",n.style.height=`${n.scrollHeight}px`}onMsgTextPaste(n){const e=(n.clipboardData||window.clipboardData).getData("text");(e!==this.state.torrentId&&e.indexOf(".torrent")>-1||e.match(/^magnet:\?xt=urn:btih:*/))&&(n.preventDefault(),this.setState({torrentId:e}))}onMsgTextInput(n){this.setTextareaHeight(n.target),this.props.replyingTo||u.a.local.get("channels").get("public").get("msgDraft").put(p()(n.target).val())}attachFileClicked(n){n.preventDefault(),p()(this.base).find(".attachment-input").click()}attachmentsChanged(n){let e=n.target.files;if(e){for(let n=0;n{const e=this.state.attachments||[];e.push({type:"image",data:n}),this.setState({attachments:e})}));p()(n.target).val(null),p()(this.base).find(".new-msg").focus()}}render(){const n="media"===this.props.index?"type_a_message_or_paste_a_magnet_link":"type_a_message";return Object(r.b)(m||(m=_` - - ${0} -

- -
-

${0}

- ${0} - ${0} -
- `),Object(B.c)("account"),Object(B.c)("save_backup_of_privkey_first"),Object(B.c)("otherwise_cant_log_in_again"),(()=>Object(j.route)("/logout")),Object(B.c)("log_out"),(()=>this.setState({showSwitchAccount:!this.state.showSwitchAccount})),Object(B.c)("switch_account"),this.state.showSwitchAccount?Object(I.b)(ge||(ge=Se`<${0}/>`),se):"",Object(B.c)("private_key"),{__html:Object(B.c)("private_key_warning")},(()=>function(){const n=L.a.getKey();return delete n["#"],I.a.download("iris_private_key.txt",JSON.stringify(n),"text/plain","utf-8")}()),Object(B.c)("download_private_key"),bn,!0,Object(B.c)("copy_private_key"),JSON.stringify(L.a.getKey()),(n=>function(n){function e(){clearInterval(t),U()("#private-key-qr").empty(),i.text(o)}function l(n){return`${Object(B.c)("hide_privkey_qr")} (${n})`}let t,i=U()(n.target),r=0===U()("#private-key-qr img").length,o=Object(B.c)("show_privkey_qr");if(r){let n=20;i.text(l(n)),t=setInterval((()=>{0!==U()("#private-key-qr img").length?(n-=1,0===n?e():i.text(l(n))):clearInterval(t)}),1e3);let r=U()("#private-key-qr");new fe(r[0],{text:JSON.stringify(L.a.getKey()),width:300,height:300,colorDark:"#000000",colorLight:"#ffffff",correctLevel:fe.CorrectLevel.H})}else e()}(n)),Object(B.c)("show_privkey_qr"),{__html:Object(B.c)("privkey_storage_recommendation")},Object(B.c)("language"),q,Object(B.c)("notifications"),Object(B.c)("web_push_subscriptions"),Object.keys(this.state.webPushSubscriptions).map((n=>{const e=this.state.webPushSubscriptions[n];return Object(I.b)(me||(me=Se` -
-
${0}
-
- -
-
- `),e.endpoint,(()=>pe.a.removeSubscription(n)),Object(B.c)("remove"))})),Object(B.c)("peers"),this.renderPeerList(),this.state.local.enablePublicPeerDiscovery,(()=>R.a.local.get("settings").get("enablePublicPeerDiscovery").put(!this.state.local.enablePublicPeerDiscovery)),Object(B.c)("enable_public_peer_discovery"),Object(B.c)("maximum_number_of_peer_connections"),Object(B.c)("there_is_a_bug"),this.state.local.maxConnectedPeers,(n=>R.a.local.get("settings").get("maxConnectedPeers").put(n.target.value||0)),I.a.isElectron?Object(I.b)(ve||(ve=Se` -

${0}

-

http://${0}:8767/gun

-

If you're behind NAT (likely) and want to accept incoming connections, you need to configure your router to forward the port 8767 to this computer.

- `),Object(B.c)("your_public_address"),this.state.electron.publicIp||"-"):"",Object(B.c)("set_up_your_own_peer"),{__html:Object(B.c)("peers_info",'href="https://github.com/amark/gun#deploy"')},Ln.a.herokuButton,Object(B.c)("also"),Object(B.c)("or_small"),I.a.isElectron?Object(I.b)(be||(be=Se` -
-

Desktop

-

-

- `),this.state.electron.openAtLogin,(()=>R.a.electron.get("settings").get("openAtLogin").put(!this.state.electron.openAtLogin)),this.state.electron.minimizeOnClose,(()=>R.a.electron.get("settings").get("minimizeOnClose").put(!this.state.electron.minimizeOnClose))):"",Object(B.c)("webtorrent"),this.state.local.enableWebtorrent,(()=>R.a.local.get("settings").get("enableWebtorrent").put(!this.state.local.enableWebtorrent)),Object(B.c)("automatically_load_webtorrent_attachments"),this.state.local.autoplayWebtorrent,(()=>R.a.local.get("settings").get("autoplayWebtorrent").put(!this.state.local.autoplayWebtorrent)),Object(B.c)("autoplay_webtorrent_videos"),Object(B.c)("webrtc_connection_options"),Object(B.c)("webrtc_info"),Object(B.c)("webrtc_connection_options"),(()=>this.rtcConfigChanged()),(()=>this.restoreDefaultRtcConfig()),Object(B.c)("restore_defaults"),Object(B.c)("blocked_users"),n.map((n=>{if(this.state.blockedUsers[n])return Object(I.b)(ye||(ye=Se`

`),encodeURIComponent(n),n)})),0===n.length?Object(B.c)("none"):"")}rtcConfigChanged(){o(JSON.parse(U()("#rtc-config").val()))}resetPeersClicked(){$.a.resetPeers(),this.setState({})}removePeerClicked(n,e){$.a.removePeer(n),e&&$.a.disconnectPeer(e)}enablePeerClicked(n,e,l){l.enabled?$.a.disablePeer(n,e):$.a.connectPeer(n)}renderPeerList(){let n=Object.keys($.a.getKnownPeers());return this.state.peersFromGun&&Object.keys(this.state.peersFromGun).forEach((e=>-1===n.indexOf(e)&&n.push(e))),Object(I.b)(_e||(_e=Se` -
- ${0} - ${0} - -
-
- - - - -
-
-

- -

-
- `),0===n.length?Object(I.b)(we||(we=Se` - - `),(()=>this.resetPeersClicked()),Object(B.c)("restore_defaults")):"",n.map((n=>{if(1==n)return;const e=$.a.getKnownPeers()[n]||{},l=this.state.peersFromGun&&this.state.peersFromGun[n],t=l&&l.wire&&"hi"===l.wire.hied;return Object(I.b)(Fe||(Fe=Se` -
-
- ${0} - ${0} - ${0} -
-
- - -
-
- `),t?Object(I.b)(ke||(ke=Se` - - Connected - - - `)):Object(I.b)(xe||(xe=Se` - - Disconnected - - - `)),n,e.from?Object(I.b)(Ce||(Ce=Se` -
${0} ${0} - `),(()=>Object(j.route)(`/profile/${e.from}`)),Object(B.c)("from"),I.a.truncateString(e.from,10)):"",(()=>this.removePeerClicked(n,l)),Object(B.c)("remove"),(()=>this.enablePeerClicked(n,l,e)),e.enabled?Object(B.c)("disable"):Object(B.c)("enable"))})),Object(B.c)("peer_url"),Object(B.c)("public"),(()=>this.addPeerClicked()),Object(B.c)("add"),{__html:Object(B.c)("public_peer_info")})}updatePeersFromGun(){const n=R.a.public.back("opt.peers")||{};this.setState({peersFromGun:n})}addPeerClicked(){let n=U()("#add-peer-url").val(),e=U()("#add-peer-public").is(":checked")?"public":void 0;$.a.addPeer({url:n,visibility:e}),U()("#add-peer-url").val("")}restoreDefaultRtcConfig(){o(pn),U()("#rtc-config").val(JSON.stringify(r()))}componentDidMount(){const n={};this.updatePeersFromGun(),this.updatePeersFromGunInterval=setInterval((()=>this.updatePeersFromGun()),2e3),U()("#rtc-config").val(JSON.stringify(r())),R.a.electron&&R.a.electron.get("settings").on((n=>{this.setState({electron:n})})),R.a.local.get("settings").on((n=>{this.setState({local:n})})),R.a.public.user().get("webPushSubscriptions").map().on((()=>this.setState({webPushSubscriptions:pe.a.webPushSubscriptions}))),R.a.public.user().get("block").map().on(((e,l,t,i)=>{this.eventListeners.block=i,n[l]=e,this.setState({blockedUsers:n})}))}componentWillUnmount(){Object.values(this.eventListeners).forEach((n=>n.off())),clearInterval(this.updatePeersFromGunInterval)}};let Te,Oe=n=>n;var Ae=()=>Object(I.b)(Te||(Te=Oe`
-
-

-

- -

-

- -

-
-
`),{__html:Object(B.c)("logout_confirmation_info")},(()=>Object(j.route)("/settings")),Object(B.c)("back"),(()=>L.a.logOut()),Object(B.c)("log_out")),je=l("5rjA"),De=l("tMPu"),Ie=l.n(De);let Me,Pe,$e,Le=n=>n;const Be=Object(I.b)(Me||(Me=Le` - `));var Re=class extends A.Component{componentDidMount(){this.picker=new Ie.a({position:"top-start"}),this.picker.on("emoji",(n=>{const e=U()(this.base).find(".new-msg");e.val(e.val()+n),e.focus()})),gn.a.util.isMobile||!1===this.props.autofocus||U()(this.base).find(".new-msg").focus()}componentDidUpdate(n,e){gn.a.util.isMobile||!1===this.props.autofocus||U()(this.base).find(".new-msg").focus(),this.state.torrentId&&this.state.torrentId!==e.torrentId&&this.downloadWebtorrent(this.state.torrentId)}async onMsgFormSubmit(n){const e=L.a.channels[this.props.activeChat];n.preventDefault(),R.a.local.get("channels").get(this.props.activeChat).get("msgDraft").put(null);const l=U()(this.base).find(".new-msg"),t=l.val();if(!t.length&&!e.attachments)return;e.setTyping(!1);const i={text:t};this.props.replyingTo&&(i.replyingTo=this.props.replyingTo),e.attachments&&(i.attachments=e.attachments),this.state.torrentId&&(i.torrentId=this.state.torrentId),e.send(i),this.closeAttachmentsPreview(),l.val(""),this.webPush(i),this.props.onSubmit&&this.props.onSubmit(i)}onEmojiButtonClick(n){n.preventDefault(),this.picker.pickerVisible?this.picker.hidePicker():this.picker.showPicker(n.target)}async downloadWebtorrent(n){function e(n){n.files.find((n=>n.name.endsWith(".mp4"))).appendTo("#webtorrent",{autoplay:!0,muted:!0})}const l=await I.a.getWebTorrentClient(),t=l.get(n);t?e(t):l.add(n,e)}onMsgTextPaste(n){const e=(n.clipboardData||window.clipboardData).getData("text");(e!==this.state.torrentId&&e.indexOf(".torrent")>-1||e.match(/^magnet:\?xt=urn:btih:*/))&&(n.preventDefault(),this.setState({torrentId:e}))}onMsgTextInput(n){const e=L.a.channels[this.props.activeChat],l=U()(n.target).val();this.isTyping=void 0!==this.isTyping&&this.isTyping;const t=()=>l.length>0,i=()=>e.setTyping(t()),r=An.a.throttle(i,1e3);this.isTyping===t()?r():i(),this.isTyping=t(),R.a.local.get("channels").get(this.props.activeChat).get("msgDraft").put(U()(n.target).val())}attachFileClicked(n){n.preventDefault(),U()(this.base).find(".attachment-input").click()}openAttachmentsPreview(){U()("#floating-day-separator").remove();const n=U()("#attachment-preview");n.removeClass("gallery"),n.empty();let e=U()(" - `),(n=>this.attachFileClicked(n)),(n=>this.onEmojiButtonClick(n)));return Object(I.b)($e||($e=Le` - ${0} - - - ${0} -
- `),this.props.class||"",(n=>this.onMsgFormSubmit(n)),n,(()=>this.openAttachmentsPreview()),(n=>this.onMsgTextPaste(n)),(n=>this.onMsgTextInput(n)),Object(B.c)("type_a_message"),Be)}};let ze,Ne,Ue,He,We,Ge,qe,Ke,Ve,Je=n=>n;const Ye=Object(I.b)(ze||(ze=Je``));var Qe=class extends A.Component{constructor(){super(),this.state={latest:{}},this.eventListeners={}}componentDidMount(){const n=this.props.chat;R.a.local.get("channels").get(n.id).get("latest").on(((e,l,t,i)=>{e.timen.off()))}render(){const n=this.props.chat,e=this.props.active?"active-item":"",l=n.theirMsgsLastSeenTime>=n.latestTime?"seen":"",t=n.theirLastActiveTime>=n.latestTime?"delivered":"",i=n.unseen?"has-unseen":"",r=n.unseen?Object(I.b)(Ne||(Ne=Je`${0}`),n.unseen):"",o=["online","active"].indexOf(n.activity)>-1?n.activity:"",u=n.latestTime&&new Date(n.latestTime);let a=I.a.getRelativeTimeText(u),s=n.name;n.id===(L.a.getKey()||{}).pub&&(s=Object(I.b)(Ue||(Ue=Je`📝 ${0}`),Object(B.c)("note_to_self")));let c=n.photo?Object(I.b)(He||(He=Je`
`),n.photo):Object(I.b)(We||(We=Je`<${0} str=${0} width=49/>`),yn.a,n.id);const h=n.isTyping?"":Object(I.b)(Ge||(Ge=Je` - ${0} - ${0} - `),this.state.latest.selfAuthored&&Ye,this.state.latest.text),p=n.isTyping?Object(I.b)(qe||(qe=Je`${0}`),Object(B.c)("typing")):"",f=n.id.length>36?Object(I.b)(Ke||(Ke=Je`
`)):"";return Object(I.b)(Ve||(Ve=Je` -
- ${0} - ${0} -
-
- ${0} - ${0} -
- ${0} - ${0} - ${0} -
-
- `),o,i,e,l,t,(()=>Object(j.route)(`/chat/${this.props.chat.id}`)),c,f,s,a,p,h,r)}};const Ze=["overscan","rowHeight","defaultRowHeight","children"],Xe={passive:!0,capture:!0};class nl extends A.Component{constructor(...n){super(...n),this.resized=()=>{let n=window.innerHeight||document.documentElement.offsetHeight;n!==this.state.height&&this.setState({height:n})},this.scrolled=()=>{let n=Math.max(0,this.base&&-this.base.getBoundingClientRect().top||0);this.setState({offset:n}),this.props.sync&&this.forceUpdate()}}computeRowHeight(){if(this._height)return this._height;let n=this.base&&this.base.firstElementChild&&this.base.firstElementChild.firstElementChild;return this._height=n&&n.offsetHeight||0}componentDidUpdate(){this.resized()}componentDidMount(){this.resized(),this.scrolled(),addEventListener("resize",this.resized,Xe),addEventListener("scroll",this.scrolled,Xe)}componentWillUnmount(){removeEventListener("resize",this.resized,Xe),removeEventListener("scroll",this.scrolled,Xe)}render(n,{offset:e=0,height:l=0}){let{overscan:t=10,rowHeight:i,defaultRowHeight:r,children:o}=n,u=E(n,Ze);i=i||this.computeRowHeight()||r||100;let a=i*o.length;"string"==typeof u.style?u.style+=" height:"+a+"px;":(u.style||(u.style={})).height=a.toExponential()+"px";let s=0,c=1;i&&(s=e/i|0,c=l/i|0,t&&(s=Math.max(0,s-s%t),c+=t));let h=o.slice(s,s+1+c);return Object(A.h)("div",u,Object(A.h)("div",{style:{position:"relative",top:s*i}},h))}}let el,ll,tl=n=>n;var il=class extends A.Component{constructor(){super(),this.state={chats:[]}}componentDidMount(){const n={},e=An.a.debounce((()=>{const e=Object.values(n).filter((n=>"public"!==n.id)).filter((n=>!!n)).sort(((n,e)=>void 0===e.latestTime||n.latestTime>e.latestTime?-1:1));this.setState({chats:e})}),200);R.a.local.get("channels").map().on(((l,t)=>{l.id=t,n[t]=l,e()})),R.a.local.get("scrollUp").on((()=>I.a.animateScrollTop(".chat-list"))),window.Notification&&"granted"!==Notification.permission&&"denied"!==Notification.permission&&setTimeout((()=>{U()("#enable-notifications-prompt").slideDown()}),5e3)}render(){const n=window.location.pathname.replace("/chat/new","").replace("/chat/","");return Object(I.b)(el||(el=tl``),this.props.class||"",(()=>pe.a.enableDesktopNotifications()),Object(B.c)("get_notified_new_messages"),Object(B.c)("turn_on_desktop_notifications"),n?"":"active-item",(()=>Object(j.route)("/chat/new")),Object(B.c)("new_chat"),nl,this.state.chats.map((e=>Object(I.b)(ll||(ll=tl`<${0} - photo=${0} - active=${0} - key=${0} - chat=${0}/>`),Qe,e.photo,e.id===n,e.id,e))),nl)}};let rl,ol,ul=n=>n;var al=class extends A.Component{constructor(){super(),this.eventListeners={},this.chatLinks={},this.state={chatLinks:{}}}componentDidUnmount(){this.eventListeners.forEach((n=>n.off()))}scanChatLinkQr(){U()("#chatlink-qr-video:visible").length?(U()("#chatlink-qr-video").hide(),P.cleanupScanner()):(U()("#chatlink-qr-video").show(),P.startChatLinkQRScanner((n=>n.text&&L.a.followChatLink(n.text))))}onPasteChatLink(n){const e=U()(n.target).val();L.a.followChatLink(e),U()(n.target).val("")}onCreateGroupSubmit(n){if(n.preventDefault(),U()("#new-group-name").val().length){let n=new gn.a.Channel({gun:R.a.public,key:L.a.getKey(),participants:[]});n.put("name",U()("#new-group-name").val()),U()("#new-group-name").val(""),L.a.addChannel(n),Object(j.route)(`/group/${n.uuid}`)}}componentDidMount(){R.a.local.get("chatLinks").map().on(((n,e,l,t)=>{if(this.eventListeners.chatLinks=t,n){if("string"!=typeof n||0!==n.indexOf("http"))return;this.chatLinks[e]=n,function(n){let e=U()("#my-qr-code");0!==e.length&&(e.empty(),new fe(e[0],{text:n||L.a.getMyChatLink(),width:320,height:320,colorDark:"#000000",colorLight:"#ffffff",correctLevel:fe.CorrectLevel.H}))}(n)}else delete this.chatLinks[e];this.setState({chatLinks:this.chatLinks})}))}removeChatLink(n){return R.a.local.get("chatLinks").get(n).put(null),gn.a.Channel.removePrivateChatLink(R.a.public,L.a.getKey(),n)}render(){return Object(I.b)(rl||(rl=ul` -
-

${0}

-
- - -
- -

${0}

-
- <${0} text=${0} copyStr=${0}/> - -
- -

-

${0}

-

-

- - -
-

-
-

${0}

-

- -
`),Object(B.c)("have_someones_invite_link"),(n=>this.onPasteChatLink(n)),Object(B.c)("paste_their_invite_link"),(()=>this.scanChatLinkQr()),Object(B.c)("or_scan_qr_code"),Object(B.c)("give_your_invite_link"),bn,Object(B.c)("copy_your_invite_link"),L.a.getMyChatLink,(()=>U()("#my-qr-code").toggle()),Object(B.c)("or_show_qr_code"),{__html:Object(B.c)("beware_of_sharing_invite_link_publicly",`href="/profile/${L.a.getPubKey()}"`)},Object(B.c)("new_group"),(n=>this.onCreateGroupSubmit(n)),Object(B.c)("group_name"),Object(B.c)("create"),Object(B.c)("your_invite_links"),(()=>L.a.createChatLink()),Object(B.c)("create_new_invite_link"),Object.keys(this.state.chatLinks).map((n=>{const e=this.state.chatLinks[n];return Object(I.b)(ol||(ol=ul` -
-
- <${0} copyStr=${0}/> -
-
- -
-
- -
-
- `),bn,e,e,(n=>U()(n.target).select()),(()=>this.removeChatLink(n)),Object(B.c)("remove"))})))}};let sl,cl,hl,pl,fl,dl,gl,ml,vl,bl,yl,_l,wl,Fl=n=>n;const kl=Object(I.b)(sl||(sl=Fl` - - - - - -`));var xl=class extends ee{constructor(){super(),this.eventListeners={},this.id="chat-view",this.state={sortedParticipants:[]}}componentDidMount(){if(!(this.props.id&&this.props.id.length>20))return;this.unsubscribe(),this.sortedMessages=[],this.participants={},this.setState({sortedMessages:this.sortedMessages,sortedParticipants:[],showParticipants:!0,stickToBottom:!0}),this.iv=null,this.chat=null;const n=()=>{this.chat=L.a.channels[this.props.id],!this.chat&&this.props.id.length>40&&(this.chat=L.a.newChannel(this.props.id)),this.chat&&(clearInterval(this.iv),L.a.subscribeToMsgs(this.props.id),pe.a.changeChatUnseenCount(this.props.id,0),this.chat.setMyMsgsLastSeenTime(),I.a.scrollToMessageListBottom(),this.chat.setMyMsgsLastSeenTime())};this.iv=setInterval(n,3e3),n(),R.a.local.get("showParticipants").put(!0),R.a.local.get("showParticipants").on(((n,e,l,t)=>{this.eventListeners.showParticipants=t,this.setState({showParticipants:n})})),R.a.local.get("channels").get(this.props.id).get("participants").map().on(((n,e,l,t)=>{this.eventListeners.participants=t;const i=!!this.participants[e];this.participants[e]=n,n&&!i&&R.a.public.user(e).get("activity").on(((n,l,t,i)=>{this.eventListeners[`${e}activity`]=i,this.participants[e]&&(this.participants[e].activity=n),this.setSortedParticipants()})),this.setSortedParticipants()})),R.a.local.get("channels").get(this.props.id).get("msgDraft").once((n=>U()(".new-msg").val(n)));const e=R.a.local.get("channels").get(this.props.id).get("msgs"),l=An.a.throttle((()=>this.setState({sortedMessages:Object.keys(this.msgs).sort().map((n=>this.msgs[n]))})),100);this.msgs={},e.map(((n,e)=>{this.msgs[e]=n,l()}));const t=document.getElementById("message-list");t.style.paddingBottom=0,t.style.paddingTop=0;const i=U()("#message-view");i.off("scroll").on("scroll",(()=>{const n=i[0].scrollHeight-i.scrollTop()==i.outerHeight();this.state.stickToBottom&&!n?this.setState({stickToBottom:!1}):!this.state.stickToBottom&&n&&this.setState({stickToBottom:!0})}))}setSortedParticipants(){let n=!0;const e=Object.keys(this.participants).filter((e=>{const l=this.participants[e],t=l&&l.read&&l.write;return n&&t&&e===L.a.getPubKey()&&(n=!1),t})).sort(((n,e)=>{const l=this.participants[n],t=this.participants[e],i=new Date(l&&l.activity&&l.activity.time||0),r=new Date(t&&t.activity&&t.activity.time||0);return Math.abs(i-r)<1e4?n>e?-1:1:i>r?-1:ithis.state.stickToBottom&&I.a.scrollToMessageListBottom())),setTimeout((()=>{this.chat&&!this.chat.uuid&&this.props.id!==L.a.getPubKey()&&(!U()(".msg.our").length||U()(".msg.their").length||this.chat.theirMsgsLastSeenTime?U()("#not-seen-by-them").slideUp():U()("#not-seen-by-them").slideDown())}),2e3))}unsubscribe(){clearInterval(this.iv),Object.values(this.eventListeners).forEach((n=>n.off())),this.eventListeners={}}componentWillUnmount(){this.unsubscribe()}addFloatingDaySeparator(){let n=U()(".day-separator").last(),e=n.position();for(;n&&e&&e.top-55>0;)n=n.prevAll(".day-separator").first(),e=n.position();let l=n.clone(),t=U()("
").css({position:"fixed",top:70,"text-align":"center"}).attr("id","floating-day-separator").width(U()("#message-view").width()).append(l);U()("#floating-day-separator").remove(),setTimeout((()=>l.fadeOut()),2e3),U()("#message-view").prepend(t)}toggleScrollDownBtn(){const n=U()("#message-view");n[0].scrollHeight-n.scrollTop()<=n.outerHeight()+200?U()("#scroll-down-btn:visible").fadeOut(150):U()("#scroll-down-btn:not(:visible)").fadeIn(150)}onMessageViewScroll(){this.messageViewScrollHandler=this.messageViewScrollHandler||An.a.throttle((()=>{U()("#attachment-preview:visible").length||(this.addFloatingDaySeparator(),this.toggleScrollDownBtn())}),200),this.messageViewScrollHandler()}scrollDown(){I.a.scrollToMessageListBottom(),document.getElementById("message-list").style.paddingBottom=0}renderView(){const n=new Date,e=n.toLocaleDateString();let l,t;const i=[];this.state.sortedMessages&&Object.values(this.state.sortedMessages).forEach((r=>{if("object"!=typeof r)try{r=JSON.parse(r)}catch(n){return void console.error("JSON.parse(msg) failed",n)}const o="string"==typeof r.time?new Date(r.time):r.time;let u;if(o){const t=o.toLocaleDateString();if(t!==l){u=!0;let l=gn.a.util.getDaySeparatorText(o,t,n,e);i.push(Object(I.b)(cl||(cl=Fl`
${0}
`),Object(B.c)(l)))}l=t}let a=!1;(u||t&&r.from!==t)&&(i.push(Object(I.b)(hl||(hl=Fl`
`))),a=!0),t=r.from,i.push(Object(I.b)(pl||(pl=Fl` - <${0} ...${0} showName=${0} key=${0} chatId=${0}/> - `),je.a,r,a,r.time,this.props.id))}));const r=this.state.sortedParticipants;return Object(I.b)(fl||(fl=Fl` - <${0} class=${0}/> -
- ${0} - ${0} -
- ${0} - `),il,this.props.id?"hidden-xs":"",this.props.id?"":"hidden-xs",this.props.id&&this.props.id.length>20?Object(I.b)(dl||(dl=Fl` -
-
-
- ${0} -
-
- -
`),(n=>this.onMessageViewScroll(n)),i):Object(I.b)(gl||(gl=Fl`<${0}/>`),al),this.props.id&&this.props.id.length>20?Object(I.b)(ml||(ml=Fl` - - -
- ${0} -
- `),(()=>this.scrollDown()),kl,{__html:Object(B.c)("if_other_person_doesnt_see_message")},(n=>function(n){I.a.copyToClipboard(L.a.getMyChatLink());let e=U()(n.target),l=e.text(),t=e.width();e.width(t),e.text(Object(B.c)("copied")),setTimeout((()=>{e.text(l),e.css("width","")}),2e3)}(n)),Object(B.c)("copy_your_invite_link"),this.state.noLongerParticipant?Object(I.b)(vl||(vl=Fl`
You can't send messages to this group because you're no longer a participant.
`)):Object(I.b)(bl||(bl=Fl`<${0} activeChat=${0} onSubmit=${0}/>`),Re,this.props.id,(()=>this.scrollDown()))):"",this.props.id&&"new"!==this.props.id&&this.props.id.length<40?Object(I.b)(yl||(yl=Fl` -
- ${0} - ${0} -
- `),this.state.showParticipants?"open":"",r.length?Object(I.b)(_l||(_l=Fl` - ${0} ${0} - `),r.length,Object(B.c)("participants")):"",r.map((n=>Object(I.b)(wl||(wl=Fl` - - - <${0} key="i${0}" str=${0} width=30 activity=${0}/> - - - - `),n,yn.a,n,n,!0,n,n)))):"")}},Cl=l("Gbvz");let Sl,El,Tl,Ol,Al=n=>n;var jl=class extends A.Component{async useProfilePhotoClicked(){let n=this.cropper.getCroppedCanvas(),e=document.createElement("canvas");e.width=e.height=Math.min(n.width,800);const{default:t}=await l.e(5).then(l.t.bind(null,"+/t2",7));t().resize(n,e).then((()=>{let n=e.toDataURL("image/jpeg");this.props.callback&&this.props.callback(n),this.setState({preview:null})}))}cancelProfilePhotoClicked(){this.setState({preview:null})}clickProfilePhotoInput(){U()("#profile-photo-input").click()}onProfilePhotoInputChange(n){let e=n.target.files;if(e&&e.length){I.a.getBase64(e[0]).then((n=>{this.setState({preview:n})}))}U()(n.target).val("")}componentDidUpdate(){this.cropper&&this.cropper.destroy(),this.state.preview&&l.e(4).then(l.t.bind(null,"SkLh",7)).then((n=>{this.cropper=new n(U()("#profile-photo-preview")[0],{aspectRatio:1,autoCropArea:1,viewMode:1,background:!1,zoomable:!1})}))}render(){const n=this.state.preview?"":Object(I.b)(Sl||(Sl=Al`<${0} class="picker profile-photo" src=${0} onClick=${0}/>`),Cl.a,this.props.currentPhoto,(()=>this.clickProfilePhotoInput())),e=this.state.preview?Object(I.b)(El||(El=Al``),this.state.preview):"",l=this.props.currentPhoto||this.state.preview?"":Object(I.b)(Tl||(Tl=Al`
<${0} str=${0} width=250 onClick=${0}/>
`),yn.a,this.props.placeholder,(()=>this.clickProfilePhotoInput()));return Object(I.b)(Ol||(Ol=Al` -
- ${0} - ${0} -
- ${0} -
-

- -

-

${0}

-

- - -

-
- `),this.state.preview?"open":"",n,l,e,(n=>this.onProfilePhotoInputChange(n)),this.state.hasError?"":"hidden",Object(B.c)("profile_photo_too_big"),this.state.preview?"":"hidden",(()=>this.cancelProfilePhotoClicked()),Object(B.c)("cancel"),(()=>this.useProfilePhotoClicked()),Object(B.c)("use_photo"))}};let Dl,Il=n=>n;class Ml extends A.Component{componentDidMount(){this.eventListeners={},R.a.local.get("filters").get("group").on(((n,e,l,t)=>{this.eventListeners.group=t,this.setState({group:n})}))}toggleGroup(n){R.a.local.get("filters").get("group").put(n)}componentWillUnmount(){Object.values(this.eventListeners).forEach((n=>n.off()))}render(){const n=this.state;return Object(I.b)(Dl||(Dl=Il`
-
- - - - - - - - -
-
`),"follows"===n.group,(()=>this.toggleGroup("follows")),"2ndDegreeFollows"===n.group,(()=>this.toggleGroup("2ndDegreeFollows")),"everyone"===n.group,(()=>this.toggleGroup("everyone")))}}let Pl,$l=n=>n;var Ll=class extends A.Component{constructor(){super(),this.eventListeners={},this.key="follow",this.activeClass="following",this.hoverAction="unfollow"}onClick(n){n.preventDefault();const e=!this.state[this.key];e&&"follow"===this.key&&(L.a.newChannel(this.props.id),R.a.public.user().get("block").get(this.props.id).put(!1)),e&&"block"===this.key&&R.a.public.user().get("follow").get(this.props.id).put(!1),R.a.public.user().get(this.key).get(this.props.id).put(e)}componentDidMount(){R.a.public.user().get(this.key).get(this.props.id).on(((n,e,l,t)=>{const i={};i[this.key]=n,this.setState(i),this.eventListeners[this.key]=t}))}componentWillUnmount(){Object.values(this.eventListeners).forEach((n=>n.off()))}render(){return Object(I.b)(Pl||(Pl=$l` - - `),this.key,this.state[this.key]?this.activeClass:"",(n=>this.onClick(n)),this.state[this.key]?Object(B.c)(this.activeClass):Object(B.c)(this.key),Object(B.c)(this.hoverAction))}};let Bl,Rl,zl,Nl,Ul,Hl,Wl,Gl,ql,Kl,Vl,Jl,Yl,Ql,Zl,Xl,nt=n=>n;var et=class extends ee{constructor(){super(),this.eventListeners=[],this.followedUsers=new Set,this.followers=new Set,this.cart={},this.carts={},this.state={items:{}},this.items={},this.id="profile",this.class="public-messages-view"}addToCart(n,e,l){l.stopPropagation();const t=(this.cart[n+e]||0)+1;R.a.local.get("cart").get(e).get(n).put(t)}renderUserStore(n){const e=L.a.channels[n],l=e&&e.uuid,t=!(this.isMyProfile||n.length<40);let i;return i=this.isMyProfile?Object(I.b)(Bl||(Bl=nt`<${0} currentPhoto=${0} placeholder=${0} callback=${0}/>`),jl,this.state.photo,n,(n=>this.onProfilePhotoSet(n))):this.state.photo?Object(I.b)(Rl||(Rl=nt`<${0} class="profile-photo" src=${0}/>`),Cl.a,this.state.photo):Object(I.b)(zl||(zl=nt`<${0} str=${0} width=250/>`),yn.a,n),Object(I.b)(Nl||(Nl=nt` -
-
-
-
- ${0} -
-
-

- -
- - ${0} - ${0} - - ${0} -
-
-
-
-

${0}

-
-
- -

Store

- ${0} -
- `),i,n,n,n,this.state.followedUserCount,Object(B.c)("following"),n,this.state.followerCount,Object(B.c)("followers"),this.followedUsers.has(L.a.getPubKey())?Object(I.b)(Ul||(Ul=nt` -

${0}

- `),Object(B.c)("follows_you")):"",t?Object(I.b)(Hl||(Hl=nt`<${0} id=${0}/>`),Ll,n):"",(()=>Object(j.route)(`/chat/${n}`)),Object(B.c)("send_message"),l?"":Object(I.b)(Wl||(Wl=nt` - <${0} text=${0} title=${0} copyStr=${0}/> - `),bn,Object(B.c)("copy_link"),this.state.name,`https://iris.to/${window.location.pathname}`),this.isMyProfile?Object(B.c)("about"):"",this.isMyProfile,(n=>this.onAboutInput(n)),this.state.about,this.renderItems())}getNotification(){const n="hyECQHwSo7fgr2MVfPyakvayPeixxsaAWVtZ-vbaiSc.TXIp8MnCtrnW6n2MrYquWPcc-DTmZzMBmc2yaGv9gIU";return this.state.noFollows?Object(I.b)(Gl||(Gl=nt` -
-
-
-

${0}

- -

${0} ${0}.

-
-
-
- `),Object(B.c)("follow_someone_info"),n,yn.a,n,n,Ll,n,Object(B.c)("alternatively"),L.a.getPubKey(),Object(B.c)("give_your_profile_link_to_someone")):""}renderItems(){const n=Object.keys(this.cart).reduce(((n,e)=>n+this.cart[e]),0),e=Object.keys(this.state.items);return Object(I.b)(ql||(ql=nt` - ${0} - ${0} -
- ${0} - ${0} - ${0} -
- `),this.props.store||this.state.noFollows?"":Object(I.b)(Kl||(Kl=nt`<${0}/>`),Ml),n?Object(I.b)(Vl||(Vl=nt` -

- -

- `),(()=>Object(j.route)("/checkout")),Object(B.c)("shopping_cart"),n):"",this.isMyProfile?Object(I.b)(Jl||(Jl=nt` -
- Add item -
- `),(()=>Object(j.route)("/product/new"))):"",e.length?"":Object(I.b)(Yl||(Yl=nt`

No items to show

`)),e.map((n=>{const e=this.state.items[n];return Object(I.b)(Ql||(Ql=nt` -
- <${0} src=${0}/> - ${0} - ${0} -

${0}

-

${0}

- -
- `),(()=>Object(j.route)(`/product/${n}/${e.from}`)),Cl.a,e.photo,n,e.from,e.name,this.props.store?"":Object(I.b)(Zl||(Zl=nt` - by - `),e.from),e.description,e.price,(l=>this.addToCart(n,e.from,l)),Object(B.c)("add_to_cart"),this.cart[n]?` (${this.cart[n]})`:"")})))}renderView(){return this.props.store?this.renderUserStore(this.props.store):Object(I.b)(Xl||(Xl=nt` -

- ${0} - ${0} - `),{__html:Object(B.c)("this_is_a_prototype_store",`href="/store/${L.a.getPubKey()}"`)},this.getNotification(),this.renderItems())}componentWillUnmount(){this.eventListeners.forEach((n=>n.off()))}updateTotalPrice(){const n=Object.keys(this.cart).reduce(((n,e)=>{const l=this.items[e];return n+(l&&parseInt(l.price)||0)*this.cart[e]}),0);this.setState({totalPrice:n})}componentDidUpdate(n){n.store!==this.props.store&&this.componentDidMount()}getCartFromUser(n){R.a.local.get("cart").get(n).map().on(((e,l,t,i)=>{"#"!==l&&(this.eventListeners[`cart${n}`]=i,this.cart[l+n]=e,this.carts[n]=this.carts[n]||{},this.carts[n][l]=e,this.setState({cart:this.cart,carts:this.carts}),this.updateTotalPrice())}))}onProduct(n,e,l,t,i){if(this.eventListeners[`products${i}`]=t,n){const l={};n.from=i,l[e]=n,T(this.items,l),this.updateTotalPrice()}else delete this.items[e];this.setState({items:this.items})}getProductsFromUser(n){R.a.public.user(n).get("store").get("products").map().on(((...e)=>this.onProduct(...e,n)))}getAllCarts(){const n={};R.a.local.get("cart").map(((e,l)=>{l?n[l]||(n[l]=!0,this.getCartFromUser(l)):delete n[l]}))}getAllProducts(n){R.a.group(n).map("store/products",((...n)=>{this.onProduct(...n)}))}componentDidMount(){const n=this.props.store;if(this.eventListeners.forEach((n=>n.off())),this.cart={},this.items={},this.isMyProfile=L.a.getPubKey()===n,this.setState({followedUserCount:0,followerCount:0,name:"",photo:"",about:"",totalPrice:0,items:{},cart:{}}),R.a.local.get("noFollows").on((n=>this.setState({noFollows:n}))),R.a.local.get("groups").get("follows").map().on(((n,e,l,t)=>{n&&this.state.noFollows&&L.a.getPubKey()!==e&&(R.a.local.get("noFollows").put(!1),t.off())})),n)this.getCartFromUser(n),this.getProductsFromUser(n);else{let n;R.a.local.get("filters").get("group").on(((e,l,t,i)=>{e!==n&&(this.items={},this.setState({items:{}}),n=e,this.eventListeners.push(i),this.getAllProducts(e))})),this.getAllCarts()}}};let lt,tt,it,rt,ot,ut,at,st,ct,ht=n=>n;var pt=class extends et{constructor(){super(),this.followedUsers=new Set,this.followers=new Set,this.state.paymentMethod="bitcoin",this.state.delivery={}}changeItemCount(n,e){this.cart[n]=Math.max(this.cart[n]+e,0),R.a.local.get("cart").get(this.props.store).get(n).put(this.cart[n])}confirm(){const n=this.props.store;L.a.newChannel(n);const e={};Object.keys(this.cart).forEach((n=>{const l=this.cart[n];l&&(e[n]=l)})),L.a.channels[n].send({text:`New order: ${JSON.stringify(e)}, delivery: ${JSON.stringify(this.state.delivery)}, payment: ${this.state.paymentMethod}`,order:!0}),R.a.local.get("cart").get(n).map().once(((e,l)=>{e&&R.a.local.get("cart").get(n).get(l).put(null)})),Object(j.route)(`/chat/${n}`)}renderCart(){return Object(I.b)(lt||(lt=ht` -

${0}

-
- ${0} -
-
-
${0} ${0} €
-
-
-

- -

- `),Object(B.c)("shopping_cart"),Object.keys(this.cart).filter((n=>!!this.cart[n]&&!!this.state.items[n])).map((n=>{const e=this.state.items[n];return Object(I.b)(tt||(tt=ht` -
- -
-

- ${0} € - - - -

- ${0} € -
-
- `),`/product/${n}/${this.props.store}`,Cl.a,e.thumbnail,e.name||"item",parseInt(e.price),(()=>this.changeItemCount(n,-1)),this.cart[n],(()=>this.changeItemCount(n,null)),(()=>this.changeItemCount(n,1)),parseInt(e.price)*this.cart[n])})),Object(B.c)("total"),this.state.totalPrice,(()=>this.setState({page:"delivery"})),Object(B.c)("next"))}renderDelivery(){return Object(I.b)(it||(it=ht` -
-

${0}

-

- -

-

- -

-

- -

- -
- `),Object(B.c)("delivery"),Object(B.c)("name"),this.state.delivery.name,(n=>R.a.local.get("delivery").get("name").put(n.target.value)),Object(B.c)("address"),this.state.delivery.address,(n=>R.a.local.get("delivery").get("address").put(n.target.value)),Object(B.c)("email_optional"),this.state.delivery.email,(n=>R.a.local.get("delivery").get("email").put(n.target.value)),(()=>this.setState({page:"payment"})),Object(B.c)("next"))}paymentMethodChanged(n){const e=n.target.firstChild&&n.target.firstChild.value;e&&R.a.local.get("paymentMethod").put(e)}renderPayment(){return Object(I.b)(rt||(rt=ht` -
-

${0}:

-

- -

-

- -

- -
- `),Object(B.c)("payment_method"),(n=>this.paymentMethodChanged(n)),"bitcoin"===this.state.paymentMethod,(n=>this.paymentMethodChanged(n)),"dogecoin"===this.state.paymentMethod,(()=>this.setState({page:"confirmation"})),Object(B.c)("next"))}renderConfirmation(){return Object(I.b)(ot||(ot=ht` -

${0}

-
- ${0} -
-
-
${0} ${0} €
-
-
-

- ${0}:
- ${0}
- ${0}
- ${0} -

-

${0}: ${0}

-

- `),Object(B.c)("confirm"),Object.keys(this.cart).filter((n=>!!this.cart[n]&&!!this.state.items[n])).map((n=>{const e=this.state.items[n];return Object(I.b)(ut||(ut=ht` -
-
- <${0} src=${0}/> - ${0} -
-
-

- ${0} x ${0} € -

- ${0} € -
-
- `),Cl.a,e.thumbnail,e.name||"item",this.cart[n],parseInt(e.price),parseInt(e.price)*this.cart[n])})),Object(B.c)("total"),this.state.totalPrice,Object(B.c)("delivery"),this.state.delivery.name,this.state.delivery.address,this.state.delivery.email,Object(B.c)("payment_method"),this.state.paymentMethod,(()=>this.confirm()),Object(B.c)("confirm_button"))}renderCartList(){return Object(I.b)(at||(at=ht` -
-
-

${0}

- ${0} -
-
`),Object(B.c)("shopping_carts"),this.state.carts&&Object.keys(this.state.carts).map((n=>{const e=Object.keys(this.state.carts[n]).reduce(((e,l)=>e+this.state.carts[n][l]),0);if(e)return Object(I.b)(st||(st=ht` -

- - (${0}) - -

- `),n,n,e)})))}render(){if(!this.props.store)return this.renderCartList();let n;const e=this.state.page;return n="delivery"===e?this.renderDelivery():"confirmation"===e?this.renderConfirmation():"payment"===e?this.renderPayment():this.renderCart(),Object(I.b)(ct||(ct=ht` -
-
-

- -

-
-
${0}
-
${0}
-
${0}
-
${0}
-
- ${0} -
-
`),this.props.store,this.props.store,"cart"===e?"active":"",(()=>this.setState({page:"cart"})),Object(B.c)("shopping_cart"),"delivery"===e?"active":"",(()=>this.setState({page:"delivery"})),Object(B.c)("delivery"),"payment"===e?"active":"",(()=>this.setState({page:"payment"})),Object(B.c)("payment"),"confirmation"===e?"active":"",(()=>this.setState({page:"confirmation"})),Object(B.c)("confirm"),n)}componentWillUnmount(){this.eventListeners.forEach((n=>n.off()))}componentDidUpdate(n){n.store!==this.props.store&&this.componentDidMount()}componentDidMount(){et.prototype.componentDidMount.call(this),Object.values(this.eventListeners).forEach((n=>n.off())),this.eventListeners=[];const n=this.props.store;this.carts={},n?(this.setState({page:"cart"}),R.a.local.get("cart").get(n).map().on(((n,e)=>{this.cart[e]=n,this.setState({cart:this.cart})})),R.a.local.get("paymentMethod").on((n=>this.setState({paymentMethod:n}))),R.a.local.get("delivery").open((n=>this.setState({delivery:n})))):this.getAllCarts()}};let ft,dt,gt,mt,vt,bt,yt=n=>n;var _t=class extends et{constructor(){super(),this.eventListeners=[],this.followedUsers=new Set,this.followers=new Set}addToCart(){const n=(this.cart[this.props.product]||0)+1;R.a.local.get("cart").get(this.props.store).get(this.props.product).put(n)}newProduct(){return console.log("new"),Object(I.b)(ft||(ft=yt` -
-
- -

Add item

-

- ",dn.noCloneChecked=!!Jn.cloneNode(!0).lastChild.defaultValue,Jn.innerHTML="",dn.option=!!Jn.lastChild;var ne={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ne.tbody=ne.tfoot=ne.colgroup=ne.caption=ne.thead,ne.th=ne.td,dn.option||(ne.optgroup=ne.option=[1,""]);var ee=/<|&#?\w+;/,le=/^([^.]*)(?:\.(.+)|)/;_n.event={global:{},add:function(n,e,l,t,i){var r,o,u,a,s,c,h,p,f,d,g,m=Ln.get(n);if($n(n))for(l.handler&&(l=(r=l).handler,i=r.selector),i&&_n.find.matchesSelector(Wn,i),l.guid||(l.guid=_n.guid++),(a=m.events)||(a=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(e){return _n.event.triggered!==e.type?_n.event.dispatch.apply(n,arguments):void 0}),s=(e=(e||"").match(An)||[""]).length;s--;)f=g=(u=le.exec(e[s])||[])[1],d=(u[2]||"").split(".").sort(),f&&(h=_n.event.special[f]||{},h=_n.event.special[f=(i?h.delegateType:h.bindType)||f]||{},c=_n.extend({type:f,origType:g,data:t,handler:l,guid:l.guid,selector:i,needsContext:i&&_n.expr.match.needsContext.test(i),namespace:d.join(".")},r),(p=a[f])||((p=a[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(n,t,d,o)||n.addEventListener&&n.addEventListener(f,o)),h.add&&(h.add.call(n,c),c.handler.guid||(c.handler.guid=l.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),_n.event.global[f]=!0)},remove:function(n,e,l,t,i){var r,o,u,a,s,c,h,p,f,d,g,m=Ln.hasData(n)&&Ln.get(n);if(m&&(a=m.events)){for(s=(e=(e||"").match(An)||[""]).length;s--;)if(f=g=(u=le.exec(e[s])||[])[1],d=(u[2]||"").split(".").sort(),f){for(h=_n.event.special[f]||{},p=a[f=(t?h.delegateType:h.bindType)||f]||[],u=u[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=p.length;r--;)c=p[r],!i&&g!==c.origType||l&&l.guid!==c.guid||u&&!u.test(c.namespace)||t&&t!==c.selector&&("**"!==t||!c.selector)||(p.splice(r,1),c.selector&&p.delegateCount--,h.remove&&h.remove.call(n,c));o&&!p.length&&(h.teardown&&!1!==h.teardown.call(n,d,m.handle)||_n.removeEvent(n,f,m.handle),delete a[f])}else for(f in a)_n.event.remove(n,f+e[s],l,t,!0);_n.isEmptyObject(a)&&Ln.remove(n,"handle events")}},dispatch:function(n){var e,l,t,i,r,o,u=new Array(arguments.length),a=_n.event.fix(n),s=(Ln.get(this,"events")||Object.create(null))[a.type]||[],c=_n.event.special[a.type]||{};for(u[0]=a,e=1;e=1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&("click"!==n.type||!0!==s.disabled)){for(r=[],o={},l=0;l-1:_n.find(i,this,null,[s]).length),o[i]&&r.push(t);r.length&&u.push({elem:s,handlers:r})}return s=this,a\s*$/g;_n.extend({htmlPrefilter:function(n){return n},clone:function(n,e,l){var t,i,r,o,u=n.cloneNode(!0),a=Gn(n);if(!(dn.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||_n.isXMLDoc(n)))for(o=F(u),t=0,i=(r=F(n)).length;t0&&k(o,!a&&F(n,"script")),u},cleanData:function(n){for(var e,l,t,i=_n.event.special,r=0;void 0!==(l=n[r]);r++)if($n(l)){if(e=l[Ln.expando]){if(e.events)for(t in e.events)i[t]?_n.event.remove(l,t):_n.removeEvent(l,t,e.handle);l[Ln.expando]=void 0}l[Bn.expando]&&(l[Bn.expando]=void 0)}}}),_n.fn.extend({detach:function(n){return $(this,n,!0)},remove:function(n){return $(this,n)},text:function(n){return In(this,(function(n){return void 0===n?_n.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)}))}),null,n,arguments.length)},append:function(){return P(this,arguments,(function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||A(this,n).appendChild(n)}))},prepend:function(){return P(this,arguments,(function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=A(this,n);e.insertBefore(n,e.firstChild)}}))},before:function(){return P(this,arguments,(function(n){this.parentNode&&this.parentNode.insertBefore(n,this)}))},after:function(){return P(this,arguments,(function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)}))},empty:function(){for(var n,e=0;null!=(n=this[e]);e++)1===n.nodeType&&(_n.cleanData(F(n,!1)),n.textContent="");return this},clone:function(n,e){return n=null!=n&&n,e=null==e?n:e,this.map((function(){return _n.clone(this,n,e)}))},html:function(n){return In(this,(function(n){var e=this[0]||{},l=0,t=this.length;if(void 0===n&&1===e.nodeType)return e.innerHTML;if("string"==typeof n&&!te.test(n)&&!ne[(Zn.exec(n)||["",""])[1].toLowerCase()]){n=_n.htmlPrefilter(n);try{for(;l1)}}),_n.Tween=H,(H.prototype={constructor:H,init:function(n,e,l,t,i,r){this.elem=n,this.prop=l,this.easing=i||_n.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=t,this.unit=r||(_n.cssNumber[l]?"":"px")},cur:function(){var n=H.propHooks[this.prop];return n&&n.get?n.get(this):H.propHooks._default.get(this)},run:function(n){var e,l=H.propHooks[this.prop];return this.pos=e=this.options.duration?_n.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),l&&l.set?l.set(this):H.propHooks._default.set(this),this}}).init.prototype=H.prototype,(H.propHooks={_default:{get:function(n){var e;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(e=_n.css(n.elem,n.prop,""))&&"auto"!==e?e:0},set:function(n){_n.fx.step[n.prop]?_n.fx.step[n.prop](n):1!==n.elem.nodeType||!_n.cssHooks[n.prop]&&null==n.elem.style[R(n.prop)]?n.elem[n.prop]=n.now:_n.style(n.elem,n.prop,n.now+n.unit)}}}).scrollTop=H.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}},_n.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"},(_n.fx=H.prototype.init).step={};var ve,be,ye=/^(?:toggle|show|hide)$/,_e=/queueHooks$/;_n.Animation=_n.extend(V,{tweeners:{"*":[function(n,e){var l=this.createTween(n,e);return y(l.elem,n,Un.exec(e),l),l}]},tweener:function(n,e){gn(n)?(e=n,n=["*"]):n=n.match(An);for(var l,t=0,i=n.length;t1)},removeAttr:function(n){return this.each((function(){_n.removeAttr(this,n)}))}}),_n.extend({attr:function(n,e,l){var t,i,r=n.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===n.getAttribute?_n.prop(n,e,l):(1===r&&_n.isXMLDoc(n)||(i=_n.attrHooks[e.toLowerCase()]||(_n.expr.match.bool.test(e)?we:void 0)),void 0!==l?null===l?void _n.removeAttr(n,e):i&&"set"in i&&void 0!==(t=i.set(n,l,e))?t:(n.setAttribute(e,l+""),l):i&&"get"in i&&null!==(t=i.get(n,e))?t:null==(t=_n.find.attr(n,e))?void 0:t)},attrHooks:{type:{set:function(n,e){if(!dn.radioValue&&"radio"===e&&a(n,"input")){var l=n.value;return n.setAttribute("type",e),l&&(n.value=l),e}}}},removeAttr:function(n,e){var l,t=0,i=e&&e.match(An);if(i&&1===n.nodeType)for(;l=i[t++];)n.removeAttribute(l)}}),we={set:function(n,e,l){return!1===e?_n.removeAttr(n,l):n.setAttribute(l,l),l}},_n.each(_n.expr.match.bool.source.match(/\w+/g),(function(n,e){var l=Fe[e]||_n.find.attr;Fe[e]=function(n,e,t){var i,r,o=e.toLowerCase();return t||(r=Fe[o],Fe[o]=i,i=null!=l(n,e,t)?o:null,Fe[o]=r),i}}));var ke=/^(?:input|select|textarea|button)$/i,xe=/^(?:a|area)$/i;_n.fn.extend({prop:function(n,e){return In(this,_n.prop,n,e,arguments.length>1)},removeProp:function(n){return this.each((function(){delete this[_n.propFix[n]||n]}))}}),_n.extend({prop:function(n,e,l){var t,i,r=n.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&_n.isXMLDoc(n)||(i=_n.propHooks[e=_n.propFix[e]||e]),void 0!==l?i&&"set"in i&&void 0!==(t=i.set(n,l,e))?t:n[e]=l:i&&"get"in i&&null!==(t=i.get(n,e))?t:n[e]},propHooks:{tabIndex:{get:function(n){var e=_n.find.attr(n,"tabindex");return e?parseInt(e,10):ke.test(n.nodeName)||xe.test(n.nodeName)&&n.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),dn.optSelected||(_n.propHooks.selected={get:function(){return null},set:function(){}}),_n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_n.propFix[this.toLowerCase()]=this})),_n.fn.extend({addClass:function(n){var e,l,t,i,r,o,u,a=0;if(gn(n))return this.each((function(e){_n(this).addClass(n.call(this,e,Y(this)))}));if((e=Q(n)).length)for(;l=this[a++];)if(i=Y(l),t=1===l.nodeType&&" "+J(i)+" "){for(o=0;r=e[o++];)t.indexOf(" "+r+" ")<0&&(t+=r+" ");i!==(u=J(t))&&l.setAttribute("class",u)}return this},removeClass:function(n){var e,l,t,i,r,o,u,a=0;if(gn(n))return this.each((function(e){_n(this).removeClass(n.call(this,e,Y(this)))}));if(!arguments.length)return this.attr("class","");if((e=Q(n)).length)for(;l=this[a++];)if(i=Y(l),t=1===l.nodeType&&" "+J(i)+" "){for(o=0;r=e[o++];)for(;t.indexOf(" "+r+" ")>-1;)t=t.replace(" "+r+" "," ");i!==(u=J(t))&&l.setAttribute("class",u)}return this},toggleClass:function(n,e){var l=typeof n,t="string"===l||Array.isArray(n);return"boolean"==typeof e&&t?e?this.addClass(n):this.removeClass(n):gn(n)?this.each((function(l){_n(this).toggleClass(n.call(this,l,Y(this),e),e)})):this.each((function(){var e,i,r,o;if(t)for(i=0,r=_n(this),o=Q(n);e=o[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==n&&"boolean"!==l||((e=Y(this))&&Ln.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===n?"":Ln.get(this,"__className__")||""))}))},hasClass:function(n){var e,l,t=0;for(e=" "+n+" ";l=this[t++];)if(1===l.nodeType&&(" "+J(Y(l))+" ").indexOf(e)>-1)return!0;return!1}});var Ce=/\r/g;_n.fn.extend({val:function(n){var e,l,t,i=this[0];return arguments.length?(t=gn(n),this.each((function(l){var i;1===this.nodeType&&(null==(i=t?n.call(this,l,_n(this).val()):n)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=_n.map(i,(function(n){return null==n?"":n+""}))),(e=_n.valHooks[this.type]||_n.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=_n.valHooks[i.type]||_n.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(l=e.get(i,"value"))?l:"string"==typeof(l=i.value)?l.replace(Ce,""):null==l?"":l:void 0}}),_n.extend({valHooks:{option:{get:function(n){var e=_n.find.attr(n,"value");return null!=e?e:J(_n.text(n))}},select:{get:function(n){var e,l,t,i=n.options,r=n.selectedIndex,o="select-one"===n.type,u=o?null:[],s=o?r+1:i.length;for(t=r<0?s:o?r:0;t-1)&&(l=!0);return l||(n.selectedIndex=-1),r}}}}),_n.each(["radio","checkbox"],(function(){_n.valHooks[this]={set:function(n,e){if(Array.isArray(e))return n.checked=_n.inArray(_n(n).val(),e)>-1}},dn.checkOn||(_n.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})})),dn.focusin="onfocusin"in t;var Se=/^(?:focusinfocus|focusoutblur)$/,Ee=function(n){n.stopPropagation()};_n.extend(_n.event,{trigger:function(n,e,l,i){var r,o,u,a,s,c,h,p,f=[l||vn],d=hn.call(n,"type")?n.type:n,g=hn.call(n,"namespace")?n.namespace.split("."):[];if(o=p=u=l=l||vn,3!==l.nodeType&&8!==l.nodeType&&!Se.test(d+_n.event.triggered)&&(d.indexOf(".")>-1&&(g=d.split("."),d=g.shift(),g.sort()),s=d.indexOf(":")<0&&"on"+d,(n=n[_n.expando]?n:new _n.Event(d,"object"==typeof n&&n)).isTrigger=i?2:3,n.namespace=g.join("."),n.rnamespace=n.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=void 0,n.target||(n.target=l),e=null==e?[n]:_n.makeArray(e,[n]),h=_n.event.special[d]||{},i||!h.trigger||!1!==h.trigger.apply(l,e))){if(!i&&!h.noBubble&&!mn(l)){for(Se.test((a=h.delegateType||d)+d)||(o=o.parentNode);o;o=o.parentNode)f.push(o),u=o;u===(l.ownerDocument||vn)&&f.push(u.defaultView||u.parentWindow||t)}for(r=0;(o=f[r++])&&!n.isPropagationStopped();)p=o,n.type=r>1?a:h.bindType||d,(c=(Ln.get(o,"events")||Object.create(null))[n.type]&&Ln.get(o,"handle"))&&c.apply(o,e),(c=s&&o[s])&&c.apply&&$n(o)&&(n.result=c.apply(o,e),!1===n.result&&n.preventDefault());return n.type=d,i||n.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),e)||!$n(l)||s&&gn(l[d])&&!mn(l)&&((u=l[s])&&(l[s]=null),_n.event.triggered=d,n.isPropagationStopped()&&p.addEventListener(d,Ee),l[d](),n.isPropagationStopped()&&p.removeEventListener(d,Ee),_n.event.triggered=void 0,u&&(l[s]=u)),n.result}},simulate:function(n,e,l){var t=_n.extend(new _n.Event,l,{type:n,isSimulated:!0});_n.event.trigger(t,null,e)}}),_n.fn.extend({trigger:function(n,e){return this.each((function(){_n.event.trigger(n,e,this)}))},triggerHandler:function(n,e){var l=this[0];if(l)return _n.event.trigger(n,e,l,!0)}}),dn.focusin||_n.each({focus:"focusin",blur:"focusout"},(function(n,e){var l=function(n){_n.event.simulate(e,n.target,_n.event.fix(n))};_n.event.special[e]={setup:function(){var t=this.ownerDocument||this.document||this,i=Ln.access(t,e);i||t.addEventListener(n,l,!0),Ln.access(t,e,(i||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,i=Ln.access(t,e)-1;i?Ln.access(t,e,i):(t.removeEventListener(n,l,!0),Ln.remove(t,e))}}}));var Te=t.location,Oe={guid:Date.now()},Ae=/\?/;_n.parseXML=function(n){var e,l;if(!n||"string"!=typeof n)return null;try{e=(new t.DOMParser).parseFromString(n,"text/xml")}catch(n){}return l=e&&e.getElementsByTagName("parsererror")[0],e&&!l||_n.error("Invalid XML: "+(l?_n.map(l.childNodes,(function(n){return n.textContent})).join("\n"):n)),e};var je=/\[\]$/,De=/\r?\n/g,Ie=/^(?:submit|button|image|reset|file)$/i,Me=/^(?:input|select|textarea|keygen)/i;_n.param=function(n,e){var l,t=[],i=function(n,e){var l=gn(e)?e():e;t[t.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==l?"":l)};if(null==n)return"";if(Array.isArray(n)||n.jquery&&!_n.isPlainObject(n))_n.each(n,(function(){i(this.name,this.value)}));else for(l in n)Z(l,n[l],e,i);return t.join("&")},_n.fn.extend({serialize:function(){return _n.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var n=_n.prop(this,"elements");return n?_n.makeArray(n):this})).filter((function(){var n=this.type;return this.name&&!_n(this).is(":disabled")&&Me.test(this.nodeName)&&!Ie.test(n)&&(this.checked||!Qn.test(n))})).map((function(n,e){var l=_n(this).val();return null==l?null:Array.isArray(l)?_n.map(l,(function(n){return{name:e.name,value:n.replace(De,"\r\n")}})):{name:e.name,value:l.replace(De,"\r\n")}})).get()}});var Pe=/%20/g,$e=/#.*$/,Le=/([?&])_=[^&]*/,Be=/^(.*?):[ \t]*([^\r\n]*)$/gm,Re=/^(?:GET|HEAD)$/,ze=/^\/\//,Ne={},Ue={},He="*/".concat("*"),We=vn.createElement("a");We.href=Te.href,_n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Te.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Te.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":He,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,e){return e?en(en(n,_n.ajaxSettings),e):en(_n.ajaxSettings,n)},ajaxPrefilter:X(Ne),ajaxTransport:X(Ue),ajax:function(n,e){function l(n,e,l,u){var s,p,f,_,w,F=e;c||(c=!0,a&&t.clearTimeout(a),i=void 0,o=u||"",k.readyState=n>0?4:0,s=n>=200&&n<300||304===n,l&&(_=function(n,e,l){for(var t,i,r,o,u=n.contents,a=n.dataTypes;"*"===a[0];)a.shift(),void 0===t&&(t=n.mimeType||e.getResponseHeader("Content-Type"));if(t)for(i in u)if(u[i]&&u[i].test(t)){a.unshift(i);break}if(a[0]in l)r=a[0];else{for(i in l){if(!a[0]||n.converters[i+" "+a[0]]){r=i;break}o||(o=i)}r=r||o}if(r)return r!==a[0]&&a.unshift(r),l[r]}(d,k,l)),!s&&_n.inArray("script",d.dataTypes)>-1&&_n.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),_=function(n,e,l,t){var i,r,o,u,a,s={},c=n.dataTypes.slice();if(c[1])for(o in n.converters)s[o.toLowerCase()]=n.converters[o];for(r=c.shift();r;)if(n.responseFields[r]&&(l[n.responseFields[r]]=e),!a&&t&&n.dataFilter&&(e=n.dataFilter(e,n.dataType)),a=r,r=c.shift())if("*"===r)r=a;else if("*"!==a&&a!==r){if(!(o=s[a+" "+r]||s["* "+r]))for(i in s)if((u=i.split(" "))[1]===r&&(o=s[a+" "+u[0]]||s["* "+u[0]])){!0===o?o=s[i]:!0!==s[i]&&(r=u[0],c.unshift(u[1]));break}if(!0!==o)if(o&&n.throws)e=o(e);else try{e=o(e)}catch(n){return{state:"parsererror",error:o?n:"No conversion from "+a+" to "+r}}}return{state:"success",data:e}}(d,_,k,s),s?(d.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(_n.lastModified[r]=w),(w=k.getResponseHeader("etag"))&&(_n.etag[r]=w)),204===n||"HEAD"===d.type?F="nocontent":304===n?F="notmodified":(F=_.state,p=_.data,s=!(f=_.error))):(f=F,!n&&F||(F="error",n<0&&(n=0))),k.status=n,k.statusText=(e||F)+"",s?v.resolveWith(g,[p,F,k]):v.rejectWith(g,[k,F,f]),k.statusCode(y),y=void 0,h&&m.trigger(s?"ajaxSuccess":"ajaxError",[k,d,s?p:f]),b.fireWith(g,[k,F]),h&&(m.trigger("ajaxComplete",[k,d]),--_n.active||_n.event.trigger("ajaxStop")))}"object"==typeof n&&(e=n,n=void 0);var i,r,o,u,a,s,c,h,p,f,d=_n.ajaxSetup({},e=e||{}),g=d.context||d,m=d.context&&(g.nodeType||g.jquery)?_n(g):_n.event,v=_n.Deferred(),b=_n.Callbacks("once memory"),y=d.statusCode||{},_={},w={},F="canceled",k={readyState:0,getResponseHeader:function(n){var e;if(c){if(!u)for(u={};e=Be.exec(o);)u[e[1].toLowerCase()+" "]=(u[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=u[n.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(n,e){return null==c&&(n=w[n.toLowerCase()]=w[n.toLowerCase()]||n,_[n]=e),this},overrideMimeType:function(n){return null==c&&(d.mimeType=n),this},statusCode:function(n){var e;if(n)if(c)k.always(n[k.status]);else for(e in n)y[e]=[y[e],n[e]];return this},abort:function(n){var e=n||F;return i&&i.abort(e),l(0,e),this}};if(v.promise(k),d.url=((n||d.url||Te.href)+"").replace(ze,Te.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(An)||[""],null==d.crossDomain){s=vn.createElement("a");try{s.href=d.url,s.href=s.href,d.crossDomain=We.protocol+"//"+We.host!=s.protocol+"//"+s.host}catch(n){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=_n.param(d.data,d.traditional)),nn(Ne,d,e,k),c)return k;for(p in(h=_n.event&&d.global)&&0==_n.active++&&_n.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Re.test(d.type),r=d.url.replace($e,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Pe,"+")):(f=d.url.slice(r.length),d.data&&(d.processData||"string"==typeof d.data)&&(r+=(Ae.test(r)?"&":"?")+d.data,delete d.data),!1===d.cache&&(r=r.replace(Le,"$1"),f=(Ae.test(r)?"&":"?")+"_="+Oe.guid+++f),d.url=r+f),d.ifModified&&(_n.lastModified[r]&&k.setRequestHeader("If-Modified-Since",_n.lastModified[r]),_n.etag[r]&&k.setRequestHeader("If-None-Match",_n.etag[r])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&k.setRequestHeader("Content-Type",d.contentType),k.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+He+"; q=0.01":""):d.accepts["*"]),d.headers)k.setRequestHeader(p,d.headers[p]);if(d.beforeSend&&(!1===d.beforeSend.call(g,k,d)||c))return k.abort();if(F="abort",b.add(d.complete),k.done(d.success),k.fail(d.error),i=nn(Ue,d,e,k)){if(k.readyState=1,h&&m.trigger("ajaxSend",[k,d]),c)return k;d.async&&d.timeout>0&&(a=t.setTimeout((function(){k.abort("timeout")}),d.timeout));try{c=!1,i.send(_,l)}catch(n){if(c)throw n;l(-1,n)}}else l(-1,"No Transport");return k},getJSON:function(n,e,l){return _n.get(n,e,l,"json")},getScript:function(n,e){return _n.get(n,void 0,e,"script")}}),_n.each(["get","post"],(function(n,e){_n[e]=function(n,l,t,i){return gn(l)&&(i=i||t,t=l,l=void 0),_n.ajax(_n.extend({url:n,type:e,dataType:i,data:l,success:t},_n.isPlainObject(n)&&n))}})),_n.ajaxPrefilter((function(n){var e;for(e in n.headers)"content-type"===e.toLowerCase()&&(n.contentType=n.headers[e]||"")})),_n._evalUrl=function(n,e,l){return _n.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){_n.globalEval(n,e,l)}})},_n.fn.extend({wrapAll:function(n){var e;return this[0]&&(gn(n)&&(n=n.call(this[0])),e=_n(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n})).append(this)),this},wrapInner:function(n){return gn(n)?this.each((function(e){_n(this).wrapInner(n.call(this,e))})):this.each((function(){var e=_n(this),l=e.contents();l.length?l.wrapAll(n):e.append(n)}))},wrap:function(n){var e=gn(n);return this.each((function(l){_n(this).wrapAll(e?n.call(this,l):n)}))},unwrap:function(n){return this.parent(n).not("body").each((function(){_n(this).replaceWith(this.childNodes)})),this}}),_n.expr.pseudos.hidden=function(n){return!_n.expr.pseudos.visible(n)},_n.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},_n.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(n){}};var Ge={0:200,1223:204},qe=_n.ajaxSettings.xhr();dn.cors=!!qe&&"withCredentials"in qe,dn.ajax=qe=!!qe,_n.ajaxTransport((function(n){var e,l;if(dn.cors||qe&&!n.crossDomain)return{send:function(i,r){var o,u=n.xhr();if(u.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(o in n.xhrFields)u[o]=n.xhrFields[o];for(o in n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)u.setRequestHeader(o,i[o]);e=function(n){return function(){e&&(e=l=u.onload=u.onerror=u.onabort=u.ontimeout=u.onreadystatechange=null,"abort"===n?u.abort():"error"===n?"number"!=typeof u.status?r(0,"error"):r(u.status,u.statusText):r(Ge[u.status]||u.status,u.statusText,"text"!==(u.responseType||"text")||"string"!=typeof u.responseText?{binary:u.response}:{text:u.responseText},u.getAllResponseHeaders()))}},u.onload=e(),l=u.onerror=u.ontimeout=e("error"),void 0!==u.onabort?u.onabort=l:u.onreadystatechange=function(){4===u.readyState&&t.setTimeout((function(){e&&l()}))},e=e("abort");try{u.send(n.hasContent&&n.data||null)}catch(n){if(e)throw n}},abort:function(){e&&e()}}})),_n.ajaxPrefilter((function(n){n.crossDomain&&(n.contents.script=!1)})),_n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return _n.globalEval(n),n}}}),_n.ajaxPrefilter("script",(function(n){void 0===n.cache&&(n.cache=!1),n.crossDomain&&(n.type="GET")})),_n.ajaxTransport("script",(function(n){var e,l;if(n.crossDomain||n.scriptAttrs)return{send:function(t,i){e=_n("\n if(val==='')return true;if(val==='false')return false;if(val==='true')return true;return val;}if(DOCUMENT&&typeof DOCUMENT.querySelector==='function'){var attrs=[['data-family-prefix','familyPrefix'],['data-replacement-class','replacementClass'],['data-auto-replace-svg','autoReplaceSvg'],['data-auto-add-css','autoAddCss'],['data-auto-a11y','autoA11y'],['data-search-pseudo-elements','searchPseudoElements'],['data-observe-mutations','observeMutations'],['data-mutate-approach','mutateApproach'],['data-keep-original-source','keepOriginalSource'],['data-measure-performance','measurePerformance'],['data-show-missing-icons','showMissingIcons']];attrs.forEach(function(_ref){var _ref2=_slicedToArray(_ref,2),attr=_ref2[0],key=_ref2[1];var val=coerce(getAttrConfig(attr));if(val!==undefined&&val!==null){initial[key]=val;}});}var _default={familyPrefix:DEFAULT_FAMILY_PREFIX,replacementClass:DEFAULT_REPLACEMENT_CLASS,autoReplaceSvg:true,autoAddCss:true,autoA11y:true,searchPseudoElements:false,observeMutations:true,mutateApproach:'async',keepOriginalSource:true,measurePerformance:false,showMissingIcons:true};var _config=_objectSpread({},_default,initial);if(!_config.autoReplaceSvg)_config.observeMutations=false;var config=_objectSpread({},_config);WINDOW.FontAwesomeConfig=config;var w=WINDOW||{};if(!w[NAMESPACE_IDENTIFIER])w[NAMESPACE_IDENTIFIER]={};if(!w[NAMESPACE_IDENTIFIER].styles)w[NAMESPACE_IDENTIFIER].styles={};if(!w[NAMESPACE_IDENTIFIER].hooks)w[NAMESPACE_IDENTIFIER].hooks={};if(!w[NAMESPACE_IDENTIFIER].shims)w[NAMESPACE_IDENTIFIER].shims=[];var namespace=w[NAMESPACE_IDENTIFIER];var functions=[];var listener=function listener(){DOCUMENT.removeEventListener('DOMContentLoaded',listener);loaded=1;functions.map(function(fn){return fn();});};var loaded=false;if(IS_DOM){loaded=(DOCUMENT.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(DOCUMENT.readyState);if(!loaded)DOCUMENT.addEventListener('DOMContentLoaded',listener);}var isNode=typeof global!=='undefined'&&typeof global.process!=='undefined'&&typeof global.process.emit==='function';var meaninglessTransform={size:16,x:0,y:0,rotate:0,flipX:false,flipY:false};function insertCss(css){if(!css||!IS_DOM){return;}var style=DOCUMENT.createElement('style');style.setAttribute('type','text/css');style.innerHTML=css;var headChildren=DOCUMENT.head.childNodes;var beforeChild=null;for(var i=headChildren.length-1;i>-1;i--){var child=headChildren[i];var tagName=(child.tagName||'').toUpperCase();if(['STYLE','LINK'].indexOf(tagName)>-1){beforeChild=child;}}DOCUMENT.head.insertBefore(style,beforeChild);return css;}var idPool='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';function nextUniqueId(){var size=12;var id='';while(size-->0){id+=idPool[Math.random()*62|0];}return id;}function htmlEscape(str){return \"\".concat(str).replace(/&/g,'&').replace(/\"/g,'"').replace(/'/g,''').replace(//g,'>');}function joinAttributes(attributes){return Object.keys(attributes||{}).reduce(function(acc,attributeName){return acc+\"\".concat(attributeName,\"=\\\"\").concat(htmlEscape(attributes[attributeName]),\"\\\" \");},'').trim();}function joinStyles(styles){return Object.keys(styles||{}).reduce(function(acc,styleName){return acc+\"\".concat(styleName,\": \").concat(styles[styleName],\";\");},'');}function transformIsMeaningful(transform){return transform.size!==meaninglessTransform.size||transform.x!==meaninglessTransform.x||transform.y!==meaninglessTransform.y||transform.rotate!==meaninglessTransform.rotate||transform.flipX||transform.flipY;}function transformForSvg(_ref){var transform=_ref.transform,containerWidth=_ref.containerWidth,iconWidth=_ref.iconWidth;var outer={transform:\"translate(\".concat(containerWidth/2,\" 256)\")};var innerTranslate=\"translate(\".concat(transform.x*32,\", \").concat(transform.y*32,\") \");var innerScale=\"scale(\".concat(transform.size/16*(transform.flipX?-1:1),\", \").concat(transform.size/16*(transform.flipY?-1:1),\") \");var innerRotate=\"rotate(\".concat(transform.rotate,\" 0 0)\");var inner={transform:\"\".concat(innerTranslate,\" \").concat(innerScale,\" \").concat(innerRotate)};var path={transform:\"translate(\".concat(iconWidth/2*-1,\" -256)\")};return {outer:outer,inner:inner,path:path};}var ALL_SPACE={x:0,y:0,width:'100%',height:'100%'};function fillBlack(abstract){var force=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(abstract.attributes&&(abstract.attributes.fill||force)){abstract.attributes.fill='black';}return abstract;}function deGroup(abstract){if(abstract.tag==='g'){return abstract.children;}else{return [abstract];}}function makeIconMasking(_ref){var children=_ref.children,attributes=_ref.attributes,main=_ref.main,mask=_ref.mask,transform=_ref.transform;var mainWidth=main.width,mainPath=main.icon;var maskWidth=mask.width,maskPath=mask.icon;var trans=transformForSvg({transform:transform,containerWidth:maskWidth,iconWidth:mainWidth});var maskRect={tag:'rect',attributes:_objectSpread({},ALL_SPACE,{fill:'white'})};var maskInnerGroupChildrenMixin=mainPath.children?{children:mainPath.children.map(fillBlack)}:{};var maskInnerGroup={tag:'g',attributes:_objectSpread({},trans.inner),children:[fillBlack(_objectSpread({tag:mainPath.tag,attributes:_objectSpread({},mainPath.attributes,trans.path)},maskInnerGroupChildrenMixin))]};var maskOuterGroup={tag:'g',attributes:_objectSpread({},trans.outer),children:[maskInnerGroup]};var maskId=\"mask-\".concat(nextUniqueId());var clipId=\"clip-\".concat(nextUniqueId());var maskTag={tag:'mask',attributes:_objectSpread({},ALL_SPACE,{id:maskId,maskUnits:'userSpaceOnUse',maskContentUnits:'userSpaceOnUse'}),children:[maskRect,maskOuterGroup]};var defs={tag:'defs',children:[{tag:'clipPath',attributes:{id:clipId},children:deGroup(maskPath)},maskTag]};children.push(defs,{tag:'rect',attributes:_objectSpread({fill:'currentColor','clip-path':\"url(#\".concat(clipId,\")\"),mask:\"url(#\".concat(maskId,\")\")},ALL_SPACE)});return {children:children,attributes:attributes};}function makeIconStandard(_ref){var children=_ref.children,attributes=_ref.attributes,main=_ref.main,transform=_ref.transform,styles=_ref.styles;var styleString=joinStyles(styles);if(styleString.length>0){attributes['style']=styleString;}if(transformIsMeaningful(transform)){var trans=transformForSvg({transform:transform,containerWidth:main.width,iconWidth:main.width});children.push({tag:'g',attributes:_objectSpread({},trans.outer),children:[{tag:'g',attributes:_objectSpread({},trans.inner),children:[{tag:main.icon.tag,children:main.icon.children,attributes:_objectSpread({},main.icon.attributes,trans.path)}]}]});}else{children.push(main.icon);}return {children:children,attributes:attributes};}function asIcon(_ref){var children=_ref.children,main=_ref.main,mask=_ref.mask,attributes=_ref.attributes,styles=_ref.styles,transform=_ref.transform;if(transformIsMeaningful(transform)&&main.found&&!mask.found){var width=main.width,height=main.height;var offset={x:width/height/2,y:0.5};attributes['style']=joinStyles(_objectSpread({},styles,{'transform-origin':\"\".concat(offset.x+transform.x/16,\"em \").concat(offset.y+transform.y/16,\"em\")}));}return [{tag:'svg',attributes:attributes,children:children}];}function asSymbol(_ref){var prefix=_ref.prefix,iconName=_ref.iconName,children=_ref.children,attributes=_ref.attributes,symbol=_ref.symbol;var id=symbol===true?\"\".concat(prefix,\"-\").concat(config.familyPrefix,\"-\").concat(iconName):symbol;return [{tag:'svg',attributes:{style:'display: none;'},children:[{tag:'symbol',attributes:_objectSpread({},attributes,{id:id}),children:children}]}];}function makeInlineSvgAbstract(params){var _params$icons=params.icons,main=_params$icons.main,mask=_params$icons.mask,prefix=params.prefix,iconName=params.iconName,transform=params.transform,symbol=params.symbol,title=params.title,extra=params.extra,_params$watchable=params.watchable,watchable=_params$watchable===void 0?false:_params$watchable;var _ref=mask.found?mask:main,width=_ref.width,height=_ref.height;var widthClass=\"fa-w-\".concat(Math.ceil(width/height*16));var attrClass=[config.replacementClass,iconName?\"\".concat(config.familyPrefix,\"-\").concat(iconName):'',widthClass].filter(function(c){return extra.classes.indexOf(c)===-1;}).concat(extra.classes).join(' ');var content={children:[],attributes:_objectSpread({},extra.attributes,{'data-prefix':prefix,'data-icon':iconName,'class':attrClass,'role':extra.attributes.role||'img','xmlns':'http://www.w3.org/2000/svg','viewBox':\"0 0 \".concat(width,\" \").concat(height)})};if(watchable){content.attributes[DATA_FA_I2SVG]='';}if(title)content.children.push({tag:'title',attributes:{id:content.attributes['aria-labelledby']||\"title-\".concat(nextUniqueId())},children:[title]});var args=_objectSpread({},content,{prefix:prefix,iconName:iconName,main:main,mask:mask,transform:transform,symbol:symbol,styles:extra.styles});var _ref2=mask.found&&main.found?makeIconMasking(args):makeIconStandard(args),children=_ref2.children,attributes=_ref2.attributes;args.children=children;args.attributes=attributes;if(symbol){return asSymbol(args);}else{return asIcon(args);}}var noop$1=function noop(){};var p=config.measurePerformance&&PERFORMANCE&&PERFORMANCE.mark&&PERFORMANCE.measure?PERFORMANCE:{mark:noop$1,measure:noop$1};/**\n * Internal helper to bind a function known to have 4 arguments\n * to a given context.\n */var bindInternal4=function bindInternal4(func,thisContext){return function(a,b,c,d){return func.call(thisContext,a,b,c,d);};};/**\n * # Reduce\n *\n * A fast object `.reduce()` implementation.\n *\n * @param {Object} subject The object to reduce over.\n * @param {Function} fn The reducer function.\n * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].\n * @param {Object} thisContext The context for the reducer.\n * @return {mixed} The final result.\n */var reduce=function fastReduceObject(subject,fn,initialValue,thisContext){var keys=Object.keys(subject),length=keys.length,iterator=thisContext!==undefined?bindInternal4(fn,thisContext):fn,i,key,result;if(initialValue===undefined){i=1;result=subject[keys[0]];}else{i=0;result=initialValue;}for(;i2&&arguments[2]!==undefined?arguments[2]:{};var _params$skipHooks=params.skipHooks,skipHooks=_params$skipHooks===void 0?false:_params$skipHooks;var normalized=Object.keys(icons).reduce(function(acc,iconName){var icon=icons[iconName];var expanded=!!icon.icon;if(expanded){acc[icon.iconName]=icon.icon;}else{acc[iconName]=icon;}return acc;},{});if(typeof namespace.hooks.addPack==='function'&&!skipHooks){namespace.hooks.addPack(prefix,normalized);}else{namespace.styles[prefix]=_objectSpread({},namespace.styles[prefix]||{},normalized);}/**\n * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction\n * of new styles we needed to differentiate between them. Prefix `fa` is now an alias\n * for `fas` so we'll easy the upgrade process for our users by automatically defining\n * this as well.\n */if(prefix==='fas'){defineIcons('fa',icons);}}var styles=namespace.styles,shims=namespace.shims;var _byUnicode={};var _byLigature={};var _byOldName={};var build=function build(){var lookup=function lookup(reducer){return reduce(styles,function(o,style,prefix){o[prefix]=reduce(style,reducer,{});return o;},{});};_byUnicode=lookup(function(acc,icon,iconName){if(icon[3]){acc[icon[3]]=iconName;}return acc;});_byLigature=lookup(function(acc,icon,iconName){var ligatures=icon[2];acc[iconName]=iconName;ligatures.forEach(function(ligature){acc[ligature]=iconName;});return acc;});var hasRegular='far'in styles;_byOldName=reduce(shims,function(acc,shim){var oldName=shim[0];var prefix=shim[1];var iconName=shim[2];if(prefix==='far'&&!hasRegular){prefix='fas';}acc[oldName]={prefix:prefix,iconName:iconName};return acc;},{});};build();var styles$1=namespace.styles;function iconFromMapping(mapping,prefix,iconName){if(mapping&&mapping[prefix]&&mapping[prefix][iconName]){return {prefix:prefix,iconName:iconName,icon:mapping[prefix][iconName]};}}function toHtml(abstractNodes){var tag=abstractNodes.tag,_abstractNodes$attrib=abstractNodes.attributes,attributes=_abstractNodes$attrib===void 0?{}:_abstractNodes$attrib,_abstractNodes$childr=abstractNodes.children,children=_abstractNodes$childr===void 0?[]:_abstractNodes$childr;if(typeof abstractNodes==='string'){return htmlEscape(abstractNodes);}else{return \"<\".concat(tag,\" \").concat(joinAttributes(attributes),\">\").concat(children.map(toHtml).join(''),\"\");}}function MissingIcon(error){this.name='MissingIcon';this.message=error||'Icon unavailable';this.stack=new Error().stack;}MissingIcon.prototype=Object.create(Error.prototype);MissingIcon.prototype.constructor=MissingIcon;var FILL={fill:'currentColor'};var ANIMATION_BASE={attributeType:'XML',repeatCount:'indefinite',dur:'2s'};var RING={tag:'path',attributes:_objectSpread({},FILL,{d:'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'})};var OPACITY_ANIMATE=_objectSpread({},ANIMATION_BASE,{attributeName:'opacity'});var DOT={tag:'circle',attributes:_objectSpread({},FILL,{cx:'256',cy:'364',r:'28'}),children:[{tag:'animate',attributes:_objectSpread({},ANIMATION_BASE,{attributeName:'r',values:'28;14;28;28;14;28;'})},{tag:'animate',attributes:_objectSpread({},OPACITY_ANIMATE,{values:'1;0;1;1;0;1;'})}]};var QUESTION={tag:'path',attributes:_objectSpread({},FILL,{opacity:'1',d:'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'}),children:[{tag:'animate',attributes:_objectSpread({},OPACITY_ANIMATE,{values:'1;0;0;0;0;1;'})}]};var EXCLAMATION={tag:'path',attributes:_objectSpread({},FILL,{opacity:'0',d:'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'}),children:[{tag:'animate',attributes:_objectSpread({},OPACITY_ANIMATE,{values:'0;0;1;1;0;0;'})}]};var styles$2=namespace.styles;function asFoundIcon(icon){var width=icon[0];var height=icon[1];var _icon$slice=icon.slice(4),_icon$slice2=_slicedToArray(_icon$slice,1),vectorData=_icon$slice2[0];var element=null;if(Array.isArray(vectorData)){element={tag:'g',attributes:{class:\"\".concat(config.familyPrefix,\"-\").concat(DUOTONE_CLASSES.GROUP)},children:[{tag:'path',attributes:{class:\"\".concat(config.familyPrefix,\"-\").concat(DUOTONE_CLASSES.SECONDARY),fill:'currentColor',d:vectorData[0]}},{tag:'path',attributes:{class:\"\".concat(config.familyPrefix,\"-\").concat(DUOTONE_CLASSES.PRIMARY),fill:'currentColor',d:vectorData[1]}}]};}else{element={tag:'path',attributes:{fill:'currentColor',d:vectorData}};}return {found:true,width:width,height:height,icon:element};}var styles$3=namespace.styles;var baseStyles=\"svg:not(:root).svg-inline--fa {\\n overflow: visible;\\n}\\n\\n.svg-inline--fa {\\n display: inline-block;\\n font-size: inherit;\\n height: 1em;\\n overflow: visible;\\n vertical-align: -0.125em;\\n}\\n.svg-inline--fa.fa-lg {\\n vertical-align: -0.225em;\\n}\\n.svg-inline--fa.fa-w-1 {\\n width: 0.0625em;\\n}\\n.svg-inline--fa.fa-w-2 {\\n width: 0.125em;\\n}\\n.svg-inline--fa.fa-w-3 {\\n width: 0.1875em;\\n}\\n.svg-inline--fa.fa-w-4 {\\n width: 0.25em;\\n}\\n.svg-inline--fa.fa-w-5 {\\n width: 0.3125em;\\n}\\n.svg-inline--fa.fa-w-6 {\\n width: 0.375em;\\n}\\n.svg-inline--fa.fa-w-7 {\\n width: 0.4375em;\\n}\\n.svg-inline--fa.fa-w-8 {\\n width: 0.5em;\\n}\\n.svg-inline--fa.fa-w-9 {\\n width: 0.5625em;\\n}\\n.svg-inline--fa.fa-w-10 {\\n width: 0.625em;\\n}\\n.svg-inline--fa.fa-w-11 {\\n width: 0.6875em;\\n}\\n.svg-inline--fa.fa-w-12 {\\n width: 0.75em;\\n}\\n.svg-inline--fa.fa-w-13 {\\n width: 0.8125em;\\n}\\n.svg-inline--fa.fa-w-14 {\\n width: 0.875em;\\n}\\n.svg-inline--fa.fa-w-15 {\\n width: 0.9375em;\\n}\\n.svg-inline--fa.fa-w-16 {\\n width: 1em;\\n}\\n.svg-inline--fa.fa-w-17 {\\n width: 1.0625em;\\n}\\n.svg-inline--fa.fa-w-18 {\\n width: 1.125em;\\n}\\n.svg-inline--fa.fa-w-19 {\\n width: 1.1875em;\\n}\\n.svg-inline--fa.fa-w-20 {\\n width: 1.25em;\\n}\\n.svg-inline--fa.fa-pull-left {\\n margin-right: 0.3em;\\n width: auto;\\n}\\n.svg-inline--fa.fa-pull-right {\\n margin-left: 0.3em;\\n width: auto;\\n}\\n.svg-inline--fa.fa-border {\\n height: 1.5em;\\n}\\n.svg-inline--fa.fa-li {\\n width: 2em;\\n}\\n.svg-inline--fa.fa-fw {\\n width: 1.25em;\\n}\\n\\n.fa-layers svg.svg-inline--fa {\\n bottom: 0;\\n left: 0;\\n margin: auto;\\n position: absolute;\\n right: 0;\\n top: 0;\\n}\\n\\n.fa-layers {\\n display: inline-block;\\n height: 1em;\\n position: relative;\\n text-align: center;\\n vertical-align: -0.125em;\\n width: 1em;\\n}\\n.fa-layers svg.svg-inline--fa {\\n -webkit-transform-origin: center center;\\n transform-origin: center center;\\n}\\n\\n.fa-layers-counter, .fa-layers-text {\\n display: inline-block;\\n position: absolute;\\n text-align: center;\\n}\\n\\n.fa-layers-text {\\n left: 50%;\\n top: 50%;\\n -webkit-transform: translate(-50%, -50%);\\n transform: translate(-50%, -50%);\\n -webkit-transform-origin: center center;\\n transform-origin: center center;\\n}\\n\\n.fa-layers-counter {\\n background-color: #ff253a;\\n border-radius: 1em;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n color: #fff;\\n height: 1.5em;\\n line-height: 1;\\n max-width: 5em;\\n min-width: 1.5em;\\n overflow: hidden;\\n padding: 0.25em;\\n right: 0;\\n text-overflow: ellipsis;\\n top: 0;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: top right;\\n transform-origin: top right;\\n}\\n\\n.fa-layers-bottom-right {\\n bottom: 0;\\n right: 0;\\n top: auto;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: bottom right;\\n transform-origin: bottom right;\\n}\\n\\n.fa-layers-bottom-left {\\n bottom: 0;\\n left: 0;\\n right: auto;\\n top: auto;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: bottom left;\\n transform-origin: bottom left;\\n}\\n\\n.fa-layers-top-right {\\n right: 0;\\n top: 0;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: top right;\\n transform-origin: top right;\\n}\\n\\n.fa-layers-top-left {\\n left: 0;\\n right: auto;\\n top: 0;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: top left;\\n transform-origin: top left;\\n}\\n\\n.fa-lg {\\n font-size: 1.3333333333em;\\n line-height: 0.75em;\\n vertical-align: -0.0667em;\\n}\\n\\n.fa-xs {\\n font-size: 0.75em;\\n}\\n\\n.fa-sm {\\n font-size: 0.875em;\\n}\\n\\n.fa-1x {\\n font-size: 1em;\\n}\\n\\n.fa-2x {\\n font-size: 2em;\\n}\\n\\n.fa-3x {\\n font-size: 3em;\\n}\\n\\n.fa-4x {\\n font-size: 4em;\\n}\\n\\n.fa-5x {\\n font-size: 5em;\\n}\\n\\n.fa-6x {\\n font-size: 6em;\\n}\\n\\n.fa-7x {\\n font-size: 7em;\\n}\\n\\n.fa-8x {\\n font-size: 8em;\\n}\\n\\n.fa-9x {\\n font-size: 9em;\\n}\\n\\n.fa-10x {\\n font-size: 10em;\\n}\\n\\n.fa-fw {\\n text-align: center;\\n width: 1.25em;\\n}\\n\\n.fa-ul {\\n list-style-type: none;\\n margin-left: 2.5em;\\n padding-left: 0;\\n}\\n.fa-ul > li {\\n position: relative;\\n}\\n\\n.fa-li {\\n left: -2em;\\n position: absolute;\\n text-align: center;\\n width: 2em;\\n line-height: inherit;\\n}\\n\\n.fa-border {\\n border: solid 0.08em #eee;\\n border-radius: 0.1em;\\n padding: 0.2em 0.25em 0.15em;\\n}\\n\\n.fa-pull-left {\\n float: left;\\n}\\n\\n.fa-pull-right {\\n float: right;\\n}\\n\\n.fa.fa-pull-left,\\n.fas.fa-pull-left,\\n.far.fa-pull-left,\\n.fal.fa-pull-left,\\n.fab.fa-pull-left {\\n margin-right: 0.3em;\\n}\\n.fa.fa-pull-right,\\n.fas.fa-pull-right,\\n.far.fa-pull-right,\\n.fal.fa-pull-right,\\n.fab.fa-pull-right {\\n margin-left: 0.3em;\\n}\\n\\n.fa-spin {\\n -webkit-animation: fa-spin 2s infinite linear;\\n animation: fa-spin 2s infinite linear;\\n}\\n\\n.fa-pulse {\\n -webkit-animation: fa-spin 1s infinite steps(8);\\n animation: fa-spin 1s infinite steps(8);\\n}\\n\\n@-webkit-keyframes fa-spin {\\n 0% {\\n -webkit-transform: rotate(0deg);\\n transform: rotate(0deg);\\n }\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\\n@keyframes fa-spin {\\n 0% {\\n -webkit-transform: rotate(0deg);\\n transform: rotate(0deg);\\n }\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n.fa-rotate-90 {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\\\";\\n -webkit-transform: rotate(90deg);\\n transform: rotate(90deg);\\n}\\n\\n.fa-rotate-180 {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\\\";\\n -webkit-transform: rotate(180deg);\\n transform: rotate(180deg);\\n}\\n\\n.fa-rotate-270 {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\\\";\\n -webkit-transform: rotate(270deg);\\n transform: rotate(270deg);\\n}\\n\\n.fa-flip-horizontal {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\\\";\\n -webkit-transform: scale(-1, 1);\\n transform: scale(-1, 1);\\n}\\n\\n.fa-flip-vertical {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\\\";\\n -webkit-transform: scale(1, -1);\\n transform: scale(1, -1);\\n}\\n\\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\\\";\\n -webkit-transform: scale(-1, -1);\\n transform: scale(-1, -1);\\n}\\n\\n:root .fa-rotate-90,\\n:root .fa-rotate-180,\\n:root .fa-rotate-270,\\n:root .fa-flip-horizontal,\\n:root .fa-flip-vertical,\\n:root .fa-flip-both {\\n -webkit-filter: none;\\n filter: none;\\n}\\n\\n.fa-stack {\\n display: inline-block;\\n height: 2em;\\n position: relative;\\n width: 2.5em;\\n}\\n\\n.fa-stack-1x,\\n.fa-stack-2x {\\n bottom: 0;\\n left: 0;\\n margin: auto;\\n position: absolute;\\n right: 0;\\n top: 0;\\n}\\n\\n.svg-inline--fa.fa-stack-1x {\\n height: 1em;\\n width: 1.25em;\\n}\\n.svg-inline--fa.fa-stack-2x {\\n height: 2em;\\n width: 2.5em;\\n}\\n\\n.fa-inverse {\\n color: #fff;\\n}\\n\\n.sr-only {\\n border: 0;\\n clip: rect(0, 0, 0, 0);\\n height: 1px;\\n margin: -1px;\\n overflow: hidden;\\n padding: 0;\\n position: absolute;\\n width: 1px;\\n}\\n\\n.sr-only-focusable:active, .sr-only-focusable:focus {\\n clip: auto;\\n height: auto;\\n margin: 0;\\n overflow: visible;\\n position: static;\\n width: auto;\\n}\\n\\n.svg-inline--fa .fa-primary {\\n fill: var(--fa-primary-color, currentColor);\\n opacity: 1;\\n opacity: var(--fa-primary-opacity, 1);\\n}\\n\\n.svg-inline--fa .fa-secondary {\\n fill: var(--fa-secondary-color, currentColor);\\n opacity: 0.4;\\n opacity: var(--fa-secondary-opacity, 0.4);\\n}\\n\\n.svg-inline--fa.fa-swap-opacity .fa-primary {\\n opacity: 0.4;\\n opacity: var(--fa-secondary-opacity, 0.4);\\n}\\n\\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\\n opacity: 1;\\n opacity: var(--fa-primary-opacity, 1);\\n}\\n\\n.svg-inline--fa mask .fa-primary,\\n.svg-inline--fa mask .fa-secondary {\\n fill: black;\\n}\\n\\n.fad.fa-inverse {\\n color: #fff;\\n}\";function css$1(){var dfp=DEFAULT_FAMILY_PREFIX;var drc=DEFAULT_REPLACEMENT_CLASS;var fp=config.familyPrefix;var rc=config.replacementClass;var s=baseStyles;if(fp!==dfp||rc!==drc){var dPatt=new RegExp(\"\\\\.\".concat(dfp,\"\\\\-\"),'g');var customPropPatt=new RegExp(\"\\\\--\".concat(dfp,\"\\\\-\"),'g');var rPatt=new RegExp(\"\\\\.\".concat(drc),'g');s=s.replace(dPatt,\".\".concat(fp,\"-\")).replace(customPropPatt,\"--\".concat(fp,\"-\")).replace(rPatt,\".\".concat(rc));}return s;}var Library=/*#__PURE__*/function(){function Library(){_classCallCheck$1(this,Library);this.definitions={};}_createClass$1(Library,[{key:\"add\",value:function add(){var _this=this;for(var _len=arguments.length,definitions=new Array(_len),_key=0;_key<_len;_key++){definitions[_key]=arguments[_key];}var additions=definitions.reduce(this._pullDefinitions,{});Object.keys(additions).forEach(function(key){_this.definitions[key]=_objectSpread({},_this.definitions[key]||{},additions[key]);defineIcons(key,additions[key]);build();});}},{key:\"reset\",value:function reset(){this.definitions={};}},{key:\"_pullDefinitions\",value:function _pullDefinitions(additions,definition){var normalized=definition.prefix&&definition.iconName&&definition.icon?{0:definition}:definition;Object.keys(normalized).map(function(key){var _normalized$key=normalized[key],prefix=_normalized$key.prefix,iconName=_normalized$key.iconName,icon=_normalized$key.icon;if(!additions[prefix])additions[prefix]={};additions[prefix][iconName]=icon;});return additions;}}]);return Library;}();function ensureCss(){if(config.autoAddCss&&!_cssInserted){insertCss(css$1());_cssInserted=true;}}function apiObject(val,abstractCreator){Object.defineProperty(val,'abstract',{get:abstractCreator});Object.defineProperty(val,'html',{get:function get(){return val.abstract.map(function(a){return toHtml(a);});}});Object.defineProperty(val,'node',{get:function get(){if(!IS_DOM)return;var container=DOCUMENT.createElement('div');container.innerHTML=val.html;return container.children;}});return val;}function findIconDefinition(iconLookup){var _iconLookup$prefix=iconLookup.prefix,prefix=_iconLookup$prefix===void 0?'fa':_iconLookup$prefix,iconName=iconLookup.iconName;if(!iconName)return;return iconFromMapping(library.definitions,prefix,iconName)||iconFromMapping(namespace.styles,prefix,iconName);}function resolveIcons(next){return function(maybeIconDefinition){var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var iconDefinition=(maybeIconDefinition||{}).icon?maybeIconDefinition:findIconDefinition(maybeIconDefinition||{});var mask=params.mask;if(mask){mask=(mask||{}).icon?mask:findIconDefinition(mask||{});}return next(iconDefinition,_objectSpread({},params,{mask:mask}));};}var library=new Library();var _cssInserted=false;var icon=resolveIcons(function(iconDefinition){var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _params$transform=params.transform,transform=_params$transform===void 0?meaninglessTransform:_params$transform,_params$symbol=params.symbol,symbol=_params$symbol===void 0?false:_params$symbol,_params$mask=params.mask,mask=_params$mask===void 0?null:_params$mask,_params$title=params.title,title=_params$title===void 0?null:_params$title,_params$classes=params.classes,classes=_params$classes===void 0?[]:_params$classes,_params$attributes=params.attributes,attributes=_params$attributes===void 0?{}:_params$attributes,_params$styles=params.styles,styles=_params$styles===void 0?{}:_params$styles;if(!iconDefinition)return;var prefix=iconDefinition.prefix,iconName=iconDefinition.iconName,icon=iconDefinition.icon;return apiObject(_objectSpread({type:'icon'},iconDefinition),function(){ensureCss();if(config.autoA11y){if(title){attributes['aria-labelledby']=\"\".concat(config.replacementClass,\"-title-\").concat(nextUniqueId());}else{attributes['aria-hidden']='true';attributes['focusable']='false';}}return makeInlineSvgAbstract({icons:{main:asFoundIcon(icon),mask:mask?asFoundIcon(mask.icon):{found:false,width:null,height:null,icon:{}}},prefix:prefix,iconName:iconName,transform:_objectSpread({},meaninglessTransform,transform),symbol:symbol,title:title,extra:{attributes:attributes,styles:styles,classes:classes}});});});\n\n var faCat={prefix:'fas',iconName:'cat',icon:[512,512,[],\"f6be\",\"M290.59 192c-20.18 0-106.82 1.98-162.59 85.95V192c0-52.94-43.06-96-96-96-17.67 0-32 14.33-32 32s14.33 32 32 32c17.64 0 32 14.36 32 32v256c0 35.3 28.7 64 64 64h176c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-32l128-96v144c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V289.86c-10.29 2.67-20.89 4.54-32 4.54-61.81 0-113.52-44.05-125.41-102.4zM448 96h-64l-64-64v134.4c0 53.02 42.98 96 96 96s96-42.98 96-96V32l-64 64zm-72 80c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm80 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z\"]};var faCoffee={prefix:'fas',iconName:'coffee',icon:[640,512,[],\"f0f4\",\"M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z\"]};var faFutbol={prefix:'fas',iconName:'futbol',icon:[512,512,[],\"f1e3\",\"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zm-48 0l-.003-.282-26.064 22.741-62.679-58.5 16.454-84.355 34.303 3.072c-24.889-34.216-60.004-60.089-100.709-73.141l13.651 31.939L256 139l-74.953-41.525 13.651-31.939c-40.631 13.028-75.78 38.87-100.709 73.141l34.565-3.073 16.192 84.355-62.678 58.5-26.064-22.741-.003.282c0 43.015 13.497 83.952 38.472 117.991l7.704-33.897 85.138 10.447 36.301 77.826-29.902 17.786c40.202 13.122 84.29 13.148 124.572 0l-29.902-17.786 36.301-77.826 85.138-10.447 7.704 33.897C442.503 339.952 456 299.015 456 256zm-248.102 69.571l-29.894-91.312L256 177.732l77.996 56.527-29.622 91.312h-96.476z\"]};var faHistory={prefix:'fas',iconName:'history',icon:[512,512,[],\"f1da\",\"M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z\"]};var faMusic={prefix:'fas',iconName:'music',icon:[512,512,[],\"f001\",\"M511.99 32.01c0-21.71-21.1-37.01-41.6-30.51L150.4 96c-13.3 4.2-22.4 16.5-22.4 30.5v261.42c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64V214.31l256-75.02v184.63c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64l-.01-351.99z\"]};var faSearch={prefix:'fas',iconName:'search',icon:[512,512,[],\"f002\",\"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z\"]};var faTimes={prefix:'fas',iconName:'times',icon:[352,512,[],\"f00d\",\"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z\"]};\n\n var faBuilding={prefix:'far',iconName:'building',icon:[448,512,[],\"f1ad\",\"M128 148v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12zm140 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-128 96h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm128 0h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-76 84v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm76 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm180 124v36H0v-36c0-6.6 5.4-12 12-12h19.5V24c0-13.3 10.7-24 24-24h337c13.3 0 24 10.7 24 24v440H436c6.6 0 12 5.4 12 12zM79.5 463H192v-67c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v67h112.5V49L80 48l-.5 415z\"]};var faFlag={prefix:'far',iconName:'flag',icon:[512,512,[],\"f024\",\"M336.174 80c-49.132 0-93.305-32-161.913-32-31.301 0-58.303 6.482-80.721 15.168a48.04 48.04 0 0 0 2.142-20.727C93.067 19.575 74.167 1.594 51.201.104 23.242-1.71 0 20.431 0 48c0 17.764 9.657 33.262 24 41.562V496c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-83.443C109.869 395.28 143.259 384 199.826 384c49.132 0 93.305 32 161.913 32 58.479 0 101.972-22.617 128.548-39.981C503.846 367.161 512 352.051 512 335.855V95.937c0-34.459-35.264-57.768-66.904-44.117C409.193 67.309 371.641 80 336.174 80zM464 336c-21.783 15.412-60.824 32-102.261 32-59.945 0-102.002-32-161.913-32-43.361 0-96.379 9.403-127.826 24V128c21.784-15.412 60.824-32 102.261-32 59.945 0 102.002 32 161.913 32 43.271 0 96.32-17.366 127.826-32v240z\"]};var faFrown={prefix:'far',iconName:'frown',icon:[496,512,[],\"f119\",\"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-80 128c-40.2 0-78 17.7-103.8 48.6-8.5 10.2-7.1 25.3 3.1 33.8 10.2 8.4 25.3 7.1 33.8-3.1 16.6-19.9 41-31.4 66.9-31.4s50.3 11.4 66.9 31.4c8.1 9.7 23.1 11.9 33.8 3.1 10.2-8.5 11.5-23.6 3.1-33.8C326 321.7 288.2 304 248 304z\"]};var faLightbulb={prefix:'far',iconName:'lightbulb',icon:[352,512,[],\"f0eb\",\"M176 80c-52.94 0-96 43.06-96 96 0 8.84 7.16 16 16 16s16-7.16 16-16c0-35.3 28.72-64 64-64 8.84 0 16-7.16 16-16s-7.16-16-16-16zM96.06 459.17c0 3.15.93 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84l.05-43.18H96.02l.04 43.18zM176 0C73.72 0 0 82.97 0 176c0 44.37 16.45 84.85 43.56 115.78 16.64 18.99 42.74 58.8 52.42 92.16v.06h48v-.12c-.01-4.77-.72-9.51-2.15-14.07-5.59-17.81-22.82-64.77-62.17-109.67-20.54-23.43-31.52-53.15-31.61-84.14-.2-73.64 59.67-128 127.95-128 70.58 0 128 57.42 128 128 0 30.97-11.24 60.85-31.65 84.14-39.11 44.61-56.42 91.47-62.1 109.46a47.507 47.507 0 0 0-2.22 14.3v.1h48v-.05c9.68-33.37 35.78-73.18 52.42-92.16C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0z\"]};var faSmile={prefix:'far',iconName:'smile',icon:[496,512,[],\"f118\",\"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z\"]};\n\n library.add(faBuilding,faCat,faCoffee,faFlag,faFrown,faFutbol,faHistory,faLightbulb,faMusic,faSearch,faSmile,faTimes);var building=icon({prefix:'far',iconName:'building'}).html;var cat=icon({prefix:'fas',iconName:'cat'}).html;var coffee=icon({prefix:'fas',iconName:'coffee'}).html;var flag=icon({prefix:'far',iconName:'flag'}).html;var futbol=icon({prefix:'fas',iconName:'futbol'}).html;var frown=icon({prefix:'far',iconName:'frown'}).html;var history=icon({prefix:'fas',iconName:'history'}).html;var lightbulb=icon({prefix:'far',iconName:'lightbulb'}).html;var music=icon({prefix:'fas',iconName:'music'}).html;var search=icon({prefix:'fas',iconName:'search'}).html;var smile=icon({prefix:'far',iconName:'smile'}).html;var times=icon({prefix:'fas',iconName:'times'}).html;\n\n var LOCAL_STORAGE_KEY='emojiPicker.recent';function load(){return JSON.parse(localStorage.getItem(LOCAL_STORAGE_KEY))||[];}function save(emoji,options){var recents=load();var recent={e:emoji.e,n:getEmojiName(emoji),k:emoji.k||getEmojiName(emoji)};localStorage.setItem(LOCAL_STORAGE_KEY,JSON.stringify([recent].concat(_toConsumableArray(recents.filter(function(r){return r.k!==recent.k;}))).slice(0,options.recentsCount)));}\n\n var CLASS_EMOJI='emoji-picker__emoji';var Emoji=/*#__PURE__*/function(){function Emoji(emoji,showVariants,showPreview,events,options){_classCallCheck(this,Emoji);this.emoji=emoji;this.showVariants=showVariants;this.showPreview=showPreview;this.events=events;this.options=options;}_createClass(Emoji,[{key:\"render\",value:function render(){var _this=this;var emojiButton=createElement('button',CLASS_EMOJI);emojiButton.innerHTML=this.emoji.e;emojiButton.addEventListener('click',function(){return _this.onEmojiClick();});emojiButton.addEventListener('mouseover',function(){return _this.onEmojiHover();});emojiButton.addEventListener('mouseout',function(){return _this.onEmojiLeave();});return emojiButton;}},{key:\"onEmojiClick\",value:function onEmojiClick(){// TODO move this side effect out of Emoji, make the recent module listen for event\n if((!this.emoji.v||!this.showVariants||!this.options.showVariants)&&this.options.showRecents){save(this.emoji,this.options);}this.events.emit(EMOJI,{emoji:this.emoji,showVariants:this.showVariants});}},{key:\"onEmojiHover\",value:function onEmojiHover(){if(this.showPreview){this.events.emit(SHOW_PREVIEW,this.emoji);}}},{key:\"onEmojiLeave\",value:function onEmojiLeave(){if(this.showPreview){this.events.emit(HIDE_PREVIEW);}}}]);return Emoji;}();\n\n var CLASS_EMOJI_CONTAINER='emoji-picker__emojis';var EmojiContainer=/*#__PURE__*/function(){function EmojiContainer(emojis,showVariants,events,options){_classCallCheck(this,EmojiContainer);this.emojis=emojis;this.showVariants=showVariants;this.events=events;this.options=options;}_createClass(EmojiContainer,[{key:\"render\",value:function render(){var _this=this;var emojiContainer=createElement('div',CLASS_EMOJI_CONTAINER);this.emojis.forEach(function(emoji){return emojiContainer.appendChild(new Emoji(emoji,_this.showVariants,true,_this.events,_this.options).render());});return emojiContainer;}}]);return EmojiContainer;}();\n\n var CLASS_SEARCH_CONTAINER='emoji-picker__search-container';var CLASS_SEARCH_FIELD='emoji-picker__search';var CLASS_SEARCH_ICON='emoji-picker__search-icon';var CLASS_NOT_FOUND='emoji-picker__search-not-found';var CLASS_NOT_FOUND_ICON='emoji-picker__search-not-found-icon';var Search=/*#__PURE__*/function(){function Search(events,i18n,options,emojiData,autoFocusSearch){_classCallCheck(this,Search);this.events=events;this.i18n=i18n;this.options=options;this.emojiData=emojiData;this.autoFocusSearch=autoFocusSearch;}_createClass(Search,[{key:\"render\",value:function render(){var _this=this;this.searchContainer=createElement('div',CLASS_SEARCH_CONTAINER);this.searchField=createElement('input',CLASS_SEARCH_FIELD);this.searchField.placeholder=this.i18n.search;this.searchContainer.appendChild(this.searchField);this.searchIcon=createElement('span',CLASS_SEARCH_ICON);this.searchIcon.innerHTML=search;this.searchIcon.addEventListener('click',function(event){return _this.onClearSearch(event);});this.searchContainer.appendChild(this.searchIcon);if(this.autoFocusSearch){setTimeout(function(){return _this.searchField.focus();});}this.searchField.addEventListener('keydown',function(event){return _this.onKeyDown(event);});this.searchField.addEventListener('keyup',function(){return _this.onKeyUp();});return this.searchContainer;}},{key:\"onClearSearch\",value:function onClearSearch(event){event.stopPropagation();if(this.searchField.value){this.searchField.value='';this.events.emit(SHOW_TABS);this.searchIcon.innerHTML=search;this.searchIcon.style.cursor='default';}}},{key:\"onKeyDown\",value:function onKeyDown(event){if(event.key==='Escape'&&this.searchField.value!==''){event.stopPropagation();this.searchField.value='';this.events.emit(SHOW_TABS);}}},{key:\"onKeyUp\",value:function onKeyUp(){var _this2=this;if(!this.searchField.value){this.searchIcon.innerHTML=search;this.searchIcon.style.cursor='default';this.events.emit(SHOW_TABS);}else{this.searchIcon.innerHTML=times;this.searchIcon.style.cursor='pointer';this.events.emit(HIDE_TABS);var searchResults=this.emojiData.filter(function(emoji){return emoji.n.filter(function(name){return name.toLowerCase().indexOf(_this2.searchField.value.toLowerCase())>=0;}).length;});this.events.emit(HIDE_PREVIEW);if(searchResults.length){this.events.emit(SHOW_SEARCH_RESULTS,new EmojiContainer(searchResults,true,this.events,this.options).render());}else{this.events.emit(SHOW_SEARCH_RESULTS,new NotFoundMessage(this.i18n.notFound).render());}}}}]);return Search;}();var NotFoundMessage=/*#__PURE__*/function(){function NotFoundMessage(message){_classCallCheck(this,NotFoundMessage);this.message=message;}_createClass(NotFoundMessage,[{key:\"render\",value:function render(){var container=createElement('div',CLASS_NOT_FOUND);var iconContainer=createElement('div',CLASS_NOT_FOUND_ICON);iconContainer.innerHTML=frown;container.appendChild(iconContainer);var messageContainer=createElement('h2');messageContainer.innerHTML=this.message;container.appendChild(messageContainer);return container;}}]);return NotFoundMessage;}();\n\n var i18n={search:'Search emojis...',categories:{recents:'Recent Emojis',smileys:'Smileys & People',animals:'Animals & Nature',food:'Food & Drink',activities:'Activities',travel:'Travel & Places',objects:'Objects',symbols:'Symbols',flags:'Flags'},notFound:'No emojis found'};\n\n var CLASS_ACTIVE_TAB='active';var CLASS_TABS_CONTAINER='emoji-picker__tabs-container';var CLASS_TABS='emoji-picker__tabs';var CLASS_TAB='emoji-picker__tab';var CLASS_TAB_BODY='emoji-picker__tab-body';var emojiCategories={};emojiData.forEach(function(emoji){var categoryList=emojiCategories[categories[emoji.c]];if(!categoryList){categoryList=emojiCategories[categories[emoji.c]]=[];}categoryList.push(emoji);});var categoryIcons={smileys:smile,animals:cat,food:coffee,activities:futbol,travel:building,objects:lightbulb,symbols:music,flags:flag};var Tabs=/*#__PURE__*/function(){function Tabs(events,i18n,options){_classCallCheck(this,Tabs);this.events=events;this.i18n=i18n;this.options=options;this.setActiveTab=this.setActiveTab.bind(this);}_createClass(Tabs,[{key:\"setActiveTab\",value:function setActiveTab(index){var animate=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(index===this.activeTab){return;}var currentActiveTab=this.activeTab;if(currentActiveTab>=0){this.tabs[currentActiveTab].setActive(false);var currentActiveTabBody=this.tabBodies[currentActiveTab].container;var newActiveTabBody=this.tabBodies[index].container;newActiveTabBody.querySelector('.emoji-picker__emojis').scrollTop=0;if(animate){if(index>currentActiveTab){this.transitionTabs(newActiveTabBody,currentActiveTabBody,25,-25);}else{this.transitionTabs(newActiveTabBody,currentActiveTabBody,-25,25);}}}this.activeTab=index;this.tabBodies[this.activeTab].setActive(true);this.tabs[this.activeTab].setActive(true);}},{key:\"transitionTabs\",value:function transitionTabs(newActiveTabBody,currentActiveTabBody,newTranslate,currentTranslate){requestAnimationFrame(function(){newActiveTabBody.style.transition='none';newActiveTabBody.style.transform=\"translateX(\".concat(newTranslate,\"rem)\");requestAnimationFrame(function(){currentActiveTabBody.style.transform=\"translateX(\".concat(currentTranslate,\"rem)\");newActiveTabBody.style.transition='transform 0.25s';requestAnimationFrame(function(){newActiveTabBody.style.transform='translateX(0)';});});});}},{key:\"render\",value:function render(){var tabsContainer=createElement('div',CLASS_TABS_CONTAINER);tabsContainer.appendChild(this.createTabs());tabsContainer.appendChild(this.createTabBodies());this.setActiveTab(this.options.showRecents?1:0,false);return tabsContainer;}},{key:\"createTabs\",value:function createTabs(){var _this=this;this.tabsList=createElement('ul',CLASS_TABS);this.tabs=Object.keys(categoryIcons).map(function(category,index){return new Tab(categoryIcons[category],_this.options.showRecents?index+1:index,_this.setActiveTab);});if(this.options.showRecents){var recentTab=new Tab(history,0,this.setActiveTab);this.tabs.splice(0,0,recentTab);}this.tabs.forEach(function(tab){return _this.tabsList.appendChild(tab.render());});return this.tabsList;}},{key:\"createTabBodies\",value:function createTabBodies(){var _this2=this;this.tabBodyContainer=createElement('div');this.tabBodies=Object.keys(categoryIcons).map(function(category,index){return new TabBody(_this2.i18n.categories[category]||i18n.categories[category],new EmojiContainer(emojiCategories[category],true,_this2.events,_this2.options).render(),_this2.options.showRecents?index+1:index);});if(this.options.showRecents){var recentTabBody=new TabBody(this.i18n.categories.recents||i18n.categories.recents,new EmojiContainer(load(),false,this.events,this.options).render(),0);this.tabBodies.splice(0,0,recentTabBody);this.events.on(EMOJI,function(){var newRecents=new TabBody(_this2.i18n.categories.recents||i18n.categories.recents,new EmojiContainer(load(),false,_this2.events,_this2.options).render(),0);setTimeout(function(){_this2.tabBodyContainer.replaceChild(newRecents.render(),_this2.tabBodyContainer.firstChild);_this2.tabBodies[0]=newRecents;if(_this2.activeTab===0){_this2.setActiveTab(0);}});});}this.tabBodies.forEach(function(tabBody){return _this2.tabBodyContainer.appendChild(tabBody.render());});return this.tabBodyContainer;}}]);return Tabs;}();var Tab=/*#__PURE__*/function(){function Tab(icon,index,setActiveTab){_classCallCheck(this,Tab);this.icon=icon;this.index=index;this.setActiveTab=setActiveTab;}_createClass(Tab,[{key:\"render\",value:function render(){var _this3=this;this.tab=createElement('li',CLASS_TAB);this.tab.innerHTML=this.icon;this.tab.addEventListener('click',function(){return _this3.setActiveTab(_this3.index);});return this.tab;}},{key:\"setActive\",value:function setActive(active){if(active){this.tab.classList.add(CLASS_ACTIVE_TAB);}else{this.tab.classList.remove(CLASS_ACTIVE_TAB);}}}]);return Tab;}();var TabBody=/*#__PURE__*/function(){function TabBody(category,content,index){_classCallCheck(this,TabBody);this.category=category;this.content=content;this.index=index;}_createClass(TabBody,[{key:\"render\",value:function render(){this.container=createElement('div',CLASS_TAB_BODY);var title=createElement('h2');title.innerHTML=this.category;this.container.appendChild(title);this.container.appendChild(this.content);return this.container;}},{key:\"setActive\",value:function setActive(active){if(active){this.container.classList.add(CLASS_ACTIVE_TAB);}else{this.container.classList.remove(CLASS_ACTIVE_TAB);}}}]);return TabBody;}();\n\n var CLASS_OVERLAY='emoji-picker__variant-overlay';var CLASS_POPUP='emoji-picker__variant-popup';var CLASS_CLOSE_BUTTON='emoji-picker__variant-popup-close-button';var VariantPopup=/*#__PURE__*/function(){function VariantPopup(events,emoji,options){_classCallCheck(this,VariantPopup);this.events=events;this.emoji=emoji;this.options=options;}_createClass(VariantPopup,[{key:\"render\",value:function render(){var _this=this;var popup=createElement('div',CLASS_POPUP);var overlay=createElement('div',CLASS_OVERLAY);overlay.addEventListener('click',function(event){event.stopPropagation();if(!popup.contains(event.target)){_this.events.emit(HIDE_VARIANT_POPUP);}});popup.appendChild(new Emoji(this.emoji,false,false,this.events,this.options).render());Object.keys(this.emoji.v).forEach(function(variant){popup.appendChild(new Emoji(_this.emoji.v[variant],false,false,_this.events,_this.options).render());});var closeButton=createElement('button',CLASS_CLOSE_BUTTON);closeButton.innerHTML=times;closeButton.addEventListener('click',function(event){event.stopPropagation();_this.events.emit(HIDE_VARIANT_POPUP);});popup.appendChild(closeButton);overlay.appendChild(popup);return overlay;}}]);return VariantPopup;}();\n\n var CLASS_PICKER='emoji-picker';var CLASS_PICKER_CONTENT='emoji-picker__content';var DEFAULT_OPTIONS={position:'right-start',autoHide:true,autoFocusSearch:true,showPreview:true,showSearch:true,showRecents:true,showVariants:true,recentsCount:50};var EmojiButton=/*#__PURE__*/function(){function EmojiButton(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,EmojiButton);this.pickerVisible=false;this.options=_objectSpread2({},DEFAULT_OPTIONS,{},options);if(!this.options.rootElement){this.options.rootElement=document.body;}this.i18n=_objectSpread2({},i18n,{},options.i18n);this.onDocumentClick=this.onDocumentClick.bind(this);this.onDocumentKeydown=this.onDocumentKeydown.bind(this);this.events=new tinyEmitter();this.publicEvents=new tinyEmitter();}_createClass(EmojiButton,[{key:\"on\",value:function on(event,callback){this.publicEvents.on(event,callback);}},{key:\"off\",value:function off(event,callback){this.publicEvents.off(event,callback);}},{key:\"buildPicker\",value:function buildPicker(){var _this=this;this.pickerEl=createElement('div',CLASS_PICKER);if(this.options.zIndex){this.pickerEl.style.zIndex=this.options.zIndex;}var pickerContent=createElement('div',CLASS_PICKER_CONTENT);if(this.options.showSearch){var searchContainer=new Search(this.events,this.i18n,this.options,emojiData,this.options.autoFocusSearch).render();this.pickerEl.appendChild(searchContainer);}this.pickerEl.appendChild(pickerContent);var tabs=new Tabs(this.events,this.i18n,this.options).render();pickerContent.appendChild(tabs);this.events.on(HIDE_TABS,function(){if(pickerContent.contains(tabs)){pickerContent.removeChild(tabs);}});this.events.on(SHOW_TABS,function(){if(!pickerContent.contains(tabs)){empty(pickerContent);pickerContent.appendChild(tabs);}});this.events.on(SHOW_SEARCH_RESULTS,function(searchResults){empty(pickerContent);searchResults.classList.add('search-results');pickerContent.appendChild(searchResults);});if(this.options.showPreview){this.pickerEl.appendChild(new EmojiPreview(this.events).render());}var variantPopup;this.events.on(EMOJI,function(_ref){var emoji=_ref.emoji,showVariants=_ref.showVariants;if(emoji.v&&showVariants&&_this.options.showVariants){variantPopup=new VariantPopup(_this.events,emoji,_this.options).render();_this.pickerEl.appendChild(variantPopup);}else{if(variantPopup&&variantPopup.parentNode===_this.pickerEl){_this.pickerEl.removeChild(variantPopup);}_this.publicEvents.emit('emoji',emoji.e);if(_this.options.autoHide){_this.hidePicker();}}});this.events.on(HIDE_VARIANT_POPUP,function(){_this.pickerEl.removeChild(variantPopup);variantPopup=null;});this.options.rootElement.appendChild(this.pickerEl);setTimeout(function(){document.addEventListener('click',_this.onDocumentClick);document.addEventListener('keydown',_this.onDocumentKeydown);});}},{key:\"onDocumentClick\",value:function onDocumentClick(event){if(!this.pickerEl.contains(event.target)){this.hidePicker();}}},{key:\"hidePicker\",value:function hidePicker(){var _this2=this;// this.pickerEl.style.opacity = 0;\n this.pickerEl.classList.remove('visible');this.pickerVisible=false;this.events.off(EMOJI);this.events.off(HIDE_VARIANT_POPUP);this.hideInProgress=true;setTimeout(function(){_this2.options.rootElement.removeChild(_this2.pickerEl);_this2.popper.destroy();_this2.pickerEl.style.transition='';_this2.hideInProgress=false;},500);document.removeEventListener('click',this.onDocumentClick);document.removeEventListener('keydown',this.onDocumentKeydown);}},{key:\"showPicker\",value:function showPicker(referenceEl){var _this3=this;var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(this.hideInProgress){return;}this.pickerVisible=true;this.buildPicker();this.popper=new Popper(referenceEl,this.pickerEl,{placement:options.position||this.options.position,modifiers:{computeStyle:{gpuAcceleration:false}}});requestAnimationFrame(function(){return _this3.pickerEl.classList.add('visible');});}},{key:\"onDocumentKeydown\",value:function onDocumentKeydown(event){if(event.key==='Escape'){this.hidePicker();}}}]);return EmojiButton;}();\n\n return EmojiButton;\n\n}));\n","import Helpers, { html } from '../Helpers.js';\nimport Identicon from './Identicon.js';\nimport PublicMessageForm from './PublicMessageForm.js';\nimport State from '../State.js';\nimport { route } from 'preact-router';\nimport Message from './Message.js';\nimport SafeImg from './SafeImg.js';\nimport Session from '../Session.js';\nimport Torrent from './Torrent.js';\nimport Autolinker from 'autolinker';\nimport iris from 'iris-lib';\nimport $ from 'jquery';\n\nconst autolinker = new Autolinker({ stripPrefix: false, stripTrailingSlash: false});\n\nconst heartEmpty = html``;\n\nconst heartFull = html``;\n\nconst replyIcon = html``;\n\nclass PublicMessage extends Message {\n constructor() {\n super();\n this.i = 0;\n this.eventListeners = {};\n this.likedBy = new Set();\n this.replies = {};\n this.subscribedReplies = new Set();\n this.state = { sortedReplies: [] };\n }\n\n fetchByHash() {\n const hash = this.props.hash;\n if (typeof hash !== 'string') {\n return;\n }\n return new Promise(resolve => {\n State.local.get('msgsByHash').get(hash).once(msg => {\n if (typeof msg === 'string') {\n try {\n resolve(JSON.parse(msg));\n } catch (e) {\n console.error('message parsing failed', msg, e);\n }\n }\n });\n State.public.get('#').get(hash).on(async (serialized, a, b, event) => {\n if (typeof serialized !== 'string') {\n console.error('message parsing failed', hash, serialized);\n return;\n }\n event.off();\n const msg = await iris.SignedMessage.fromString(serialized);\n if (msg) {\n resolve(msg);\n State.local.get('msgsByHash').get(hash).put(JSON.stringify(msg));\n }\n });\n });\n }\n\n componentDidMount() {\n const p = this.fetchByHash();\n if (!p) { return; }\n p.then(r => {\n const msg = r.signedData;\n msg.info = {from: r.signerKeyHash};\n if (this.props.filter && !this.props.filter(msg)) { return; }\n this.setState({msg});\n if (this.props.showName && !this.props.name) {\n State.public.user(msg.info.from).get('profile').get('name').on((name, a,b, e) => {\n this.eventListeners['name'] = e;\n this.setState({name});\n });\n }\n State.group().on(`likes/${encodeURIComponent(this.props.hash)}`, (liked,a,b,e,from) => {\n this.eventListeners[`${from}likes`] = e;\n liked ? this.likedBy.add(from) : this.likedBy.delete(from);\n const s = {likes: this.likedBy.size};\n if (from === Session.getPubKey()) s['liked'] = liked;\n this.setState(s);\n });\n State.group().map(`replies/${encodeURIComponent(this.props.hash)}`, (hash,time,b,e,from) => {\n const k = from + time;\n if (hash && this.replies[k]) return;\n if (hash) {\n this.replies[k] = {hash, time};\n } else {\n delete this.replies[k];\n }\n this.eventListeners[`${from}replies`] = e;\n const sortedReplies = Object.values(this.replies).sort((a,b) => a.time > b.time ? 1 : -1);\n this.setState({replyCount: Object.keys(this.replies).length, sortedReplies });\n });\n });\n }\n\n componentDidUpdate(prevProps, prevState) {\n if (prevProps.hash !== this.props.hash) {\n Object.values(this.eventListeners).forEach(e => e.off());\n this.eventListeners = {};\n this.likedBy = new Set();\n this.replies = new Set();\n this.subscribedReplies = new Set();\n this.linksDone = false;\n this.setState({replies:0, likes: 0, sortedReplies:[], msg: null});\n this.componentDidMount();\n } else if (this.state.showLikes !== prevState.showLikes || this.state.showReplyForm !== prevState.showReplyForm) {\n this.measure();\n } else if (this.state.msg && this.state.msg !== prevState.msg) {\n this.measure();\n }\n if (this.state.msg && !this.linksDone) {\n $(this.base).find('a').off().on('click', e => {\n const href = $(e.target).attr('href');\n if (href && href.indexOf('https://iris.to/') === 0) {\n e.preventDefault();\n window.location = href.replace('https://iris.to/', '');\n }\n });\n this.linksDone = true;\n }\n }\n\n measure() {\n this.props.measure && this.props.measure();\n }\n\n toggleReplies() {\n const showReplyForm = !this.state.showReplyForm;\n this.setState({showReplyForm});\n }\n\n componentWillUnmount() {\n Object.values(this.eventListeners).forEach(e => e.off());\n }\n\n shouldComponentUpdate() {\n return true;\n }\n\n onClickName() {\n route(`/profile/${ this.state.msg.info.from}`);\n }\n\n likeBtnClicked(e) {\n e.preventDefault();\n this.like(!this.state.liked);\n }\n\n like(liked = true) {\n State.public.user().get('likes').get(this.props.hash).put(liked);\n }\n\n onDelete(e) {\n e.preventDefault();\n if (confirm('Delete message?')) {\n const msg = this.state.msg;\n msg.torrentId && State.public.user().get('media').get(msg.time).put(null);\n State.public.user().get(this.props.index || 'msgs').get(msg.time).put(null);\n msg.replyingTo && State.public.user().get('replies').get(msg.replyingTo).get(msg.time).put(null);\n }\n }\n\n imageClicked(event) {\n event.preventDefault();\n if (window.innerWidth <= 625) {\n clearTimeout(this.dblTimeout);\n if (this.dbl) {\n this.dbl = false;\n this.like(); // like on double click\n $(event.target).parent().addClass('like-animate');\n setTimeout(() => $(event.target).parent().removeClass('like-animate'), 1000);\n } else {\n this.dbl = true;\n this.dblTimeout = setTimeout(() => {\n this.dbl = false;\n }, 300);\n }\n } else {\n this.openAttachmentsGallery(event);\n }\n }\n\n render() {\n if (!this.state.msg) { return ''; }\n //if (++this.i > 1) console.log(this.i);\n let name = this.props.name || this.state.name;\n const emojiOnly = this.state.msg.text && this.state.msg.text.length === 2 && Helpers.isEmoji(this.state.msg.text);\n const isThumbnail = this.props.thumbnail ? 'thumbnail-item' : '';\n const p = document.createElement('p');\n let text = this.state.msg.text;\n if (isThumbnail && text.length > 128) {\n text = `${text.slice(0,128) }...`;\n }\n p.innerText = text;\n const h = emojiOnly ? p.innerHTML : Helpers.highlightEmoji(p.innerHTML);\n const innerHTML = autolinker.link(h);\n const time = typeof this.state.msg.time === 'object' ? this.state.msg.time : new Date(this.state.msg.time);\n const dateStr = time.toLocaleString(window.navigator.language, { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' });\n const timeStr = time.toLocaleTimeString(window.navigator.language, {timeStyle: 'short'});\n\n\n return html`\n
\n
\n
\n
this.onClickName()}>\n ${this.state.msg.info.from ? html`<${Identicon} str=${this.state.msg.info.from} width=40/>` : ''}\n ${name && this.props.showName && html`${name}`}\n
\n ${this.state.msg.info.from === Session.getPubKey() ? html`\n
\n
\n
\\u2026
\n \n
\n
\n `: ''}\n
\n ${this.state.msg.torrentId ? html`\n <${Torrent} torrentId=${this.state.msg.torrentId}/>\n `:''}\n ${this.state.msg.attachments && this.state.msg.attachments.map(a =>\n html`
\n
\n <${SafeImg} src=${a.data} onLoad=${() => this.measure()} onClick=${e => { this.imageClicked(e); }}/>\n
`\n )}\n
\n ${this.state.msg.replyingTo && !this.props.asReply ? html`\n \n ` : ''}\n
\n this.toggleReplies()}>\n ${replyIcon}\n \n this.toggleReplies()}>\n ${this.state.replyCount || ''}\n \n this.likeBtnClicked(e)}>\n ${this.state.liked ? heartFull : heartEmpty}\n \n this.setState({showLikes: !this.state.showLikes})}>\n ${this.state.likes || ''}\n \n \n
\n ${this.state.showLikes ? html`\n
\n ${Array.from(this.likedBy).map(key => {\n return html`<${Identicon} showTooltip=${true} onClick=${() => route(`/profile/${ key}`)} str=${key} width=32/>`;\n })}\n
\n `: ''}\n ${(this.props.showReplies || this.state.showReplyForm) && this.state.sortedReplies && this.state.sortedReplies.length ? this.state.sortedReplies.map(r =>\n html`<${PublicMessage} hash=${r.hash} asReply=${true} showName=${true} showReplies=${true} />`\n ) : ''}\n ${this.state.showReplyForm ? html`\n <${PublicMessageForm} replyingTo=${this.props.hash} />\n ` : ''}\n
\n
\n `;\n }\n}\n\nexport default PublicMessage;","import Translations from './Translations.js';\n\nlet AVAILABLE_LANGUAGES = Object.keys(Translations);\nlet language = localStorage.getItem('language') || navigator.language || 'en';\nif (AVAILABLE_LANGUAGES.indexOf(language) === -1) {\n const s = language.slice(0,2);\n language = 'en';\n for (let i = 0; i < AVAILABLE_LANGUAGES.length; i++) {\n if (AVAILABLE_LANGUAGES[i].slice(0,2) === s) {\n language = AVAILABLE_LANGUAGES[i];\n break;\n }\n }\n}\nlet translation = Translations[language];\nif (language !== 'en') {\n let en = Translations['en'];\n Object.keys(en).forEach(k => translation[k] = translation[k] || en[k]);\n}\n\nfunction capitalize(s) {\n if (typeof s !== 'string') return '';\n return s.charAt(0).toUpperCase() + s.slice(1);\n}\n\nfunction translate(k, linkProps) {\n return k && (translation[k] || capitalize(k.replace(/_/g, ' '))).replace('n.length)&&(e=n.length);for(var t=0,l=new Array(e);tl&&n(e)}));return-1===r&&(r=t.findIndex((function(e){return n(e)}))),-1===r&&(r=l),r},w.openNextFile=function(n){var e=this.getNextIndex(n);this.openFile(this.state.torrent.files[e],!0)},w.getActiveFile=function(n){var e,t=this.player;return t&&t.torrentId===this.props.torrentId&&(e=n.files.find((function(n){return n.path===t.filePath}))),e},w.onTorrent=function(n,e){this.torrent=n;var t=n.files.find((function(n){return S(n)})),l=n.files.find((function(n){return O(n)})),r=n.files.find((function(n){return E(n)})),i=n.files.find((function(n){return E(n)&&(n.name.indexOf("cover")>-1||n.name.indexOf("poster")>-1)}));(i=i||r)&&i.appendTo(F()(this.base).find(".cover").get(0));var o=this.getActiveFile(n)||t||l||r||n.files[0];this.setState({torrent:n,cover:r}),o&&this.openFile(o,e)},w.showFilesClicked=function(n){n.preventDefault(),this.setState({showFiles:!this.state.showFiles})},w.openTorrentClicked=function(n){n.preventDefault(),this.startTorrenting(!0)},w.render=function(){var n=this,e=this.state,t=e.torrent,r=e.player,v="";return e.isAudioOpen&&(v=r&&r.torrentId===this.props.torrentId&&!r.paused?Object(y.b)(i||(i=l(['\n \n ',"\n ",'\n
\n
\n ',"\n
\n ",'\n
\n ',"\n
\n ","\n
Magnet link\n ","\n ","\n
\n "])),b.a.settings.local.enableWebtorrent||e.torrenting?"":Object(y.b)(a||(a=l(['\n \n
\n ',"\n
\n "])),Object(_.c)("peers"),t.numPeers,t.files.map((function(t){return Object(y.b)(m||(m=l(["\n
\n
','
\n
',"
\n
\n "])),(function(){return n.openFile(t,!0)}),e.activeFilePath===t.path?"active":"",t.name,y.a.formatBytes(t.length))}))):"")},e}(v.Component)},"3QNJ":function(n,e,t){"use strict";function l(){return(l=Object.assign||function(n){for(var e=1;e=0||(r[t]=n[t]);return r}(n,["context","children"]);return Object(An.cloneElement)(e,t)}function f(){var n=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(n),this._vdom=Object(An.h)(c,s({},this._props,{context:n.detail.context}),function n(e,t){if(3===e.nodeType)return e.data;if(1!==e.nodeType)return null;var l=[],r={},i=0,o=e.attributes,u=e.childNodes;for(i=o.length;i--;)"slot"!==o[i].name&&(r[o[i].name]=o[i].value,r[h(o[i].name)]=o[i].value);for(i=u.length;i--;){var a=n(u[i],null),s=u[i].slot;s?r[s]=Object(An.h)(g,{name:s},a):l[i]=a}var c=t?Object(An.h)(g,null,l):l;return Object(An.h)(t||e.nodeName.toLowerCase(),r,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?An.hydrate:An.render)(this._vdom,this._root)}function h(n){return n.replace(/-(\w)/g,(function(n,e){return e?e.toUpperCase():""}))}function p(n,e,t){if(this._vdom){var l={};l[n]=t=null==t?void 0:t,l[h(n)]=t,this._vdom=Object(An.cloneElement)(this._vdom,l),Object(An.render)(this._vdom,this._root)}}function d(){Object(An.render)(this._vdom=null,this._root)}function g(n,e){var t=this;return Object(An.h)("slot",s({},n,{ref:function(n){n?(t.ref=n,t._listener||(t._listener=function(n){n.stopPropagation(),n.detail.context=e},n.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}function m(){return(m=Object.assign||function(n){for(var e=1;e-1&&e<1?Math.round(1e6*e)/1e4+"%":e+"px"}function b(n){if(qn.hasOwnProperty(n))return qn[n];var e=n.replace(Wn,"-$1").toLowerCase().replace(Gn,"-ms-");return qn[n]=e,qn[n]}function _(n){for(var e=5381,t=n.length;t;)e=33*e^n.charCodeAt(--t);return e>>>0}function w(){throw new Error("jsxstyle error: `injectOptions` must be called before any jsxstyle components mount.")}function F(){throw new Error("jsxstyle error: `injectOptions` should be called once and only once.")}function k(){return(k=Object.assign||function(n){for(var e=1;eje)throw new Error("Pattern length exceeds max of "+je+".");for(var b,_=e.length,w=n.length,F=Math.max(0,Math.min(o,w)),k=c,x=F,C=d>1||m,S=C?Array(w):[];(b=n.indexOf(e,x))>-1;){var O=Q(e,{currentLocation:b,expectedLocation:F,distance:a,ignoreLocation:y});if(k=Math.min(O,k),x=b+_,C)for(var E=0;E<_;)S[b+E]=1,E+=1}x=-1;for(var T=[],A=1,j=_+w,D=1<<_-1,P=0;P<_;P+=1){for(var I=0,M=j;I=L;z-=1){var N=z-1,U=t[n.charAt(N)];if(C&&(S[N]=+!!U),B[z]=(B[z+1]<<1|1)&U,P&&(B[z]|=(T[z+1]|T[z])<<1|1|T[z+1]),B[z]&D&&(A=Q(e,{errors:P,currentLocation:N,expectedLocation:F,distance:a,ignoreLocation:y}))<=k){if(k=A,(x=N)<=F)break;L=Math.max(1,2*F-x)}}if(Q(e,{errors:P+1,currentLocation:F,expectedLocation:F,distance:a,ignoreLocation:y})>k)break;T=B}var H={isMatch:x>=0,score:Math.max(.001,A)};if(C){var W=function(n,e){void 0===n&&(n=[]),void 0===e&&(e=Ee.minMatchCharLength);for(var t=[],l=-1,r=-1,i=0,o=n.length;i=e&&t.push([l,r]),l=-1)}return n[i-1]&&i-l>=e&&t.push([l,i-1]),t}(S,d);W.length?m&&(H.indices=W):H.isMatch=!1}return H}function X(n){for(var e={},t=0,l=n.length;t1&&!Ze(t))return n(Xe(t));if(function(n){return!z(n)&&W(n)&&!Ze(n)}(t)){var o=i?t[Ye]:l[0],u=i?t[Qe]:t[o];if(!N(u))throw new Error(function(n){return"Invalid value for key "+n}(o));var a={keyId:J(o),pattern:u};return r&&(a.searcher=en(u,e)),a}var s={children:[],operator:l[0]};return l.forEach((function(e){var l=t[e];z(l)&&l.forEach((function(e){s.children.push(n(e))}))})),s}(n)}function ln(n,e){var t=n.matches;e.matches=[],G(t)&&t.forEach((function(n){if(G(n.indices)&&n.indices.length){var t={indices:n.indices,value:n.value};n.key&&(t.key=n.key.src),n.idx>-1&&(t.refIndex=n.idx),e.matches.push(t)}}))}function rn(n,e){e.score=n.score}function on(n,e){return n.raw=e,n}var un,an=t("GLQ6"),sn=t.n(an),cn=function(){function n(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!n.gun)throw new Error("Missing opt.gun");if(!n.class&&!n.name)throw new Error("You must supply either opt.name or opt.class");if(this.class=n.class,this.serializer=n.serializer,this.class&&!this.class.deserialize&&!this.serializer)throw new Error("opt.class must have deserialize() method or opt.serializer must be defined");this.name=n.name||n.class.name,this.gun=n.gun,this.indexes=n.indexes||[],this.indexer=n.indexer,this.askPeers=void 0===n.askPeers||n.askPeers}return n.prototype.put=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n;this.serializer&&(t=this.serializer.serialize(n)),this.class&&(t=n.serialize());var l=void 0;return l=e.id||t.id?this.gun.get(this.name).get("id").get(e.id||t.id).put(t):n.getId?this.gun.get(this.name).get("id").get(n.getId()).put(t):this.gun.get(this.name).get("id").set(t),this._addToIndexes(t,l),t.id||sn.a.node.soul(l)||l._.link},n.prototype._addToIndexes=function(n,e){return new Promise(function(t,l){function r(){function r(){for(f=0;f0&&void 0!==arguments[0]?arguments[0]:{};if(e.callback){var t=0,l=function(l,r,i){if(l&&!(e.limit&&t++>=e.limit)){if(e.selector)for(var o=Object.keys(e.selector),u=0;u-1&&(r=e.orderBy),this.gun.get(this.name).get(r).map().on(l),this.askPeers&&this.gun.get("trustedIndexes").on((function(e,t){n.gun.user(t).get(n.name).get(r).map().on(l)}))}},n.prototype.delete=function(){},n}(),fn=t("mXm3"),hn=t("Ymal"),pn=t.n(hn),dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},gn={email:/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i,bitcoin:/^[13][a-km-zA-HJ-NP-Z0-9]{26,33}$/,bitcoin_address:/^[13][a-km-zA-HJ-NP-Z0-9]{26,33}$/,ip:/^(([1-9]?\d|1\d\d|2[0-5][0-5]|2[0-4]\d)\.){3}([1-9]?\d|1\d\d|2[0-5][0-5]|2[0-4]\d)$/,ipv6:/^(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}$/,gpg_fingerprint:null,gpg_keyid:null,google_oauth2:null,tel:/^\d{7,}$/,phone:/^\d{7,}$/,keyID:null,url:/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi,account:/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i,uuid:/[0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}/},mn=function(){function n(e,t){if(function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),"object"==typeof e){if("string"!=typeof e.value)throw new Error("param1.value must be a string, got "+dn(e.value)+": "+JSON.stringify(e.value));if("string"!=typeof e.type)throw new Error("param1.type must be a string, got "+dn(e.type)+": "+JSON.stringify(e.type));t=e.value,e=e.type}if("string"!=typeof e)throw new Error("First param must be a string, got "+(void 0===e?"undefined":dn(e))+": "+JSON.stringify(e));if(!e.length)throw new Error("First param string is empty");if(t){if("string"!=typeof t)throw new Error("Second parameter must be a string, got "+(void 0===t?"undefined":dn(t))+": "+JSON.stringify(t));if(!t.length)throw new Error("Second param string is empty");this.type=e,this.value=t}else{this.value=e;var l=n.guessTypeOf(this.value);if(!l)throw new Error("Type of attribute was omitted and could not be guessed");this.type=l}}return n.getUuid=function(){return new n("uuid",function n(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,n)}())},n.getUniqueIdValidators=function(){return gn},n.isUniqueType=function(n){return Object.keys(gn).indexOf(n)>-1},n.prototype.isUniqueType=function(){return n.isUniqueType(this.type)},n.guessTypeOf=function(n){for(var e in gn)if(n.match(gn[e]))return e},n.equals=function(n,e){return n.equals(e)},n.prototype.equals=function(n){return n&&this.type===n.type&&this.value===n.value},n.prototype.uri=function(){return encodeURIComponent(this.value)+":"+encodeURIComponent(this.type)},n.prototype.identiconXml=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return fn.a.getHash(encodeURIComponent(this.type)+":"+encodeURIComponent(this.value),"hex").then((function(e){return new pn.a(e,{width:n.width,format:"svg"}).toString(!0)}))},n.prototype.identiconSrc=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return fn.a.getHash(encodeURIComponent(this.type)+":"+encodeURIComponent(this.value),"hex").then((function(e){return"data:image/svg+xml;base64,"+new pn.a(e,{width:n.width,format:"svg"}).toString()}))},n.prototype.identicon=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n=l({width:50,showType:!0},n),fn.a.injectCss();var e=document.createElement("div");e.className="iris-identicon",e.style.width=n.width+"px",e.style.height=n.width+"px";var t=document.createElement("img");if(t.alt="",t.width=n.width,t.height=n.width,this.identiconSrc(n).then((function(n){return t.src=n})),n.showType){var r=document.createElement("span");r.className="iris-distance",r.style.fontSize=n.width>50?n.width/4+"px":"10px",r.textContent=this.type.slice(0,5),e.appendChild(r)}return e.appendChild(t),e},n}(),vn=(t("ED03"),void 0),yn=function(){function n(){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n)}return n.getActiveKey=function(){var e=arguments;return new Promise((function(t,l){function r(){return t(vn)}var i,o,u,a,s,c,f,h;if(i=e.length>0&&void 0!==e[0]?e[0]:".",o=e.length>1&&void 0!==e[1]?e[1]:"iris.key",u=e[2],vn)return t(vn);if(u){return u.existsSync(a=i+"/"+o)?(s=u.readFileSync(a,"utf8"),vn=n.fromString(s),e.call(this)):Promise.resolve(n.generate()).then(function(t){try{return c=t,u.writeFileSync(a,n.toString(vn=vn||c)),u.chmodSync(a,400),e.call(this)}catch(n){return l(n)}}.bind(this),l);function e(){return vn?r.call(this):l(new Error("loading default key failed - check "+i+"/"+o))}}{return(f=window.localStorage.getItem("iris.myKey"))?(vn=n.fromString(f),e.call(this)):Promise.resolve(n.generate()).then(function(t){try{return h=t,vn=vn||h,window.localStorage.setItem("iris.myKey",n.toString(vn)),e.call(this)}catch(n){return l(n)}}.bind(this),l);function e(){return vn?r.call(this):l(new Error("loading default key failed - check localStorage iris.myKey"))}}}))},n.getDefault=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"iris.key";return n.getActiveKey(e,t)},n.getActivePub=function(){var e=arguments;return new Promise((function(t,l){return Promise.resolve(n.getActiveKey(e.length>0&&void 0!==e[0]?e[0]:".",e.length>1&&void 0!==e[1]?e[1]:"iris.key")).then((function(n){try{return t(n.pub)}catch(n){return l(n)}}),l)}))},n.setActiveKey=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"iris.key",i=arguments[4];if(vn=e,t)if(fn.a.isNode){var o=l+"/"+r;i.writeFileSync(o,n.toString(vn)),i.chmodSync(o,400)}else window.localStorage.setItem("iris.myKey",n.toString(vn))},n.toString=function(n){return JSON.stringify(n)},n.getId=function(n){if(!n||!n.pub)throw new Error("missing param");return n.pub},n.fromString=function(n){return JSON.parse(n)},n.generate=function(){return sn.a.SEA.pair()},n.sign=function(n,e){return new Promise((function(t,l){return Promise.resolve(sn.a.SEA.sign(n,e)).then((function(n){try{return t("a"+n)}catch(n){return l(n)}}),l)}))},n.verify=function(n,e){return sn.a.SEA.verify(n.slice(1),e)},n}(),bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_n="Invalid message:",wn=function(n){function e(){return r(this,e),i(this,n.apply(this,arguments))}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(e,n),e}(Error),Fn=function(){function n(e){if(r(this,n),e.signedData&&(this.signedData=e.signedData),e.pubKey&&(this.pubKey=e.pubKey),e.sig){if("string"!=typeof e.sig)throw new wn("SignedMessage signature must be a string");this.sig=e.sig,this.getHash()}this._validate()}return n._getArray=function(n){for(var e=[],t=Object.keys(n),l=0;ln.maxRating)throw new wn(_n+" Rating is above maxRating");if(n.rating(this.signedData.maxRating+this.signedData.minRating)/2},n.prototype.isNegative=function(){return"rating"===this.signedData.type&&this.signedData.rating<(this.signedData.maxRating+this.signedData.minRating)/2},n.prototype.isNeutral=function(){return"rating"===this.signedData.type&&this.signedData.rating===(this.signedData.maxRating+this.signedData.minRating)/2},n.prototype.sign=function(n){return new Promise(function(e,t){return Promise.resolve(yn.sign(this.signedData,n)).then(function(l){try{return this.sig=l,this.pubKey=n.pub,Promise.resolve(this.getHash()).then((function(){try{return e(!0)}catch(n){return t(n)}}),t)}catch(n){return t(n)}}.bind(this),t)}.bind(this))},n.create=function(e,t){return new Promise((function(l,r){function i(){return l(o)}var o;return!e.author&&t&&(e.author={keyID:yn.getId(t)}),e.time=e.time||(new Date).toISOString(),o=new n({signedData:e}),t?Promise.resolve(o.sign(t)).then(function(){try{return i.call(this)}catch(n){return r(n)}}.bind(this),r):i.call(this)}))},n.createVerification=function(e,t){return e.type="verification",n.create(e,t)},n.createRating=function(e,t){return e.type="rating",e.context=e.context||"iris",e.maxRating=e.maxRating||10,e.minRating=e.minRating||-10,n.create(e,t)},n.prototype.getAuthor=function(n){var e=this.getAuthorIterable(),t=Array.isArray(e),l=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(l>=e.length)break;r=e[l++]}else{if((l=e.next()).done)break;r=l.value}var i=r;if(i.isUniqueType())return n.getContacts(i)}},n.prototype.getRecipient=function(n){if(this.signedData.recipient){var e=this.getRecipientIterable(),t=Array.isArray(e),l=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(l>=e.length)break;r=e[l++]}else{if((l=e.next()).done)break;r=l.value}var i=r;if(i.isUniqueType())return n.getContacts(i)}}},n.prototype.getHash=function(){return new Promise(function(n,e){function t(){return n(this.hash)}return this.sig&&!this.hash?Promise.resolve(fn.a.getHash(this.sig)).then(function(n){try{return this.hash=n,t.call(this)}catch(n){return e(n)}}.bind(this),e):t.call(this)}.bind(this))},n.prototype.getId=function(){return this.getHash()},n.fromSig=function(e){return new Promise((function(t,l){return e.sig?e.pubKey?Promise.resolve(yn.verify(e.sig,e.pubKey)).then((function(r){try{return t(new n({signedData:r,sig:e.sig,pubKey:e.pubKey}))}catch(n){return l(n)}}),l):l(new Error("Missing pubKey in object:")):l(new Error("Missing signature in object:",e))}))},n.prototype.verify=function(){return new Promise(function(n,e){return this.pubKey?this.sig?Promise.resolve(yn.verify(this.sig,this.pubKey)).then(function(t){try{return this.signedData=t,this.signedData?this.hash?Promise.resolve(fn.a.getHash(this.sig)).then(function(n){try{return this.hash!==n?e(new wn(_n+" Invalid message hash")):l.call(this)}catch(n){return e(n)}}.bind(this),e):(this.getHash(),l.call(this)):e(new wn(_n+" Invalid signature"));function l(){return n(!0)}}catch(n){return e(n)}}.bind(this),e):e(new wn(_n+" SignedMessage has no .sig")):e(new wn(_n+" SignedMessage has no .pubKey"))}.bind(this))},n.prototype.serialize=function(){return{sig:this.sig,pubKey:this.pubKey}},n.prototype.toString=function(){return JSON.stringify(this.serialize())},n.deserialize=function(e){return new Promise((function(t){return t(n.fromSig(e))}))},n.fromString=function(e){return new Promise((function(t){return t(n.fromSig(JSON.parse(e)))}))},n.setReaction=function(n,e,t){return new Promise(function(l,r){var i;return Promise.resolve(e.getHash()).then(function(e){try{return i=e,n.get("reactions").get(i).put(t),n.get("reactions").get(i).put(t),n.get("messagesByHash").get(i).get("reactions").get(this.rootContact.value).put(t),n.get("messagesByHash").get(i).get("reactions").get(this.rootContact.value).put(t),l()}catch(n){return r(n)}}.bind(this),r)}.bind(this))},n}(),kn=function(){function n(e,t){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.gun=e,this.linkTo=t}return n.create=function(e,t,l){if(!t.linkTo&&!t.attrs)throw new Error("You must specify either data.linkTo or data.attrs");if(t.linkTo&&!t.attrs){var r=new mn(t.linkTo);t.attrs={},Object.prototype.hasOwnProperty.call(t.attrs,r.uri())||(t.attrs[r.uri()]=r)}else t.linkTo=n.getLinkTo(t.attrs);var i=t.linkTo.uri(),o=e.top(i+"/attrs").put(t.attrs);return delete t.attrs,e.put(t),e.get("attrs").put(o),new n(e,i,l)},n.getLinkTo=function(e){for(var t=n.getMostVerifiedAttributes(e),l=Object.keys(t),r=void 0,i=0;i-1;l.verifications=isNaN(l.verifications)?1:l.verifications,l.unverifications=isNaN(l.unverifications)?0:l.unverifications,2*l.verifications>3*l.unverifications&&(!r||l.verifications-l.unverifications>e[l.type].verificationScore)&&(e[l.type]={attribute:l,verificationScore:l.verifications-l.unverifications},l.verified&&(e[l.type].verified=!0))})),e},n.getAttrs=function(n){return new Promise((function(e,t){var l;return Promise.resolve(fn.a.loadGunDepth(n.get("attrs"),2)).then((function(n){try{return(l=n)&&void 0!==l._&&delete l._,e(l||{})}catch(n){return t(n)}}),t)}))},n.prototype.getId=function(){return this.linkTo.value},n.prototype.sent=function(n,e){n._getSentMsgs(this,e)},n.prototype.received=function(n,e){n._getReceivedMsgs(this,e)},n.prototype.verified=function(e){return new Promise(function(t,l){var r;return Promise.resolve(n.getAttrs(this.gun).then()).then((function(i){try{return r=n.getMostVerifiedAttributes(i),t(Object.prototype.hasOwnProperty.call(r,e)?r[e].attribute.value:void 0)}catch(n){return l(n)}}),l)}.bind(this))},n.prototype.profileCard=function(){var e=this,t=document.createElement("div");t.className="iris-card";var l=this.identicon({width:60});l.style.order=1,l.style.flexShrink=0,l.style.marginRight="15px";var r=document.createElement("div");r.style.padding="5px",r.style.order=2,r.style.flexGrow=1;var i=document.createElement("span"),o=document.createElement("small");return t.appendChild(l),t.appendChild(r),r.appendChild(i),r.appendChild(o),this.gun.on((function(t){return new Promise((function(l,r){var u,a,s,c;return t?Promise.resolve(n.getAttrs(e.gun)).then((function(f){try{return u=f,Promise.resolve(e.gun.get("linkTo").then()).then((function(e){try{return s="https://iris.to/#/identities/"+(a=e).type+"/"+a.value,c=n.getMostVerifiedAttributes(u),i.innerHTML='
'+(c.type&&c.type.attribute.value||c.nickname&&c.nickname.attribute.value||a.type+":"+a.value)+"
",i.innerHTML+='Received: +'+(t.receivedPositive||0)+' / -'+(t.receivedNegative||0)+"
",o.innerHTML="",Object.keys(u).forEach((function(n){var e=u[n];e.link&&(o.innerHTML+=e.type+': '+e.value+" ")})),l()}catch(n){return r(n)}}),r)}catch(n){return r(n)}}),r):l()}))})),t},n.appendSearchWidget=function(n,e){var t=document.createElement("form"),l=document.createElement("input");l.type="text",l.placeholder="Search",l.id="irisSearchInput",t.innerHTML+='
';var r=document.createElement("div");return n.appendChild(t),t.appendChild(l),t.appendChild(r),l.addEventListener("keyup",(function(){return new Promise((function(n,t){var i;return Promise.resolve(e.search(l.value)).then((function(e){try{return i=e,r.innerHTML="",i.sort((function(n,e){return n.trustDistance-e.trustDistance})),i.forEach((function(n){r.appendChild(n.profileCard())})),n()}catch(n){return t(n)}}),t)}))})),t},n._ordinal=function(n){if(0===n)return"";var e=["th","st","nd","rd"],t=n%100;return n+(e[(t-20)%10]||e[t]||e[0])},n.prototype.identicon=function(){function e(e){if(e){var t="rgba(0,0,0,0.2)",r="none",o="";if(l.outerGlow){var u="0px 0px 0px 0px #82FF84";e.receivedPositive>20*e.receivedNegative?u="0px 0px "+l.border*e.receivedPositive/50+"px 0px #82FF84":e.receivedPositive<3*e.receivedNegative&&(u="0px 0px "+l.border*e.receivedNegative/10+"px 0px #BF0400"),i.style.boxShadow=u}e.receivedPositive+e.receivedNegative>0&&(e.receivedPositive>e.receivedNegative?(o="rotate("+(-e.receivedPositive/(e.receivedPositive+e.receivedNegative)*360-180)/2+"deg)",t="#A94442",r="linear-gradient("+e.receivedPositive/(e.receivedPositive+e.receivedNegative)*360+"deg, transparent 50%, #3C763D 50%), linear-gradient(0deg, #3C763D 50%, transparent 50%)"):(o="rotate("+((-e.receivedNegative/(e.receivedPositive+e.receivedNegative)*360-180)/2+180)+"deg)",t="#3C763D",r="linear-gradient("+e.receivedNegative/(e.receivedPositive+e.receivedNegative)*360+"deg, transparent 50%, #A94442 50%), linear-gradient(0deg, #A94442 50%, transparent 50%)")),i.style.backgroundColor=t,i.style.backgroundImage=r,i.style.transform=o,i.style.opacity=(e.receivedPositive+e.receivedNegative)/10*.5+.35,l.showDistance&&(a.textContent="number"==typeof e.trustDistance?n._ordinal(e.trustDistance):"✕")}}function t(n){fn.a.getHash(encodeURIComponent(n.type)+":"+encodeURIComponent(n.value),"hex").then((function(n){var e=new pn.a(n,{width:l.width,format:"svg"});u.src=u.src||"data:image/svg+xml;base64,"+e.toString()}))}var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l=o({width:50,border:4,showDistance:!0,outerGlow:!1},l),fn.a.injectCss();var r=document.createElement("div");r.className="iris-identicon",r.style.width=l.width+"px",r.style.height=l.width+"px";var i=document.createElement("div");i.className="iris-pie",i.style.width=l.width+"px";var u=document.createElement("img");u.alt="",u.width=l.width,u.height=l.width,u.style.borderWidth=l.border+"px";var a=void 0;return l.border&&((a=document.createElement("span")).className="iris-distance",a.style.fontSize=l.width>50?l.width/4+"px":"10px",r.appendChild(a)),r.appendChild(i),r.appendChild(u),this.linkTo?t(this.linkTo):this.gun.get("linkTo").on(t),this.gun.on(e),r},n.prototype.serialize=function(){return this.gun},n.deserialize=function(e,t){var l=new mn({type:"uuid",value:t.id});return new n(t.gun,l)},n}(),xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cn={email:/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i,bitcoin:/^[13][a-km-zA-HJ-NP-Z0-9]{26,33}$/,bitcoin_address:/^[13][a-km-zA-HJ-NP-Z0-9]{26,33}$/,ip:/^(([1-9]?\d|1\d\d|2[0-5][0-5]|2[0-4]\d)\.){3}([1-9]?\d|1\d\d|2[0-5][0-5]|2[0-4]\d)$/,ipv6:/^(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}$/,gpg_fingerprint:null,gpg_keyid:null,google_oauth2:null,tel:/^\d{7,}$/,phone:/^\d{7,}$/,keyID:null,url:/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi,account:/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i,uuid:/[0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}/},Sn=function(){function n(e,t){if(function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),"object"==typeof e){if("string"!=typeof e.value)throw new Error("param1.value must be a string, got "+xn(e.value)+": "+JSON.stringify(e.value));if("string"!=typeof e.type)throw new Error("param1.type must be a string, got "+xn(e.type)+": "+JSON.stringify(e.type));t=e.value,e=e.type}if("string"!=typeof e)throw new Error("First param must be a string, got "+(void 0===e?"undefined":xn(e))+": "+JSON.stringify(e));if(!e.length)throw new Error("First param string is empty");if(t){if("string"!=typeof t)throw new Error("Second parameter must be a string, got "+(void 0===t?"undefined":xn(t))+": "+JSON.stringify(t));if(!t.length)throw new Error("Second param string is empty");this.type=e,this.value=t}else{this.value=e;var l=n.guessTypeOf(this.value);if(!l)throw new Error("Type of attribute was omitted and could not be guessed");this.type=l}}return n.getUuid=function(){return new n("uuid",function n(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,n)}())},n.getUniqueIdValidators=function(){return Cn},n.isUniqueType=function(n){return Object.keys(Cn).indexOf(n)>-1},n.prototype.isUniqueType=function(){return n.isUniqueType(this.type)},n.guessTypeOf=function(n){for(var e in Cn)if(n.match(Cn[e]))return e},n.equals=function(n,e){return n.equals(e)},n.prototype.equals=function(n){return n&&this.type===n.type&&this.value===n.value},n.prototype.uri=function(){return encodeURIComponent(this.value)+":"+encodeURIComponent(this.type)},n.prototype.identiconXml=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return fn.a.getHash(encodeURIComponent(this.type)+":"+encodeURIComponent(this.value),"hex").then((function(e){return new pn.a(e,{width:n.width,format:"svg"}).toString(!0)}))},n.prototype.identiconSrc=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return fn.a.getHash(encodeURIComponent(this.type)+":"+encodeURIComponent(this.value),"hex").then((function(e){return"data:image/svg+xml;base64,"+new pn.a(e,{width:n.width,format:"svg"}).toString()}))},n.prototype.identicon=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n=u({width:50,showType:!0},n),fn.a.injectCss();var e=document.createElement("div");e.className="iris-identicon",e.style.width=n.width+"px",e.style.height=n.width+"px";var t=document.createElement("img");if(t.alt="",t.width=n.width,t.height=n.width,this.identiconSrc(n).then((function(n){return t.src=n})),n.showType){var l=document.createElement("span");l.className="iris-distance",l.style.fontSize=n.width>50?n.width/4+"px":"10px",l.textContent=this.type.slice(0,5),e.appendChild(l)}return e.appendChild(t),e},n}(),On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},En=function(){function n(e){var t=this;if(function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.DEFAULT_PERMISSIONS={read:!0,write:!0},this.key=e.key,this.gun=e.gun,this.myGroupSecret=e.myGroupSecret,this.theirSecretUuids={},this.theirGroupSecrets={},this.user=this.gun.user(),this.user.auth(this.key),this.user.put({epub:this.key.epub}),this.secrets={},this.ourSecretChannelIds={},this.theirSecretChannelIds={},this.messages={},this.chatLinks={},this.groupSubscriptions={},this.directSubscriptions={},this.getParticipantsCallbacks={},e.chatLink&&this.useChatLink(e),"string"==typeof e.participants)this.addParticipant(e.participants,e.save);else if(Array.isArray(e.participants)){var l={};e.participants.forEach((function(n){return l[n]=a({},t.DEFAULT_PERMISSIONS)})),e.participants=l}"object"==typeof e.participants&&(Object.keys(e.participants).forEach((function(n){n!==t.key.pub&&t.addParticipant(n,e.save,a({},t.DEFAULT_PERMISSIONS,e.participants[n]))})),e.participants[this.key.pub]=e.participants[this.key.pub]||a({},this.DEFAULT_PERMISSIONS),e.uuid?(this.uuid=e.uuid,this.name=e.name):(e.uuid=Sn.getUuid().value,this.uuid=e.uuid,e.participants[this.key.pub].admin=!0,e.participants[this.key.pub].founder=!0),this.getChatLinks({subscribe:!0}));this.participants=e.participants,e.uuid&&(this.putDirect("S"+this.uuid,this.getMyGroupSecret()),this.getMySecretUuid().then((function(n){t.putDirect(t.uuid,n)})),this.onTheirDirect(this.uuid,(function(n,e,l){t.theirSecretUuids[l]=n})),this.onTheirDirect("S"+this.uuid,(function(n,e,l){t.theirGroupSecrets[l]=n}))),this.onTheir("participants",(function(n,l,r){for(var i=!1,o=Object.keys(t.participants),u=0;u3&&void 0!==r[3])||r[3],Promise.resolve(sn.a.SEA.secret(t.epub,t)).then((function(r){try{return a=r,u&&n.getMyChatLinks(e,t,void 0,void 0,!0),s={},e.user().get("chats").map().on((function(r,i){return new Promise((function(o,u){function c(){return o()}var f;return r&&!s[i]?(s[i]=!0,i.length>44?(e.user().get("chats").get(i).put(null),o()):Promise.resolve(fn.a.gunOnceDefined(e.user().get("chats").get(i).get("pub"))).then(function(r){try{return Promise.resolve(sn.a.SEA.decrypt(r,a)).then(function(r){try{return(f=r).pub||"string"==typeof f?l(new n({key:t,gun:e,participants:f.pub||f,save:!1})):f.uuid&&f.participants&&f.myGroupSecret&&l(new n({key:t,gun:e,participants:f.participants,uuid:f.uuid,myGroupSecret:f.myGroupSecret,save:!1})),c.call(this)}catch(n){return u(n)}}.bind(this),u)}catch(n){return u(n)}}.bind(this),u)):c.call(this)}))})),i()}catch(n){return o(n)}}),o)}))},n.prototype.getMyGroupSecret=function(){return this.myGroupSecret||this.changeMyGroupSecret(),this.myGroupSecret},n.prototype.getOurSecretChannelId=function(n){return new Promise(function(e,t){function l(){return e(this.ourSecretChannelIds[n])}return this.ourSecretChannelIds[n]?l.call(this):Promise.resolve(this.getSecret(n)).then(function(e){try{return Promise.resolve(fn.a.getHash(e+n)).then(function(e){try{return this.ourSecretChannelIds[n]=e,l.call(this)}catch(n){return t(n)}}.bind(this),t)}catch(n){return t(n)}}.bind(this),t)}.bind(this))},n.prototype.getTheirSecretChannelId=function(n){return new Promise(function(e,t){function l(){return e(this.theirSecretChannelIds[n])}return this.theirSecretChannelIds[n]?l.call(this):Promise.resolve(this.getSecret(n)).then(function(e){try{return Promise.resolve(fn.a.getHash(e+this.key.pub)).then(function(e){try{return this.theirSecretChannelIds[n]=e,l.call(this)}catch(n){return t(n)}}.bind(this),t)}catch(n){return t(n)}}.bind(this),t)}.bind(this))},n.prototype.getMessages=function(n){return new Promise(function(e,t){function l(){return e()}var r,i;return r=this,this.getCurrentParticipants().forEach((function(e){return new Promise((function(t,l){function i(){function i(){return t()}return r.uuid?i.call(this):Promise.resolve(r.getOurSecretChannelId(e)).then(function(t){try{return u=t,r.user.get("chats").get(u).get("msgs").map().once((function(t,l){r.messageReceived(n,t,e,!0,l,r.key.pub)})),i.call(this)}catch(n){return l(n)}}.bind(this),l)}var o,u;if(e!==r.key.pub){return o=void 0,r.uuid?Promise.resolve(r.getTheirSecretUuid(e)).then(function(n){try{return o=n,t.call(this)}catch(n){return l(n)}}.bind(this),l):Promise.resolve(r.getTheirSecretChannelId(e)).then(function(n){try{return o=n,t.call(this)}catch(n){return l(n)}}.bind(this),l);function t(){return r.gun.user(e).get("chats").get(o).get("msgs").map().once((function(t,l){r.messageReceived(n,t,r.uuid||e,!1,l,e)})),i.call(this)}}return i.call(this)}))})),this.uuid?Promise.resolve(this.getMySecretUuid()).then(function(e){try{return i=e,this.user.get("chats").get(i).get("msgs").map().once((function(e,t){r.messageReceived(n,e,r.uuid,!0,t,r.key.pub)})),l.call(this)}catch(n){return t(n)}}.bind(this),t):l.call(this)}.bind(this))},n.prototype.messageReceived=function(n,e,t,l,r,i){return new Promise(function(o,u){var a,s;return this.messages[r]||!e?o():Promise.resolve(new Promise(function(n,e){return this.uuid?Promise.resolve(this.getTheirGroupSecret(i)).then(n,e):Promise.resolve(this.getSecret(t)).then(n,e)}.bind(this))).then(function(c){try{return Promise.resolve(sn.a.SEA.decrypt(e,c)).then(function(e){try{return"object"!=typeof(a=e)||(s={selfAuthored:l,channelId:t,from:i},this.messages[r]=a,n(a,s)),o()}catch(n){return u(n)}}.bind(this),u)}catch(n){return u(n)}}.bind(this),u)}.bind(this))},n.prototype.getLatestMsg=function(n){return new Promise(function(e){var t=this,l=function(e,l){return new Promise((function(r){t.latest?("string"==typeof t.latest.time?t.latest.time:t.latest.time.toISOString())1&&void 0!==e[1])||e[1],i=this,u=e[3],void 0===(o=e[2])&&(o=this.DEFAULT_PERMISSIONS),this.secrets[n]&&JSON.stringify(this.secrets[n])===JSON.stringify(o)?t():(this.secrets[n]=null,this.getSecret(n),Promise.resolve(this.getOurSecretChannelId(n)).then(function(e){try{if(a=e,r)return Promise.resolve(sn.a.SEA.secret(this.key.epub,this.key)).then(function(e){try{return Promise.resolve(sn.a.SEA.encrypt({pub:n},e)).then(function(n){try{return this.gun.user().get("chats").get(a).get("pub").put(n),s.call(this)}catch(n){return l(n)}}.bind(this),l)}catch(n){return l(n)}}.bind(this),l);function s(){return this.uuid&&(this.participants[n]=o,r&&(this.putDirect("S"+this.uuid,this.getMyGroupSecret()),this.getMySecretUuid().then((function(n){i.putDirect(i.uuid,n)})),this.onTheirDirect(this.uuid,(function(n,e,t){i.theirSecretUuids[t]=n})),this.onTheirDirect("S"+this.uuid,(function(n,e,t){i.theirGroupSecrets[t]=n})),this.save())),u&&(Object.values(this.directSubscriptions).forEach((function(e){e.forEach((function(e){e.from&&e.from!==n||i._onTheirDirectFromUser(n,e.key,e.callback)}))})),Object.values(this.groupSubscriptions).forEach((function(e){e.forEach((function(e){e.from&&e.from!==n||(o.write?i._onTheirGroupFromUser(n,e.key,e.callback):e.event&&e.event.off())}))}))),t()}return s.call(this)}catch(n){return l(n)}}.bind(this),l))}.bind(this))},n.prototype.send=function(n){return new Promise(function(e,t){function l(){return e()}var r,i,o,u,a,s;if("string"==typeof n){if(0===(n=n.trim()).length)return e();n={time:(new Date).toISOString(),text:n}}else{if("object"!=typeof n)return t(new Error("msg param must be a string or an object"));n.time=n.time||(new Date).toISOString()}if(this.uuid)return Promise.resolve(sn.a.SEA.encrypt(JSON.stringify(n),this.getMyGroupSecret())).then(function(e){try{return r=e,Promise.resolve(this.getMySecretUuid()).then(function(e){try{return i=e,this.user.get("chats").get(i).get("msgs").get(""+n.time).put(r),this.user.get("chats").get(i).get("latestMsg").put(r),l.call(this)}catch(n){return t(n)}}.bind(this),t)}catch(n){return t(n)}}.bind(this),t);{var c;function e(){return u++,r}function r(){return u1&&void 0!==arguments[1]?arguments[1]:5;t*=1e3,this.put("typing",(n=void 0===n||n)?(new Date).toISOString():new Date(0).toISOString()),clearTimeout(this.setTypingTimeout),this.setTypingTimeout=setTimeout((function(){return e.put("typing",!1)}),t)},n.prototype.getTyping=function(n){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;t*=1e3,this.onTheir("typing",(function(l,r,i){if(n){var o=l&&new Date-new Date(l)<=t;n(o,i),e.getTypingTimeouts=e.getTypingTimeouts||{},clearTimeout(e.getTypingTimeouts[i]),o&&(e.getTypingTimeouts[i]=setTimeout((function(){return n(!1,i)}),t))}}))},n.addChatButton=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(e=a({label:"Chat"},e)).channelOptions)throw new Error("addChatButton missing options.channelOptions param");fn.a.injectCss();var t=void 0,l=void 0,r=fn.a.createElement("div","iris-chat-open-button",document.body);r.setAttribute("id","iris-chat-open-button"),r.innerHTML=' '+e.label,r.addEventListener("click",(function(){r.setAttribute("style","display: none"),t?l.setAttribute("style",""):(t=new n(e.channelOptions),l=t.getChatBox(),document.body.appendChild(l))}))},n.prototype.getSimpleLink=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://iris.to/";return this.uuid?n+"?channelId="+this.uuid+"&inviter="+this.key.pub:n+"?chatWith="+this.getCurrentParticipants()[0]},n.prototype.getChatLinks=function(e){return new Promise(function(t,l){var r=this,i=e.callback,o=e.urlRoot,u=e.subscribe;if(o=o||"https://iris.to/",!this.uuid)return l(new Error("Only group channels may have chat links"));var a=[],s={};return this.on("chatLinks",(function(e,t){e&&"object"===(void 0===e?"undefined":On(e))&&Object.keys(e).forEach((function(l){var c=e[l];if(null===c)return s[l]&&s[l].off(),delete s[l],void(i&&i({id:l,url:null}));if(-1===a.indexOf(l)){var f=[];a.push(l);var h=n.formatChatLink({urlRoot:o,inviter:t,channelId:r.uuid,sharedSecret:c.sharedSecret,linkId:l});i&&i({url:h,id:l}),u&&r.gun.user(c.sharedKey.pub).get("chatRequests").map().on((function(n,e,t,i){return new Promise((function(e,t){function o(){return e()}var u;return!n||"string"!=typeof n||n.length<10?e():(s[l]=i,u=JSON.stringify(n),-1===f.indexOf(u)?(f.push(u),Promise.resolve(sn.a.SEA.decrypt(n,c.sharedSecret)).then(function(n){try{return r.addParticipant(n,void 0,void 0,!0),o.call(this)}catch(n){return t(n)}}.bind(this),t)):o.call(this))}))}))}}))})),t()}.bind(this))},n.prototype.createChatLink=function(){var e=arguments;return new Promise(function(t,l){var r,i,o,u,a,s,c;return r=e.length>0&&void 0!==e[0]?e[0]:"https://iris.to/",Promise.resolve(sn.a.SEA.pair()).then(function(e){try{return i=e,o=JSON.stringify(i),Promise.resolve(sn.a.SEA.secret(i.epub,i)).then(function(e){try{return u=e,Promise.resolve(sn.a.SEA.encrypt(o,u)).then(function(e){try{return a=e,Promise.resolve(sn.a.SEA.secret(this.key.epub,this.key)).then(function(e){try{return Promise.resolve(sn.a.SEA.encrypt(o,e)).then(function(e){try{return s=e,Promise.resolve(fn.a.getHash(a)).then(function(e){try{return c=(c=e).slice(0,12),Promise.resolve(fn.a.gunAsAnotherUser(this.gun,i,(function(n){return n.get("chatRequests").put({a:1}).then()}))).then(function(){try{return this.chatLinks[c]={sharedKey:i,sharedSecret:u},this.put("chatLinks",this.chatLinks),this.user.get("chatLinks").get(c).put({encryptedSharedKey:a,ownerEncryptedSharedKey:s}),t(n.formatChatLink({urlRoot:r,channelId:this.uuid,inviter:this.key.pub,sharedSecret:u,linkId:c}))}catch(n){return l(n)}}.bind(this),l)}catch(n){return l(n)}}.bind(this),l)}catch(n){return l(n)}}.bind(this),l)}catch(n){return l(n)}}.bind(this),l)}catch(n){return l(n)}}.bind(this),l)}catch(n){return l(n)}}.bind(this),l)}catch(n){return l(n)}}.bind(this),l)}.bind(this))},n.prototype.getChatBox=function(){var e=this;fn.a.injectCss();var t=!1,l=fn.a.createElement("div","iris-chat-box"),r=fn.a.createElement("div","iris-chat-header",l),i=fn.a.createElement("span","iris-chat-minimize",r);i.innerText="—",i.addEventListener("click",(function(n){n.stopPropagation(),l.setAttribute("class","iris-chat-box minimized"),t=!0}));var o=fn.a.createElement("div","iris-chat-header-text",r),u=fn.a.createElement("span","iris-online-indicator",o);u.innerHTML="●";var a=fn.a.createElement("span",void 0,o),s=fn.a.createElement("span","iris-chat-close",r);s.innerHTML="×",s.addEventListener("click",(function(){l.setAttribute("style","display: none");var n=document.getElementById("iris-chat-open-button");n&&n.setAttribute("style","")})),r.addEventListener("click",(function(){t&&(l.setAttribute("class","iris-chat-box"),t=!1)}));var c=fn.a.createElement("div","iris-chat-messages",l),f=fn.a.createElement("div","iris-typing-indicator",l);f.innerText="typing...",this.getTyping((function(n){f.setAttribute("class","iris-typing-indicator"+(n?" yes":""))}));var h=fn.a.createElement("div","iris-chat-input-wrapper",l),p=fn.a.createElement("textarea",void 0,h);if(p.setAttribute("rows","1"),p.setAttribute("placeholder","Type a message"),fn.a.isMobile){var d=fn.a.createElement("button",void 0,h);d.innerHTML='\n \n ',d.addEventListener("click",(function(){e.send(p.value),p.value="",e.setTyping(!1)}))}var g=this.getCurrentParticipants();if(g.length){var m=g[0];this.gun.user(m).get("profile").get("name").on((function(n){return a.innerText=n})),n.getActivity(this.gun,m,(function(n){u.setAttribute("class","iris-online-indicator"+(n.isActive?" yes":"")),c.querySelectorAll(".iris-chat-message:not(.delivered)").forEach((function(e){if(e.getAttribute("data-time")<=n.lastActive){var t=e.getAttribute("class");e.setAttribute("class",t+" delivered")}}))}))}return this.getTheirMsgsLastSeenTime((function(n){c.querySelectorAll(".iris-seen:not(.yes)").forEach((function(e){var t=e.parentElement.parentElement.parentElement;if(t.getAttribute("data-time")<=n){var l=t.getAttribute("class");-1===l.indexOf("delivered")&&t.setAttribute("class",l+" delivered"),e.setAttribute("class","iris-seen yes")}}))})),this.getMessages((function(n,t){var l=fn.a.createElement("div","iris-msg-content");l.innerText=n.text;var r=fn.a.createElement("div","time",l);(r.innerText=fn.a.formatTime(new Date(n.time)),t.selfAuthored)&&(fn.a.createElement("span",e.theirMsgsLastSeenTime>=n.time?"iris-seen yes":"iris-seen",r).innerHTML=' ');l.innerHTML=l.innerHTML.replace(/\n/g,"
\n");var i=fn.a.createElement("div",(t.selfAuthored?"our":"their")+" iris-chat-message");i.appendChild(l),i.setAttribute("data-time",n.time);for(var o=c.children.length;o>=0;o--)if(0===o)c.insertBefore(i,c.firstChild);else{var u=c.children[o-1].getAttribute("data-time");if(u&&unew Date(e.getTime()-1e4)&&r2&&void 0!==l[2]?l[2]:"https://iris.to/",u=l[3],a=l[4],(s=e.user()).auth(t),Promise.resolve(sn.a.SEA.secret(t.epub,t)).then((function(l){try{return c=l,f=[],s.get("chatLinks").map().on((function(l,r){if(l&&-1===f.indexOf(r)){var i=[];s.get("chatLinks").get(r).get("ownerEncryptedSharedKey").on((function(l){return new Promise((function(s,h){var p,d,g;return l&&-1===f.indexOf(r)?(f.push(r),Promise.resolve(sn.a.SEA.decrypt(l,c)).then((function(l){try{return p=l,Promise.resolve(sn.a.SEA.secret(p.epub,p)).then((function(l){try{return g=n.formatChatLink({urlRoot:o,chatWith:t.pub,sharedSecret:d=l,linkId:r}),u&&u({url:g,id:r}),a&&e.user(p.pub).get("chatRequests").map().on((function(l,r){return new Promise((function(o,u){function a(){return fn.a.gunAsAnotherUser(e,p,(function(n){n.get("chatRequests").get(r).put(null)})),o()}var s;return l?(s=JSON.stringify(l),-1===i.indexOf(s)?(i.push(s),Promise.resolve(sn.a.SEA.decrypt(l,d)).then(function(l){try{return new n({gun:e,key:t,participants:l}).save(),a.call(this)}catch(n){return u(n)}}.bind(this),u)):a.call(this)):o()}))})),s()}catch(n){return h(n)}}),h)}catch(n){return h(n)}}),h)):s()}))}))}})),r()}catch(n){return i(n)}}),i)}))},n.prototype.removeGroupChatLink=function(n){this.chatLinks[n]=null,this.put("chatLinks",this.chatLinks),this.gun.user().get("chatLinks").get(n).put(null)},n.removePrivateChatLink=function(n,e,t){n.user().auth(e),n.user().get("chatLinks").get(t).put(null)},n.deleteChannel=function(e,t,l){return new Promise((function(r,i){var o;return e.user().auth(t),Promise.resolve(n.getOurSecretChannelId(e,l,t)).then((function(n){try{return o=n,e.user().get("channels").get(o).put(null),e.user().get("channels").get(o).off(),r()}catch(n){return i(n)}}),i)}))},n}(),Tn=t("t10x"),An=t("hosL"),jn=function(n,e,t,l){function r(){var e=Reflect.construct(HTMLElement,[],r);return e._vdomComponent=n,e._root=l&&l.shadow?e.attachShadow({mode:"open"}):e,e}return(r.prototype=Object.create(HTMLElement.prototype)).constructor=r,r.prototype.connectedCallback=f,r.prototype.attributeChangedCallback=p,r.prototype.disconnectedCallback=d,t=t||n.observedAttributes||Object.keys(n.propTypes||{}),r.observedAttributes=t,t.forEach((function(n){Object.defineProperty(r.prototype,n,{get:function(){return this._vdom.props[n]},set:function(e){this._vdom?this.attributeChangedCallback(n,null,e):(this._props||(this._props={}),this._props[n]=e,this.connectedCallback());var t=typeof e;null!=e&&"string"!==t&&"boolean"!==t&&"number"!==t||this.setAttribute(n,e)}})})),customElements.define(e||n.tagName||n.displayName||n.name,r)},Dn=function n(e,t,l,r){var i;t[0]=0;for(var o=1;o=5&&((r||!n&&5===l)&&(o.push(l,0,r,t),l=6),n&&(o.push(l,n,0,t),l=6)),r=""},a=0;a"===e?(l=1,r=""):r=e+r[0]:i?e===i?i="":r+=e:'"'===e||"'"===e?i=e:">"===e?(u(),l=1):l&&("="===e?(l=5,t=r,r=""):"/"===e&&(l<5||">"===n[a][s+1])?(u(),3===l&&(o=o[0]),l=o,(o=o[0]).push(2,0,l),l=0):" "===e||"\t"===e||"\n"===e||"\r"===e?(u(),l=2):r+=e),3===l&&"!--"===r&&(l=4,o=o[0])}return u(),o}(n)),e),arguments,[])).length>1?e:e[0]}.bind(An.h);!("undefined"==typeof window||!window.document||!window.document.createElement)&&!un&&((un=document.createElement("style")).type="text/css",un.nonce=t.nc,un.appendChild(document.createTextNode("/* jsxstyle */")),document.head.appendChild(un));var Mn={Block:{display:"block"},Box:null,Col:{display:"flex",flexDirection:"column"},Grid:{display:"grid"},Inline:{display:"inline"},InlineBlock:{display:"inline-block"},InlineCol:{display:"inline-flex",flexDirection:"column"},InlineRow:{display:"inline-flex",flexDirection:"row"},Row:{display:"flex",flexDirection:"row"},Flex:{display:"flex"},InlineFlex:{display:"inline-flex"},Table:{display:"table"},TableCell:{display:"table-cell"},TableRow:{display:"table-row"}},Ln={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexNegative:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Rn=["Webkit","ms","Moz","O"];Object.keys(Ln).forEach((function(n){Rn.forEach((function(e){Ln[function(n,e){return n+e.charAt(0).toUpperCase()+e.substring(1)}(e,n)]=Ln[n]}))}));var Bn,zn,Nn,Un,Hn,Wn=/([A-Z])/g,Gn=/^ms-/,qn={},$n=/[A-Z]/g,Kn={after:!0,before:!0,placeholder:!0,selection:!0},Vn={active:!0,checked:!0,disabled:!0,empty:!0,enabled:!0,focus:!0,hover:!0,invalid:!0,link:!0,required:!0,target:!0,valid:!0},Jn={children:!0,class:!0,className:!0,component:!0,mediaQueries:!0,props:!0,style:!0},Yn={paddingH:["paddingLeft","paddingRight"],paddingV:["paddingTop","paddingBottom"],marginH:["marginLeft","marginRight"],marginV:["marginTop","marginBottom"]},Qn=(zn={},Nn=function(n){return"_"+_(n).toString(36)},Un=!1,Hn={reset:function(){zn={}},injectOptions:function(n){n&&(n.getClassName&&(Nn=n.getClassName),n.onInsertRule&&(Bn=n.onInsertRule),n.pretty&&(Un=n.pretty)),Hn.injectOptions=F},getClassName:function(n,e){Hn.injectOptions=w;var t=function(n,e){if(void 0===e&&(e=!1),"object"!=typeof n||null===n)return null;var t=Object.keys(n).sort(),l=t.length;if(0===l)return null;var r,i=n.mediaQueries,o=!1,u={},a={classNameKey:"",stylesByKey:u},s="",c={},f={};if(null!=i){var h=-1;for(var p in i)f[p]="@"+(1e3+ ++h)}for(var d=-1;++d1&&g.slice(0,$n.lastIndex-1);C&&null!=i&&i.hasOwnProperty(C)&&(o=!0,k=C,v=g[x=$n.lastIndex-1].toLowerCase()+g.slice(x+1),C=$n.test(g)&&v.slice(0,$n.lastIndex-x-1)),C&&Kn.hasOwnProperty(C)&&(w=C,x=$n.lastIndex-1,C=$n.test(g)&&g[x].toLowerCase()+g.slice(x+1,$n.lastIndex-1)),C&&Vn.hasOwnProperty(C)&&(F=C,x=$n.lastIndex-1),x>0&&(m=g[x].toLowerCase()+g.slice(x+1));var S=n[g],O=e?" ":"",E=":"+O,T=e?"\n":"",A=";"+T,j=e?" ":"";if("animation"===m&&S&&"object"==typeof S){var D=T;for(var P in S){var I=S[P];for(var M in D+=P+O+"{"+T,I){var L=y(M,I[M]);D+=j+b(M)+E+L+A}D+="}"+T}var R="jsxstyle_"+_(D).toString(36);m="animationName",S=R,(r=r||{})[R]=D}else if(""===(S=y(m,n[g])))continue;var B=k&&i[k],z="."+(k&&f[k]||"")+(F?":"+F:"")+(w?"::"+w:"");u.hasOwnProperty(z)||(u[z]={styles:T},B&&(u[z].mediaQuery=B),F&&(u[z].pseudoclass=F),w&&(u[z].pseudoelement=w)),B?(c[B]=c[B]||"",c[B]+=v+":"+S+";"):s+=g+":"+S+";";var N=E+S+A,U=Yn[m];u[z].styles+=U?j+b(U[0])+N+j+b(U[1])+N:j+b(m)+N}}if(o)for(var H=Object.keys(c).sort(),W=-1,G=H.length;++W\n ',"\n ','\n '],["\n <","\n onClick=","\n cursor=","\n borderRadius=",'\n overflow="hidden"\n userSelect="none"\n class="identicon-container ','">\n ',"\n ','\n ']),te=C(['',""],['',""]),le=function(n){function e(){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?n:e}(this,n.call(this));return t.eventListeners={},t}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(e,n),e.prototype.componentDidUpdate=function(n){n.user!==this.props.user&&(this.resetEventListeners(),this.setState({name:"",photo:""}),this.componentDidMount())},e.prototype.componentDidMount=function(){var n=this;this.props.user&&(new Sn({type:"keyID",value:this.props.user}).identiconSrc({width:this.props.width,showType:!1}).then((function(e){n.setState({identicon:e})})),fn.a.getPublicState().user(this.props.user).get("profile").get("photo").on((function(e){"string"==typeof e&&0===e.indexOf("data:image")&&n.setState({photo:e})})),this.props.showTooltip&&fn.a.getPublicState().user(this.props.user).get("profile").get("name").on((function(e,t,l,r){n.eventListeners.name=r,n.setState({name:e})})))},e.prototype.resetEventListeners=function(){Object.values(this.eventListeners).forEach((function(n){return n.off()})),this.eventListeners={}},e.prototype.componentWillUnmount=function(){this.resetEventListeners()},e.prototype.render=function(){return In(ee,Zn,this.props.onClick,this.props.onClick?"pointer":"",parseInt(this.props.width)||80,this.props.showTooltip?"tooltip":"",this.props.showTooltip&&this.state.name?In(te,this.state.name):"",this.props.width||80,this.props.width||80,this.state.photo||this.state.identicon,this.state.name||"")},e}(An.Component);!fn.a.isNode&&jn(le,"iris-identicon",["user","onClick","width","showTooltip"]);var re=le,ie=void 0,oe=function(){function n(){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n)}return n.getActiveKey=function(){var e=arguments;return new Promise((function(t,l){function r(){return t(ie)}var i,o,u,a,s,c,f,h;if(i=e.length>0&&void 0!==e[0]?e[0]:".",o=e.length>1&&void 0!==e[1]?e[1]:"iris.key",u=e[2],ie)return t(ie);if(u){return u.existsSync(a=i+"/"+o)?(s=u.readFileSync(a,"utf8"),ie=n.fromString(s),e.call(this)):Promise.resolve(n.generate()).then(function(t){try{return c=t,u.writeFileSync(a,n.toString(ie=ie||c)),u.chmodSync(a,400),e.call(this)}catch(n){return l(n)}}.bind(this),l);function e(){return ie?r.call(this):l(new Error("loading default key failed - check "+i+"/"+o))}}{return(f=window.localStorage.getItem("iris.myKey"))?(ie=n.fromString(f),e.call(this)):Promise.resolve(n.generate()).then(function(t){try{return h=t,ie=ie||h,window.localStorage.setItem("iris.myKey",n.toString(ie)),e.call(this)}catch(n){return l(n)}}.bind(this),l);function e(){return ie?r.call(this):l(new Error("loading default key failed - check localStorage iris.myKey"))}}}))},n.getDefault=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"iris.key";return n.getActiveKey(e,t)},n.getActivePub=function(){var e=arguments;return new Promise((function(t,l){return Promise.resolve(n.getActiveKey(e.length>0&&void 0!==e[0]?e[0]:".",e.length>1&&void 0!==e[1]?e[1]:"iris.key")).then((function(n){try{return t(n.pub)}catch(n){return l(n)}}),l)}))},n.setActiveKey=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"iris.key",i=arguments[4];if(ie=e,t)if(fn.a.isNode){var o=l+"/"+r;i.writeFileSync(o,n.toString(ie)),i.chmodSync(o,400)}else window.localStorage.setItem("iris.myKey",n.toString(ie))},n.toString=function(n){return JSON.stringify(n)},n.getId=function(n){if(!n||!n.pub)throw new Error("missing param");return n.pub},n.fromString=function(n){return JSON.parse(n)},n.generate=function(){return sn.a.SEA.pair()},n.sign=function(n,e){return new Promise((function(t,l){return Promise.resolve(sn.a.SEA.sign(n,e)).then((function(n){try{return t("a"+n)}catch(n){return l(n)}}),l)}))},n.verify=function(n,e){return sn.a.SEA.verify(n.slice(1),e)},n}(),ue=S(['\n \n \n ',"\n \n "],['\n \n \n ',"\n \n "]),me=function(n){function e(){return E(this,e),T(this,n.apply(this,arguments))}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(e,n),e.prototype.getValue=function(n){var e=this;this.getNode(n).on((function(n,t,l,r){e.eventListeners[e.path]=r,e.setState({value:n})}))},e.prototype.onChange=function(n){return new Promise(function(e,t){var l;return Promise.resolve(function(n){return new Promise((function(e,t){var l=new FileReader;l.readAsDataURL(n),l.onload=function(){return e(l.result)},l.onerror=function(n){return t(n)}}))}(n.target.files[0])).then(function(n){try{return l=n,this.getNode().put(l),e()}catch(n){return t(n)}}.bind(this),t)}.bind(this))},e.prototype.renderInput=function(){var n=this;return In(fe,this.state.value,this.props.placeholder||this.path,(function(e){return n.onInput(e)}),!this.isEditable())},e.prototype.renderTag=function(){var n=this,e=this.props.placeholder||this.props.path,t=this.props.tag||"span";return In(he,t,this.ref,this.isEditable(),e,(function(e){return n.onInput(e)}),this.state.value,t)},e.prototype.onClick=function(){this.isEditable()&&this.base.firstChild.click()},e.prototype.render=function(){var n=this,e=this.isEditable(),t=this.state.value,l=t&&0===t.indexOf("data:image")?t:this.props.placeholder,r=this.props,i=void 0;l?i=In(pe,e?"cursor: pointer;":"",(function(e){return n.onClick(e)}),t,{alt:r.alt,width:r.width,height:r.height}):e&&(i=In(de,this.props["btn-class"],(function(e){return n.onClick(e)})));return In(ge,(function(e){return n.onChange(e)}),i)},e}(ce);!fn.a.isNode&&jn(me,"iris-img",["path","user","placeholder","editable","alt","width","height"]);var ve,ye=me,be=((ve=[""]).raw=[""],ve),_e=function(n){function e(){return A(this,e),j(this,n.apply(this,arguments))}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(e,n),e.prototype.copyToClipboard=function(n){if(window.clipboardData&&window.clipboardData.setData)return window.clipboardData.setData("Text",n);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var e=document.createElement("textarea");e.textContent=n,e.style.position="fixed",document.body.appendChild(e),e.select();try{return document.execCommand("copy")}catch(n){return console.warn("Copy to clipboard failed.",n),!1}finally{document.body.removeChild(e)}}},e.prototype.copy=function(n,e){var t=this;this.copyToClipboard(e);var l=n.target;this.originalWidth=this.originalWidth||l.offsetWidth+1,l.style.width=this.originalWidth,this.setState({copied:!0}),clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.setState({copied:!1})}),2e3)},e.prototype.onClick=function(n){var e=this;n.preventDefault();var t="function"==typeof this.props.str?this.props.str():this.props.str;navigator.share&&fn.a.isMobile&&!this.props["not-shareable"]?navigator.share({url:t,title:this.props.title}).catch((function(l){console.error("share failed",l),e.copy(n,t)})):this.copy(n,t)},e.prototype.render=function(){var n=this;return In(be,this.props["inner-class"]||"copy-button",(function(e){return n.onClick(e)}),this.state.copied?this.props["copied-text"]||"Copied":this.props.text||"Copy")},e}(An.Component);!fn.a.isNode&&jn(_e,"iris-copy-button",["str","not-shareable","text","copied-text","title","inner-class"]);var we=_e,Fe=function(n,e){return n.raw=e,n}(['\n \n '],['\n \n ']),ke=function(n){function e(){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?n:e}(this,n.call(this));return t.eventListeners={},t}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(e,n),e.prototype.onClick=function(n){n.preventDefault();var e=!this.state.following;fn.a.getPublicState().user().get("follow").get(this.props.user).put(e)},e.prototype.componentDidMount=function(){var n=this;fn.a.injectCss(),oe.getDefault().then((function(e){fn.a.getPublicState().user().auth(e),fn.a.getPublicState().user().get("follow").get(n.props.user).on((function(e,t,l,r){n.setState({following:e}),n.eventListeners.follow=r}))}))},e.prototype.componentWillUnmount=function(){Object.values(this.eventListeners).forEach((function(n){return n.off()}))},e.prototype.render=function(){var n=this;return In(Fe,this.state.following?"following":"",this.props["inner-class"]||"",(function(e){return n.onClick(e)}),this.state.following?"Following":"Follow")},e}(An.Component);!fn.a.isNode&&jn(ke,"iris-follow-button",["user"]);var xe=ke,Ce=Object.prototype.hasOwnProperty,Se=function(){function n(n){var e=this;this._keys=[],this._keyMap={};var t=0;n.forEach((function(n){var l=K(n);t+=l.weight,e._keys.push(l),e._keyMap[l.id]=l,t+=l.weight})),this._keys.forEach((function(n){n.weight/=t}))}var e=n.prototype;return e.get=function(n){return this._keyMap[n]},e.keys=function(){return this._keys},e.toJSON=function(){return JSON.stringify(this._keys)},n}(),Oe={useExtendedSearch:!1,getFn:function(n,e){var t=[],l=!1;return function n(e,r,i){if(G(e))if(r[i]){var o=e[r[i]];if(!G(o))return;if(i===r.length-1&&(N(o)||U(o)||H(o)))t.push(function(n){return null==n?"":function(n){if("string"==typeof n)return n;var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}(n)}(o));else if(z(o)){l=!0;for(var u=0,a=o.length;uje){for(var g=0,m=d%je,v=d-m;g-1;)l.push([e,(t=e+r)-1]);var i=!!l.length;return{isMatch:i,score:i?0:1,indices:l}},P(e,null,[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),e}(Pe),He=[Ie,Ue,Le,Re,ze,Be,Me,Ne],We=He.length,Ge=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,qe=new Set([Ne.type,Ue.type]),$e=function(){function n(n,e){var t=void 0===e?{}:e,l=t.isCaseSensitive,r=void 0===l?Ee.isCaseSensitive:l,i=t.includeMatches,o=void 0===i?Ee.includeMatches:i,u=t.minMatchCharLength,a=void 0===u?Ee.minMatchCharLength:u,s=t.ignoreLocation,c=void 0===s?Ee.ignoreLocation:s,f=t.findAllMatches,h=void 0===f?Ee.findAllMatches:f,p=t.location,d=void 0===p?Ee.location:p,g=t.threshold,m=void 0===g?Ee.threshold:g,v=t.distance,y=void 0===v?Ee.distance:v;this.query=null,this.options={isCaseSensitive:r,includeMatches:o,minMatchCharLength:a,findAllMatches:h,ignoreLocation:c,location:d,threshold:m,distance:y},this.pattern=r?n:n.toLowerCase(),this.query=function(n,e){return void 0===e&&(e={}),n.split("|").map((function(n){for(var t=n.trim().split(Ge).filter((function(n){return n&&!!n.trim()})),l=[],r=0,i=t.length;r-1&&(c=c.slice(0,l)),function(n,e,t){var l=void 0===t?{}:t,r=l.includeMatches,i=l.includeScore,o=void 0===i?Ee.includeScore:i,u=[];return(void 0===r?Ee.includeMatches:r)&&u.push(ln),o&&u.push(rn),n.map((function(n){var t=n.idx,l={item:e[t],refIndex:t};return u.length&&u.forEach((function(e){e(n,l)})),l}))}(c,this._docs,{includeMatches:i,includeScore:o})},e._searchStringList=function(n){var e=en(n,this.options),t=[];return this._myIndex.records.forEach((function(n){var l=n.v,r=n.i,i=n.n;if(G(l)){var o=e.searchIn(l);o.isMatch&&t.push({item:l,idx:r,matches:[{score:o.score,value:l,norm:i,indices:o.indices}]})}})),t},e._searchLogical=function(n){var e=this,t=tn(n,this.options),l=function n(t,l,r){if(!t.children){var i=t.keyId,o=t.searcher,u=e._findMatches({key:e._keyStore.get(i),value:e._myIndex.getValueForItemAtKeyId(l,i),searcher:o});return u&&u.length?[{idx:r,item:l,matches:u}]:[]}switch(t.operator){case Ve:for(var a=[],s=0,c=t.children.length;s\n
\n

\n "],['\n \n "]),lt=on(['\n \n ',"
\n \n ","\n \n \n \n "],['\n
\n ',"
\n \n ","\n \n \n \n "]),rt=on(['\n
\n \n <'," user="," width=40/>\n <",' alignItems="center" marginLeft="5px">Suggested\n \n '],['\n \n \n <'," user="," width=40/>\n <",' alignItems="center" marginLeft="5px">Suggested\n \n ']),it="hyECQHwSo7fgr2MVfPyakvayPeixxsaAWVtZ-vbaiSc.TXIp8MnCtrnW6n2MrYquWPcc-DTmZzMBmc2yaGv9gIU",ot=function(n){function e(){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?n:e}(this,n.call(this));return t.eventListeners={},t.state={results:[]},t.follows={},t.debouncedIndexAndSearch=fn.a.debounce((function(){t.fuse=new et(Object.values(t.follows),{keys:["name"],includeScore:!0,includeMatches:!0,threshold:.3}),t.search()}),200),oe.getDefault().then((function(n){t.key=n,fn.a.getPublicState().user().auth(n),t.getFollowsFn((function(){return t.debouncedIndexAndSearch()}))})),t}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(e,n),e.prototype.onInput=function(){this.search()},e.prototype.close=function(){this.base.querySelector("input").value="",this.setState({results:[],query:""})},e.prototype.getFollowsFn=function(n,e){var t=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=function(e,l,r){t.follows[e]?(t.follows[e].followDistance>l&&(t.follows[e].followDistance=l),t.follows[e].followers.add(r)):(t.follows[e]={key:e,followDistance:l,followers:new Set([r])},fn.a.getPublicState().user(e).get("profile").get("name").on((function(l){t.follows[e].name=l,n(e,t.follows[e])}))),n(e,t.follows[e])};return i(e=e||this.key.pub,r-1),fn.a.getPublicState().user(e).get("follow").map().once((function(o,u){o&&(t.hasFollows=!0,i(u,r,e),r1)return this.props["on-select"]({key:t[1]});null}if(e&&this.fuse){var l=this.fuse.search(e).slice(0,5);if(l.length){var r=function e(t){"Escape"===t.key&&(document.removeEventListener("keyup",e),n.close())};document.removeEventListener("keyup",r),document.addEventListener("keyup",r)}this.setState({results:l,query:e})}else this.setState({results:[],query:e})},e.prototype.onClick=function(n,e){this.close();var t=this.props.onSelect||window.onIrisSearchSelect;t&&(n.preventDefault(),n.stopPropagation(),t(e))},e.prototype.render=function(){var n=this;return In(tt,(function(e){return n.onSubmit(e)}),this.props["inner-class"]||"",(function(){return n.onInput()}),ne,this.offsetLeft||"",this.state.results.map((function(e){var t=e.item,l="";return 1===t.followDistance&&(l="Following"),2===t.followDistance&&(l=1===t.followers.size&&n.follows[[].concat(t.followers)[0]]&&n.follows[[].concat(t.followers)[0]].name?"Followed by "+n.follows[[].concat(t.followers)[0]].name:"Followed by "+t.followers.size+" users you follow"),In(lt,t.key,(function(e){return n.onClick(e,t)}),re,t.key,ne,t.name||"",l)})),this.state.query&&!this.hasFollows?In(rt,(function(e){return n.onClick(e,{key:it})}),it,re,it,Xn):"")},e}(An.Component);!fn.a.isNode&&jn(ot,"iris-search",["on-select","inner-class"]);e.a={VERSION:Tn.a,Collection:cn,SignedMessage:Fn,Contact:kn,Attribute:mn,Key:yn,Channel:En,util:fn.a,components:{Identicon:re,TextNode:ce,ImageNode:ye,CopyButton:we,FollowButton:xe,Search:ot}}},"5IsQ":function(n){function e(){throw new Error("setTimeout has not been defined")}function t(){throw new Error("clearTimeout has not been defined")}function l(n){if(a===setTimeout)return setTimeout(n,0);if((a===e||!a)&&setTimeout)return a=setTimeout,setTimeout(n,0);try{return a(n,0)}catch(e){try{return a.call(null,n,0)}catch(e){return a.call(this,n,0)}}}function r(){p&&f&&(p=!1,f.length?h=f.concat(h):d=-1,h.length&&i())}function i(){if(!p){var n=l(r);p=!0;for(var e=h.length;e;){for(f=h,h=[];++d1)for(var t=1;tSMS verified so others can find you.",give_your_profile_link_to_someone:"give your profile link to someone",if_other_person_doesnt_see_message:"If the other person doesn't see your message, you can give them your invite link through some other channel:",type_a_message:"Type a message",beware_of_sharing_invite_link_publicly:"Beware of sharing your invite link publicly: you might get spammed with message requests. Publicly share your profile link instead.",your_invite_links:"Your Invite Links",create_new_invite_link:"Create new invite link",copy_your_invite_link:"Copy your invite link",have_someones_invite_link:"Have someone's invite link?",paste_their_invite_link:"Paste their invite link",give_your_invite_link:"Give your invite link:",or_scan_qr_code:"Or scan their QR code",or_show_qr_code:"Or show your QR code",new_group:"New group",group_name:"Group name",create:"Create",settings:"Settings",profile:"Profile",your_name:"Your name",profile_photo:"Profile photo",add_profile_photo:"Add profile photo",profile_photo_too_big:"Profile photo too big: maximum size is 200KB",cancel:"Cancel",use_photo:"Use photo",remove_photo:"Remove photo",about_text:"About text",account:"Account",save_backup_of_privkey_first:"Save a backup of your private key first!",otherwise_cant_log_in_again:"Otherwise you can't log in back to this account.",log_out:"Log out",private_key:"Private key",download_private_key:"Download private key",private_key_warning:"DANGER! Private key gives access to your account. Don't give or show your private key to anyone else!",copy_private_key:"Copy private key",show_privkey_qr:"Show private key QR code",hide_privkey_qr:"Hide private key QR code",privkey_storage_recommendation:"The safest place to store your private key is a password manager.",language:"Language",peers:"Peers",peer_url:"Peer url",public:"Public",remove:"Remove",enable:"Enable",disable:"Disable",from:"from",add:"Add",public_peer_info:"Public peers are automatically discoverable by people you chat with (and others).",peers_info:"Peers are GunDB nodes that you can easily spin up. Upcoming: direct connection with friends over WebRTC.",webrtc_connection_options:"WebRTC connection options",webrtc_info:"WebRTC is used for video calls. If you're behind a NAT, you might need to specify a TURN server here, which will relay your video traffic.",restore_defaults:"Restore defaults",about:"About",application_security_warning:"The application is an unaudited proof-of-concept implementation, so don't use it for security critical purposes.",donate:"Donate",donate_info:"Donations help keep the project going and are very much appreciated. You can donate via Open Collective or bitcoin",logout_confirmation_info:"You cannot log in again unless you have saved a copy of your private key.",participants:"Participants",admin:"admin",add_participant:"Add participant",new_participants_profile_link:"New participant's profile link",invite_links:"Invite links",copy:"Copy",follows_you:"Follows you",follow:"Follow",unfollow:"Unfollow",following:"Following",followers:"Followers",add_friend:"Add friend",send_message:"Send message",copy_link:"Copy link",show_qr_code:"Show QR code",chat_settings:"Chat Settings",nicknames:"Nicknames",nickname:"Nickname",video_call:"Video call",online:"online",last_active:"last active",their_nickname_for_you:"Their nickname for you",notifications:"Notifications",all_messages:"All messages",mentions_only:"Mentions only",nothing:"Nothing",delete_chat:"Delete chat",block_user:"Block user",typing:"Typing...",attachment:"attachment",note_to_self:"Note to Self",today:"today",yesterday:"yesterday",copied:"Copied",answer:"answer",reject:"reject",incoming_call:"Incoming call",call_rejected:"Call rejected",close:"Close",call_ended:"Call ended",calling:"Calling",on_call_with:"On call with",delete:"Delete",confirm_delete_msg:"Delete message?",search:"Search",feed_up:"Newer",feed_top:"Newest",feed_down:"Older",feed_bottom:"Oldest",email_optional:"Email (optional)",delivery:"Delivery",address:"Address",confirmation:"Confirmation",payment_method:"Payment method",summary:"Summary",download_webtorrent:"Download Webtorrent Desktop to host your media files and paste their magnet links below.",visibility:"Your posts, replies and likes are only shown to your followers and their network.",iris_is_like:"Iris is like the social networking apps we're used to, but better.",this_is_a_prototype_store:"This is a prototype store that shows items from merchants in your social network. Orders are sent via Iris private message. Your own store can be found here.",add_to_cart:"Add to cart",web_push_subscriptions:"Web push subscriptions",enable_public_peer_discovery:"Enable public peer discovery",there_is_a_bug:"There's a bug that may cause high CPU and bandwidth usage when connecting to more than 1 peer. Working on it!",set_up_your_own_peer:"Set up your own peer",also:"Also",or_small:"or",automatically_load_webtorrent_attachments:"Automatically load webtorrent attachments",autoplay_webtorrent_videos:"Autoplay webtorrent videos",home:"Home",media:"Media",messages:"Messages",market:"Market",contacts:"Contacts",explorer:"Explorer",no_contacts_in_list:"You don't have any contacts in your list."},es:{language_name:"Español",whats_your_name:"¿Cuál es tu nombre?",new_user_go:"Ir",already_have_an_account:"¿Ya tienes una cuenta?",back:"volver",scan_private_key_qr_code:"Escanee el código QR de clave privada",paste_private_key:"Pegar una clave privada",get_notified_new_messages:"Recibe notificaciones de nuevos mensajes",turn_on_desktop_notifications:"Activa las notificaciones de escritorio",new_chat:"Nueva conversación",if_other_person_doesnt_see_message:"Si la otra persona no ve su mensaje, puede darle su enlace de chat a través de otro canal:",type_a_message:"Escribe un mensaje",beware_of_sharing_invite_link_publicly:"Tenga cuidado de compartir su enlace de chat públicamente: puede recibir spam con solicitudes de mensajes. Comparta públicamente su enlace de perfil en su lugar.",your_invite_links:"Tus enlaces de chat",create_new_invite_link:"Crear nuevo enlace de chat",copy_your_invite_link:"Copia tu enlace de chat",have_someones_invite_link:"¿Tienes el enlace de chat de alguien?",paste_their_invite_link:"Pegue su enlace de chat",give_your_invite_link:"Pasa tu enlace de chat:",or_scan_qr_code:"O escanee su código QR",or_show_qr_code:"O muestra tu código QR",new_group:"Nuevo grupo",group_name:"Nombre del grupo",create:"Crear",settings:"Configuraciones",profile:"Perfil",your_name:"Tu nombre",profile_photo:"Foto de perfil",add_profile_photo:"Añadir foto de perfil",profile_photo_too_big:"Foto de perfil demasiado grande: el tamaño máximo es de 200 KB",cancel:"Cancelar",use_photo:"Usar foto",remove_photo:"Eliminar foto",about_text:"Sobre el texto",account:"Cuenta",save_backup_of_privkey_first:"¡tenga una copia de seguridad de su clave privada primero!",otherwise_cant_log_in_again:"De lo contrario, no puede volver a iniciar sesión en esta cuenta.",log_out:"Cerrar sesión",private_key:"Llave privada",download_private_key:"Descargar clave privada",private_key_warning:" ¡PELIGRO! La clave privada se utiliza para iniciar sesión en su cuenta . ¡No le dé ni muestre su clave privada a nadie más!",copy_private_key:"Copiar clave privada",show_privkey_qr:"Mostrar código QR de clave privada",hide_privkey_qr:"Ocultar código QR de clave privada",privkey_storage_recommendation:"El lugar más seguro para almacenar su clave privada es un administrador de contraseñas .",language:"Idioma",peers:"Pares",peer_url:"Par url",public:"Público",remove:"Remove",enable:"Eliminar",disable:"Inhabilitar",from:"desde",add:"Añadir",public_peer_info:"Las personas con las que chatea (y otras) pueden detectar automáticamente a los pares públicos .",peers_info:"Los pares son nodos GunDB que puede ​​girar fácilmente . Próximamente: conexión directa con amigos a través de WebRTC.",webrtc_connection_options:"Opciones de conexión de WebRTC",webrtc_info:"WebRTC se utiliza para videollamadas. Si está detrás de un NAT, es posible que deba especificar un servidor TURN aquí, que retransmitirá su tráfico de video. El ancho de banda no es gratuito, por lo que no hay servidores TURN gratuitos disponibles.",restore_defaults:"Restaurar los valores predeterminados",about:"Acerca de",application_security_warning:"La aplicación es una implementación de prueba de concepto no auditada, así que no la use con fines críticos de seguridad.",donate:"Donar",donate_info:" Donaciones ayudan a mantener el proyecto en marcha y son muy apreciados. Puede donar a través de Open Collective o bitcoin ",logout_confirmation_info:" no puede iniciar sesión de nuevo a menos que haya guardado una copia de su clave privada.",participants:"Participantes",admin:"administración",add_participant:"Añada participante",new_participants_profile_link:"Enlace de chat del nuevo participante",add_friend:"Añadir amigo",send_message:"Enviar mensaje",copy_link:"Copiar link",chat_settings:"Configuraciones de chat",nicknames:"Apodos",nickname:"Apodo",video_call:"Videollamada",online:"en línea",last_active:"Último Activo",their_nickname_for_you:"Su apodo para ti",notifications:"Notificaciones",all_messages:"Todos los mensajes",mentions_only:"Solo menciones",nothing:"Nada",delete_chat:"Eliminar chat",block_user:"Bloquear usuario",typing:"Escribiendo...",attachment:"adjunto archivo",note_to_self:"Nota personal",today:"hoy",yesterday:"ayer",copied:"Copiado",answer:"responder",reject:"rechazar",incoming_call:"Llamada entrante",call_rejected:"Llamada rechazada",close:"Cerrar",call_ended:"Llamada finalizada",calling:"Llamando",on_call_with:"En comunicación con",no_contacts_in_list:"No tienes ningún contacto en tu lista."},"pt-BR":{language_name:"Português Brasil",whats_your_name:"Qual o seu nome?",new_user_go:"Vai",already_have_an_account:"Já tem uma conta?",back:"Voltar",scan_private_key_qr_code:"Ler QR code da chave privada",paste_private_key:"Cole a chave privada",get_notified_new_messages:"Ser notificado de novas mensagens",turn_on_desktop_notifications:"Ativar notificações no desktop",new_chat:"Nova conversa",if_other_person_doesnt_see_message:"Se a outra pessoa não vê sua mensagens, você pode passar pra ela o seu link do bate-papo através de outro canal.",type_a_message:"Digite uma mensagem",beware_of_sharing_invite_link_publicly:"Cuidado ao compartilhar seu link de bate-papo publicamente: você pode receber spam com solicitações de mensagem. Ao invés disso, compartilhe publicamente seu Link do perfil.",your_invite_links:"Seus links de bate-papo",create_new_invite_link:"Criar um novo link de bate-papo",copy_your_invite_link:"Copiar seu link de bate-papo",have_someones_invite_link:"Tem o link de bate-papo de alguém?",paste_their_invite_link:"Cole o link da outra pessoa",give_your_invite_link:"Forneça seu link de bate-papo:",or_scan_qr_code:"Ou leia o QR code",or_show_qr_code:"Ou mostre seu QR code",new_group:"Novo grupo",group_name:"Nome do grupo",create:"Criar",profile:"Perfil",settings:"Configurações",your_name:"Seu nome",profile_photo:"Foto do perfil",add_profile_photo:"Adicionar foto do perfil",profile_photo_too_big:"Foto do perfil muito grande: tamanho máximo é 200KB",cancel:"Cancelar",use_photo:"Usar foto",remove_photo:"Remover foto",about_text:"Texto sobre",account:"Conta",save_backup_of_privkey_first:"Faça backup da sua chave privada primeiro!",otherwise_cant_log_in_again:"Caso contrário você não vai conseguir acessar sua conta novamente.",log_out:"Sair",private_key:"Chave privada",download_private_key:"Baixar chave privada",private_key_warning:"PERIGO! A chave privada é usada para acessar sua conta. Não compartilhe ou mostre sua chave privada para ninguém!",copy_private_key:"Copiar chave privada",show_privkey_qr:"Mostrar QR code da chave privada",hide_privkey_qr:"Esconder QR code da chave privada",privkey_storage_recommendation:"O lugar mais seguro para armazenar sua chave privada é um gerenciardor de senhas.",language:"Idioma",peers:"Peers",peer_url:"Peer url",public:"Público",remove:"Remover",enable:"Ativar",disable:"Desativar",from:"de",add:"Adicionar",public_peer_info:"Peers públicos são encontrados automaticamente por pessoas que você bate-papo (e outros).",peers_info:"Peers são nós do GunDB que você pode facilmente trocar. Novidade pela frente: conexão direta com seus amigos utilizando WebRTC.",webrtc_connection_options:"Opções de conexão WebRTC",webrtc_info:"WebRTC é utilizado para chamadas de vídeo. Se você está atrás de um NAT, você precisa especificar aqui um servidor TURN que vai retransmitir o tráfego de vídeo. A largura de banda não é gratuita, portanto, não há servidores TURN gratuitos disponíveis.",restore_defaults:"Restaurar padrões",about:"Sobre",application_security_warning:"O aplicativo é uma implementação de prova de conceito não auditada; portanto, não o use para fins críticos de segurança.",donate:"Doe",donate_info:"Ajude a manter o projeto com doações, nós agrademos muito. Você pode doar por Open Collective ou bitcoin",logout_confirmation_info:"Você não pode logar novamente ao menos que você tenha salvado uma cópia da sua chave primária.",participants:"participantes",admin:"administração",add_participant:"Adicionar participante",new_participants_profile_link:"Link do bate-papo do novo participante.",add_friend:"Adicionar amigo",send_message:"Enviar mensagem",copy_link:"Copiar link",chat_settings:"Configurações do bate-papo",nicknames:"Apelidos",nickname:"Apelido",video_call:"Chamada de vídeo",online:"online",last_active:"última atividade",their_nickname_for_you:"Apelido deles para você",notifications:"Notificações",all_messages:"Todas mensagens",mentions_only:"Somente menções",nothing:"Nada",delete_chat:"Apagar bate-papo",block_user:"Bloquear usuário",typing:"Digitando...",attachment:"anexo",note_to_self:"Nota pessoal",today:"hoje",yesterday:"ontem",copied:"Copiado",answer:"resposta",reject:"rejeitado",incoming_call:"Chamada entrante",call_rejected:"Chamada rejeitada",close:"Fechar",call_ended:"Chamada encerrada",calling:"Chamando",on_call_with:"Em chamada com",no_contacts_in_list:"Você não tem nenhum contato na sua lista."},ru:{language_name:"Русский",whats_your_name:"Как вас зовут?",new_user_go:"Поехали!",already_have_an_account:"Уже есть аккаунт?",back:"Назад",scan_private_key_qr_code:"Отсканируйте QR-код приватного ключа",paste_private_key:"Вставьте приватный ключ",get_notified_new_messages:"Узнавайте о новых сообщениях",turn_on_desktop_notifications:"Включить уведомления на рабочем столе",new_chat:"Новый чат",if_other_person_doesnt_see_message:"Если собеседник не видит сообщение, вы можете дать вашу ссылку на чат через другой канал связи:",type_a_message:"Напишите сообщение",beware_of_sharing_invite_link_publicly:"Аккуратно распространяйте вашу ссылку на чат: вас могут заспамить сообщениями. Лучше расшарьте ссылку на ваш профиль.",your_invite_links:"Ссылки на ваши чаты",create_new_invite_link:"Создать новую ссылку на чат",copy_your_invite_link:"Скопировать вашу ссылку на чат",have_someones_invite_link:"Есть чья-то ссылка на чат?",paste_their_invite_link:"Вставьте свою ссылку на чат",give_your_invite_link:"Дайте свою ссылку на чат:",or_scan_qr_code:"Или отсканируйте их QR-код",or_show_qr_code:"Или покажите свой QR-код",new_group:"Новая группа",group_name:"Название группы",create:"Создать",settings:"Настройки",profile:"Профиль",your_name:"Ваше имя",profile_photo:"Аватар",add_profile_photo:"Добавить аватар",profile_photo_too_big:"Аватар слишком большой: макс. размер 200KB",cancel:"Отмена",use_photo:"Использовать фото",remove_photo:"Убрать фото",about_text:"Описание",account:"Аккаунт",save_backup_of_privkey_first:"Сначала сохраните копию приватного ключа!",otherwise_cant_log_in_again:"Иначе вы не сможите войти в аккаунт.",log_out:"Выйти",private_key:"Приватный ключ",download_private_key:"Скачать приватный ключ",private_key_warning:"ОПАСНО! Приватный ключ используется для входа в ваш аккаунт. Никому не показывайте ключ!",copy_private_key:"Скопировать приватный ключ",show_privkey_qr:"Показать QR-код приватного ключа",hide_privkey_qr:"Спрятать QR-код приватного ключа",privkey_storage_recommendation:"Лучшее место для хранения приватного ключа — менеджер паролей.",language:"Язык",peers:"Пиры",peer_url:"Ссылка пира",public:"Публичный",remove:"Убрать",enable:"Включить",disable:"Выключить",from:"от кого",add:"Добавить",public_peer_info:"Публичные пиры автоматически обнаруживаются людьми, с которыми вы общаетесь (и другими).",peers_info:"Пиры — это ноды GunDB, вы можете легко развернуть ноду у себя. Скоро будет возможно общаться с друзьями напрямую через WebRTC.",webrtc_connection_options:"Опции подключения через WebRTC",webrtc_info:"WebRTC используется для видеозвонков. Если вы используете NAT, возможно вам понадобится TURN-сервер, который будет обслуживать ваш видео-трафик. Передача данных стоит денег, поэтому бесплатных TURN-серверов мы не предоставляем.",restore_defaults:"Восстановить исходные настройки",about:"Про Iris",application_security_warning:"Приложение является экспериментальным, поэтому не используйте его для критичных процессов и не храните в нем секретные данные.",donate:"Задонатить",donate_info:"Донаты помогают проекту развиваться и приветствуются. Вы можете задонатить через via Open Collective или прислать BTC",logout_confirmation_info:"Вы не сможете заново войти пока не скопируете приватный ключ.",participants:"участники",admin:"админ",add_participant:"Добавить участника",new_participants_profile_link:"Ссылка на чат для нового участника",add_friend:"Добавить друга",send_message:"Отправить сообщение",copy_link:"Скопировать ссылку",chat_settings:"Настройки чата",nicknames:"Никнеймы",nickname:"Никнейм",video_call:"Видео-звонок",online:"онлайн",last_active:"последняя активность",their_nickname_for_you:"Их никнейм для вас",notifications:"Уведомления",all_messages:"Все сообщения",mentions_only:"Только упоминания меня",nothing:"Ничего",delete_chat:"Удалить чат",block_user:"Заблокировать",typing:"Печатает...",attachment:"вложение",note_to_self:"Заметка для себя",today:"сегодня",yesterday:"вчера",copied:"Скопировано",answer:"ответить",reject:"отклонить",incoming_call:"Входящий звонок",call_rejected:"Звонок отклонен",close:"Закрыть",call_ended:"Звонок завершен",calling:"Звоню",on_call_with:"На звонке с"},de:{language_name:"Deutsch",whats_your_name:"Was ist Ihr Name?",new_user_go:"Auf Gehts",already_have_an_account:"Haben sie schon ein Konto eingerichtet?",back:"zurück",scan_private_key_qr_code:"Scan einen privaten Schlüssel QR code",paste_private_key:"Füge einen privaten Schlüssel ein",get_notified_new_messages:"Werde über neue Nachrichten notifiziert",turn_on_desktop_notifications:"Stelle Desktop Notifikationen ein",new_chat:"Neue Unterhaltung",if_other_person_doesnt_see_message:"Sollte die andere Person die Nachricht nicht sehen, können Sie Ihren Unterhaltung's link über einen anderen Kanal senden:",type_a_message:"Schreiben sie eine Nachricht",beware_of_sharing_invite_link_publicly:"Vorsicht wenn Unterhaltung's links in der Öffentlichkeit geteilt werden: Sie können mit Nachricht Anfragen gespammt werden. Teilen sie lieber ihren Profil link.",your_invite_links:"Ihre Unterhaltung's links",create_new_invite_link:"Machen Sie einen neuen Unterhaltung's link",copy_your_invite_link:"Kopieren Sie ihren Unterhaltung's link",have_someones_invite_link:"Haben Sie einen Unterhaltung's link von jemandem?",paste_their_invite_link:"Fügen Sie den Unterhaltung's link hier ein",give_your_invite_link:"Geben Sie ihren Unterhaltung's link:",or_scan_qr_code:"Oder scannen Sie den QR code",or_show_qr_code:"Oder zeigen Sie ihren QR code",new_group:"Neue Gruppe",group_name:"Gruppen Name",create:"Erstellen",settings:"Einstellungen",profile:"Profile",your_name:"Ihr Name",profile_photo:"Profil Bild",add_profile_photo:"Profil Bild hinzufügen",profile_photo_too_big:"Profil Bild zu gross: maximale Grösse ist 200KB",cancel:"Abbrechen",use_photo:"Bild benutzen",remove_photo:"Bild entfernen",about_text:"'Über uns' Text",account:"Konto",save_backup_of_privkey_first:"Speichern Sie ein Backup für Ihren privaten Schlüssel!",otherwise_cant_log_in_again:"Sonst können Sie nicht mehr in Ihr Konto einloggen.",log_out:"Ausloggen",private_key:"Privater Schlüssel",download_private_key:"Download Privaten Schlüssel",private_key_warning:"Warnung! Der private Schlüssel ist benötigt um in Ihr Konto einzuloggen. Geben Sie niemals Ihren privaten Schlüssel an Andere weiter!",copy_private_key:"Kopieren Sie den privaten Schlüssel",show_privkey_qr:"Zeigen Sie den privaten Schlüssel QR code",hide_privkey_qr:"Blended Sie den privaten Schlüssel QR code aus",privkey_storage_recommendation:"Der sicherste Platz für Ihren privaten Schlüssel ist ein Passwor Manager.",language:"Sprache",peers:"Peers",peer_url:"Peer url",public:"Öffentlich",remove:"Entfernen",enable:"Einstellen",disable:"Ausstellen",from:"Von",add:"Hinzufügen",public_peer_info:"Öffentliche peers sind automatisch auffindbar für Leute in Ihren Unterhaltungen (und ausserhalb).",peers_info:"Peers sind GunDB nodes die Sie einfach hochfahren können. Kommend: Direkte Verbindung zu Freunden über WebRTC.",webrtc_connection_options:"WebRTC Verbindungsoptionen",webrtc_info:"WebRTC ist für Videoanrufe benutzt. Wenn Sie hinter einem NAT sind, müssen Sie wahrscheinlich einen TURN server hier definieren, der dann Ihr Video Verkehr weiterleitet. Bandwidth ist nicht kostenfrei, darum gibt es nicht viele kostenfreie TURN servers.",restore_defaults:"Einstellungen zurückstellen",about:"Über uns",application_security_warning:"Diese App ist ein ungeprüftes 'proof-of-concept' Implementation, also nicht für Sicherheit nötige Dinge benutzten.",donate:"Spenden",donate_info:"Spenden helfen dem Projekt weiter zu gehen und werden dankbar angenommen. Sie können via Open Collective oder bitcoin spenden.",logout_confirmation_info:"Sie können nicht wieder einloggen, ausser Sie haben saved eine Kopie ihres privaten Schlüssels gespeichert.",participants:"Teilnehmer",admin:"admin",add_participant:"Teilnehmer hinzufügen",new_participants_profile_link:"Neuer Teilnehmer's Unterhaltung's link",add_friend:"Freund hinzufügen",send_message:"Nachricht senden",copy_link:"Link kopieren",chat_settings:"Unterhaltunseinstellungen",nicknames:"Nicknames",nickname:"Nickname",video_call:"Video Anruf",online:"online",last_active:"Letztmals aktiv",their_nickname_for_you:"Ihr Nickname für die Anderen",notifications:"Notifikationen",all_messages:"Alle Nachrichten",mentions_only:"Nur Erwähnungen",nothing:"Nichts",delete_chat:"Unterhaltung löschen",block_user:"Benutzer blockieren",typing:"Schreibt...",attachment:"Anhang",note_to_self:"Notiz zu Selbst",today:"heute",yesterday:"gestern",copied:"Kopiert",answer:"antworten",reject:"ablehnen",incoming_call:"Einkommender Anruf",call_rejected:"Anruf abgelehnt",close:"Schliessen",call_ended:"Anruf beendet",calling:"Rufe an",on_call_with:"Anruf mit"},fi:{language_name:"Suomi",whats_your_name:"Mikä on nimesi?",new_user_go:"Aloita",already_have_an_account:"Onko sinulla jo tili?",back:"Takaisin",scan_private_key_qr_code:"Skannaa salaisen avaimen QR-koodi",paste_private_key:"Liitä salainen avain",get_notified_new_messages:"Tilaa ilmoitukset uusista viesteistä",turn_on_desktop_notifications:"Ota käyttöön työpöytäilmoitukset",new_chat:"Uusi keskustelu",if_other_person_doesnt_see_message:"Jos toinen käyttäjä ei näe viestiäsi, voit antaa hänelle sinun kutsulinkkisi jotain muuta kautta:",type_a_message:"Kirjoita viesti",beware_of_sharing_invite_link_publicly:"Jos jaat kutsulinkkisi julkisesti: saatat saada viestipyyntö-spämmiä. Sen sijaan voit turvallisesti jakaa profiililinkkisi julkisesti.",your_invite_links:"Kutsulinkkisi",create_new_invite_link:"Luo uusi kutsulinkki",copy_your_invite_link:"Kopioi kutsulinkkisi",have_someones_invite_link:"Saitko toisen käyttäjän kutsulinkin?",paste_their_invite_link:"Liitä kutsulinkki",give_your_invite_link:"Anna oma kutsulinkkisi:",or_scan_qr_code:"Tai skannaa toisen QR-koodi",or_show_qr_code:"Tai näytä oma QR-koodisi",new_group:"Uusi ryhmä",group_name:"Ryhmän nimi",create:"Luo",settings:"Asetukset",profile:"Profiili",your_name:"Nimesi",profile_photo:"Profiilikuva",add_profile_photo:"Lisää profiilikuva",profile_photo_too_big:"Profiilikuva on liian suuri: maksimikoko on 200KB",cancel:"Peruuta",use_photo:"Käytä kuvaa",remove_photo:"Poista kuva",about_text:"Kuvausteksti",account:"Tili",save_backup_of_privkey_first:"Tallenna ensin varmuuskopio salaisesta avaimestasi!",otherwise_cant_log_in_again:"Muuten et voi kirjautua takaisin tälle tilille.",log_out:"Kirjaudu ulos",private_key:"Salainen avain",download_private_key:"Lataa salainen avain tiedostona",private_key_warning:"VAROITUS! Salainen avain antaa pääsyn tilillesi. Älä anna tai näytä salaista avaintasi kenellekään.",copy_private_key:"Kopioi salainen avain",show_privkey_qr:"Näytä salaisen avaimen QR-koodi",hide_privkey_qr:"Piilota salaisen avaimen QR-koodi",privkey_storage_recommendation:"Turvallisin säilytyspaikka salaiselle avaimellesi on salasananhallintaohjelma (password manager).",language:"Kieli",peers:"Yhteyspisteet (peers)",peer_url:"Peer url",public:"Julkinen",remove:"Poista",enable:"Käytä",disable:"Poista käytöstä",from:"lähde",add:"Lisää",public_peer_info:"Julkiset yhteyspisteet näkyvät automaattisesti käyttäjille, joiden kanssa keskustelet (ja muille).",peers_info:"Yhteyspisteet ovat GunDB-solmuja, joiden pystyttämisestä tietoa täällä. Tulossa: suorat yhteydet kavereiden kesken WebRTC:llä.",webrtc_connection_options:"WebRTC-yhteysasetukset",webrtc_info:"WebRTC:tä käytetään videopuheluihin. Jos olet NATin takana, sinun tarvitsee ehkä määrittää tähän TURN-palvelin, joka välittää videoliikenteesi. Tiedonsiirto ei ole ilmaista, joten ilmaisia TURN-palvelimia ei ole saatavilla.",restore_defaults:"Palauta oletusarvot",about:"Tietoa",application_security_warning:"Sovellus on auditoimaton konseptitoteutus, joten älä käytä sitä tarkoituksiin joissa turvallisuus on oleellisen tärkeää.",donate:"Lahjoita",donate_info:"Lahjoitukset pitävät projektin pystyssä ja arvostamme niitä suuresti. Voit lahjoittaa Open Collectiven kautta tai bitcoinilla",logout_confirmation_info:"Et voi kirjautua takaisin sisään ellet ole tallentanut varmuuskopiota salaisesta avaimestasi.",participants:"osallistujat",admin:"ylläpitäjä",add_participant:"Lisää osallistuja",new_participants_profile_link:"Uuden osallistujan kutsulinkki",add_friend:"Lisää kaveriksi",send_message:"Lähetä viesti",copy_link:"Kopioi linkki",chat_settings:"Keskustelun asetukset",nicknames:"Lempinimet",nickname:"Lempinimi",video_call:"Videopuhelu",online:"paikalla",last_active:"viimeksi aktiivisena",their_nickname_for_you:"Hänen lempinimensä sinulle",notifications:"Ilmoitukset",all_messages:"Kaikki viestit",mentions_only:"Vain maininnat",nothing:"Ei mitään",delete_chat:"Poista keskustelu",block_user:"Estä käyttäjä",typing:"Kirjoittaa...",attachment:"liite",note_to_self:"Muistiinpanot",today:"tänään",yesterday:"eilen",copied:"Kopioitu",answer:"vastaa",reject:"hylkää",incoming_call:"Saapuva puhelu",call_rejected:"Puhelu hylätty",close:"Sulje",call_ended:"Puhelu päättyi",calling:"Soitetaan",on_call_with:"Puhelu käyttäjälle",total:"Yhteensä",home:"Koti",messages:"Viestit",market:"Tori",contacts:"Yhteystiedot",explorer:"Hakemisto",no_followers_yet:"Jaa linkkisi, niin muut voivat seurata sinua:",next:"Seuraava",shopping_carts:"Ostoskorit",shopping_cart:"Ostoskori",cart:"Kori",delivery:"Yhteystiedot",payment:"Maksutapa",payment_method:"Maksutapa",confirm:"Yhteenveto",address:"Osoite",email_optional:"Sähköposti (valinnainen)",name:"Nimi",confirm_button:"Vahvista",summary:"Yhteenveto",following:"Seurataan",followers:"Seuraajat",likes:"Tykkäykset",replies:"Vastaukset",posts:"Julkaisut",type_a_message_or_paste_a_magnet_link:"Kirjoita viesti tai liitä magnet-linkki",download_webtorrent:"Lataa Webtorrent Desktop mediatiedostojen jakamiseen ja liitä niiden magnet-linkki alle.",alternatively:"Vaihtoehtoisesti",alternatively_get_sms_verified:"Vaihtoehtoisesti tunnistaudu tekstiviestillä",visibility:"Julkaisut, vastaukset ja tykkäykset näkyvät vain seuraajillesi ja heidän verkostoillensa.",no_followers_yet_info:"Julkaisut, vastaukset ja tykkäykset näkyvät vain seuraajillesi ja heidän verkostoillensa.",iris_is_like:"Iiris on kuin tuntemamme sosiaalisen median sovellukset, mutta parempi.",copy:"Kopioi",this_is_a_prototype_store:"Tori on prototyyppi, ja se näyttää myynnissä olevat tavarat sosiaalisessa verkostossasi. Iriksessä tuotteet tilataan yksityisviesteillä. Tästä pääset omaan kauppaasi.",add_to_cart:"Lisää koriin",switch_account:"Vaihda tiliä",web_push_subscriptions:"Selaimen ilmoitustilaukset (web push subscriptions)",enable_public_peer_discovery:"Salli julkisten yhteyspisteiden hakeminen",maximum_number_of_peer_connections:"Maksimimäärä yhteyspisteitä",there_is_a_bug:"Bugin vuoksi useampaan kuin yhteen yhteyspisteeseen yhdistäminen voi kuormittaa tietokoneen suoritinta ja viedä verkkokaistaa. Korjaaminen on työn alla!",set_up_your_own_peer:"Pystytä oma yhteyspisteesi",also:"Myös",or_small:"tai",automatically_load_webtorrent_attachments:"Lataa webtorrentin liitteet automaattisesti",autoplay_webtorrent_videos:"Käynnistä webtorrentin videot automaattisesti",search:"Etsi"},it:{language_name:"Italian",whats_your_name:"Quale è il tuo nome??",new_user_go:"Inizia",already_have_an_account:"Hai già un account?",back:"Indietro",scan_private_key_qr_code:"Scansione codice QR di chiave privata",paste_private_key:"Incolla una chiave privata",get_notified_new_messages:"Ricevi una notifica per i nuovi messaggi",turn_on_desktop_notifications:"Attiva le notifiche desktop",new_chat:"Nuova chat",if_other_person_doesnt_see_message:"Se l'altra persona non vede il tuo messaggio, puoi dargli il tuo invite link attraverso qualche altro canale:",type_a_message:"Scrivi un messaggio",beware_of_sharing_invite_link_publicly:"Fai attenzione a condividere pubblicamente il tuo invite link: potresti ricevere spam con richieste di messaggi. Condividi pubblicamente invece il tuo link di profilo.",your_invite_links:"I tuoi invite link",create_new_invite_link:"Crea nuovo invite link",copy_your_invite_link:"Copia il tuo invite link",have_someones_invite_link:"Hai il invite link di quakcuno?",paste_their_invite_link:"Incolla il loro invite link",give_your_invite_link:"Dai il tuo invite link:",or_scan_qr_code:"O scansiona il loro codice QR",or_show_qr_code:"O mostra il tuo codice QR",new_group:"Nuovo gruppo",group_name:"Nome gruppo",create:"Crea",profile:"Profilo",settings:"Impostazioni",your_name:"Il tuo nome",profile_photo:"Foto di profilo",add_profile_photo:"Aggiungi foto di profilo",profile_photo_too_big:"Foto di profilo troppo grande: dimensione massima di 200KB",cancel:"Cancella",use_photo:"Usa foto",remove_photo:"Rimuovi foto",about_text:"Riguardo a te",account:"Account",save_backup_of_privkey_first:"Salva prima un backup della tua chiave privata!",otherwise_cant_log_in_again:"Altrimenti non potrai riautenticarti a questo account.",log_out:"Scollegati",private_key:"Chiave privata",download_private_key:"Scarica chiave privata",private_key_warning:"PERICOLO! La chiave privata è usata per autenticarti al tuo account. Non dare o mostrare la tua chiave privata a nessun altro!",copy_private_key:"Copia chiave privata",show_privkey_qr:"Mostra il codice QR della chiave privata",hide_privkey_qr:"Nascondi il codice QR della chaive privata",privkey_storage_recommendation:"Il posto più sicuro dove archiviare la chiave privata è un gestore password.",language:"Lingua",peers:"Peer",peer_url:"Peer url",public:"Pubblico",remove:"Rimuovi",enable:"Abilita",disable:"Disabilita",from:"da",add:"Aggiungi",public_peer_info:"Peer pubblici sono automaticamente rilevabili dalle persone con cui scrivi (e altri).",peers_info:"I peer sono nodi GunDB che puoi facilmente montare. In arrivo: connessione diretta con gli amici attraverso WebRTC.",webrtc_connection_options:"Opzioni di connessione WebRTC",webrtc_info:"WebRTC è usato per le video chiamate. Se sei dietro ad una NAT, potresti aver bisogno di specificare un server TURN qui, che inoltrerà il tuo traffico video. La banda di trasferimento non è gratuita, non ci sono server TURN gratuiti in giro.",restore_defaults:"Ripristina le impostazioni predifinite",about:"A proposito",application_security_warning:"L'applicazione è un'implementazione di prova del concetto non certificata, quindi non utilizzarla per fini che richiedano un uso sicuro in situazioni critiche.",donate:"Dona",donate_info:"Le donazioni aiutano a mantenere il progetto e sono molto apprezzate. Puoi donare attraverso Open Collective o bitcoin",logout_confirmation_info:"Non puoi autenticarti a meno che tu non abbia salvato una copia della tua chiave privata.",participants:"partecipanti",admin:"admin",add_participant:"Aggiungi partecipante",new_participants_profile_link:"Nuovi invite link del participante",add_friend:"Aggiungi amico",send_message:"Invia messaggio",copy_link:"Copia link",chat_settings:"Impostazioni della Chat",nicknames:"Soprannome",nickname:"Soprannome",video_call:"Chiamata video",online:"online",last_active:"ultimo attivo",their_nickname_for_you:"Il loro soprannome per te",notifications:"Notifiche",all_messages:"Tutti i messaggi",mentions_only:"Solo menzioni",nothing:"Nulla",delete_chat:"Cancella chat",block_user:"Blocca utente",typing:"Sta scrivendo...",attachment:"allegato",note_to_self:"Nota a te stesso",today:"oggi",yesterday:"ieri",copied:"Copiato",answer:"rispondere",reject:"rifiutare",incoming_call:"Chiamata in arrivo",call_rejected:"Chiamata respinta",close:"Chiudere",call_ended:"Chiamata conclusa",calling:"Chiamata in corso",on_call_with:"In chiamata con",no_contacts_in_list:"Non hai contatti nella tua lista."},"zh-cn":{language_name:"中文",whats_your_name:"你叫什么名字?",new_user_go:"开始",already_have_an_account:"已有账户?",back:"后退",scan_private_key_qr_code:"请扫描私钥的二维码",paste_private_key:"请复制你的私钥",get_notified_new_messages:"接收新消息的提醒",turn_on_desktop_notifications:"打开桌面消息提醒",new_chat:"新的聊天",if_other_person_doesnt_see_message:"如果其他人无法看到你的消息,你可以把 你的 聊天链接在其他频道发送给他们:",type_a_message:"请输入消息",beware_of_sharing_invite_link_publicly:"请注意,公开分享你的聊天链接将有可能让你收到垃圾消息申请。推荐分享你的账号链接。",your_invite_links:"你的聊天链接",create_new_invite_link:"创建新的聊天链接",copy_your_invite_link:"复制你的聊天链接",have_someones_invite_link:"有其他人的聊天链接?",paste_their_invite_link:"请将聊天链接粘贴在此",give_your_invite_link:"你的聊天链接:",or_scan_qr_code:"或扫描他们的二维码",or_show_qr_code:"或展示你的二维码",new_group:"新的聊天群组",group_name:"群组名称",create:"创建",profile:"个人资料",settings:"设定",your_name:"你的名字",profile_photo:"头像",add_profile_photo:"添加头像",profile_photo_too_big:"头像超过最大尺寸(200KB)",cancel:"取消",use_photo:"选取照片",remove_photo:"移除照片",about_text:"简介",account:"账号",save_backup_of_privkey_first:"首先请妥善保管你的私钥!",otherwise_cant_log_in_again:"否则你将无法登录这个账号。",log_out:"登出",private_key:"私钥",download_private_key:"下载私钥",private_key_warning:"危险! 私钥可以用来 登录你的账号。 不要将你的私钥交给或展示给任何其他人!",copy_private_key:"复制私钥",show_privkey_qr:"显示私钥二维码",hide_privkey_qr:"隐藏私钥二维码",privkey_storage_recommendation:"密码管理器是保存私钥最安全的方式。",language:"语言",peers:"节点",peer_url:"节点地址",public:"公开",remove:"移除",enable:"启用",disable:"禁用",from:"来自于",add:"添加",public_peer_info:"公开 节点可被自动发现",peers_info:"GunDB 的节点可以帮助加速连接速度 。即将支持:通过 WebRTC 直接连接聊天对象。",webrtc_connection_options:"WebRTC 连接选项",webrtc_info:"本应用的视频聊天使用了 WebRTC。 如果你在一个内部网络中,你可能需要手动指定一个用作转发视频流量的 Turn server。网络带宽是收费的所以我们不提供免费的 Turn server。",restore_defaults:"恢复默认值",about:"关于",application_security_warning:"本应用的实现暂时还未进行代码审计,仍处在概念验证阶段,所以请大家不要在任何安全等级高的场景下使用。",donate:"Donate",donate_info:"捐款可以帮助我们继续更好地开发。 你可以通过 Open Collective比特币(Bitcoin)来完成捐款,非常感谢你的帮助。比特币地址",logout_confirmation_info:"如果你不保存好你的私钥,你将无法再次登录。 ",participants:"参与者",admin:"管理员",add_participant:"添加参与者",new_participants_profile_link:"新加参与者的聊天链接",add_friend:"添加好友",send_message:"发送消息",copy_link:"复制链接",chat_settings:"聊天设置",nicknames:"所有昵称",nickname:"昵称",video_call:"视频通话",online:"在线",last_active:"上次在线",their_nickname_for_you:"其他人给你起的昵称",notifications:"通知",all_messages:"所有消息",mentions_only:"只提到",nothing:"无",delete_chat:"删除聊天",block_user:"屏蔽用户",typing:"正在输入...",attachment:"福建",note_to_self:"个人备忘录",today:"今天",yesterday:"昨天",copied:"已复制",answer:"接通",reject:"拒绝",incoming_call:"来电",call_rejected:"通话被拒绝",close:"关闭",call_ended:"通话结束",calling:"拨号中",on_call_with:"通话对象:"},ko:{language_name:"한글",whats_your_name:"이름?",new_user_go:"진행",already_have_an_account:"기존 계정이 있나요?",back:"뒤로",scan_private_key_qr_code:"프라이빗 키 스캔 QR 코드",paste_private_key:"프라이빗 키 붙여넣기",get_notified_new_messages:"신규 메시지 통보",turn_on_desktop_notifications:"데스크탑 통보 시작",new_chat:"신규 채팅",public_messages:"공개 메시지",follow_someone_info:"제안 그들의 네트워크의 내용을 보기위하여 펄로우 하기:",creator_of_this_distribution:"본Iris 배분을 위한 저작권자",no_followers_yet:"약력 링크를 소개하여 타인들이 펄로우 하게 함:",no_followers_yet_info:"당신의 게시, 응답, 좋아요는 당신의 펄로워 및 네트워크에 보여짐.",alternatively:"대안으로,",alternatively_get_sms_verified:"대안으로, 타인이 당신을 찾을 수 있도록 하기 SMS 확인 .",give_your_profile_link_to_someone:"당신의 약력 링크를 타인에게 전달",if_other_person_doesnt_see_message:"타인이 당신의 메시지를 보지 못하면 다른 채널의 링크로 초대 할 수 있음 당신:",type_a_message:"메시지 입력",beware_of_sharing_invite_link_publicly:"경고 초대링크를 공개적으로 사용하는 것은: 스팸을 받을수 있으니 공개 할 시는 당신의 profile link를 사용하세요.",your_invite_links:"당신의 초대 링크",create_new_invite_link:"새 초대링크 생성",copy_your_invite_link:"초대링크 복사",have_someones_invite_link:"타인의 초대링크 보유?",paste_their_invite_link:"그들의 초대링크 붙이기",give_your_invite_link:"당신의 초대링크 제공:",or_scan_qr_code:"아니면 그들의 QR코드 스캔",or_show_qr_code:"아니면 당신의 QR코드 공개",new_group:"신규 그룹",group_name:"그룹 이름",create:"생성",settings:"환경",profile:"약력",your_name:"성명",profile_photo:"약력 사진",add_profile_photo:"약력 사진 추가",profile_photo_too_big:"약력 사진 크기 초과: 최대 사이즈 200KB",cancel:"취소",use_photo:"사진 사용",remove_photo:"사진 제거",about_text:" 원문",account:"계정",save_backup_of_privkey_first:"먼저 당신의 프라이빗 키 백업 저장!",otherwise_cant_log_in_again:"아니면 이 계정으로 다시 로그인 할 수 없음.",log_out:"로그 아웃",private_key:"프라이빗 키",download_private_key:"프라이빗 키 내려받기",private_key_warning:"위험! 프라이빗키 는 당신 계정을 사용할 수 있음. 타인에게 당신의 프라이빗 키를 보여주거나 공유하지 말것!",copy_private_key:"프라이빗 키 복사",show_privkey_qr:"프라이빗 키 QR 코드 공개",hide_privkey_qr:"프라이빗 코 QR 코드 숭기기",privkey_storage_recommendation:"안전하게 당신의 프라이빗 키를 저장하는 장소는 패스워드 관리자.",language:"언어",peers:"친구",peer_url:"친구 url",public:"공개",remove:"제거",enable:"동작",disable:"비동작",from:"전송자",add:"추가",public_peer_info:"공개 친구는 자동적으로 당신이 채팅하고 있는(타인들도)사람들로부터 보여질 수 있음.",peers_info:"친구는 GunDB 노드이며 쉽게 공유. 향후 계획: 친구들과 직접 접속 WebRTC.",webrtc_connection_options:"WebRTC 접속 옵션",webrtc_info:"WebRTC 는 화상 통신에 사용. 당신이 NAT에 속해 있으면, TURN 서버를 여기에 추가 해야 할 수도 있음, 화상 트래픽 전송. 통신량은 무료가 아니라 무료 TURN 서버를 찾기가 쉽지 않음.",restore_defaults:"조건 원상회복",about:"About",application_security_warning:"본 응용은 검증되지 않은 아이디어 차원의 도구이어서 비밀을 요하는 중요한 목적으로 사용 할 수 없음.",donate:"기부",donate_info:"기부 는 본 프로젝트를 진행 하는데 도움이 되고 감사 드립니다. 기부 하려면 여기서 하면 됩니다 Open Collective or bitcoin",logout_confirmation_info:"당신은 로그인 다시 할 수 없음만약 당신이 프라이빗 키를 저장해 두자 않았으ㅁ.",participants:"참여자",admin:"관리자",add_participant:"참여자 추가",new_participants_profile_link:"신규 참여자 약력 링크",invite_links:"링크 초대",copy:"복사",follows_you:"당신 펄로우",follow:"펄로우",unfollow:"펄로우 취소",following:"펄러우 진행중",followers:"펄로워들",add_friend:"친구 추가",send_message:"메시지 전송",copy_link:"링크 복사",show_qr_code:"QR코드 공유",chat_settings:"채팅 환경",nicknames:"닉네임들",nickname:"닉네임",video_call:"화상채팅",online:"온라인",last_active:"마지막 활동",their_nickname_for_you:"당신을 위한 그들의 닉네임",notifications:"통보",all_messages:"모든 메시지",mentions_only:"단지 멘션",nothing:"존대하지 않음",delete_chat:"책 삭제",block_user:"사용자 거부",typing:"타이핑 중...",attachment:"첨부",note_to_self:"자신에게 메모",today:"오늘",yesterday:"어제",copied:"복사완료",answer:"대답",reject:"거부",incoming_call:"전화 수신",call_rejected:"응답 거부",close:"닫기",call_ended:"통화 종료",calling:"통화",on_call_with:"통화 상대",delete:"삭제",confirm_delete_msg:"메시지 삭제?",search:"검색",feed_up:"신규",feed_top:"최신",feed_down:"과거",feed_bottom:"최대 과거",email_optional:"이메일 (옵션)",delivery:"전달",address:"주소",confirmation:"확인",payment_method:"지불 방법",summary:"요약",download_webtorrent:"다운로드 Webtorrent Desktop 미디어 파일을호스트 하고 붙여 넣기 위하여 마그넷링크 아래 제공.",visibility:"당신의 게시물, 답변과 좋아요는 당신의 펄로워들과 네트워크에만 보여짐.",iris_is_like:"Iris는 소셜네트워킹 앱이지만 더 향상된 기능임.",this_is_a_prototype_store:"ㅇ본 화면은 시범 상점이며 당신의 소셜네트워크의 판매점을 보여 줌. 주문은 Iris 개인 메시지로 함. 당신의 상점은 여기에 볼 수 있음. 여기.",add_to_cart:"카트에 추가",web_push_subscriptions:"웹 푸시 구독",enable_public_peer_discovery:"공개 친구 찾기 동작",there_is_a_bug:"1명 이상의 친구와 접속하면 CPU와 통신량이 급증하는 문제가 있어 수정 하고 있음!",set_up_your_own_peer:"당신의 자체 친구 설정",also:"그리고",or_small:"또는",automatically_load_webtorrent_attachments:"자동적으로 webtorrent 첨부 파일 로드",autoplay_webtorrent_videos:"자동으로 webtorrent 비디오 시작",no_contacts_in_list:"더 이상 친구 리스트가 없음."}}},"5WRv":function(n,e,t){var l=t("iNmH"),r=t("Qatm"),i=t("Zhxd"),o=t("kluZ");n.exports=function(n){return l(n)||r(n)||i(n)||o()},n.exports.default=n.exports,n.exports.__esModule=!0},"5rjA":function(n,e,t){"use strict";function l(n,e){return(l=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function r(n,e){return e||(e=n.slice(0)),n.raw=e,n}var i,o,u,a,s,c,f,h=t("hosL"),p=t("kpue"),d=t("jMw0"),g=t("24Gu"),m=t("CGOa"),v=t("3QNJ"),y=t("qIEf"),b=t.n(y),_=t("lBHI"),w=new m.a({stripPrefix:!1,stripTrailingSlash:!1}),F=200,k=Object(p.b)(i||(i=r([''])));e.a=function(n){function e(){var e;return(e=n.call(this)||this).i=0,e}var t,i;i=n,(t=e).prototype=Object.create(i.prototype),t.prototype.constructor=t,l(t,i);var h=e.prototype;return h.componentDidMount=function(){var n=this;b()(this.base).find("a").click((function(n){var e=b()(n.target).attr("href");e&&0===e.indexOf("https://iris.to/")&&(n.preventDefault(),window.location=e.replace("https://iris.to/",""))}));var e=this.getSeenStatus().seen;e.seen||e.delivered||_.a.local.get("channels").get(this.props.chatId).get("theirLastActiveTime").on((function(e,t,l,r){n.getSeenStatus().delivered&&(n.setState({}),r.off())})),e.seen||_.a.local.get("channels").get(this.props.chatId).get("theirMsgsLastSeenTime").on((function(e,t,l,r){n.getSeenStatus().seen&&(n.setState({}),r.off())}))},h.getSeenStatus=function(){var n=d.a.channels[this.props.chatId],e="object"==typeof this.props.time?this.props.time:new Date(this.props.time);return{seen:n&&n.theirMsgsLastSeenDate>=e,delivered:n&&n.activity&&n.activity.lastActive&&new Date(n.activity.lastActive)>=e}},h.onNameClick=function(n){b()(".new-msg").val(b()(".new-msg").val().trim()+" @"+n+" "),b()(".new-msg").focus()},h.openAttachmentsGallery=function(n){var e=this,t=this.state.msg||this.props;b()("#floating-day-separator").remove();var l,r,i,o,u=b()("
").attr("id","attachment-gallery").addClass("gallery").addClass("attachment-preview");b()("body").append(u),u.fadeIn(F),t.attachments&&t.attachments.forEach((function(e){if(0===e.type.indexOf("image")&&e.data)if(o=p.a.setImgSrc(b()(""),e.data),1===t.attachments.length){u.css({"justify-content":"center"});var a=b()(n.target);l=a.offset().left,r=a.offset().top-b()(window).scrollTop(),i=a.width();var s=o.clone().attr("id","transition-img").data("originalDimensions",{left:l,top:r,width:i});s.css({position:"fixed",left:l,top:r,width:i,"max-width":"none","max-height":"none"}),o.css({visibility:"hidden","align-self":"center"}),u.append(o),b()("body").append(s);var c=o.offset();s.animate({width:o.width(),left:c.left,top:c.top},{duration:F,complete:function(){o.css({visibility:"visible"}),s.hide()}})}else u.css({"justify-content":""}),u.append(o)})),u.one("click",(function(){e.closeAttachmentsGallery()})),b()(document).off("keyup").on("keyup",(function(n){"Escape"===n.key&&(b()(document).off("keyup"),b()("#attachment-gallery:visible").length&&e.closeAttachmentsGallery())}))},h.closeAttachmentsGallery=function(){var n=b()("#transition-img");if(n.length){var e=n.data("originalDimensions");n.show(),b()("#attachment-gallery img").remove(),n.animate(e,{duration:F,complete:function(){n.remove()}})}b()("#attachment-gallery").fadeOut({duration:F,complete:function(){return b()("#attachment-gallery").remove()}});var t=window.location.pathname.replace("/profile/","").replace("/chat/","");t&&d.a.channels[t]&&(d.a.channels[t].attachments=null),"activeElement"in document&&document.activeElement.blur()},h.render=function(){var n,e=this,t=this.props.name||this.state.name,l=d.a.channels[this.props.chatId];if(l&&l.uuid&&!this.props.selfAuthored){var i=l.participantProfiles[this.props.from];t=i&&i.name,n=i&&i.color}var h=this.props.text&&2===this.props.text.length&&p.a.isEmoji(this.props.text),m=document.createElement("p");m.innerText=this.props.text;var y=h?m.innerHTML:p.a.highlightEmoji(m.innerHTML),b=w.link(y),_="object"==typeof this.props.time?this.props.time:new Date(this.props.time),F=this.getSeenStatus(),x=F.seen?"seen":"",C=F.delivered?"delivered":"",S=this.props.selfAuthored?"our":"their";return Object(p.b)(o||(o=r(['\n
\n
\n
\n ',"\n
\n ","\n ",'\n
\n
\n ',"\n ","\n
\n
\n
\n
\n "])),S,x,C,t&&this.props.showName&&Object(p.b)(u||(u=r(["',""])),(function(){return e.onNameClick(t)}),n,t),this.props.torrentId?Object(p.b)(a||(a=r(["\n <"," torrentId=","/>\n "])),g.a,this.props.torrentId):"",this.props.attachments&&this.props.attachments.map((function(n){return Object(p.b)(s||(s=r(['\n '])),encodeURIComponent(this.props.replyingTo)):"",this.props.hash?Object(p.b)(f||(f=r(['',""])),encodeURIComponent(this.props.hash),p.a.getRelativeTimeText(_)):v.a.util.formatTime(_),this.props.selfAuthored&&k)},e}(h.Component)},"8VmE":function(n){function e(){return n.exports=e=Object.assign||function(n){for(var e=1;e-1}function h(n,e,t){for(var l=-1,r=null==n?0:n.length;++l-1;);return t}function I(n,e){for(var t=n.length;t--&&_(e,n[t],0)>-1;);return t}function M(n,e){for(var t=n.length,l=0;t--;)n[t]===e&&++l;return l}function L(n){return"\\"+Qe[n]}function R(n){return qe.test(n)}function B(n){var e=-1,t=Array(n.size);return n.forEach((function(n,l){t[++e]=[l,n]})),t}function z(n,e){return function(t){return n(e(t))}}function N(n,e){for(var t=-1,l=n.length,r=0,i=[];++t"']/g,zn=RegExp(Rn.source),Nn=RegExp(Bn.source),Un=/<%-([\s\S]+?)%>/g,Hn=/<%([\s\S]+?)%>/g,Wn=/<%=([\s\S]+?)%>/g,Gn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qn=/^\w*$/,$n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kn=/[\\^$.*+?()[\]{}|]/g,Vn=RegExp(Kn.source),Jn=/^\s+/,Yn=/\s/,Qn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zn=/\{\n\/\* \[wrapped with (.+)\] \*/,Xn=/,? & /,ne=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ue=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,se=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fe=/($^)/,he=/['\n\r\u2028\u2029\\]/g,pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\u2700-\\u27bf",ge="a-z\\xdf-\\xf6\\xf8-\\xff",me="A-Z\\xc0-\\xd6\\xd8-\\xde",ve="\\ufe0e\\ufe0f",ye="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",be="['’]",_e="[\\ud800-\\udfff]",we="["+ye+"]",Fe="["+pe+"]",ke="\\d+",xe="[\\u2700-\\u27bf]",Ce="["+ge+"]",Se="[^\\ud800-\\udfff"+ye+ke+de+ge+me+"]",Oe="\\ud83c[\\udffb-\\udfff]",Ee="[^\\ud800-\\udfff]",Te="(?:\\ud83c[\\udde6-\\uddff]){2}",Ae="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+me+"]",De="(?:"+Ce+"|"+Se+")",Pe="(?:"+je+"|"+Se+")",Ie="(?:['’](?:d|ll|m|re|s|t|ve))?",Me="(?:['’](?:D|LL|M|RE|S|T|VE))?",Le="(?:"+Fe+"|"+Oe+")"+"?",Re="[\\ufe0e\\ufe0f]?",Be=Re+Le+("(?:\\u200d(?:"+[Ee,Te,Ae].join("|")+")"+Re+Le+")*"),ze="(?:"+[xe,Te,Ae].join("|")+")"+Be,Ne="(?:"+[Ee+Fe+"?",Fe,Te,Ae,_e].join("|")+")",Ue=RegExp(be,"g"),He=RegExp(Fe,"g"),We=RegExp(Oe+"(?="+Oe+")|"+Ne+Be,"g"),Ge=RegExp([je+"?"+Ce+"+"+Ie+"(?="+[we,je,"$"].join("|")+")",Pe+"+"+Me+"(?="+[we,je+De,"$"].join("|")+")",je+"?"+De+"+"+Ie,je+"+"+Me,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,ze].join("|"),"g"),qe=RegExp("[\\u200d\\ud800-\\udfff"+pe+ve+"]"),$e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ke=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ve=-1,Je={};Je[Cn]=Je[Sn]=Je[On]=Je[En]=Je[Tn]=Je[An]=Je[jn]=Je[Dn]=Je[Pn]=!0,Je[un]=Je[an]=Je[kn]=Je[sn]=Je[xn]=Je[cn]=Je[fn]=Je[hn]=Je[dn]=Je[gn]=Je[mn]=Je[yn]=Je[bn]=Je[_n]=Je[Fn]=!1;var Ye={};Ye[un]=Ye[an]=Ye[kn]=Ye[xn]=Ye[sn]=Ye[cn]=Ye[Cn]=Ye[Sn]=Ye[On]=Ye[En]=Ye[Tn]=Ye[dn]=Ye[gn]=Ye[mn]=Ye[yn]=Ye[bn]=Ye[_n]=Ye[wn]=Ye[An]=Ye[jn]=Ye[Dn]=Ye[Pn]=!0,Ye[fn]=Ye[hn]=Ye[Fn]=!1;var Qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ze=parseFloat,Xe=parseInt,nt="object"==typeof n&&n&&n.Object===Object&&n,et="object"==typeof self&&self&&self.Object===Object&&self,tt=nt||et||Function("return this")(),lt=e&&!e.nodeType&&e,rt=lt&&"object"==typeof l&&l&&!l.nodeType&&l,it=rt&&rt.exports===lt,ot=it&&nt.process,ut=function(){try{var n=rt&&rt.require&&rt.require("util").types;return n||ot&&ot.binding&&ot.binding("util")}catch(n){}}(),at=ut&&ut.isArrayBuffer,st=ut&&ut.isDate,ct=ut&&ut.isMap,ft=ut&&ut.isRegExp,ht=ut&&ut.isSet,pt=ut&&ut.isTypedArray,dt=x("length"),gt=C({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),mt=C({"&":"&","<":"<",">":">",'"':""","'":"'"}),vt=C({"&":"&","<":"<",">":">",""":'"',"'":"'"}),yt=function n(e){function t(n){if(Br(n)&&!Tu(n)&&!(n instanceof C)){if(n instanceof r)return n;if(Oi.call(n,"__wrapped__"))return cr(n)}return new r(n)}function l(){}function r(n,e){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=$}function C(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=rn,this.__views__=[]}function Yn(n){var e=-1,t=null==n?0:n.length;for(this.clear();++e=e?n:e)),n}function Te(n,e,t,l,r,i){var o,a=1&e,s=2&e,c=4&e;if(t&&(o=r?t(n,l,r,i):t(n)),o!==$)return o;if(!Rr(n))return n;var f=Tu(n);if(f){if(o=function(n){var e=n.length,t=new n.constructor(e);e&&"string"==typeof n[0]&&Oi.call(n,"index")&&(t.index=n.index,t.input=n.input);return t}(n),!a)return cl(n,o)}else{var h=Bo(n),p=h==hn||h==pn;if(ju(n))return rl(n,a);if(h==mn||h==un||p&&!r){if(o=s||p?{}:$l(n),!a)return s?function(n,e){return fl(n,Ro(n),e)}(n,function(n,e){return n&&fl(e,Xr(e),n)}(o,n)):function(n,e){return fl(n,Lo(n),e)}(n,Ce(o,n))}else{if(!Ye[h])return r?n:{};o=function(n,e,t){var l=n.constructor;switch(e){case kn:return il(n);case sn:case cn:return new l(+n);case xn:return function(n,e){var t=e?il(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}(n,t);case Cn:case Sn:case On:case En:case Tn:case An:case jn:case Dn:case Pn:return ol(n,t);case dn:return new l;case gn:case _n:return new l(n);case yn:return function(n){var e=new n.constructor(n.source,re.exec(n));return e.lastIndex=n.lastIndex,e}(n);case bn:return new l;case wn:return r=n,ko?bi(ko.call(r)):{}}var r}(n,h,a)}}i||(i=new me);var d=i.get(n);if(d)return d;i.set(n,o),Mu(n)?n.forEach((function(l){o.add(Te(l,e,t,l,n,i))})):Pu(n)&&n.forEach((function(l,r){o.set(r,Te(l,e,t,r,n,i))}));var g=f?$:(c?s?Bl:Rl:s?Xr:Zr)(n);return u(g||n,(function(l,r){g&&(l=n[r=l]),Fe(o,r,Te(l,e,t,r,n,i))})),o}function Ae(n,e,t){var l=t.length;if(null==n)return!l;for(n=bi(n);l--;){var r=t[l],i=n[r];if(i===$&&!(r in n)||!(0,e[r])(i))return!1}return!0}function je(n,e,t){if("function"!=typeof n)throw new Fi(K);return Uo((function(){n.apply($,t)}),e)}function De(n,e,t,l){var r=-1,i=f,o=!0,u=n.length,a=[],s=e.length;if(!u)return a;t&&(e=p(e,A(t))),l?(i=h,o=!1):e.length>=200&&(i=D,o=!1,e=new ge(e));n:for(;++r0&&t(u)?e>1?Le(u,e-1,t,l,r):d(r,u):l||(r[r.length]=u)}return r}function Re(n,e){return n&&Eo(n,e,Zr)}function Be(n,e){return n&&To(n,e,Zr)}function ze(n,e){return c(e,(function(e){return Ir(n[e])}))}function Ne(n,e){for(var t=0,l=(e=tl(e,n)).length;null!=n&&te}function nt(n,e){return null!=n&&Oi.call(n,e)}function et(n,e){return null!=n&&e in bi(n)}function lt(n,e,t){for(var l=t?h:f,r=n[0].length,i=n.length,o=i,u=di(i),a=1/0,s=[];o--;){var c=n[o];o&&e&&(c=p(c,A(e))),a=lo(c.length,a),u[o]=!t&&(e||r>=120&&c.length>=120)?new ge(o&&c):$}c=n[0];var d=-1,g=u[0];n:for(;++d=u?a:a*("desc"==t[l]?-1:1)}return n.index-e.index}(n,e,t)}))}function At(n,e,t){for(var l=-1,r=e.length,i={};++l-1;)u!==n&&Ui.call(u,a,1),Ui.call(n,a,1);return n}function Dt(n,e){for(var t=n?e.length:0,l=t-1;t--;){var r=e[t];if(t==l||r!==i){var i=r;Vl(r)?Ui.call(n,r,1):Vt(n,r)}}return n}function Pt(n,e){return n+Yi(oo()*(e-n+1))}function It(n,e){var t="";if(!n||e<1||e>tn)return t;do{e%2&&(t+=n),(e=Yi(e/2))&&(n+=n)}while(e);return t}function Mt(n,e){return Ho(er(n,e,oi),n+"")}function Lt(n){return ye(ei(n))}function Rt(n,e){var t=ei(n);return ur(t,Ee(e,0,t.length))}function Bt(n,e,t,l){if(!Rr(n))return n;for(var r=-1,i=(e=tl(e,n)).length,o=i-1,u=n;null!=u&&++rr?0:r+e),(t=t>r?r:t)<0&&(t+=r),r=e>t?0:t-e>>>0,e>>>=0;for(var i=di(r);++l>>1,o=n[i];null!==o&&!Hr(o)&&(t?o<=e:o=200){var s=e?null:Io(n);if(s)return U(s);o=!1,r=D,a=new ge}else a=e?[]:u;n:for(;++l=l?n:Nt(n,e,t)}function rl(n,e){if(e)return n.slice();var t=n.length,l=Ri?Ri(t):new n.constructor(t);return n.copy(l),l}function il(n){var e=new n.constructor(n.byteLength);return new Li(e).set(new Li(n)),e}function ol(n,e){var t=e?il(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function ul(n,e){if(n!==e){var t=n!==$,l=null===n,r=n==n,i=Hr(n),o=e!==$,u=null===e,a=e==e,s=Hr(e);if(!u&&!s&&!i&&n>e||i&&o&&a&&!u&&!s||l&&o&&a||!t&&a||!r)return 1;if(!l&&!i&&!s&&n1?t[r-1]:$,o=r>2?t[2]:$;for(i=n.length>3&&"function"==typeof i?(r--,i):$,o&&Jl(t[0],t[1],o)&&(i=r<3?$:i,r=1),e=bi(e);++l-1?r[i?e[o]:o]:$}}function _l(n){return Ll((function(e){var t=e.length,l=t,i=r.prototype.thru;for(n&&e.reverse();l--;){var o=e[l];if("function"!=typeof o)throw new Fi(K);if(i&&!u&&"wrapper"==zl(o))var u=new r([],!0)}for(l=u?l:t;++l1&&y.reverse(),c&&au))return!1;var s=i.get(n),c=i.get(e);if(s&&c)return s==e&&c==n;var f=-1,h=!0,p=2&t?new ge:$;for(i.set(n,e),i.set(e,n);++f-1&&n%1==0&&n1?"& ":"")+e[l],e=e.join(t>2?", ":" "),n.replace(Qn,"{\n/* [wrapped with "+e+"] */\n")}(l,function(n,e){return u(on,(function(t){var l="_."+t[0];e&t[1]&&!f(n,l)&&n.push(l)})),n.sort()}(function(n){var e=n.match(Zn);return e?e[1].split(Xn):[]}(l),t)))}function or(n){var e=0,t=0;return function(){var l=ro(),r=16-(l-t);if(t=l,r>0){if(++e>=800)return arguments[0]}else e=0;return n.apply($,arguments)}}function ur(n,e){var t=-1,l=n.length,r=l-1;for(e=e===$?l:e;++t0&&(t=e.apply(this,arguments)),n<=1&&(e=$),t}}function Or(n,e,t){function l(e){var t=s,l=c;return s=c=$,g=e,h=n.apply(l,t)}function r(n){return g=n,p=Uo(o,e),m?l(n):h}function i(n){var t=n-d;return d===$||t>=e||t<0||v&&n-g>=f}function o(){var n=mu();if(i(n))return u(n);p=Uo(o,function(n){var t=e-(n-d);return v?lo(t,f-(n-g)):t}(n))}function u(n){return p=$,y&&s?l(n):(s=c=$,h)}function a(){var n=mu(),t=i(n);if(s=arguments,c=this,d=n,t){if(p===$)return r(d);if(v)return Po(p),p=Uo(o,e),l(d)}return p===$&&(p=Uo(o,e)),h}var s,c,f,h,p,d,g=0,m=!1,v=!1,y=!0;if("function"!=typeof n)throw new Fi(K);return e=Kr(e)||0,Rr(t)&&(m=!!t.leading,f=(v="maxWait"in t)?to(Kr(t.maxWait)||0,e):f,y="trailing"in t?!!t.trailing:y),a.cancel=function(){p!==$&&Po(p),g=0,s=d=c=p=$},a.flush=function(){return p===$?h:u(mu())},a}function Er(n,e){if("function"!=typeof n||null!=e&&"function"!=typeof e)throw new Fi(K);var t=function t(){var l=arguments,r=e?e.apply(this,l):l[0],i=t.cache;if(i.has(r))return i.get(r);var o=n.apply(this,l);return t.cache=i.set(r,o)||i,o};return t.cache=new(Er.Cache||de),t}function Tr(n){if("function"!=typeof n)throw new Fi(K);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function Ar(n,e){return n===e||n!=n&&e!=e}function jr(n){return null!=n&&Lr(n.length)&&!Ir(n)}function Dr(n){return Br(n)&&jr(n)}function Pr(n){if(!Br(n))return!1;var e=qe(n);return e==fn||"[object DOMException]"==e||"string"==typeof n.message&&"string"==typeof n.name&&!Nr(n)}function Ir(n){if(!Rr(n))return!1;var e=qe(n);return e==hn||e==pn||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Mr(n){return"number"==typeof n&&n==qr(n)}function Lr(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=tn}function Rr(n){var e=typeof n;return null!=n&&("object"==e||"function"==e)}function Br(n){return null!=n&&"object"==typeof n}function zr(n){return"number"==typeof n||Br(n)&&qe(n)==gn}function Nr(n){if(!Br(n)||qe(n)!=mn)return!1;var e=Bi(n);if(null===e)return!0;var t=Oi.call(e,"constructor")&&e.constructor;return"function"==typeof t&&t instanceof t&&Si.call(t)==ji}function Ur(n){return"string"==typeof n||!Tu(n)&&Br(n)&&qe(n)==_n}function Hr(n){return"symbol"==typeof n||Br(n)&&qe(n)==wn}function Wr(n){if(!n)return[];if(jr(n))return Ur(n)?G(n):cl(n);if(Wi&&n[Wi])return function(n){for(var e,t=[];!(e=n.next()).done;)t.push(e.value);return t}(n[Wi]());var e=Bo(n);return(e==dn?B:e==bn?U:ei)(n)}function Gr(n){return n?(n=Kr(n))===en||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function qr(n){var e=Gr(n),t=e%1;return e==e?t?e-t:e:0}function $r(n){return n?Ee(qr(n),0,rn):0}function Kr(n){if("number"==typeof n)return n;if(Hr(n))return ln;if(Rr(n)){var e="function"==typeof n.valueOf?n.valueOf():n;n=Rr(e)?e+"":e}if("string"!=typeof n)return 0===n?n:+n;n=T(n);var t=oe.test(n);return t||ae.test(n)?Xe(n.slice(2),t?2:8):ie.test(n)?ln:+n}function Vr(n){return fl(n,Xr(n))}function Jr(n){return null==n?"":$t(n)}function Yr(n,e,t){var l=null==n?$:Ne(n,e);return l===$?t:l}function Qr(n,e){return null!=n&&ql(n,e,et)}function Zr(n){return jr(n)?ve(n):wt(n)}function Xr(n){return jr(n)?ve(n,!0):Ft(n)}function ni(n,e){if(null==n)return{};var t=p(Bl(n),(function(n){return[n]}));return e=Ul(e),At(n,t,(function(n,t){return e(n,t[0])}))}function ei(n){return null==n?[]:j(n,Zr(n))}function ti(n){return aa(Jr(n).toLowerCase())}function li(n){return(n=Jr(n))&&n.replace(ce,gt).replace(He,"")}function ri(n,e,t){return n=Jr(n),(e=t?$:e)===$?function(n){return $e.test(n)}(n)?function(n){return n.match(Ge)||[]}(n):function(n){return n.match(ne)||[]}(n):n.match(e)||[]}function ii(n){return function(){return n}}function oi(n){return n}function ui(n){return _t("function"==typeof n?n:Te(n,1))}function ai(n,e,t){var l=Zr(e),r=ze(e,l);null!=t||Rr(e)&&(r.length||!l.length)||(t=e,e=n,n=this,r=ze(e,Zr(e)));var i=!(Rr(t)&&"chain"in t&&!t.chain),o=Ir(n);return u(r,(function(t){var l=e[t];n[t]=l,o&&(n.prototype[t]=function(){var e=this.__chain__;if(i||e){var t=n(this.__wrapped__),r=t.__actions__=cl(this.__actions__);return r.push({func:l,args:arguments,thisArg:n}),t.__chain__=e,t}return l.apply(n,d([this.value()],arguments))})})),n}function si(){}function ci(n){return Yl(n)?x(ar(n)):function(n){return function(e){return Ne(e,n)}}(n)}function fi(){return[]}function hi(){return!1}var pi,di=(e=null==e?tt:yt.defaults(tt.Object(),e,yt.pick(tt,Ke))).Array,gi=e.Date,mi=e.Error,vi=e.Function,yi=e.Math,bi=e.Object,_i=e.RegExp,wi=e.String,Fi=e.TypeError,ki=di.prototype,xi=bi.prototype,Ci=e["__core-js_shared__"],Si=vi.prototype.toString,Oi=xi.hasOwnProperty,Ei=0,Ti=(pi=/[^.]+$/.exec(Ci&&Ci.keys&&Ci.keys.IE_PROTO||""))?"Symbol(src)_1."+pi:"",Ai=xi.toString,ji=Si.call(bi),Di=tt._,Pi=_i("^"+Si.call(Oi).replace(Kn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ii=it?e.Buffer:$,Mi=e.Symbol,Li=e.Uint8Array,Ri=Ii?Ii.allocUnsafe:$,Bi=z(bi.getPrototypeOf,bi),zi=bi.create,Ni=xi.propertyIsEnumerable,Ui=ki.splice,Hi=Mi?Mi.isConcatSpreadable:$,Wi=Mi?Mi.iterator:$,Gi=Mi?Mi.toStringTag:$,qi=function(){try{var n=Gl(bi,"defineProperty");return n({},"",{}),n}catch(n){}}(),$i=e.clearTimeout!==tt.clearTimeout&&e.clearTimeout,Ki=gi&&gi.now!==tt.Date.now&&gi.now,Vi=e.setTimeout!==tt.setTimeout&&e.setTimeout,Ji=yi.ceil,Yi=yi.floor,Qi=bi.getOwnPropertySymbols,Zi=Ii?Ii.isBuffer:$,Xi=e.isFinite,no=ki.join,eo=z(bi.keys,bi),to=yi.max,lo=yi.min,ro=gi.now,io=e.parseInt,oo=yi.random,uo=ki.reverse,ao=Gl(e,"DataView"),so=Gl(e,"Map"),co=Gl(e,"Promise"),fo=Gl(e,"Set"),ho=Gl(e,"WeakMap"),po=Gl(bi,"create"),go=ho&&new ho,mo={},vo=sr(ao),yo=sr(so),bo=sr(co),_o=sr(fo),wo=sr(ho),Fo=Mi?Mi.prototype:$,ko=Fo?Fo.valueOf:$,xo=Fo?Fo.toString:$,Co=function(){function n(){}return function(e){if(!Rr(e))return{};if(zi)return zi(e);n.prototype=e;var t=new n;return n.prototype=$,t}}();t.templateSettings={escape:Un,evaluate:Hn,interpolate:Wn,variable:"",imports:{_:t}},(t.prototype=l.prototype).constructor=t,(r.prototype=Co(l.prototype)).constructor=r,(C.prototype=Co(l.prototype)).constructor=C,Yn.prototype.clear=function(){this.__data__=po?po(null):{},this.size=0},Yn.prototype.delete=function(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e},Yn.prototype.get=function(n){var e=this.__data__;if(po){var t=e[n];return t===V?$:t}return Oi.call(e,n)?e[n]:$},Yn.prototype.has=function(n){var e=this.__data__;return po?e[n]!==$:Oi.call(e,n)},Yn.prototype.set=function(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=po&&e===$?V:e,this},pe.prototype.clear=function(){this.__data__=[],this.size=0},pe.prototype.delete=function(n){var e=this.__data__,t=ke(e,n);return!(t<0)&&(t==e.length-1?e.pop():Ui.call(e,t,1),--this.size,!0)},pe.prototype.get=function(n){var e=this.__data__,t=ke(e,n);return t<0?$:e[t][1]},pe.prototype.has=function(n){return ke(this.__data__,n)>-1},pe.prototype.set=function(n,e){var t=this.__data__,l=ke(t,n);return l<0?(++this.size,t.push([n,e])):t[l][1]=e,this},de.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(so||pe),string:new Yn}},de.prototype.delete=function(n){var e=Hl(this,n).delete(n);return this.size-=e?1:0,e},de.prototype.get=function(n){return Hl(this,n).get(n)},de.prototype.has=function(n){return Hl(this,n).has(n)},de.prototype.set=function(n,e){var t=Hl(this,n),l=t.size;return t.set(n,e),this.size+=t.size==l?0:1,this},ge.prototype.add=ge.prototype.push=function(n){return this.__data__.set(n,V),this},ge.prototype.has=function(n){return this.__data__.has(n)},me.prototype.clear=function(){this.__data__=new pe,this.size=0},me.prototype.delete=function(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t},me.prototype.get=function(n){return this.__data__.get(n)},me.prototype.has=function(n){return this.__data__.has(n)},me.prototype.set=function(n,e){var t=this.__data__;if(t instanceof pe){var l=t.__data__;if(!so||l.length<199)return l.push([n,e]),this.size=++t.size,this;t=this.__data__=new de(l)}return t.set(n,e),this.size=t.size,this};var So=dl(Re),Oo=dl(Be,!0),Eo=gl(),To=gl(!0),Ao=go?function(n,e){return go.set(n,e),n}:oi,jo=qi?function(n,e){return qi(n,"toString",{configurable:!0,enumerable:!1,value:ii(e),writable:!0})}:oi,Do=Mt,Po=$i||function(n){return tt.clearTimeout(n)},Io=fo&&1/U(new fo([,-0]))[1]==en?function(n){return new fo(n)}:si,Mo=go?function(n){return go.get(n)}:si,Lo=Qi?function(n){return null==n?[]:(n=bi(n),c(Qi(n),(function(e){return Ni.call(n,e)})))}:fi,Ro=Qi?function(n){for(var e=[];n;)d(e,Lo(n)),n=Bi(n);return e}:fi,Bo=qe;(ao&&Bo(new ao(new ArrayBuffer(1)))!=xn||so&&Bo(new so)!=dn||co&&Bo(co.resolve())!=vn||fo&&Bo(new fo)!=bn||ho&&Bo(new ho)!=Fn)&&(Bo=function(n){var e=qe(n),t=e==mn?n.constructor:$,l=t?sr(t):"";if(l)switch(l){case vo:return xn;case yo:return dn;case bo:return vn;case _o:return bn;case wo:return Fn}return e});var zo=Ci?Ir:hi,No=or(Ao),Uo=Vi||function(n,e){return tt.setTimeout(n,e)},Ho=or(jo),Wo=function(n){var e=Er(n,(function(n){return 500===t.size&&t.clear(),n})),t=e.cache;return e}((function(n){var e=[];return 46===n.charCodeAt(0)&&e.push(""),n.replace($n,(function(n,t,l,r){e.push(l?r.replace(te,"$1"):t||n)})),e})),Go=Mt((function(n,e){return Dr(n)?De(n,Le(e,1,Dr,!0)):[]})),qo=Mt((function(n,e){var t=gr(e);return Dr(t)&&(t=$),Dr(n)?De(n,Le(e,1,Dr,!0),Ul(t,2)):[]})),$o=Mt((function(n,e){var t=gr(e);return Dr(t)&&(t=$),Dr(n)?De(n,Le(e,1,Dr,!0),$,t):[]})),Ko=Mt((function(n){var e=p(n,nl);return e.length&&e[0]===n[0]?lt(e):[]})),Vo=Mt((function(n){var e=gr(n),t=p(n,nl);return e===gr(t)?e=$:t.pop(),t.length&&t[0]===n[0]?lt(t,Ul(e,2)):[]})),Jo=Mt((function(n){var e=gr(n),t=p(n,nl);return(e="function"==typeof e?e:$)&&t.pop(),t.length&&t[0]===n[0]?lt(t,$,e):[]})),Yo=Mt(mr),Qo=Ll((function(n,e){var t=null==n?0:n.length,l=Oe(n,e);return Dt(n,p(e,(function(n){return Vl(n,t)?+n:n})).sort(ul)),l})),Zo=Mt((function(n){return Kt(Le(n,1,Dr,!0))})),Xo=Mt((function(n){var e=gr(n);return Dr(e)&&(e=$),Kt(Le(n,1,Dr,!0),Ul(e,2))})),nu=Mt((function(n){var e=gr(n);return e="function"==typeof e?e:$,Kt(Le(n,1,Dr,!0),$,e)})),eu=Mt((function(n,e){return Dr(n)?De(n,e):[]})),tu=Mt((function(n){return Zt(c(n,Dr))})),lu=Mt((function(n){var e=gr(n);return Dr(e)&&(e=$),Zt(c(n,Dr),Ul(e,2))})),ru=Mt((function(n){var e=gr(n);return e="function"==typeof e?e:$,Zt(c(n,Dr),$,e)})),iu=Mt(yr),ou=Mt((function(n){var e=n.length,t=e>1?n[e-1]:$;return t="function"==typeof t?(n.pop(),t):$,br(n,t)})),uu=Ll((function(n){var e=n.length,t=e?n[0]:0,l=this.__wrapped__,i=function(e){return Oe(e,n)};return!(e>1||this.__actions__.length)&&l instanceof C&&Vl(t)?((l=l.slice(t,+t+(e?1:0))).__actions__.push({func:wr,args:[i],thisArg:$}),new r(l,this.__chain__).thru((function(n){return e&&!n.length&&n.push($),n}))):this.thru(i)})),au=hl((function(n,e,t){Oi.call(n,t)?++n[t]:Se(n,t,1)})),su=bl(fr),cu=bl(hr),fu=hl((function(n,e,t){Oi.call(n,t)?n[t].push(e):Se(n,t,[e])})),hu=Mt((function(n,e,t){var l=-1,r="function"==typeof e,o=jr(n)?di(n.length):[];return So(n,(function(n){o[++l]=r?i(e,n,t):rt(n,e,t)})),o})),pu=hl((function(n,e,t){Se(n,t,e)})),du=hl((function(n,e,t){n[t?0:1].push(e)}),(function(){return[[],[]]})),gu=Mt((function(n,e){if(null==n)return[];var t=e.length;return t>1&&Jl(n,e[0],e[1])?e=[]:t>2&&Jl(e[0],e[1],e[2])&&(e=[e[0]]),Tt(n,Le(e,1),[])})),mu=Ki||function(){return tt.Date.now()},vu=Mt((function(n,e,t){var l=1;if(t.length){var r=N(t,Nl(vu));l|=Q}return jl(n,l,e,t,r)})),yu=Mt((function(n,e,t){var l=3;if(t.length){var r=N(t,Nl(yu));l|=Q}return jl(e,l,n,t,r)})),bu=Mt((function(n,e){return je(n,1,e)})),_u=Mt((function(n,e,t){return je(n,Kr(e)||0,t)}));Er.Cache=de;var wu,Fu=Do((function(n,e){var t=(e=1==e.length&&Tu(e[0])?p(e[0],A(Ul())):p(Le(e,1),A(Ul()))).length;return Mt((function(l){for(var r=-1,o=lo(l.length,t);++r=e})),Eu=ot(function(){return arguments}())?ot:function(n){return Br(n)&&Oi.call(n,"callee")&&!Ni.call(n,"callee")},Tu=di.isArray,Au=at?A(at):function(n){return Br(n)&&qe(n)==kn},ju=Zi||hi,Du=st?A(st):function(n){return Br(n)&&qe(n)==cn},Pu=ct?A(ct):function(n){return Br(n)&&Bo(n)==dn},Iu=ft?A(ft):function(n){return Br(n)&&qe(n)==yn},Mu=ht?A(ht):function(n){return Br(n)&&Bo(n)==bn},Lu=pt?A(pt):function(n){return Br(n)&&Lr(n.length)&&!!Je[qe(n)]},Ru=Ol(kt),Bu=Ol((function(n,e){return n<=e})),zu=pl((function(n,e){if(Zl(e)||jr(e))fl(e,Zr(e),n);else for(var t in e)Oi.call(e,t)&&Fe(n,t,e[t])})),Nu=pl((function(n,e){fl(e,Xr(e),n)})),Uu=pl((function(n,e,t,l){fl(e,Xr(e),n,l)})),Hu=pl((function(n,e,t,l){fl(e,Zr(e),n,l)})),Wu=Ll(Oe),Gu=Mt((function(n,e){n=bi(n);var t=-1,l=e.length,r=l>2?e[2]:$;for(r&&Jl(e[0],e[1],r)&&(l=1);++t1),e})),fl(n,Bl(n),t),l&&(t=Te(t,7,Il));for(var r=e.length;r--;)Vt(t,e[r]);return t})),Zu=Ll((function(n,e){return null==n?{}:function(n,e){return At(n,e,(function(e,t){return Qr(n,t)}))}(n,e)})),Xu=Al(Zr),na=Al(Xr),ea=vl((function(n,e,t){return e=e.toLowerCase(),n+(t?ti(e):e)})),ta=vl((function(n,e,t){return n+(t?"-":"")+e.toLowerCase()})),la=vl((function(n,e,t){return n+(t?" ":"")+e.toLowerCase()})),ra=ml("toLowerCase"),ia=vl((function(n,e,t){return n+(t?"_":"")+e.toLowerCase()})),oa=vl((function(n,e,t){return n+(t?" ":"")+aa(e)})),ua=vl((function(n,e,t){return n+(t?" ":"")+e.toUpperCase()})),aa=ml("toUpperCase"),sa=Mt((function(n,e){try{return i(n,$,e)}catch(n){return Pr(n)?n:new mi(n)}})),ca=Ll((function(n,e){return u(e,(function(e){e=ar(e),Se(n,e,vu(n[e],n))})),n})),fa=_l(),ha=_l(!0),pa=Mt((function(n,e){return function(t){return rt(t,n,e)}})),da=Mt((function(n,e){return function(t){return rt(n,t,e)}})),ga=xl(p),ma=xl(s),va=xl(v),ya=Sl(),ba=Sl(!0),_a=kl((function(n,e){return n+e}),0),wa=Tl("ceil"),Fa=kl((function(n,e){return n/e}),1),ka=Tl("floor"),xa=kl((function(n,e){return n*e}),1),Ca=Tl("round"),Sa=kl((function(n,e){return n-e}),0);return t.after=function(n,e){if("function"!=typeof e)throw new Fi(K);return n=qr(n),function(){if(--n<1)return e.apply(this,arguments)}},t.ary=Cr,t.assign=zu,t.assignIn=Nu,t.assignInWith=Uu,t.assignWith=Hu,t.at=Wu,t.before=Sr,t.bind=vu,t.bindAll=ca,t.bindKey=yu,t.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Tu(n)?n:[n]},t.chain=_r,t.chunk=function(n,e,t){e=(t?Jl(n,e,t):e===$)?1:to(qr(e),0);var l=null==n?0:n.length;if(!l||e<1)return[];for(var r=0,i=0,o=di(Ji(l/e));rr?0:r+t),(l=l===$||l>r?r:qr(l))<0&&(l+=r),l=t>l?0:$r(l);t>>0)?(n=Jr(n))&&("string"==typeof e||null!=e&&!Iu(e))&&!(e=$t(e))&&R(n)?ll(G(n),0,t):n.split(e,t):[]},t.spread=function(n,e){if("function"!=typeof n)throw new Fi(K);return e=null==e?0:to(qr(e),0),Mt((function(t){var l=t[e],r=ll(t,0,e);return l&&d(r,l),i(n,this,r)}))},t.tail=function(n){var e=null==n?0:n.length;return e?Nt(n,1,e):[]},t.take=function(n,e,t){return n&&n.length?Nt(n,0,(e=t||e===$?1:qr(e))<0?0:e):[]},t.takeRight=function(n,e,t){var l=null==n?0:n.length;return l?Nt(n,(e=l-(e=t||e===$?1:qr(e)))<0?0:e,l):[]},t.takeRightWhile=function(n,e){return n&&n.length?Yt(n,Ul(e,3),!1,!0):[]},t.takeWhile=function(n,e){return n&&n.length?Yt(n,Ul(e,3)):[]},t.tap=function(n,e){return e(n),n},t.throttle=function(n,e,t){var l=!0,r=!0;if("function"!=typeof n)throw new Fi(K);return Rr(t)&&(l="leading"in t?!!t.leading:l,r="trailing"in t?!!t.trailing:r),Or(n,e,{leading:l,maxWait:e,trailing:r})},t.thru=wr,t.toArray=Wr,t.toPairs=Xu,t.toPairsIn=na,t.toPath=function(n){return Tu(n)?p(n,ar):Hr(n)?[n]:cl(Wo(Jr(n)))},t.toPlainObject=Vr,t.transform=function(n,e,t){var l=Tu(n),r=l||ju(n)||Lu(n);if(e=Ul(e,4),null==t){var i=n&&n.constructor;t=r?l?new i:[]:Rr(n)&&Ir(i)?Co(Bi(n)):{}}return(r?u:Re)(n,(function(n,l,r){return e(t,n,l,r)})),t},t.unary=function(n){return Cr(n,1)},t.union=Zo,t.unionBy=Xo,t.unionWith=nu,t.uniq=function(n){return n&&n.length?Kt(n):[]},t.uniqBy=function(n,e){return n&&n.length?Kt(n,Ul(e,2)):[]},t.uniqWith=function(n,e){return e="function"==typeof e?e:$,n&&n.length?Kt(n,$,e):[]},t.unset=function(n,e){return null==n||Vt(n,e)},t.unzip=yr,t.unzipWith=br,t.update=function(n,e,t){return null==n?n:Jt(n,e,el(t))},t.updateWith=function(n,e,t,l){return l="function"==typeof l?l:$,null==n?n:Jt(n,e,el(t),l)},t.values=ei,t.valuesIn=function(n){return null==n?[]:j(n,Xr(n))},t.without=eu,t.words=ri,t.wrap=function(n,e){return ku(el(e),n)},t.xor=tu,t.xorBy=lu,t.xorWith=ru,t.zip=iu,t.zipObject=function(n,e){return Xt(n||[],e||[],Fe)},t.zipObjectDeep=function(n,e){return Xt(n||[],e||[],Bt)},t.zipWith=ou,t.entries=Xu,t.entriesIn=na,t.extend=Nu,t.extendWith=Uu,ai(t,t),t.add=_a,t.attempt=sa,t.camelCase=ea,t.capitalize=ti,t.ceil=wa,t.clamp=function(n,e,t){return t===$&&(t=e,e=$),t!==$&&(t=(t=Kr(t))==t?t:0),e!==$&&(e=(e=Kr(e))==e?e:0),Ee(Kr(n),e,t)},t.clone=function(n){return Te(n,4)},t.cloneDeep=function(n){return Te(n,5)},t.cloneDeepWith=function(n,e){return Te(n,5,e="function"==typeof e?e:$)},t.cloneWith=function(n,e){return Te(n,4,e="function"==typeof e?e:$)},t.conformsTo=function(n,e){return null==e||Ae(n,e,Zr(e))},t.deburr=li,t.defaultTo=function(n,e){return null==n||n!=n?e:n},t.divide=Fa,t.endsWith=function(n,e,t){n=Jr(n),e=$t(e);var l=n.length,r=t=t===$?l:Ee(qr(t),0,l);return(t-=e.length)>=0&&n.slice(t,r)==e},t.eq=Ar,t.escape=function(n){return(n=Jr(n))&&Nn.test(n)?n.replace(Bn,mt):n},t.escapeRegExp=function(n){return(n=Jr(n))&&Vn.test(n)?n.replace(Kn,"\\$&"):n},t.every=function(n,e,t){var l=Tu(n)?s:Pe;return t&&Jl(n,e,t)&&(e=$),l(n,Ul(e,3))},t.find=su,t.findIndex=fr,t.findKey=function(n,e){return y(n,Ul(e,3),Re)},t.findLast=cu,t.findLastIndex=hr,t.findLastKey=function(n,e){return y(n,Ul(e,3),Be)},t.floor=ka,t.forEach=Fr,t.forEachRight=kr,t.forIn=function(n,e){return null==n?n:Eo(n,Ul(e,3),Xr)},t.forInRight=function(n,e){return null==n?n:To(n,Ul(e,3),Xr)},t.forOwn=function(n,e){return n&&Re(n,Ul(e,3))},t.forOwnRight=function(n,e){return n&&Be(n,Ul(e,3))},t.get=Yr,t.gt=Su,t.gte=Ou,t.has=function(n,e){return null!=n&&ql(n,e,nt)},t.hasIn=Qr,t.head=dr,t.identity=oi,t.includes=function(n,e,t,l){n=jr(n)?n:ei(n),t=t&&!l?qr(t):0;var r=n.length;return t<0&&(t=to(r+t,0)),Ur(n)?t<=r&&n.indexOf(e,t)>-1:!!r&&_(n,e,t)>-1},t.indexOf=function(n,e,t){var l=null==n?0:n.length;if(!l)return-1;var r=null==t?0:qr(t);return r<0&&(r=to(l+r,0)),_(n,e,r)},t.inRange=function(n,e,t){return e=Gr(e),t===$?(t=e,e=0):t=Gr(t),function(n,e,t){return n>=lo(e,t)&&n=-9007199254740991&&n<=tn},t.isSet=Mu,t.isString=Ur,t.isSymbol=Hr,t.isTypedArray=Lu,t.isUndefined=function(n){return n===$},t.isWeakMap=function(n){return Br(n)&&Bo(n)==Fn},t.isWeakSet=function(n){return Br(n)&&"[object WeakSet]"==qe(n)},t.join=function(n,e){return null==n?"":no.call(n,e)},t.kebabCase=ta,t.last=gr,t.lastIndexOf=function(n,e,t){var l=null==n?0:n.length;if(!l)return-1;var r=l;return t!==$&&(r=(r=qr(t))<0?to(l+r,0):lo(r,l-1)),e==e?function(n,e,t){for(var l=t+1;l--;)if(n[l]===e)return l;return l}(n,e,r):b(n,F,r,!0)},t.lowerCase=la,t.lowerFirst=ra,t.lt=Ru,t.lte=Bu,t.max=function(n){return n&&n.length?Ie(n,oi,Qe):$},t.maxBy=function(n,e){return n&&n.length?Ie(n,Ul(e,2),Qe):$},t.mean=function(n){return k(n,oi)},t.meanBy=function(n,e){return k(n,Ul(e,2))},t.min=function(n){return n&&n.length?Ie(n,oi,kt):$},t.minBy=function(n,e){return n&&n.length?Ie(n,Ul(e,2),kt):$},t.stubArray=fi,t.stubFalse=hi,t.stubObject=function(){return{}},t.stubString=function(){return""},t.stubTrue=function(){return!0},t.multiply=xa,t.nth=function(n,e){return n&&n.length?Et(n,qr(e)):$},t.noConflict=function(){return tt._===this&&(tt._=Di),this},t.noop=si,t.now=mu,t.pad=function(n,e,t){n=Jr(n);var l=(e=qr(e))?W(n):0;if(!e||l>=e)return n;var r=(e-l)/2;return Cl(Yi(r),t)+n+Cl(Ji(r),t)},t.padEnd=function(n,e,t){n=Jr(n);var l=(e=qr(e))?W(n):0;return e&&le){var l=n;n=e,e=l}if(t||n%1||e%1){var r=oo();return lo(n+r*(e-n+Ze("1e-"+((r+"").length-1))),e)}return Pt(n,e)},t.reduce=function(n,e,t){var l=Tu(n)?g:S,r=arguments.length<3;return l(n,Ul(e,4),t,r,So)},t.reduceRight=function(n,e,t){var l=Tu(n)?m:S,r=arguments.length<3;return l(n,Ul(e,4),t,r,Oo)},t.repeat=function(n,e,t){return e=(t?Jl(n,e,t):e===$)?1:qr(e),It(Jr(n),e)},t.replace=function(){var n=arguments,e=Jr(n[0]);return n.length<3?e:e.replace(n[1],n[2])},t.result=function(n,e,t){var l=-1,r=(e=tl(e,n)).length;for(r||(r=1,n=$);++ltn)return[];var t=rn,l=lo(n,rn);e=Ul(e),n-=rn;for(var r=E(l,e);++t=i)return n;var u=t-W(l);if(u<1)return l;var a=o?ll(o,0,u).join(""):n.slice(0,u);if(r===$)return a+l;if(o&&(u+=a.length-u),Iu(r)){if(n.slice(u).search(r)){var s,c=a;for(r.global||(r=_i(r.source,Jr(re.exec(r))+"g")),r.lastIndex=0;s=r.exec(c);)var f=s.index;a=a.slice(0,f===$?u:f)}}else if(n.indexOf($t(r),u)!=u){var h=a.lastIndexOf(r);h>-1&&(a=a.slice(0,h))}return a+l},t.unescape=function(n){return(n=Jr(n))&&zn.test(n)?n.replace(Rn,vt):n},t.uniqueId=function(n){var e=++Ei;return Jr(n)+e},t.upperCase=ua,t.upperFirst=aa,t.each=Fr,t.eachRight=kr,t.first=dr,ai(t,(wu={},Re(t,(function(n,e){Oi.call(t.prototype,e)||(wu[e]=n)})),wu),{chain:!1}),t.VERSION="4.17.21",u(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){t[n].placeholder=t})),u(["drop","take"],(function(n,e){C.prototype[n]=function(t){t=t===$?1:to(qr(t),0);var l=this.__filtered__&&!e?new C(this):this.clone();return l.__filtered__?l.__takeCount__=lo(t,l.__takeCount__):l.__views__.push({size:lo(t,rn),type:n+(l.__dir__<0?"Right":"")}),l},C.prototype[n+"Right"]=function(e){return this.reverse()[n](e).reverse()}})),u(["filter","map","takeWhile"],(function(n,e){var t=e+1,l=1==t||3==t;C.prototype[n]=function(n){var e=this.clone();return e.__iteratees__.push({iteratee:Ul(n,3),type:t}),e.__filtered__=e.__filtered__||l,e}})),u(["head","last"],(function(n,e){var t="take"+(e?"Right":"");C.prototype[n]=function(){return this[t](1).value()[0]}})),u(["initial","tail"],(function(n,e){var t="drop"+(e?"":"Right");C.prototype[n]=function(){return this.__filtered__?new C(this):this[t](1)}})),C.prototype.compact=function(){return this.filter(oi)},C.prototype.find=function(n){return this.filter(n).head()},C.prototype.findLast=function(n){return this.reverse().find(n)},C.prototype.invokeMap=Mt((function(n,e){return"function"==typeof n?new C(this):this.map((function(t){return rt(t,n,e)}))})),C.prototype.reject=function(n){return this.filter(Tr(Ul(n)))},C.prototype.slice=function(n,e){n=qr(n);var t=this;return t.__filtered__&&(n>0||e<0)?new C(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==$&&(t=(e=qr(e))<0?t.dropRight(-e):t.take(e-n)),t)},C.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},C.prototype.toArray=function(){return this.take(rn)},Re(C.prototype,(function(n,e){var l=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=t[i?"take"+("last"==e?"Right":""):e],u=i||/^find/.test(e);o&&(t.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,s=e instanceof C,c=a[0],f=s||Tu(e),h=function(n){var e=o.apply(t,d([n],a));return i&&p?e[0]:e};f&&l&&"function"==typeof c&&1!=c.length&&(s=f=!1);var p=this.__chain__,g=!!this.__actions__.length,m=u&&!p,v=s&&!g;if(!u&&f){e=v?e:new C(this);var y=n.apply(e,a);return y.__actions__.push({func:wr,args:[h],thisArg:$}),new r(y,p)}return m&&v?n.apply(this,a):(y=this.thru(h),m?i?y.value()[0]:y.value():y)})})),u(["pop","push","shift","sort","splice","unshift"],(function(n){var e=ki[n],l=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);t.prototype[n]=function(){var n=arguments;if(r&&!this.__chain__){var t=this.value();return e.apply(Tu(t)?t:[],n)}return this[l]((function(t){return e.apply(Tu(t)?t:[],n)}))}})),Re(C.prototype,(function(n,e){var l=t[e];if(l){var r=l.name+"";Oi.call(mo,r)||(mo[r]=[]),mo[r].push({name:e,func:l})}})),mo[wl($,2).name]=[{name:"wrapper",func:$}],C.prototype.clone=function(){var n=new C(this.__wrapped__);return n.__actions__=cl(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=cl(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=cl(this.__views__),n},C.prototype.reverse=function(){if(this.__filtered__){var n=new C(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},C.prototype.value=function(){var n=this.__wrapped__.value(),e=this.__dir__,t=Tu(n),l=e<0,r=t?n.length:0,i=function(n,e,t){var l=-1,r=t.length;for(;++l=this.__values__.length;return{done:n,value:n?$:this.__values__[this.__index__++]}},t.prototype.plant=function(n){for(var e,t=this;t instanceof l;){var r=cr(t);r.__index__=0,r.__values__=$,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e},t.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof C){var e=n;return this.__actions__.length&&(e=new C(this)),(e=e.reverse()).__actions__.push({func:wr,args:[vr],thisArg:$}),new r(e,this.__chain__)}return this.thru(vr)},t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=function(){return Qt(this.__wrapped__,this.__actions__)},t.prototype.first=t.prototype.head,Wi&&(t.prototype[Wi]=function(){return this}),t}();tt._=yt,(r=function(){return yt}.call(e,t,e,l))===$||(l.exports=r)}).call(this)}).call(this,t("pCvA"),t("RoC8")(n))},BCmN:function(n,e,t){"use strict";function l(n,e){return e||(e=n.slice(0)),n.raw=e,n}function r(n,e){return(r=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function i(n){n(),setTimeout(n,100)}var o,u,a,s,c=t("hosL"),f=t("kpue"),h=t("zf15"),p=t("lBHI"),d=t("jMw0"),g=t("Gbvz"),m=t("24Gu"),v=t("qIEf"),y=t.n(v),b=t("tMPu"),_=t.n(b),w=t("3QNJ");e.a=function(n){function e(){return n.apply(this,arguments)||this}var t,c;c=n,(t=e).prototype=Object.create(c.prototype),t.prototype.constructor=t,r(t,c);var v=e.prototype;return v.componentDidMount=function(){var n=y()(this.base).find(".new-msg");this.picker=new _.a({position:"top-start"}),this.picker.on("emoji",(function(e){n.val(n.val()+e),n.focus()})),w.a.util.isMobile||!1===this.props.autofocus||y()(this.base).find(".new-msg").focus(),this.props.replyingTo||p.a.local.get("channels").get("public").get("msgDraft").once((function(e){return n.val(e)}))},v.componentDidUpdate=function(){w.a.util.isMobile||!1===this.props.autofocus||y()(this.base).find(".new-msg").focus()},v.send=function(n){return new Promise(function(e,t){var l,r;return n.time=(new Date).toISOString(),n.type="post",Promise.resolve(w.a.SignedMessage.create(n,d.a.getKey())).then(function(o){try{return l=o.toString(),Promise.resolve(w.a.util.getHash(l)).then(function(o){try{return r=o,p.a.public.get("#").get(r).put(l),n.replyingTo?(i((function(){return p.a.public.user().get("replies").put({a:null})})),i((function(){return p.a.public.user().get("replies").get(n.replyingTo).put({a:null})})),i((function(){return p.a.public.user().get("replies").get(n.replyingTo).get(n.time).put(r)}))):p.a.public.user().get(this.props.index||"msgs").get(n.time).put(r),n.torrentId&&p.a.public.user().get("media").get(n.time).put(r),e()}catch(n){return t(n)}}.bind(this),t)}catch(n){return t(n)}}.bind(this),t)}.bind(this))},v.onMsgFormSubmit=function(n){return new Promise(function(e){n.preventDefault(),this.props.replyingTo||p.a.local.get("channels").get("public").get("msgDraft").put(null);var t=y()(this.base).find(".new-msg"),l=t.val();if(!l.length&&!this.state.attachments&&!this.state.torrentId)return e();if("media"===this.props.index&&!this.state.torrentId)return e();var r={text:l};return this.props.replyingTo&&(r.replyingTo=this.props.replyingTo),this.state.attachments&&(r.attachments=this.state.attachments),this.state.torrentId&&(r.torrentId=this.state.torrentId),this.send(r),this.setState({attachments:null,torrentId:null}),t.val(""),t.height(""),this.props.onSubmit&&this.props.onSubmit(r),e()}.bind(this))},v.onEmojiButtonClick=function(n){n.preventDefault(),this.picker.pickerVisible?this.picker.hidePicker():this.picker.showPicker(n.target)},v.setTextareaHeight=function(n){n.style.height="",n.style.height=n.scrollHeight+"px"},v.onMsgTextPaste=function(n){var e=(n.clipboardData||window.clipboardData).getData("text");(e!==this.state.torrentId&&e.indexOf(".torrent")>-1||e.match(/^magnet:\?xt=urn:btih:*/))&&(n.preventDefault(),this.setState({torrentId:e}))},v.onMsgTextInput=function(n){this.setTextareaHeight(n.target),this.props.replyingTo||p.a.local.get("channels").get("public").get("msgDraft").put(y()(n.target).val())},v.attachFileClicked=function(n){n.preventDefault(),y()(this.base).find(".attachment-input").click()},v.attachmentsChanged=function(n){var e=this,t=n.target.files;if(t){for(var l=0;l\n \n
\n \n \n \n
\n
\n ',"\n ","\n
\n "])),this.props.class||"",(function(e){return n.onMsgFormSubmit(e)}),(function(e){return n.attachmentsChanged(e)}),"media"===this.props.index?Object(f.b)(u||(u=l(["\n

\n \n

\n "])),{__html:Object(h.c)("download_webtorrent",'href="https://webtorrent.io/desktop/"')}):"",(function(e){return n.onMsgTextPaste(e)}),(function(e){return n.onMsgTextInput(e)}),Object(h.c)(e),(function(e){return n.attachFileClicked(e)}),(function(e){return n.onEmojiButtonClick(e)}),this.state.torrentId?Object(f.b)(a||(a=l(["<"," torrentId=","/>"])),m.a,this.state.torrentId):"",this.state.attachments&&this.state.attachments.map((function(n){return Object(f.b)(s||(s=l(["\n <"," src=","/>\n "])),g.a,n.data)})))},e}(c.Component)},CGOa:function(n,e){"use strict";function t(n,e){if(Array.prototype.indexOf)return n.indexOf(e);for(var t=0,l=n.length;t=0;t--)!0===e(n[t])&&n.splice(t,1)}function r(n){throw new Error("Unhandled case for value: '"+n+"'")}function i(){return(i=Object.assign||function(n){for(var e=1;e"===n?(G=new en(p(p({},G),{name:D()})),j()):_.test(n)||w.test(n)||":"===n||T()}function o(n){">"===n?T():_.test(n)?H=3:T()}function u(n){k.test(n)||("/"===n?H=12:">"===n?j():"<"===n?A():"="===n||x.test(n)||C.test(n)?T():H=5)}function a(n){k.test(n)?H=6:"/"===n?H=12:"="===n?H=7:">"===n?j():"<"===n?A():x.test(n)&&T()}function s(n){k.test(n)||("/"===n?H=12:"="===n?H=7:">"===n?j():"<"===n?A():x.test(n)?T():H=5)}function c(n){k.test(n)||('"'===n?H=8:"'"===n?H=9:/[>=`]/.test(n)?T():"<"===n?A():H=10)}function f(n){'"'===n&&(H=11)}function h(n){"'"===n&&(H=11)}function d(n){k.test(n)?H=4:">"===n?j():"<"===n&&A()}function g(n){k.test(n)?H=4:"/"===n?H=12:">"===n?j():"<"===n?A():(H=4,N--)}function m(n){">"===n?(G=new en(p(p({},G),{isClosing:!0})),j()):H=4}function v(n){"-"===n?H=15:">"===n?T():H=16}function y(n){"-"===n?H=18:">"===n?T():H=16}function b(n){"-"===n&&(H=17)}function F(n){H="-"===n?18:16}function S(n){">"===n?j():"!"===n?H=19:"-"===n||(H=16)}function O(n){"-"===n?H=17:">"===n?j():H=16}function E(n){">"===n?j():"<"===n&&A()}function T(){H=0,G=z}function A(){H=1,G=new en({idx:N})}function j(){var e=n.slice(W,G.idx);e&&L(e,W),"comment"===G.type?R(G.idx):"doctype"===G.type?B(G.idx):(G.isOpening&&I(G.name,G.idx),G.isClosing&&M(G.name,G.idx)),T(),W=N+1}function D(){return n.slice(G.idx+(G.isClosing?2:1),N).toLowerCase()}for(var P,I=e.onOpenTag,M=e.onCloseTag,L=e.onText,R=e.onComment,B=e.onDoctype,z=new en,N=0,U=n.length,H=0,W=0,G=z;N",this.getInnerHtml(),""].join("")},n.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var n=this.getAttrs(),e=[];for(var t in n)n.hasOwnProperty(t)&&e.push(t+'="'+n[t]+'"');return e.join(" ")},n}(),c=function(){function n(n){void 0===n&&(n={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=n.newWindow||!1,this.truncate=n.truncate||{},this.className=n.className||""}return n.prototype.build=function(n){return new s({tagName:"a",attrs:this.createAttrs(n),innerHtml:this.processAnchorText(n.getAnchorText())})},n.prototype.createAttrs=function(n){var e={href:n.getAnchorHref()},t=this.createCssClass(n);return t&&(e.class=t),this.newWindow&&(e.target="_blank",e.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length=u)return a.host.length==e?(a.host.substr(0,e-r)+t).substr(0,u+l):o(c,u).substr(0,u+l);var f="";if(a.path&&(f+="/"+a.path),a.query&&(f+="?"+a.query),f){if((c+f).length>=u)return(c+f).length==e?(c+f).substr(0,e):(c+o(f,u-c.length)).substr(0,u+l);c+=f}if(a.fragment){var h="#"+a.fragment;if((c+h).length>=u)return(c+h).length==e?(c+h).substr(0,e):(c+o(h,u-c.length)).substr(0,u+l);c+=h}if(a.scheme&&a.host){var p=a.scheme+"://";if((c+p).length0&&(d=c.substr(-1*Math.floor(u/2))),(c.substr(0,Math.ceil(u/2))+t+d).substr(0,u+l)}(n,t):"middle"===l?function(n,e,t){if(n.length<=e)return n;var l,r;null==t?(t="…",l=8,r=3):(l=t.length,r=t.length);var i=e-r,o="";return i>0&&(o=n.substr(-1*Math.floor(i/2))),(n.substr(0,Math.ceil(i/2))+t+o).substr(0,i+l)}(n,t):function(n,e,t){return function(n,e,t){var l;return n.length>e&&(null==t?(t="…",l=3):l=t.length,n=n.substring(0,e-l)+t),n}(n,e,t)}(n,t)},n}(),f=function(){function n(n){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=n.tagBuilder,this.matchedText=n.matchedText,this.offset=n.offset}return n.prototype.getMatchedText=function(){return this.matchedText},n.prototype.setOffset=function(n){this.offset=n},n.prototype.getOffset=function(){return this.offset},n.prototype.getCssClassSuffixes=function(){return[this.getType()]},n.prototype.buildTag=function(){return this.tagBuilder.build(this)},n}(),h=function(n,e){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])})(n,e)},p=function(){return(p=Object.assign||function(n){for(var e,t=1,l=arguments.length;t-1},n.isValidUriScheme=function(n){var e=n.match(this.uriSchemeRegex),t=e&&e[0].toLowerCase();return"javascript:"!==t&&"vbscript:"!==t},n.urlMatchDoesNotHaveProtocolOrDot=function(n,e){return!(!n||e&&this.hasFullProtocolRegex.test(e)||-1!==n.indexOf("."))},n.urlMatchDoesNotHaveAtLeastOneWordChar=function(n,e){return!(!n||!e)&&(!this.hasFullProtocolRegex.test(e)&&!this.hasWordCharAfterProtocolRegex.test(n))},n.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,n.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,n.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+S+"]"),n.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,n}(),H=(a=new RegExp("[/?#](?:["+A+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+A+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,I(2),")","|","(","(//)?",/(?:www\.)/.source,I(6),")","|","(","(//)?",I(10)+"\\.",L.source,"(?![-"+T+"])",")",")","(?::[0-9]+)?","(?:"+a.source+")?"].join(""),"gi")),W=new RegExp("["+A+"]"),G=function(n){function e(e){var t=n.call(this,e)||this;return t.stripPrefix={scheme:!0,www:!0},t.stripTrailingSlash=!0,t.decodePercentEncoding=!0,t.matcherRegex=H,t.wordCharRegExp=W,t.stripPrefix=e.stripPrefix,t.stripTrailingSlash=e.stripTrailingSlash,t.decodePercentEncoding=e.decodePercentEncoding,t}return o(e,n),e.prototype.parseMatches=function(n){for(var e,t=this.matcherRegex,l=this.stripPrefix,r=this.stripTrailingSlash,i=this.decodePercentEncoding,o=this.tagBuilder,u=[],a=function(){var t=e[0],a=e[1],c=e[4],f=e.index,h=e[5]||e[9],p=n.charAt(f-1);if(!U.isValid(t,a))return"continue";if(f>0&&"@"===p)return"continue";if(f>0&&h&&s.wordCharRegExp.test(p))return"continue";if(/\?$/.test(t)&&(t=t.substr(0,t.length-1)),s.matchHasUnbalancedClosingParen(t))t=t.substr(0,t.length-1);else{var d=s.matchHasInvalidCharAfterTld(t,a);d>-1&&(t=t.substr(0,d))}var g=["http://","https://"].find((function(n){return!!a&&-1!==a.indexOf(n)}));if(g){var m=t.indexOf(g);t=t.substr(m),a=a.substr(m),f+=m}u.push(new y({tagBuilder:o,matchedText:t,offset:f,urlMatchType:a?"scheme":c?"www":"tld",url:t,protocolUrlMatch:!!a,protocolRelativeMatch:!!h,stripPrefix:l,stripTrailingSlash:r,decodePercentEncoding:i}))},s=this;null!==(e=t.exec(n));)a();return u},e.prototype.matchHasUnbalancedClosingParen=function(n){var e,t=n.charAt(n.length-1);if(")"===t)e="(";else if("]"===t)e="[";else{if("}"!==t)return!1;e="{"}for(var l=0,r=0,i=n.length-1;r=0&&l++},onText:function(n,t){if(0===l){var i=function(n,e){if(!e.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var t,l=[],r=0;t=e.exec(n);)l.push(n.substring(r,t.index)),l.push(t[0]),r=t.index+t[0].length;return l.push(n.substring(r)),l}(n,/( | |<|<|>|>|"|"|')/gi),o=t;i.forEach((function(n,t){if(t%2==0){var l=e.parseText(n,o);r.push.apply(r,l)}o+=n.length}))}},onCloseTag:function(n){t.indexOf(n)>=0&&(l=Math.max(l-1,0))},onComment:function(){},onDoctype:function(){}}),r=this.compactMatches(r),r=this.removeUnwantedMatches(r)},n.prototype.compactMatches=function(n){n.sort((function(n,e){return n.getOffset()-e.getOffset()}));for(var e=0;er?e:e+1;n.splice(o,1);continue}n[e+1].getOffset()/g,">"));for(var e=this.parse(n),t=[],l=0,r=0,i=e.length;r=n.length?{done:!0}:{done:!1,value:n[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,l=new Array(e);t"],u)try{u(_)}catch(n){console.log(n)}return f(_)}catch(n){return h(n)}},o=function(){try{return v=l.Buffer.from(d.s,"utf8"),y=new Uint8Array(v),Promise.resolve((l.ossl||l.subtle).verify({name:"ECDSA",hash:{name:"SHA-256"}},g,y,new Uint8Array(m))).then((function(n){try{if(!(b=n))throw"Signature did not match.";return i()}catch(n){return h(n)}}),h)}catch(n){return h(n)}};try{return v=l.Buffer.from(d.s,s.encode||"base64"),y=new Uint8Array(v),Promise.resolve((l.ossl||l.subtle).verify({name:"ECDSA",hash:{name:"SHA-256"}},g,y,new Uint8Array(m))).then((function(n){try{if(!(b=n))throw"Signature did not match.";return i()}catch(n){return o()}}),o)}catch(n){o()}}catch(n){return h(n)}}),h)}catch(n){return h(n)}}),h))}))},t.opt.fallback=2}))(i,"./verify"),i((function(n){var e=i("./shim"),t=i("./settings"),l=i("./sha256");n.exports=function(n,r,i){return new Promise((function(o,u){var a,s,c;return i=i||{},a=n+(r||e.random(8)).toString("utf8"),Promise.resolve(l(a)).then((function(n){try{return s=e.Buffer.from(n,"binary"),c=t.keyToJwk(s),Promise.resolve(e.subtle.importKey("jwk",c,{name:"AES-GCM"},!1,["encrypt","decrypt"])).then(o,u)}catch(n){return u(n)}}),u)}))}}))(i,"./aeskey"),i((function(n){var e=i("./root"),t=i("./shim"),l=(i("./settings"),i("./aeskey"));e.encrypt=e.encrypt||function(n,r,i,o){return new Promise((function(u,a){var s,c,f,h,p=function(n){try{if(console.log(n),e.err=n,e.throw)throw n;return i&&i(),u()}catch(n){return a(n)}};try{if(o=o||{},s=(r||o).epriv||r,undefined===n)throw"`undefined` not allowed.";if(!s)return Promise.resolve(e.I(null,{what:n,how:"encrypt",why:o.why})).then(function(n){try{return s=(r=n).epriv||r,d.call(this)}catch(n){return p(n)}}.bind(this),p);function d(){return c="string"==typeof n?n:JSON.stringify(n),f={s:t.random(9),iv:t.random(15)},Promise.resolve(l(s,f.s,o).then((function(n){return t.subtle.encrypt({name:o.name||"AES-GCM",iv:new Uint8Array(f.iv)},n,(new t.TextEncoder).encode(c))}))).then((function(n){try{if(h={ct:t.Buffer.from(n,"binary").toString(o.encode||"base64"),iv:f.iv.toString(o.encode||"base64"),s:f.s.toString(o.encode||"base64")},o.raw||(h="SEA"+JSON.stringify(h)),i)try{i(h)}catch(n){console.log(n)}return u(h)}catch(n){return p(n)}}),p)}return d.call(this)}catch(n){p(n)}}))},n.exports=e.encrypt}))(i,"./encrypt"),i((function(n){var e=i("./root"),t=i("./shim"),l=i("./settings"),r=i("./aeskey");e.decrypt=e.decrypt||function(n,i,o,u){return new Promise((function(a,s){var c,f,h,p,d,g,m,v=function(n){try{if(console.log(n),e.err=n,e.throw)throw n;return o&&o(),a()}catch(n){return s(n)}};try{if(u=u||{},!(c=(i||u).epriv||i))return Promise.resolve(e.I(null,{what:n,how:"decrypt",why:u.why})).then(function(n){try{return c=(i=n).epriv||i,y.call(this)}catch(n){return v(n)}}.bind(this),v);function y(){f=l.parse(n);var s=function(){try{if(m=l.parse(new t.TextDecoder("utf8").decode(g)),o)try{o(m)}catch(n){console.log(n)}return a(m)}catch(n){return v(n)}},y=function(){try{if("utf8"===u.encode)throw"Could not decrypt";return e.opt.fallback?(u.encode="utf8",Promise.resolve(e.decrypt(n,i,o,u)).then(a,v)):s()}catch(n){return v(n)}}.bind(this);try{return h=t.Buffer.from(f.s,u.encode||"base64"),p=t.Buffer.from(f.iv,u.encode||"base64"),d=t.Buffer.from(f.ct,u.encode||"base64"),Promise.resolve(r(c,h,u).then((function(n){return t.subtle.decrypt({name:u.name||"AES-GCM",iv:new Uint8Array(p),tagLength:128},n,new Uint8Array(d))}))).then((function(n){try{return g=n,s()}catch(n){return y(n)}}),y)}catch(n){y(n)}}return y.call(this)}catch(n){v(n)}}))},n.exports=e.decrypt}))(i,"./decrypt"),i((function(n){var e=i("./root"),t=i("./shim");i("./settings");e.secret=e.secret||function(n,r,i,o){return new Promise((function(u,a){var c,f,h,p,d,g,m,v=function(n){try{if(console.log(n),e.err=n,e.throw)throw n;return i&&i(),u()}catch(n){return a(n)}};try{if(o=o||{},!r||!r.epriv||!r.epub)return Promise.resolve(e.I(null,{what:n,how:"secret",why:o.why})).then(function(n){try{return r=n,y.call(this)}catch(n){return v(n)}}.bind(this),v);function y(){return c=r.epub,f=r.epriv,h=t.ossl||t.subtle,p=l(n.epub||n),Promise.resolve(h.importKey.apply(h,p.concat([!0,[]]))).then((function(n){try{return d=s({public:n},{name:"ECDH",namedCurve:"P-256"}),g=l(c,f),Promise.resolve(h.importKey.apply(h,g.concat([!1,["deriveBits"]])).then((function(n){return new Promise((function(e,t){var l;return Promise.resolve(h.deriveBits(d,n,256)).then((function(n){try{return l=new Uint8Array(n),Promise.resolve(h.importKey("raw",l,{name:"AES-GCM",length:256},!0,["encrypt","decrypt"])).then((function(n){try{return e(h.exportKey("jwk",n).then((function(n){return n.k})))}catch(n){return t(n)}}),t)}catch(n){return t(n)}}),t)}))}))).then((function(n){try{if(m=n,i)try{i(m)}catch(n){console.log(n)}return u(m)}catch(n){return v(n)}}),v)}catch(n){return v(n)}}),v)}return y.call(this)}catch(n){v(n)}}))};var l=function(n,e){var t=n.split(".");return["jwk",s(e?{d:e}:{},{x:t[0],y:t[1],kty:"EC",crv:"P-256",ext:!0}),{name:"ECDH",namedCurve:"P-256"}]};n.exports=e.secret}))(i,"./secret"),i((function(n){var e=i("./root");e.certify=e.certify||function(n,t,l,r,i){return new Promise((function(o,a){var s,c,f,h,p,d,g;void 0===t&&(t={}),void 0===i&&(i={});var m=function(n){try{if(e.err=n,e.throw)throw n;return r&&r(),o()}catch(n){return a(n)}};try{return console.log("SEA.certify() is an early experimental community supported method that may change API behavior without warning in any future version."),(n=function(){var e=[];if(n){if(("string"==typeof n||Array.isArray(n))&&-1!==n.indexOf("*"))return"*";if("string"==typeof n)return n;if(Array.isArray(n)){if(1===n.length&&n[0])return"object"==typeof n[0]&&n[0].pub?n[0].pub:"string"==typeof n[0]?n[0]:null;n.map((function(n){"string"==typeof n?e.push(n):"object"==typeof n&&n.pub&&e.push(n.pub)}))}return"object"==typeof n&&n.pub?n.pub:e.length>0?e:null}return null}())?(s=!i.expiry||"number"!=typeof i.expiry&&"string"!=typeof i.expiry?null:parseFloat(i.expiry),c=(t||{}).read?t.read:null,f=(t||{}).write?t.write:"string"==typeof t||Array.isArray(t)||t["+"]||t["#"]||t["."]||t["="]||t["*"]||t[">"]||t["<"]?t:null,h=((i||{}).blacklist||{}).read&&("string"==typeof i.blacklist.read||i.blacklist.read["#"])?i.blacklist.read:null,p="string"==typeof(i||{}).blacklist||(((i||{}).blacklist||{}).write||{})["#"]?i.blacklist:((i||{}).blacklist||{}).write&&("string"==typeof i.blacklist.write||i.blacklist.write["#"])?i.blacklist.write:null,c||f?(d=JSON.stringify(u(u(u(u(u({c:n},s?{e:s}:{}),c?{r:c}:{}),f?{w:f}:{}),h?{rb:h}:{}),p?{wb:p}:{})),Promise.resolve(e.sign(d,l,null,{raw:1})).then((function(n){try{if(g=n,i.raw||(g="SEA"+JSON.stringify(g)),r)try{r(g)}catch(n){console.log(n)}return o(g)}catch(n){return m(n)}}),m)):o(console.log("No policy found."))):o(console.log("No certificant found."))}catch(n){m(n)}}))},n.exports=e.certify}))(i,"./certify"),i((function(n){var t=i("./shim"),l=i("./root");l.work=i("./work"),l.sign=i("./sign"),l.verify=i("./verify"),l.encrypt=i("./encrypt"),l.decrypt=i("./decrypt"),l.certify=i("./certify"),l.random=l.random||t.random,l.Buffer=l.Buffer||i("./buffer"),l.keyid=l.keyid||function(n){return new Promise((function(t,l){var r,i,o,u=function(n){try{throw console.log(n),n}catch(n){return l(n)}};try{return r=e.concat(n.replace(/-/g,"+").replace(/_/g,"/").split(".").map((function(n){return e.from(n,"base64")}))),i=e.concat([e.from([153,r.length/256,r.length%256]),r]),Promise.resolve(sha1hash(i)).then((function(n){try{return o=e.from(n,"binary"),t(o.toString("hex",o.length-8))}catch(n){return u(n)}}),u)}catch(n){u(n)}}))};var r=(l.window||{}).Gun||i((void 0===o?".":"")+"./gun",1);r.SEA=l,l.GUN=l.Gun=r,n.exports=l}))(i,"./sea"),i((function(){i("./sea").Gun.chain.then=function(n,e){var t=this,l=new Promise((function(n){t.once(n,e)}));return n?l.then(n):l}}))(i,"./then"),i((function(n){function e(){this._={$:this}}var t=i("./sea").Gun;i("./then");(e.prototype=function(){function n(){}return n.prototype=t.chain,new n}()).constructor=e,t.chain.user=function(n){var l,r=this.back(-1);if(n)return r.get("~"+n);if(l=r.back("user"))return l;var i=r=r._,o=i.opt.uuid||t.state.lex;return(i=(l=i.user=this.chain(new e))._).opt={},i.opt.uuid=function(n){var e=o(),t=r.user;return t&&(t=t.is)&&(t=t.pub)?(e=e+"~"+t+"/",n&&n.call&&n(null,e),e):e},l},t.User=e,n.exports=e}))(i,"./user"),i((function(n){var e=i("./sea"),t=i("./user"),l=(i("./settings"),e.Gun),r=function(){};t.prototype.create=function(){for(var n=arguments.length,t=new Array(n),i=0;i1&&"object"==typeof t[t.length-1]?t[t.length-1]:{},f=this,h=f._,p=f.back(-1);if(h.ing)return(s||r)({err:l.log("User is already being created or authenticated!"),wait:!0}),f;h.ing=!0;var d={};return d.a=function(n){if(d.pubs=n,n&&!c.already){var t={err:l.log("User already created!")};return h.ing=!1,(s||r)(t),void f.leave()}d.salt=l.text.random(64),e.work(a,d.salt,d.b)},d.b=function(n){d.proof=n,o?d.c(o):e.pair(d.c)},d.c=function(n){var e;d.pair=n||{},(e=h.root.user)&&(e._.sea=n,e.is={pub:n.pub,epub:n.epub,alias:u}),d.data={pub:n.pub},d.d()},d.d=function(){d.data.alias=u,d.e()},d.e=function(){d.data.epub=d.pair.epub,e.encrypt({priv:d.pair.priv,epriv:d.pair.epriv},d.proof,d.f,{raw:1})},d.f=function(n){d.data.auth=JSON.stringify({ek:n,s:d.salt}),d.g(d.data.auth)},d.g=function(n){var e;d.data.auth=d.data.auth||n,p.get(e="~"+d.pair.pub).put(d.data),p.get("~@"+u).put(l.obj.put({},e,l.val.link.ify(e)),d.h)},d.h=function(){h.ing=!1,(s||r)({ok:0,pub:d.pair.pub}),s||(o?f.auth(o):f.auth(u,a))},p.get("~@"+u).once(d.a),f},t.prototype.auth=function(){for(var n=arguments.length,t=new Array(n),i=0;i1&&"object"==typeof t[t.length-1]?t[t.length-1]:{},f=this,h=f._,p=f.back(-1);if(h.ing)return(s||r)({err:l.log("User is already being created or authenticated!"),wait:!0}),f;h.ing=!0;var d,g={};return g.a=function(n){if(!n)return g.b();if(!n.pub){var e=[];return l.node.is(n,(function(n){e.push(n)})),g.b(e)}if(g.name)return g.f(n);g.c((g.data=n).auth)},g.b=function(n){var e=(g.list=(g.list||[]).concat(n||[])).shift();if(d===e)return g.err(g.name?"Your user account is not published for dApps to access, please consider syncing it online, or allowing local access by adding your device as a peer.":"Wrong user or password.");p.get(e).once(g.a)},g.c=function(n){return d===n?g.b():l.text.is(n)?g.c(l.obj.ify(n)):void e.work(a,(g.auth=n).s,g.d,g.enc)},g.d=function(n){e.decrypt(g.auth.ek,n,g.e,g.enc)},g.e=function(n){if(d===n)return g.enc?(g.enc=null,g.b()):(g.enc={encode:"utf8"},g.c(g.auth));g.half=n,g.f(g.data)},g.f=function(n){if(!n||!n.pub)return g.b();var e=g.half||{};g.g({pub:n.pub,epub:n.epub,priv:e.priv,epriv:e.epriv})},g.g=function(n){g.pair=n;var t=p._.user,i=t._,o=i.opt;(i=t._=p.get("~"+n.pub)._).opt=o,t.is={pub:n.pub,epub:n.epub,alias:u||n},i.sea=g.pair,h.ing=!1;try{a&&!l.obj.has(l.obj.ify(h.root.graph["~"+n.pub].auth),":")&&(c.shuffle=c.change=a)}catch(n){}if(c.change?g.z():(s||r)(i),e.window&&(f.back("user")._.opt||c).remember)try{var d={};(d=window.sessionStorage).recall=!0,d.pair=JSON.stringify(n)}catch(n){}try{p._.on("auth",i)}catch(n){l.log("Your 'auth' callback crashed with:",n)}},g.z=function(){g.salt=l.text.random(64),e.work(c.change,g.salt,g.y)},g.y=function(n){e.encrypt({priv:g.pair.priv,epriv:g.pair.epriv},n,g.x,{raw:1})},g.x=function(n){g.w(JSON.stringify({ek:n,s:g.salt}))},g.w=function(n){if(c.shuffle){console.log("migrate core account from UTF8 & shuffle");var e=l.obj.to(g.data);l.obj.del(e,"_"),e.auth=n,p.get("~"+g.pair.pub).put(e)}p.get("~"+g.pair.pub).get("auth").put(n,s||r)},g.err=function(n){var e={err:l.log(n||"User cannot be found!")};h.ing=!1,(s||r)(e)},g.plugin=function(n){if(!(g.name=n))return g.err();var e=[n];"~"!==n[0]&&(e[1]="~"+n,e[2]="~@"+n),g.b(e)},o?g.g(o):u?p.get("~@"+u).once(g.a):u||a||e.name(g.plugin),f},t.prototype.pair=function(){console.log("user.pair() IS DEPRECATED AND WILL BE DELETED!!!");return!!this.is&&this._.sea},t.prototype.leave=function(){var n=this.back(-1)._.user;if(n&&(delete n.is,delete n._.is,delete n._.sea),e.window)try{var t={};delete(t=window.sessionStorage).recall,delete t.pair}catch(n){}return this},t.prototype.delete=function(n,e,t){return new Promise(function(i){console.log("user.delete() IS DEPRECATED AND WILL BE MOVED TO A MODULE!!!");var o=this,u=(o.back(-1),o.back("user"));try{u.auth(n,e,(function(){u.map().once((function(){this.put(null)})),u.leave(),(t||r)({ok:0})}))}catch(n){l.log("User.delete failed! Error:",n)}return i(o)}.bind(this))},t.prototype.recall=function(n,t){var l=this,r=l.back(-1);if((n=n||{})&&n.sessionStorage){if(e.window)try{var i;(i=window.sessionStorage)&&(r._.opt.remember=!0,(l.back("user")._.opt||n).remember=!0,(i.recall||i.pair)&&r.user().auth(JSON.parse(i.pair),t))}catch(n){}return l}return l},t.prototype.alive=function(){return new Promise(function(n,e){var t,r;console.log("user.alive() IS DEPRECATED!!!"),t=this.back(-1);var i=function(){try{throw l.log(r="No session!"),{err:r}}catch(n){return e(n)}};try{return Promise.resolve(authRecall(t)).then((function(){try{return n(t._.user._)}catch(n){return i()}}),i)}catch(n){i()}}.bind(this))},t.prototype.trust=function(n){return new Promise((function(e){return l.is(n)&&n.get("pub").get((function(n,e){console.log(n,e)})),n.get("trust").get(path).put(theirPubkey),e()}))},t.prototype.grant=function(n,t){console.log("`.grant` API MAY BE DELETED OR CHANGED OR RENAMED, DO NOT USE!");var l=this,r=l.back(-1).user(),i=r._.sea,o="";return l.back((function(n){n.is||(o+=n.get||"")})),new Promise((function(l,u){var a,s,c,f;return Promise.resolve(r.get("grant").get(i.pub).get(o).then()).then(function(h){try{return s=h,Promise.resolve(e.decrypt(s,i)).then(function(h){try{if(!(s=h))return s=e.random(16).toString(),Promise.resolve(e.encrypt(s,i)).then(function(n){try{return a=n,r.get("grant").get(i.pub).get(o).put(a),p.call(this)}catch(n){return u(n)}}.bind(this),u);function p(){return c=n.get("pub").then(),f=n.get("epub").then(),Promise.resolve(c).then((function(n){try{return c=n,Promise.resolve(f).then((function(n){try{return f=n,Promise.resolve(e.secret(f,i)).then((function(n){try{return Promise.resolve(e.encrypt(s,n)).then((function(n){try{return a=n,r.get("grant").get(c).get(o).put(a,t),l()}catch(n){return u(n)}}),u)}catch(n){return u(n)}}),u)}catch(n){return u(n)}}),u)}catch(n){return u(n)}}),u)}return p.call(this)}catch(n){return u(n)}}.bind(this),u)}catch(n){return u(n)}}.bind(this),u)})),l},t.prototype.secret=function(n,t){console.log("`.secret` API MAY BE DELETED OR CHANGED OR RENAMED, DO NOT USE!");var l=this,r=l.back(-1).user(),i=r.pair(),o="";return l.back((function(n){n.is||(o+=n.get||"")})),new Promise((function(u,a){var s,c;return Promise.resolve(r.get("trust").get(i.pub).get(o).then()).then(function(f){try{return c=f,Promise.resolve(e.decrypt(c,i)).then(function(f){try{if(!(c=f))return c=e.random(16).toString(),Promise.resolve(e.encrypt(c,i)).then(function(n){try{return s=n,r.get("trust").get(i.pub).get(o).put(s),h.call(this)}catch(n){return a(n)}}.bind(this),a);function h(){return Promise.resolve(e.encrypt(n,c)).then((function(n){try{return l.put(s=n,t),u()}catch(n){return a(n)}}),a)}return h.call(this)}catch(n){return a(n)}}.bind(this),a)}catch(n){return a(n)}}.bind(this),a)})),l},n.exports=t}))(i,"./create"),i((function(){function n(t){var r,i=this,o=i.as,u=t.put,a=u["#"],s=u["."],c=u[":"],f=u[">"],h=t["#"];if(a&&s)if((t._||"").faith&&(o.opt||"").faith&&"function"==typeof t._)e.verify(e.opt.pack(u),!1,(function(n){u["="]=e.opt.unpack(n),i.to.next(t)}));else{var p=function(n){o.on("in",{"@":h,err:n})};(t._||"").DBG&&((t._||"").DBG.c=+new Date),0<=a.indexOf(""]&&i.put[">"]>parseFloat(n.e))return h("Certificate expired.");if(s!==n&&n.c&&n.w&&(n.c===t||n.c.indexOf("*")>-1)){var e=c.indexOf("/")>-1?c.replace(c.substring(0,c.indexOf("/")+1),""):"";String.match=String.match||l.text.match;for(var u,p=r(Array.isArray(n.w)?n.w:"object"==typeof n.w||"string"==typeof n.w?[n.w]:[]);!(u=p()).done;){var g=u.value;if(String.match(e,g["#"])&&String.match(a,g["."])||!g["."]&&String.match(e,g["#"])||!g["#"]&&String.match(a,g["."])||String.match(e?e+"/"+a:a,g["#"]||g)){if(g["+"]&&g["+"].indexOf("*")>-1&&e&&-1==e.indexOf(t)&&-1==a.indexOf(t))return h('Path "'+e+'" or key "'+a+'" must contain string "'+t+'".');if(n.wb&&("string"==typeof n.wb||(n.wb||{})["#"])){var m=f.$.back(-1);return"string"==typeof n.wb&&"~"!==n.wb.slice(0,1)&&(m=m.get("~"+d)),m.get(n.wb).get(t).once((function(e){return!e||1!==e&&!0!==e?o(n):h("Certificant blacklisted.")}))}return o(n)}}return h("Certificate verification fail.")}}))};if("pub"===a&&"~"+d===c)return u===d?n.to.next(i):h("Account not same!");(g=p.is)&&g.pub&&!m["*"]&&!m["+"]&&(d===g.pub||d!==g.pub&&((i._.out||{}).opt||{}).cert)?e.sign(e.opt.pack(i.put),p._.sea,(function(l){if(s===l)return h(e.err||"Signature fail.");if(i.put[":"]={":":g=e.opt.unpack(l.m),"~":l.s},i.put["="]=g,d===p.is.pub)return(g=o(u))&&((f.sea.own[g]=f.sea.own[g]||{})[d]=1),i.put[":"]=JSON.stringify(i.put[":"]),n.to.next(i);if(d!==p.is.pub&&((i._.out||{}).opt||{}).cert){var r=t.parse(i._.out.opt.cert);r&&r.m&&r.s&&v(r,p.is.pub,(function(){return i.put[":"]["+"]=r,i.put[":"]["*"]=p.is.pub,i.put[":"]=JSON.stringify(i.put[":"]),n.to.next(i)}))}}),{raw:1}):e.verify(e.opt.pack(i.put),m["*"]||d,(function(t){var l;return t=e.opt.unpack(t),s===t?h("Unverified data."):((l=o(t))&&d===e.opt.pub(l)&&((f.sea.own[l]=f.sea.own[l]||{})[d]=1),m["+"]&&m["+"].m&&m["+"].s&&m["*"]?void v(m["+"],m["*"],(function(){return i.put["="]=t,n.to.next(i)})):(i.put["="]=t,n.to.next(i)))}))},n.any=function(n,e,t,l,r,i,o){if(i.opt.secure)return o("Soul missing public key at '"+l+"'.");i.on("secure",(function(e){if(this.off(),!i.opt.secure)return n.to.next(e);o("Data cannot be changed.")})).on.on("secure",e)};var o=l.val.link.is,u=/[^\w_-]/;e.opt.pub=function(n){if(n&&(n=n.split("~"))&&(n=n[1])&&(n=n.split(u).slice(0,2))&&2==n.length&&"@"!==(n[0]||"")[0])return n=n.slice(0,2).join(".")},e.opt.prep=function(n,t,r,i){return{"#":i,".":t,":":e.opt.parse(n),">":l.state.is(r,t)}},e.opt.pack=function(n,t,r,i){if(e.opt.check(n))return n;var o=l.obj.ify(n&&n[":"]||n)||"",u=o["~"];return u?{m:{"#":i||n["#"],".":t||n["."],":":o[":"],">":n[">"]||l.state.is(r,t)},s:u}:n};var a=e.opt;e.opt.unpack=function(n,t,r){var i;if(s!==n){if(n&&s!==(i=n[":"]))return i;if(t=t||a.fall_key,!r&&a.fall_val&&((r={})[t]=a.fall_val),t&&r){if(n===r[t])return n;if(!e.opt.check(r[t]))return n;var o=l.node.soul(r)||a.fall_soul,u=l.state.is(r,t)||a.fall_state;return n&&4===n.length&&o===n[0]&&t===n[1]&&c(u)===c(n[3])?n[2]:u>1,c=-7,f=t?r-1:0,h=t?-1:1,p=n[e+f];for(f+=h,i=p&(1<<-c)-1,p>>=-c,c+=u;c>0;i=256*i+n[e+f],f+=h,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=l;c>0;o=256*o+n[e+f],f+=h,c-=8);if(0===i)i=1-s;else{if(i===a)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,l),i-=s}return(p?-1:1)*o*Math.pow(2,i-l)},e.write=function(n,e,t,l,r,i){var o,u,a,s=8*i-r-1,c=(1<>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=l?0:i-1,d=l?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-o))<1&&(o--,a*=2),(e+=o+f>=1?h/a:h*Math.pow(2,1-f))*a>=2&&(o++,a/=2),o+f>=c?(u=0,o=c):o+f>=1?(u=(e*a-1)*Math.pow(2,r),o+=f):(u=e*Math.pow(2,f-1)*Math.pow(2,r),o=0));r>=8;n[t+p]=255&u,p+=d,u/=256,r-=8);for(o=o<0;n[t+p]=255&o,p+=d,o/=256,s-=8);n[t+p-d]|=128*g}},GLQ6:function(n,e,t){n.exports=t("K/f/")},Gbvz:function(n,e,t){"use strict";var l,r=t("kpue");e.a=function(n){return n.src&&0!==n.src.indexOf("data:image")&&(n.src=""),Object(r.b)(l||(e=[""],t||(t=e.slice(0)),e.raw=t,l=e),n);var e,t}},Gvg1:function(n,e,t){"use strict";function l(n,e){return e||(e=n.slice(0)),n.raw=e,n}var r,i,o,u,a,s,c,f,h,p,d,g,m,v,y=t("kpue");e.a={settings:Object(y.b)(r||(r=l(['\n ']))),home:Object(y.b)(i||(i=l(['']))),videoCall:Object(y.b)(o||(o=l(['']))),chat:Object(y.b)(u||(u=l(['']))),circle:Object(y.b)(a||(a=l(['']))),folder:Object(y.b)(s||(s=l(['']))),feed:Object(y.b)(c||(c=l(['']))),store:Object(y.b)(f||(f=l(['']))),close:Object(y.b)(h||(h=l(['']))),play:Object(y.b)(p||(p=l(['']))),pause:Object(y.b)(d||(d=l(['\n']))),user:Object(y.b)(g||(g=l(['\n \n \n \n ']))),group:Object(y.b)(m||(m=l(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ']))),herokuButton:Object(y.b)(v||(v=l(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n '])))}},HEoH:function(n,e,t){"use strict";function l(n){return new Promise((function(e,t){function l(){return!1!==n.enabled?u(n.url):o(),e()}var r;return c.a.isUrl(n.url)?(n.from&&Object.keys(b).forEach((function(e){b[e].from===n.from&&delete b[e]})),b[n.url]=b[n.url]||p.a.omit(n,"url"),"public"===n.visibility?Promise.resolve(g.a.SEA.secret(f.a.getKey().epub,f.a.getKey())).then(function(e){try{return Promise.resolve(g.a.SEA.encrypt(n.url,e)).then(function(e){try{return Promise.resolve(g.a.SEA.work(e,null,null,{name:"SHA-256"})).then(function(e){try{return r=e,s.a.public.user().get("peers").get(r).put({url:n.url,lastSeen:(new Date).toISOString()}),l.call(this)}catch(n){return t(n)}}.bind(this),t)}catch(n){return t(n)}}.bind(this),t)}catch(n){return t(n)}}.bind(this),t):l.call(this)):t(new Error("Invalid url",n.url))}))}function r(n){s.a.public.on("bye",n),n.url=""}function i(){var n=localStorage.getItem("gunPeers");return n=n&&"undefined"!==n?JSON.parse(n):y,c.a.isElectron&&(n[m]={}),Object.keys(n).forEach((function(e){return p.a.defaults(n[e],{enabled:!0})})),n}function o(){localStorage.setItem("gunPeers",JSON.stringify(b))}function u(n){b[n]?(b[n].enabled=!0,s.a.public.opt({peers:[n]}),o()):l({url:n})}function a(){var n=s.a.public.back("opt.peers"),e=p.a.filter(Object.values(n),(function(n){return n&&n.wire&&"WebSocket"!==n.wire.constructor.name&&console.log("WebRTC peer",n),n&&n.wire&&"hi"===n.wire.hied&&"WebSocket"===n.wire.constructor.name}));if(e.length-1,l=b[e].enabled;return!("https:"===window.location.protocol&&0===e.indexOf("http:"))&&l&&!t}));t.length&&u(p.a.sample(t))}e.length>v&&r(p.a.sample(e))}var s=t("lBHI"),c=t("kpue"),f=t("jMw0"),h=t("9va6"),p=t.n(h),d=t("GLQ6"),g=t.n(d),m="http://localhost:8767/gun",v=c.a.isElectron?2:1,y={"https://gun-us.herokuapp.com/gun":{}},b=i(),_=p.a.once((function(n){f.a.settings.local.enablePublicPeerDiscovery&&p.a.defer((function(){s.a.public.user(n).get("peers").once().map().on((function(e){e&&e.url&&function(){var t=p.a.countBy(b,(function(n){return n.from})),r=Object.keys(t).length;t[n]||(r+=1);var i=10/r;for(l({url:e.url,connect:!0,from:n});Object.keys(b).length>10;)p.a.each(Object.keys(t),(function(n){t[n]>i&&(delete b[p.a.sample(Object.keys(b))],t[n]-=1)}))}()}))}))}));e.a={init:function(){s.a.local.get("settings").get("maxConnectedPeers").on((function(n){void 0!==n&&(v=n)})),setInterval(a,1e4)},knownPeers:b,getRandomPeers:function(){var n=c.a.isElectron&&b[m]&&!1!==b[m].enabled,e=n?Math.max(v-1,1):v,t=p.a.sample(Object.keys(p.a.pick(b,(function(n,e){return!("https:"===window.location.protocol&&0===e.indexOf("http:"))&&n.enabled&&!(c.a.isElectron&&e===m)}))),e);return n&&t.push(m),t},getKnownPeers:function(){return b},addPeer:l,connectPeer:u,removePeer:function(n){delete b[n],o()},disconnectPeer:r,disablePeer:function(n,e){b[n].enabled=!1,e&&r(e),o()},askForPeers:_,resetPeers:function(){localStorage.setItem("gunPeers",void 0),b=i()}}},"J4x/":function(n,e,t){n.exports=function(n){var e=t("LjCG");n.find("a",(function(){var t,l,r=[];e.map(n.list,(function(n,e){e.indexOf("%1B")+1&&n&&r.push([e,n])})),r.length&&console.log("\n! ! ! WARNING ! ! !\nRAD v0.2020.x has detected OLD v0.2019.x data & automatically migrating. Automatic migration will be turned OFF in future versions! If you are just developing/testing, we recommend you reset your data. Please contact us if you have any concerns.\nThis message should only log once."),r.forEach((function(e){t=e[0],l=e[1],n.list(decodeURIComponent(t),l),n.list(t,0)})),t&&n.find.bad(t)}))}},"K/f/":function(n,e,t){(function(n,e,l){!function(){function r(n,e){function l(n){return n.split("/").slice(-1).toString().replace(".js","")}return e?t("FWJg")(n):n.slice?r[l(n)]:function(e,t){n(e={exports:{}}),r[l(t)]=e.exports}}var i=n;r((function(n){var e={fn:{is:function(n){return!!n&&"function"==typeof n}}};e.bi={is:function(n){return n instanceof Boolean||"boolean"==typeof n}},e.num={is:function(n){return!t(n)&&(n-parseFloat(n)+1>=0||1/0===n||-1/0===n)}},e.text={is:function(n){return"string"==typeof n}},e.text.ify=function(n){return e.text.is(n)?n:"undefined"!=typeof JSON?JSON.stringify(n):n&&n.toString?n.toString():n},e.text.random=function(n,e){var t="";for(n=n||24,e=e||"0123456789ABCDEFGHIJKLMNOPQRSTUVWXZabcdefghijklmnopqrstuvwxyz";n>0;)t+=e.charAt(Math.floor(Math.random()*e.length)),n--;return t},e.text.match=function(n,e){var t,l;return"string"==typeof n&&("string"==typeof e&&(e={"=":e}),n===(t=(e=e||{})["="]||e["*"]||e[">"]||e["<"])||l===e["="]&&(n.slice(0,((t=e["*"]||e[">"]||e["<"])||"").length)===t||l===e["*"]&&(l!==e[">"]&&l!==e["<"]?n>=e[">"]&&n<=e["<"]:l!==e[">"]&&n>=e[">"]||l!==e["<"]&&n<=e["<"])))},e.text.hash=function(n,e){if("string"==typeof n){if(e=e||0,!n.length)return e;for(var t=0,l=n.length;tt?1:0:0}},e.list.map=function(n,e,t){return o(n,e,t)},e.list.index=1,e.obj={is:function(n){return!!n&&(n instanceof Object&&n.constructor===Object||"Object"===Object.prototype.toString.call(n).match(/^\[object (\w+)\]$/)[1])}},e.obj.put=function(n,e,t){return(n||{})[e]=t,n},e.obj.has=function(n,e){return n&&Object.prototype.hasOwnProperty.call(n,e)},e.obj.del=function(n,e){if(n)return n[e]=null,delete n[e],n},e.obj.as=function(n,e,t,l){return n[e]=n[e]||(l===t?{}:t)},e.obj.ify=function(n){if(r(n))return n;try{n=JSON.parse(n)}catch(e){n={}}return n},function(){function n(n,e){i(this,e)&&undefined!==this[e]||(this[e]=n)}e.obj.to=function(e,t){return o(e,n,t=t||{}),t}}(),e.obj.copy=function(n){return n?JSON.parse(JSON.stringify(n)):n},function(){function n(n,e){var t=this.n;if(!t||!(e===t||r(t)&&i(t,e)))return undefined!==e||void 0}e.obj.empty=function(e,t){return!e||!o(e,n,{n:t})}}(),function(){function n(e,t){2!==arguments.length?(n.r=n.r||[]).push(e):(n.r=n.r||{})[e]=t}var l,o=Object.keys;Object.keys=Object.keys||function(n){return l(n,(function(n,e,t){t(e)}))},e.obj.map=l=function(l,u,a){var s,c,f,h,p,d=0,g="function"==typeof u;if(n.r=s,o&&r(l)&&(h=o(l),p=!0),a=a||{},t(l)||h)for(c=(h||l).length;d");e.drift=0,e.is=function(n,e,t){var l=e&&n&&n[b]&&n[b][s]||t;if(l)return v(l=l[e])?l:-1/0},e.lex=function(){return e().toString(36).replace(".","")},e.ify=function(n,e,t,r,i){if(!n||!n[b]){if(!i)return;n=l.soul.ify(n,i)}var o=h(n[b],s);return c!==e&&e!==b&&(v(t)&&(o[e]=t),c!==r&&(n[e]=r)),n},e.to=function(n,t,r){var i=(n||{})[t];return d(i)&&(i=m(i)),e.ify(r,t,e.is(n,t),i,l.soul(n))},function(){function n(n,t){b!==t&&e.ify(this.o,t,this.s)}e.map=function(t,l,r){var i,o=d(o=t||l)?o:null;return t=y(t=t||l)?t:null,o&&!t?(l=v(l)?l:e(),o[b]=o[b]||{},g(o,n,{o:o,s:l}),o):(r=r||d(l)?l:i,l=v(l)?l:e(),function(e,o,u,a){if(!t)return n.call({o:u,s:l},e,o),e;t.call(r||this||{},e,o,u,a),p(u,o)&&i===u[o]||n.call({o:u,s:l},e,o)})}}();var c,f=t.obj,h=f.as,p=f.has,d=f.is,g=f.map,m=f.copy,v=t.num.is,y=t.fn.is,b=l._;n.exports=e}))(r,"./state"),r((function(n){var e=r("./type"),t=r("./val"),l=r("./node"),i={};!function(){function n(n,t){if(!n||t!==l.soul(n)||!l.is(n,this.fn,this.as))return!0;this.cb&&(e.n=n,this.cb.call(e.as=this.as,n,t,e))}function e(n){n&&l.is(e.n,n,e.as)}i.is=function(e,t,l,r){return!(!e||!a(e)||f(e))&&!p(e,n,{cb:t,fn:l,as:r})}}(),function(){function n(n,e){var i;return(i=function(n,e){var t,l=n.seen,r=l.length;for(;r--;)if(e.obj===(t=l[r]).obj)return t;l.push(e)}(n,e))?i:(e.env=n,e.soul=u,l.ify(e.obj,r,e)&&(e.link=e.link||t.link.ify(l.soul(e.node)),e.obj!==n.shell&&(n.graph[t.link.is(e.link)]=e.node)),e)}function r(e,r,i){var u,a,h=this,p=h.env;if(l._===r&&c(e,t.link._))return i._;if(u=f(e,r,i,h,p)){if(r||(h.node=h.node||i||{},c(e,l._)&&l.soul(e)&&(h.node._=d(e._)),h.node=l.soul.ify(h.node,t.link.is(h.link)),h.link=h.link||t.link.ify(l.soul(h.node))),(a=p.map)&&(a.call(p.as||{},e,r,i,h),c(i,r))){if(o===(e=i[r]))return void s(i,r);if(!(u=f(e,r,i,h,p)))return}if(!r)return h.node;if(!0===u)return e;if((a=n(p,{obj:e,path:h.path.concat(r)})).node)return a.link}}function u(n){var e=this,r=t.link.is(e.link),i=e.env.graph;e.link=e.link||t.link.ify(n),e.link[t.link._]=n,e.node&&e.node[l._]&&(e.node[l._][t.link._]=n),c(i,r)&&(i[n]=i[r],s(i,r))}function f(n,l,r,i,o){var u;return!!t.is(n)||(a(n)?1:(u=o.invalid)?f(n=u.call(o.as||{},n,l,r),l,r,i,o):(o.err="Invalid value at '"+i.path.concat(l).join(".")+"'!",void(e.list.is(n)&&(o.err+=" Use `.set(item)` instead of an Array."))))}i.ify=function(e,l,r){var i={path:[],obj:e};return l?"string"==typeof l?l={soul:l}:"function"==typeof l&&(l.map=l):l={},"string"==typeof r&&(l.soul=l.soul||r,r=o),l.soul&&(i.link=t.link.ify(l.soul)),l.shell=(r||{}).shell,l.graph=l.graph||{},l.seen=l.seen||[],l.as=l.as||r,n(l,i),l.root=i.node,l.graph}}(),i.node=function(n){var e=l.soul(n);if(e)return h({},e,n)},function(){function n(n,e){var r,o;if(l._!==e)this.obj[e]=(r=t.link.is(n))?(o=this.opt.seen[r])?o:this.opt.seen[r]=i.to(this.graph,r,this.opt):n;else{if(f(n,t.link._))return;this.obj[e]=d(n)}}i.to=function(e,t,l){if(e){var r={};return p(e[t],n,{obj:r,graph:e,opt:l=l||{seen:{}}}),r}}}();var o,u=e.obj,a=u.is,s=u.del,c=u.has,f=u.empty,h=u.put,p=u.map,d=u.copy;n.exports=i}))(r,"./graph"),r((function(n){r("./onto"),n.exports=function(n,e){if(this.on){if("function"!=typeof n){if(!n||!e)return;var t=(this.tag||"")[l=n["#"]||n];if(!t)return;return t=this.on(l,e),clearTimeout(t.err),!0}var l=e&&e["#"]||Math.random().toString(36).slice(2);if(!n)return l;var r=this.on(l,n,e);return r.err=r.err||setTimeout((function(){r.next({err:"Error: No ACK yet.",lack:!0}),r.off()}),(this.opt||{}).lack||9e3),l}}}))(r,"./ask"),r((function(n){var e=r("./type");n.exports=function(n){var t={s:{}},l=t.s;n=n||{max:1e3,age:27e3},t.check=function(n){return!!l[n]&&r(n)};var r=t.track=function(e){var r=l[e]||(l[e]={});return r.was=+new Date,t.to||(t.to=setTimeout(t.drop,n.age+9)),r};return t.drop=function(r){var i=+new Date;e.obj.map(l,(function(e,t){e&&(r||n.age)>i-e.was||delete l[t]})),t.to=null,console.STAT&&(r=+new Date-i)>9&&console.STAT(i,r,"dup drop")},t}}))(r,"./dup"),r((function(n){function e(n){return n instanceof e?(this._={$:this}).$:this instanceof e?e.create(this._={$:this,opt:n}):new e(n)}e.is=function(n){return n instanceof e||n&&n._&&n===n._.$||!1},e.version=.202,(e.chain=e.prototype).toJSON=function(){};var t=r("./type");t.obj.to(t,e),e.HAM=r("./HAM"),e.val=r("./val"),e.node=r("./node"),e.state=r("./state"),e.graph=r("./graph"),e.on=r("./onto"),e.ask=r("./ask"),e.dup=r("./dup"),e.puff=r("./puff"),function(){function n(l){if(l)if(l.out!==n){var r,i=this.as,o=i.at||i,u=o.$,a=o.dup,s=l.DBG;(r=l["#"])||(r=l["#"]=c(9)),a.check(r)||(a.track(r),l._="function"==typeof(r=l._)?r:function(){},l.$&&l.$===(l.$._||"").$||(l.$=u),o.ask(l["@"],l)||(s&&(s.u=+new Date),l.get&&e.on._get(l,u),!l.put)?(s&&(s.uc=+new Date),this.to.next(l),s&&(s.ua=+new Date),l.out=n,o.on("out",l),s&&(s.ue=+new Date)):t(l))}else this.to.next(l)}function t(n){if(n){var t,i,s=n._||"",c=s.root=((s.$=n.$||"")._||"").root,f=n.put,h=n["#"],p=s.DBG=n.DBG;if(f["#"]&&f["."])c.on("put",n);else{s.out=n,s.lot={s:0,more:1};var d=+new Date;for(var g in p&&(p.p=d),f){var m,v=f[g];if(!v){t=u+a(g)+"no node.";break}if(!(i=v._)){t=u+a(g)+"no meta.";break}if(g!==i[y]){t=u+a(g)+"soul not same.";break}if(!(m=i[F])){t=u+a(g)+"no state.";break}for(var b in v)if(_!==b){var k=v[b],x=m[b];if(l===x){t=u+a(b)+"on"+a(g)+"no state.";break}if(!w(k)){t=u+a(b)+"on"+a(g)+"bad "+typeof k+a(k);break}r(k,b,g,x,n)}if(t)break}p&&(p.pe=+new Date),console.STAT&&(console.STAT(d,+new Date-d,"mix"),console.STAT(d,s.lot.s,"mix #")),(s.err=t)?c.on("in",{"@":h,err:e.log(t)}):(--s.lot.more||o(s),s.stun||n["@"]||c.on("in",{"@":h,ok:-1}))}}}function r(n,e,t,l,i){var o,u=i._||"",a=u.root,c=a.graph[t]||k,p=v(c,e,1),d=c[e],g=h(),m=s(g,l,p,n,d);if(!m.incoming){if(m.defer){var y=l-g;return setTimeout((function(){r(n,e,t,l,i)}),y>f?f:y),u.to||a.on("in",{"@":i["#"],err:y}),u.to=1,y}if(!u.miss)return}(o=u.lot||"").s++,o.more++,(u.stun||(u.stun={}))[t+e]=1;var b=u.DBG;b&&(b.ph=b.ph||+new Date),a.on("put",{"#":i["#"],"@":i["@"],put:{"#":t,".":e,":":n,">":l},_:u})}function i(n){var e;(e=(n._||"").DBG)&&(e.pa=+new Date,e.pm=e.pm||+new Date);var t,r=this.as.graph,i=n._,u=n.put,a=u["#"],s=u["."],c=u[":"],f=u[">"];r[a]=m(r[a],s,f,c,a),function(n,e,t,l,r){var i,o,u=n.root;if((u.opt||"").super&&u.$.get(e),!(u&&(o=u.next)&&(o=o[e])&&o.$))return;(i=n.put||(n.put={}))[e]=m(i[e],t,r,l,e),o.put=m(o.put,t,r,l,e)}(i,a,s,l!==(t=u["="])?t:c,f),(t=i.out)&&(t=t.put)&&(t[a]=m(t[a],s,f,c,a)),--i.lot.more||o(i),this.to.next(n)}function o(e){if(!e.err){var t,l={},r=((e.$||"")._||"").root,i=(r||"").next||"",o=e.put,u=+new Date;for(var a in o){var s=o[a];(t=i[a])&&t.$&&(r.stop=l,t.on("in",{$:t.$,get:a,put:s}),r.stop=null)}console.STAT&&console.STAT(u,+new Date-u,"fire"),e.DBG&&(e.DBG.f=+new Date),(t=e.out)&&(t.out=n,r.on("out",t))}}e.create=function(t){t.root=t.root||t,t.graph=t.graph||{},t.on=t.on||e.on,t.ask=t.ask||e.ask,t.dup=t.dup||e.dup();var l=t.$.opt(t.opt);return t.once||(t.on("in",n,t),t.on("out",n,t),t.on("put",i,t),e.on("create",t),t.on("create",t)),t.once=1,l},e.on.put=t;var u="Error: Invalid graph!",a=function(n){return" '"+(""+n).slice(0,9)+"...' "},s=e.HAM,f=2147483647,h=e.state}(),function(){function n(n,t,l,r){var i=this,o=e.state.is(l,t);if(!o)return i.err="Error: No state on '"+t+"' in node '"+r+"'!";var u=i.graph[r]||k,a=e.state.is(u,t,!0),s=e.HAM(i.machine,o,a,n,u[t]);s.incoming?(i.put[r]=e.state.to(l,t,i.put[r]),(i.diff||(i.diff={}))[r]=e.state.to(l,t,i.diff[r]),i.souls[r]=!0):s.defer&&(i.defer=o<(i.defer||1/0)?o:i.defer)}function t(n,e){var t=this,l=t.$._,u=(l.next||k)[e];if(!u){if(!(l.opt||k).super)return void(t.souls[e]=!1);u=t.$.get(e)._}var a=t.map[e]={put:n,get:e,$:u.$},s={ctx:t,msg:a};t.async=!!l.tag.node,t.ack&&(a["@"]=t.ack),g(n,r,s),t.async&&(t.and||l.on("node",(function(n){this.to.next(n),n===t.map[n.get]&&(t.souls[n.get]=!1,g(n.put,i,n),g(t.souls,(function(n){if(n)return n}))||t.c||(t.c=1,this.off(),g(t.map,o,t)))})),t.and=!0,l.on("node",a))}function r(n,t){var l=this.ctx,r=l.graph,i=this.msg,o=i.get,u=i.put,a=i.$._;r[o]=e.state.to(u,t,r[o]),l.async||(a.put=e.state.to(u,t,a.put))}function i(n,t){var l=this.$._;l.put=e.state.to(this.put,t,l.put)}function o(n){n.$&&(this.cat.stop=this.stop,n.$._.on("in",n),this.cat.stop=null)}function u(n,e){if(n!==this.graph[e])return!0}e.on._put=function(r,i){var a=i._,s={$:i,graph:a.graph,put:{},map:{},souls:{},machine:e.state(),ack:r["@"],cat:a,stop:{}};if(e.obj.map(r.put,u,s)){if(e.graph.is(r.put,null,n,s)||(s.err="Error: Invalid graph!"),s.err)return a.on("in",{"@":r["#"],err:e.log(s.err)});if(g(s.put,t,s),s.async||g(s.map,o,s),l!==s.defer){var c=s.defer-s.machine;setTimeout((function(){e.on._put(r,i)}),c>MD?MD:c)}s.diff&&a.on("put",d(r,{put:s.diff}))}},e.on._get=function(n,t){var l=t._,r=n.get,i=r[y],o=l.graph[i],u=r[b],a=(l.next||(l.next={}))[i],s=(n._||"").DBG=n.DBG;if(s&&(s.g=+new Date),!o)return l.on("get",n);if(u){if("string"!=typeof u||!p(o,u))return l.on("get",n);o=e.state.to(o,u)}else o=e.window?e.obj.copy(o):o;o=e.graph.node(o);var c=function(){};c.ram=c.faith=!0,c.$=n.$,s&&(s.ga=+new Date),l.on("in",{"@":n["#"],put:o,ram:1,$:t,_:c}),s&&(s.gm=+new Date),l.on("get",n),s&&(s.gd=+new Date)}}(),e.chain.opt=function(n){var t=this._,l=(n=n||{}).peers||n;return h(n)||(n={}),h(t.opt)||(t.opt=n),s(l)&&(l=[l]),u(l)&&(l=g(l,(function(n,e,t){(e={}).id=e.url=n,t(n,e)})),h(t.opt.peers)||(t.opt.peers={}),t.opt.peers=d(l,t.opt.peers)),t.opt.peers=t.opt.peers||{},g(n,(function n(e,t){!p(this,t)||a.is(e)||f.empty(e)?this[t]=e:e&&e.constructor!==Object&&!u(e)||g(e,n,this[t])}),t.opt),e.on("opt",t),e.obj.native(),this},e.obj.native=function(){var n=Object.prototype;for(var e in n)console.log("Native Object.prototype polluted, reverting",e),delete n[e]};var l,o,u=e.list.is,a=e.text,s=a.is,c=a.random,f=e.obj,h=f.is,p=f.has,d=f.to,g=f.map,m=e.state.ify,v=e.state.is,y=e.val.link._,b=".",_=e.node._,w=e.val.is,F=e.state._,k={};(e.log=function(){return!e.log.off&&o.log.apply(o,arguments),[].slice.call(arguments).join(" ")}).once=function(n,t,l){return(l=e.log.once)[n]=l[n]||0,l[n]++||e.log(t)},"undefined"!=typeof window&&((window.GUN=window.Gun=e).window=window);try{void 0!==i&&(i.exports=e)}catch(n){}n.exports=e,(e.window||"").console=(e.window||"").console||{log:function(){}},(o=console).only=function(n,e){return o.only.i&&n===o.only.i&&o.only.i++&&(o.log.apply(o,arguments)||e)},e.log.once("welcome","Hello wonderful person! :) Thanks for using GUN, please ask for help on http://chat.gun.eco if anything takes you longer than 5min to figure out!")}))(r,"./root"),r((function(){var n=r("./root");n.chain.back=function(l,r){if(-1===(l=l||1)||1/0===l)return this._.root.$;if(1===l)return(this._.back||this._).$;var i=this._;if("string"==typeof l&&(l=l.split(".")),l instanceof Array){for(var o=0,u=l.length,a=i;o(n.acks||0)&&this.off(),n.ack&&n.ack(t,this)}),n.opt),l=0,r=e.root.now;a.del(e.root,"now");var i=e.root.mum;e.root.mum={},n.ref._.on("out",{$:n.ref,put:n.out=n.env.graph,opt:n.opt,"#":t}),e.root.mum=i?a.to(i,e.root.mum):i,e.root.now=r,n.via._.on("res",{}),delete n.via._.tag.res}),n),n.res&&n.res())}function t(n,e,t,r){var i=this,o=u.is(n);!e&&r.path.length&&(i.res||d)((function(){for(var e=r.path,t=i.ref,a=0,s=e.length;a .once, apologies unexpected."),this.once(n,e)},t.chain.once=function(n,r){var i=this,o=i._,u=o.put;if(0"],a[":"],s),n["@"]||((r[n["#"]]=e=(n._||"").lot||{}).lS=(e.lS||0)+1),(i+=1)>=(t.batch||1e3))return u();l||(l=setTimeout(u,t.wait||1))})),e.on("get",(function(n){function t(){if(i&&(l=i["#"])){var t=i["."];(r=o[l]||undefined)&&t&&(r=Gun.state.to(r,t)),e.on("in",{"@":n["#"],put:Gun.graph.node(r),lS:1})}}this.to.next(n);var l,r,i=n.get;Gun.debug?setTimeout(t,1):t()}));var u=function u(a){var s;i=0,clearTimeout(l),l=!1;var c=r;r={},a&&(o=a);try{n.setItem(t.prefix,JSON.stringify(o))}catch(n){Gun.log(s=(n||"localStorage failure")+" Consider using GUN's IndexedDB plugin for RAD for more storage space, https://gun.eco/docs/RAD#install"),e.on("localStorage:error",{err:s,file:t.prefix,flush:o,retry:u})}(s||Gun.obj.empty(t.peers))&&Gun.obj.map(c,(function(n,t){if(n){if(n.more)return void(r[t]=n);n.s!==n.lS&&(s="localStorage batch not same.")}e.on("in",{"@":t,err:s,ok:0})}))}}}))}}))(r,"./adapters/localStorage"),r((function(n){var e=r("../type");!function(){function n(n,l){var r;if(!(l instanceof Object))return l;var i=+new Date;return e.obj.map(Object.keys(l).sort(),t,{to:r={},on:l}),console.STAT&&console.STAT(i,+new Date-i,"sort"),r}function t(n){this.to[n]=this.on[n]}var l=JSON.stringify;e.obj.hash=function(t,r){if(r||undefined!==(t=l(t,n)))return e.text.hash(r||t||"")},e.obj.hash.sort=n}();var t=e.obj.is;try{n.exports=function(n){function l(n){var e=n.batch,t="string"==typeof e;if(t&&(e+="]"),n.batch=n.tail=null,e&&!(t?3>e.length:!e.length)){if(!t)try{e=1===e.length?e[0]:JSON.stringify(e)}catch(n){return o.log("DAM JSON stringify error",n)}e&&r(e,n)}}function r(n,e){try{var t=e.wire;e.say?e.say(n):t.send&&t.send(n),i.say.d+=n.length||0,++i.say.c}catch(t){(e.queue=e.queue||[]).push(n)}}var i=function(){},o=n.opt||{};o.log=o.log||console.log,o.gap=o.gap||o.wait||0,o.pack=o.pack||.3*(o.memory?1e3*o.memory*1e3:1399e6),o.puff=o.puff||9;var u,a,s,c=setTimeout.puff||setTimeout,f=n.dup,h=f.check,p=f.track,d=i.hear=function(r,u){if(r){if(o.pack<=r.length)return i.say({dam:"!",err:"Message too big!"},u);var a,s,f,g=r[0];if(i===this&&(d.d+=r.length||0,++d.c),"["!==g){if("{"===g||(r["#"]||t(r))&&(a=r)){try{a=a||JSON.parse(r)}catch(n){return o.log("DAM JSON parse error",n)}if(!a)return;if(a.DBG&&(a.DBG=f={DBG:a.DBG}),f&&(f.hp=+new Date),(s=a["#"])||(s=a["#"]=e.text.random(9)),g=h(s))return;if((a._=function(){}).via=i.leap=u,g=a.dam)return(g=i.hear[g])&&g(a,u,n),void p(s);var m,v=+new Date;f&&(f.is=v),n.on("in",a),f&&(f.hd=+new Date),console.STAT&&(m=+new Date-v)>9&&console.STAT(v,m,"msg"),p(s).via=u,i.leap=null}}else{try{a=JSON.parse(r)}catch(n){o.log("DAM JSON parse error",n)}if(r="",!a)return;console.STAT&&console.STAT(+new Date,a.length,"# on hear batch");var y=o.puff;!function n(){for(var e,t=+new Date,r=0;r9&&console.STAT(b,y,"0ms TO",d,t.id),l(t)}),o.gap),r(g,t)}}else{if(!e.obj.is(t||o.peers))return!1;var _=o.peers,w=Object.keys(t||o.peers||{});!function e(){var t=+new Date;u=1;var l=v.raw;v.raw=g;for(var r,i=0;i<9&&(r=(w||"")[i++]);)(r=_[r])&&s(n,r);v.raw=l,u=0,w=w.slice(i),console.STAT&&console.STAT(t,+new Date-t,"say loop"),w.length&&(c(e,0),p(n["@"]))}()}},i.say.c=i.say.d=0,function(){i.raw=function(e){if(!e)return"";var t,l=e._||{};if(t=l.raw)return t;if("string"==typeof e)return e;var r=n(e);return l&&(r||"").length<1e5&&(l.raw=r),r};var n=JSON.stringify}(),i.hi=function(t){var l=t.wire||{};t.id?o.peers[t.url||t.id]=t:(l=t.id=t.id||e.text.random(9),i.say({dam:"?",pid:n.opt.pid},o.peers[l]=t),delete f.s[t.last]),t.met=t.met||+new Date,l.hied||n.on(l.hied="hi",t),l=t.queue,t.queue=[],e.obj.map(l,(function(n){r(n,t)})),e.obj.native&&e.obj.native()},i.bye=function(e){n.on("bye",e);var t=+new Date;t-=e.met||t,i.bye.time=((i.bye.time||t)+t)/2},i.hear["!"]=function(n){o.log("Error:",n.err)},i.hear["?"]=function(n,e){n.pid&&(e.pid||(e.pid=n.pid),n["@"])||(i.say({dam:"?",pid:o.pid,"@":n["#"]},e),delete f.s[e.last])},n.on("create",(function(n){n.opt.pid=n.opt.pid||e.text.random(9),this.to.next(n),n.on("out",i.say)})),n.on("bye",(function(n,t){this.to.next(n=o.peers[n.id||n]||n),n.bye?n.bye():(t=n.wire)&&t.close&&t.close(),e.obj.del(o.peers,n.id),n.wire=null}));var g={};return n.on("bye",(function(n,e){this.to.next(n),(e=n.url)&&(g[e]=!0,setTimeout((function(){delete g[e]}),o.lack||9e3))})),n.on("hi",(function(t,l){this.to.next(t),(l=t.url)&&g[l]&&(delete g[l],o.super||e.obj.map(n.next,(function(r,o){(l={})[o]=n.graph[o],i.say({"##":e.obj.hash(l),get:{"#":o}},t)})))})),i}}catch(n){}}))(r,"./adapters/mesh"),r((function(){var n=r("../index");n.Mesh=r("./mesh"),n.on("opt",(function(e){function t(n){try{if(!n||!n.url)return t&&t(n);var e=n.url.replace(/^http/,"ws"),t=n.wire=new i.WebSocket(e);return t.onclose=function(){i.mesh.bye(n),r(n)},t.onerror=function(){r(n)},t.onopen=function(){i.mesh.hi(n)},t.onmessage=function(e){e&&i.mesh.hear(e.data||e,n)},t}catch(n){}}function r(n){clearTimeout(n.defer),s&&n.retry<=0||(n.retry=(n.retry||i.retry||60)-1,n.defer=setTimeout((function e(){if(s&&s.hidden)return setTimeout(e,2e3);t(n)}),2e3))}this.to.next(e);var i=e.opt;if(!e.once&&!1!==i.WebSocket){var o;"undefined"!=typeof window&&(o=window),void 0!==l&&(o=l),o=o||{};var u=i.WebSocket||o.WebSocket||o.webkitWebSocket||o.mozWebSocket;if(u){i.WebSocket=u;var a=i.mesh=i.mesh||n.Mesh(e);a.wire=i.wire=t,setTimeout((function(){e.on("out",{dam:"hi"})}),1);var s="undefined"!=typeof document&&document}}}))}))(r,"./adapters/websocket")}()}).call(this,t("RoC8")(n),t("oPUo").setImmediate,t("pCvA"))},K4DB:function(n,e,t){var l=t("e+GP").default,r=t("T1e2");n.exports=function(n,e){return!e||"object"!==l(e)&&"function"!=typeof e?r(n):e},n.exports.default=n.exports,n.exports.__esModule=!0},KlUR:function(n,e){"use strict";function t(n){var e=n.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=n.indexOf("=");return-1===t&&(t=e),[t,t===e?0:4-t%4]}function l(n,e,t){for(var l,i=[],o=e;o>18&63]+r[l>>12&63]+r[l>>6&63]+r[63&l]);return i.join("")}e.byteLength=function(n){var e=t(n),l=e[1];return 3*(e[0]+l)/4-l},e.toByteArray=function(n){var e,l,r=t(n),u=r[0],a=r[1],s=new o(function(n,e,t){return 3*(e+t)/4-t}(0,u,a)),c=0,f=a>0?u-4:u;for(l=0;l>16&255,s[c++]=e>>8&255,s[c++]=255&e;return 2===a&&(e=i[n.charCodeAt(l)]<<2|i[n.charCodeAt(l+1)]>>4,s[c++]=255&e),1===a&&(e=i[n.charCodeAt(l)]<<10|i[n.charCodeAt(l+1)]<<4|i[n.charCodeAt(l+2)]>>2,s[c++]=e>>8&255,s[c++]=255&e),s},e.fromByteArray=function(n){for(var e,t=n.length,i=t%3,o=[],u=16383,a=0,s=t-i;as?s:a+u));return 1===i?o.push(r[(e=n[t-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(n[t-2]<<8)+n[t-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=u.length;a(h||"￿")&&(_=0),_&&(g=t(g,v,y,i),r!==g))return g}else if(l.branch&&(g=t(r,v,y,i),r!==g))return g;if(i=m,!s&&(g=n(b,t,l,i),r!==g))return g;i.pop()}}}},Object.keys=Object.keys||function(n){return i(n,(function(n,e,t){t(e)}))},"undefined"!=typeof window){var l=window.Gun;window.Radix=e}else{l=t("K/f/");try{n.exports=e}catch(n){}}var r,i=l.obj.map,o={},u=String.fromCharCode(24)}()},LnBm:function(n,e,t){!function(e){"use strict";function l(n,e,t){return e<=n&&n<=t}function r(n){if(void 0===n)return{};if(n===Object(n))return n;throw TypeError("Could not convert argument to dictionary")}function i(n){return 0<=n&&n<=127}function o(n){this.tokens=[].slice.call(n),this.tokens.reverse()}function u(n,e){if(n)throw TypeError("Decoder error");return e||65533}function a(n){throw TypeError("The code point "+n+" could not be encoded.")}function s(n){return n=String(n).trim().toLowerCase(),Object.prototype.hasOwnProperty.call(U,n)?U[n]:null}function c(n,e){return e&&e[n]||null}function f(n,e){var t=e.indexOf(n);return-1===t?null:t}function h(n){if(!("encoding-indexes"in e))throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?");return e["encoding-indexes"][n]}function p(n,e){if(!(this instanceof p))throw TypeError("Called as a function. Did you forget 'new'?");n=void 0!==n?String(n):$,e=r(e),this._encoding=null,this._decoder=null,this._ignoreBOM=!1,this._BOMseen=!1,this._error_mode="replacement",this._do_not_flush=!1;var t=s(n);if(null===t||"replacement"===t.name)throw RangeError("Unknown encoding: "+n);if(!q[t.name])throw Error("Decoder not present. Did you forget to include encoding-indexes.js first?");var l=this;return l._encoding=t,Boolean(e.fatal)&&(l._error_mode="fatal"),Boolean(e.ignoreBOM)&&(l._ignoreBOM=!0),Object.defineProperty||(this.encoding=l._encoding.name.toLowerCase(),this.fatal="fatal"===l._error_mode,this.ignoreBOM=l._ignoreBOM),l}function d(n,t){if(!(this instanceof d))throw TypeError("Called as a function. Did you forget 'new'?");t=r(t),this._encoding=null,this._encoder=null,this._do_not_flush=!1,this._fatal=Boolean(t.fatal)?"fatal":"replacement";var l=this;if(Boolean(t.NONSTANDARD_allowLegacyEncoding)){var i=s(n=void 0!==n?String(n):$);if(null===i||"replacement"===i.name)throw RangeError("Unknown encoding: "+n);if(!G[i.name])throw Error("Encoder not present. Did you forget to include encoding-indexes.js first?");l._encoding=i}else l._encoding=s("utf-8"),void 0!==n&&"console"in e&&console.warn("TextEncoder constructor called with encoding label, which is ignored.");return Object.defineProperty||(this.encoding=l._encoding.name.toLowerCase()),l}function g(n){var e=n.fatal,t=0,r=0,i=0,o=128,a=191;this.handler=function(n,s){if(s===B&&0!==i)return i=0,u(e);if(s===B)return z;if(0===i){if(l(s,0,127))return s;if(l(s,194,223))i=1,t=31&s;else if(l(s,224,239))224===s&&(o=160),237===s&&(a=159),i=2,t=15&s;else{if(!l(s,240,244))return u(e);240===s&&(o=144),244===s&&(a=143),i=3,t=7&s}return null}if(!l(s,o,a))return t=i=r=0,o=128,a=191,n.prepend(s),u(e);if(o=128,a=191,t=t<<6|63&s,(r+=1)!==i)return null;var c=t;return t=i=r=0,c}}function m(){this.handler=function(n,e){if(e===B)return z;if(R(e))return e;var t,r;l(e,128,2047)?(t=1,r=192):l(e,2048,65535)?(t=2,r=224):l(e,65536,1114111)&&(t=3,r=240);for(var i=[(e>>6*t)+r];t>0;){i.push(128|63&e>>6*(t-1)),t-=1}return i}}function v(n,e){var t=e.fatal;this.handler=function(e,l){if(l===B)return z;if(i(l))return l;var r=n[l-128];return null===r?u(t):r}}function y(n){this.handler=function(e,t){if(t===B)return z;if(R(t))return t;var l=f(t,n);return null===l&&a(t),l+128}}function b(n){var e=n.fatal,t=0,r=0,o=0;this.handler=function(n,a){if(a===B&&0===t&&0===r&&0===o)return z;var s;if(a!==B||0===t&&0===r&&0===o||(t=0,r=0,o=0,u(e)),0!==o){s=null,l(a,48,57)&&(s=function(n){if(n>39419&&n<189e3||n>1237575)return null;if(7457===n)return 59335;var e,t=0,l=0,r=h("gb18030-ranges");for(e=0;e>8,l=255&n;return e?[t,l]:[l,t]}function D(n,e){var t=e.fatal,r=null,i=null;this.handler=function(e,o){if(o===B&&(null!==r||null!==i))return u(t);if(o===B&&null===r&&null===i)return z;if(null===r)return r=o,null;var a;if(a=n?(r<<8)+o:(o<<8)+r,r=null,null!==i){var s=i;return i=null,l(a,56320,57343)?65536+1024*(s-55296)+(a-56320):(e.prepend(j(a,n)),u(t))}return l(a,55296,56319)?(i=a,null):l(a,56320,57343)?u(t):a}}function P(n){this.handler=function(e,t){if(t===B)return z;if(l(t,0,65535))return j(t,n);var r=j(55296+(t-65536>>10),n),i=j(56320+(t-65536&1023),n);return r.concat(i)}}function I(){this.handler=function(n,e){return e===B?z:i(e)?e:63360+e-128}}function M(){this.handler=function(n,e){return e===B?z:R(e)?e:l(e,63360,63487)?e-63360+128:a(e)}}n.exports&&!e["encoding-indexes"]&&(e["encoding-indexes"]=t("dLXP")["encoding-indexes"]);var L=Math.floor,R=i,B=-1;o.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.pop():B},prepend:function(n){if(Array.isArray(n))for(var e=n;e.length;)this.tokens.push(e.pop());else this.tokens.push(n)},push:function(n){if(Array.isArray(n))for(var e=n;e.length;)this.tokens.unshift(e.shift());else this.tokens.unshift(n)}};var z=-1,N=[{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"UTF-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"IBM866"},{labels:["csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2"],name:"ISO-8859-2"},{labels:["csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3"],name:"ISO-8859-3"},{labels:["csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4"],name:"ISO-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso8859-5","iso88595","iso_8859-5","iso_8859-5:1988"],name:"ISO-8859-5"},{labels:["arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987"],name:"ISO-8859-6"},{labels:["csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek"],name:"ISO-8859-7"},{labels:["csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual"],name:"ISO-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"ISO-8859-8-I"},{labels:["csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6"],name:"ISO-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"ISO-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"ISO-8859-14"},{labels:["csisolatin9","iso-8859-15","iso8859-15","iso885915","iso_8859-15","l9"],name:"ISO-8859-15"},{labels:["iso-8859-16"],name:"ISO-8859-16"},{labels:["cskoi8r","koi","koi8","koi8-r","koi8_r"],name:"KOI8-R"},{labels:["koi8-ru","koi8-u"],name:"KOI8-U"},{labels:["csmacintosh","mac","macintosh","x-mac-roman"],name:"macintosh"},{labels:["dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874"],name:"windows-874"},{labels:["cp1250","windows-1250","x-cp1250"],name:"windows-1250"},{labels:["cp1251","windows-1251","x-cp1251"],name:"windows-1251"},{labels:["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"],name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows-1253"},{labels:["cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254"],name:"windows-1254"},{labels:["cp1255","windows-1255","x-cp1255"],name:"windows-1255"},{labels:["cp1256","windows-1256","x-cp1256"],name:"windows-1256"},{labels:["cp1257","windows-1257","x-cp1257"],name:"windows-1257"},{labels:["cp1258","windows-1258","x-cp1258"],name:"windows-1258"},{labels:["x-mac-cyrillic","x-mac-ukrainian"],name:"x-mac-cyrillic"}],heading:"Legacy single-byte encodings"},{encodings:[{labels:["chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk"],name:"GBK"},{labels:["gb18030"],name:"gb18030"}],heading:"Legacy multi-byte Chinese (simplified) encodings"},{encodings:[{labels:["big5","big5-hkscs","cn-big5","csbig5","x-x-big5"],name:"Big5"}],heading:"Legacy multi-byte Chinese (traditional) encodings"},{encodings:[{labels:["cseucpkdfmtjapanese","euc-jp","x-euc-jp"],name:"EUC-JP"},{labels:["csiso2022jp","iso-2022-jp"],name:"ISO-2022-JP"},{labels:["csshiftjis","ms932","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis"],name:"Shift_JIS"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:["cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949"],name:"EUC-KR"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","hz-gb-2312","iso-2022-cn","iso-2022-cn-ext","iso-2022-kr"],name:"replacement"},{labels:["utf-16be"],name:"UTF-16BE"},{labels:["utf-16","utf-16le"],name:"UTF-16LE"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}],U={};N.forEach((function(n){n.encodings.forEach((function(n){n.labels.forEach((function(e){U[e]=n}))}))}));var H,W,G={},q={},$="utf-8";Object.defineProperty&&(Object.defineProperty(p.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),Object.defineProperty(p.prototype,"fatal",{get:function(){return"fatal"===this._error_mode}}),Object.defineProperty(p.prototype,"ignoreBOM",{get:function(){return this._ignoreBOM}})),p.prototype.decode=function(n,e){var t;t="object"==typeof n&&n instanceof ArrayBuffer?new Uint8Array(n):"object"==typeof n&&"buffer"in n&&n.buffer instanceof ArrayBuffer?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(0),e=r(e),this._do_not_flush||(this._decoder=q[this._encoding.name]({fatal:"fatal"===this._error_mode}),this._BOMseen=!1),this._do_not_flush=Boolean(e.stream);for(var l,i=new o(t),u=[];;){var a=i.read();if(a===B)break;if((l=this._decoder.handler(i,a))===z)break;null!==l&&(Array.isArray(l)?u.push.apply(u,l):u.push(l))}if(!this._do_not_flush){do{if((l=this._decoder.handler(i,i.read()))===z)break;null!==l&&(Array.isArray(l)?u.push.apply(u,l):u.push(l))}while(!i.endOfStream());this._decoder=null}return function(n){return-1===["UTF-8","UTF-16LE","UTF-16BE"].indexOf(this._encoding.name)||this._ignoreBOM||this._BOMseen||(n.length>0&&65279===n[0]?(this._BOMseen=!0,n.shift()):n.length>0&&(this._BOMseen=!0)),function(n){for(var e="",t=0;t>10),56320+(1023&l)))}return e}(n)}.call(this,u)},Object.defineProperty&&Object.defineProperty(d.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),d.prototype.encode=function(n,e){n=void 0===n?"":String(n),e=r(e),this._do_not_flush||(this._encoder=G[this._encoding.name]({fatal:"fatal"===this._fatal})),this._do_not_flush=Boolean(e.stream);for(var t,l=new o(function(n){for(var e=String(n),t=e.length,l=0,r=[];l57343)r.push(i);else if(56320<=i&&i<=57343)r.push(65533);else if(55296<=i&&i<=56319)if(l===t-1)r.push(65533);else{var o=e.charCodeAt(l+1);56320<=o&&o<=57343?(r.push(65536+((1023&i)<<10)+(1023&o)),l+=1):r.push(65533)}l+=1}return r}(n)),i=[];;){var u=l.read();if(u===B)break;if((t=this._encoder.handler(l,u))===z)break;Array.isArray(t)?i.push.apply(i,t):i.push(t)}if(!this._do_not_flush){for(;(t=this._encoder.handler(l,l.read()))!==z;)Array.isArray(t)?i.push.apply(i,t):i.push(t);this._encoder=null}return new Uint8Array(i)},G["UTF-8"]=function(n){return new m(n)},q["UTF-8"]=function(n){return new g(n)},"encoding-indexes"in e&&N.forEach((function(n){"Legacy single-byte encodings"===n.heading&&n.encodings.forEach((function(n){var e=n.name,t=h(e.toLowerCase());q[e]=function(n){return new v(t,n)},G[e]=function(n){return new y(t,n)}}))})),q.GBK=function(n){return new b(n)},G.GBK=function(n){return new _(n,!0)},G.gb18030=function(n){return new _(n)},q.gb18030=function(n){return new b(n)},G.Big5=function(n){return new F(n)},q.Big5=function(n){return new w(n)},G["EUC-JP"]=function(n){return new x(n)},q["EUC-JP"]=function(n){return new k(n)},G["ISO-2022-JP"]=function(n){return new S(n)},q["ISO-2022-JP"]=function(n){return new C(n)},G.Shift_JIS=function(n){return new E(n)},q.Shift_JIS=function(n){return new O(n)},G["EUC-KR"]=function(n){return new A(n)},q["EUC-KR"]=function(n){return new T(n)},G["UTF-16BE"]=function(n){return new P(!0,n)},q["UTF-16BE"]=function(n){return new D(!0,n)},G["UTF-16LE"]=function(n){return new P(!1,n)},q["UTF-16LE"]=function(n){return new D(!1,n)},G["x-user-defined"]=function(n){return new M(n)},q["x-user-defined"]=function(n){return new I(n)},e.TextEncoder||(e.TextEncoder=d),e.TextDecoder||(e.TextDecoder=p),n.exports&&(n.exports={TextEncoder:e.TextEncoder,TextDecoder:e.TextDecoder,EncodingIndexes:e["encoding-indexes"]})}(this||{})},NS33:function(n,e,t){"use strict";function l(){}function r(){}var i=t("E02R");r.resetWarningCache=l,n.exports=function(){function n(n,e,t,l,r,o){if(o!==i){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return n}n.isRequired=n;var t={array:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:l};return t.PropTypes=t,t}},NToG:function(n){function e(n,e){for(var t=0;t=0||(r[t]=n[t]);return r},n.exports.default=n.exports,n.exports.__esModule=!0},Pidb:function(n,e,t){"use strict";function l(){return window.Notification&&"granted"===Notification.permission}function r(n){for(var e=(n+"=".repeat((4-n.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),t=window.atob(e),l=new Uint8Array(t.length),r=0;r=0?a:0,h.a.local.get("unseenTotal").put(a),document.title=a?"("+a+") "+F:F}},webPushSubscriptions:w,subscribeToWebPush:i,getWebPushSubscriptions:function(){return new Promise((function(n,e){var t,l;return t=c.a.getKey(),Promise.resolve(v.a.SEA.secret(t.epub,t)).then((function(t){try{return l=t,h.a.public.user().get("webPushSubscriptions").map().on((function(n){return new Promise((function(e,t){return n?Promise.resolve(v.a.SEA.decrypt(n,l)).then((function(n){try{return o(n,!1),e()}catch(n){return t(n)}}),t):e()}))})),n()}catch(n){return e(n)}}),e)}))},removeSubscription:function(n){delete w[n],h.a.public.user().get("webPushSubscriptions").get(n).put(null),k()}}},QZIi:function(n,e,t){"use strict";(function(n){function l(e,t){var l,r,i,o=void 0!==(l=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:n).document&&l.document.attachEvent;if(!o){var u=(i=l.requestAnimationFrame||l.mozRequestAnimationFrame||l.webkitRequestAnimationFrame||function(n){return l.setTimeout(n,20)},function(n){return i(n)}),a=(r=l.cancelAnimationFrame||l.mozCancelAnimationFrame||l.webkitCancelAnimationFrame||l.clearTimeout,function(n){return r(n)}),s=function(n){var e=n.__resizeTriggers__,t=e.firstElementChild,l=e.lastElementChild,r=t.firstElementChild;l.scrollLeft=l.scrollWidth,l.scrollTop=l.scrollHeight,r.style.width=t.offsetWidth+1+"px",r.style.height=t.offsetHeight+1+"px",t.scrollLeft=t.scrollWidth,t.scrollTop=t.scrollHeight},c=function(n){if(!(n.target.className&&"function"==typeof n.target.className.indexOf&&n.target.className.indexOf("contract-trigger")<0&&n.target.className.indexOf("expand-trigger")<0)){var e=this;s(this),this.__resizeRAF__&&a(this.__resizeRAF__),this.__resizeRAF__=u((function(){(function(n){return n.offsetWidth!=n.__resizeLast__.width||n.offsetHeight!=n.__resizeLast__.height})(e)&&(e.__resizeLast__.width=e.offsetWidth,e.__resizeLast__.height=e.offsetHeight,e.__resizeListeners__.forEach((function(t){t.call(e,n)})))}))}},f=!1,h="",p="animationstart",d="Webkit Moz O ms".split(" "),g="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),m=l.document.createElement("fakeelement");if(void 0!==m.style.animationName&&(f=!0),!1===f)for(var v=0;v div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',l=n.head||n.getElementsByTagName("head")[0],r=n.createElement("style");r.id="detectElementResize",r.type="text/css",null!=e&&r.setAttribute("nonce",e),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(n.createTextNode(t)),l.appendChild(r)}}(r),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=r.createElement("div")).className="resize-triggers";var u='
';if(window.trustedTypes){var a=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return u}});n.__resizeTriggers__.innerHTML=a.createHTML("")}else n.__resizeTriggers__.innerHTML=u;n.appendChild(n.__resizeTriggers__),s(n),n.addEventListener("scroll",c,!0),p&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==y&&s(n)},n.__resizeTriggers__.addEventListener(p,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(t)}},removeResizeListener:function(n,e){if(o)n.detachEvent("onresize",e);else if(n.__resizeListeners__.splice(n.__resizeListeners__.indexOf(e),1),!n.__resizeListeners__.length){n.removeEventListener("scroll",c,!0),n.__resizeTriggers__.__animationListener__&&(n.__resizeTriggers__.removeEventListener(p,n.__resizeTriggers__.__animationListener__),n.__resizeTriggers__.__animationListener__=null);try{n.__resizeTriggers__=!n.removeChild(n.__resizeTriggers__)}catch(n){}}}}}t.d(e,"a",(function(){return l}))}).call(this,t("pCvA"))},Qatm:function(n){n.exports=function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)},n.exports.default=n.exports,n.exports.__esModule=!0},QfWi:function(n,e,t){"use strict";function l(n,e){return new Promise((function(l,i){return Promise.resolve(t.e(3).then(t.bind(null,"ISd2"))).then((function(t){try{return(Bn=new(0,t.BrowserQRCodeReader)).decodeFromInputVideoDevice(void 0,n).then((function(n){e(n)&&r()})).catch((function(n){null!=n&&console.error(n),null!=Bn&&null!=Bn&&r()})),l()}catch(n){return i(n)}}),i)}))}function r(){null==Bn&&null==Bn||(Bn.reset(),Bn=null)}function i(n,e){return e||(e=n.slice(0)),n.raw=e,n}function o(n,e){return e||(e=n.slice(0)),n.raw=e,n}function u(n,e){return(u=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function a(){return be}function s(n){be=n;try{localStorage.setItem("rtcConfig",JSON.stringify(be))}catch(n){}}function c(n,e){return(c=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);e&&(l=l.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,l)}return t}function h(n){for(var e=1;e-1&&(t.refIndex=n.idx),e.matches.push(t)}}))}function S(n,e){e.score=n.score}function O(n,e){var t=void 0===e?{}:e,l=t.errors,r=t.currentLocation,i=t.expectedLocation,o=t.distance,u=void 0===o?Se.distance:o,a=t.ignoreLocation,s=(void 0===l?0:l)/n.length;if(void 0===a?Se.ignoreLocation:a)return s;var c=Math.abs((void 0===i?0:i)-(void 0===r?0:r));return u?s+c/u:c?1:s}function E(n,e,t,l){var r=void 0===l?{}:l,i=r.location,o=void 0===i?Se.location:i,u=r.distance,a=void 0===u?Se.distance:u,s=r.threshold,c=void 0===s?Se.threshold:s,f=r.findAllMatches,h=void 0===f?Se.findAllMatches:f,p=r.minMatchCharLength,d=void 0===p?Se.minMatchCharLength:p,g=r.includeMatches,m=void 0===g?Se.includeMatches:g,v=r.ignoreLocation,y=void 0===v?Se.ignoreLocation:v;if(e.length>32)throw new Error("Pattern length exceeds max of 32.");for(var b,_=e.length,w=n.length,F=Math.max(0,Math.min(o,w)),k=c,x=F,C=d>1||m,S=C?Array(w):[];(b=n.indexOf(e,x))>-1;){var E=O(e,{currentLocation:b,expectedLocation:F,distance:a,ignoreLocation:y});if(k=Math.min(E,k),x=b+_,C)for(var T=0;T<_;)S[b+T]=1,T+=1}x=-1;for(var A=[],j=1,D=_+w,P=1<<_-1,I=0;I<_;I+=1){for(var M=0,L=D;M=R;N-=1){var U=N-1,H=t[n.charAt(U)];if(C&&(S[U]=+!!H),z[N]=(z[N+1]<<1|1)&H,I&&(z[N]|=(A[N+1]|A[N])<<1|1|A[N+1]),z[N]&P&&(j=O(e,{errors:I,currentLocation:U,expectedLocation:F,distance:a,ignoreLocation:y}))<=k){if(k=j,(x=U)<=F)break;R=Math.max(1,2*F-x)}}if(O(e,{errors:I+1,currentLocation:F,expectedLocation:F,distance:a,ignoreLocation:y})>k)break;A=z}var W={isMatch:x>=0,score:Math.max(.001,j)};if(C){var G=function(n,e){void 0===n&&(n=[]),void 0===e&&(e=Se.minMatchCharLength);for(var t=[],l=-1,r=-1,i=0,o=n.length;i=e&&t.push([l,r]),l=-1)}return n[i-1]&&i-l>=e&&t.push([l,i-1]),t}(S,d);G.length?m&&(W.indices=G):W.isMatch=!1}return W}function T(n){for(var e={},t=0,l=n.length;t']))),u=Object(Yn.b)(Wn||(Wn=o(['