pixelfed/public/js/app.js

1 line
24 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{"+lRy":function(t,e){},0:function(t,e,r){r("JO1w"),r("+lRy"),r("xWuY"),r("BLqG"),t.exports=r("YfGV")},"8FsP":function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"===("undefined"==typeof window?"undefined":r(window))?window:"object"===("undefined"==typeof self?"undefined":r(self))?self:this,e=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder;t.URL=t.URL||t.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var n=t.Blob,o=URL.createObjectURL,i=URL.revokeObjectURL,a=t.Symbol&&t.Symbol.toStringTag,s=!1,c=!1,f=!!t.ArrayBuffer,u=e&&e.prototype.append&&e.prototype.getBlob;try{s=2===new Blob(["ä"]).size,c=2===new Blob([new Uint8Array([1,2])]).size}catch(t){}function h(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var r=new Uint8Array(t.byteLength);r.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=r.buffer}return e}return t}))}function p(t,r){r=r||{};var n=new e;return h(t).forEach((function(t){n.append(t)})),r.type?n.getBlob(r.type):n.getBlob()}function d(t,e){return new n(h(t),e||{})}t.Blob&&(p.prototype=Blob.prototype,d.prototype=Blob.prototype);var b="function"==typeof TextEncoder?TextEncoder.prototype.encode.bind(new TextEncoder):function(e){for(var r=0,n=e.length,o=t.Uint8Array||Array,i=0,a=Math.max(32,n+(n>>1)+7),s=new o(a>>3<<3);r<n;){var l=e.charCodeAt(r++);if(l>=55296&&l<=56319){if(r<n){var c=e.charCodeAt(r);56320==(64512&c)&&(++r,l=((1023&l)<<10)+(1023&c)+65536)}if(l>=55296&&l<=56319)continue}if(i+4>s.length){a+=8,a=(a*=1+r/e.length*2)>>3<<3;var f=new Uint8Array(a);f.set(s),s=f}if(0!=(4294967168&l)){if(0==(4294965248&l))s[i++]=l>>6&31|192;else if(0==(4294901760&l))s[i++]=l>>12&15|224,s[i++]=l>>6&63|128;else{if(0!=(4292870144&l))continue;s[i++]=l>>18&7|240,s[i++]=l>>12&63|128,s[i++]=l>>6&63|128}s[i++]=63&l|128}else s[i++]=l}return s.slice(0,i)},y="function"==typeof TextDecoder?TextDecoder.prototype.decode.bind(new TextDecoder):function(t){for(var e=t.length,r=[],n=0;n<e;){var o,i,a,s,l=t[n],c=null,f=l>239?4:l>223?3:l>191?2:1;if(n+f<=e)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[n+1]))&&(s=(31&l)<<6|63&o)>127&&(c=s);break;case 3:o=t[n+1],i=t[n+2],128==(192&o)&&128==(192&i)&&(s=(15&l)<<12|(63&o)<<6|63&i)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:o=t[n+1],i=t[n+2],a=t[n+3],128==(192&o)&&128==(192&i)&&128==(192&a)&&(s=(15&l)<<18|(63&o)<<12|(63&i)<<6|63&a)>65535&&s<1114112&&(c=s)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),n+=f}var u=r.length,h="";for(n=0;n<u;)h+=String.fromCharCode.apply(String,r.slice(n,n+=4096));return h};function w(){var e=!!t.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,r=t.XMLHttpRequest&&t.XMLHttpRequest.prototype.send;e&&r&&(XMLHttpRequest.prototype.send=function(t){t instanceof Blob?(this.setRequestHeader("Content-Type",t.type),r.call(this,t)):r.call(this,t)});try{new File([],"")}catch(e){try{var n=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name.replace(///g, ":");this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date();this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();t.File=n}catch(e){n=function(t,e,r){var n=new Blob(t,r),o=r&&void 0!==r.lastModified?new Date(r.lastModified):new Date;return n.name=e.replace(/\//g,":"),n.lastModifiedDate=o,n.lastModified=+o,n.toString=function(){return"[object File]"},a&&(n[a]="File"),n};t.File=n}}}s?(w(),t.Blob=c?t.Blob:d):u?(w(),t.Blob=p):function(){function e(t){for(var e=new Array(t.byteLength),r=new Uint8Array(t),n=e.length;n--;)e[n]=r[n];return e}function r(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=[],n=0;n<t.length;n+=3){var o=t[n],i=n+1<t.length,a=i?t[n+1]:0,s=n+2<t.length,l=s?t[n+2]:0,c=o>>2,f=(3&o)<<4|a>>4,u=(15&a)<<2|l>>6,h=63&l;s||(h=64,i||(u=64)),r.push(e[c],e[f],e[u],e[h])}return r.join("")}var n=Object.create||function(t){function e(){}return e.prototype=t,new e};if(f)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function c(r,n){n=null==n?{}:n;for(var o=0,i=(r=r||[]).length;o<i;o++){var a=r[o];a instanceof c?r[o]=a._buffer:"string"==typeof a?r[o]=b(a):f&&(ArrayBuffer.prototype.isPrototypeOf(a)||s(a))?r[o]=e(a):f&&((u=a)&&DataView.prototype.isPrototypeOf(u))?r[o]=e(a.buffer):r[o]=b(String(a))}var u;this._buffer=t.Uint8Array?function(t){for(var e=0,r=t.length;r--;)e+=t[r].length;var n=new Uint8Array(e),o=0;for(r=0,l=t.length;r<l;r++){var i=t[r];n.set(i,o),o+=i.byteLength||i.length}return n}(r):[].concat.apply([],r),this.size=this._buffer.length,this.type=n.type||"",/[^\u0020-\u007E]/.test(this.type)?this.type="":this.type=this.type.toLowerCase()}function u(t,e,r){r=r||{};var n=c.call(this,t,r)||this;return n.name=e.replace(/\//g,":"),n.lastModifiedDate=r.lastModified?new Date(r.lastModified):new Date,n.lastModified=+n.lastModifiedDate,n}if(c.prototype.arrayBuffer=function(){return Promise.resolve(this._buffer)},c.prototype.text=function(){return Promise.resolve(y(this._buffer))},c.prototype.slice=function(t,e,r){return new c([this._buffer.slice(t||0,e||this._buffer.length)],{type:r})},c.prototype.toString=function(){return"[object Blob]"},u.prototype=n(c.prototype),u.prototype.constructor=u,Object.setPrototypeOf)Object.setPrototypeOf(u,c);else try{u.__proto__=c}catch(t){}function h(){if(!(this instanceof h))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var t=document.createDocumentFragment();this.addEventListener=t.addEventListener,this.dispatchEvent=function(e){var r=this["on"+e.type];"function"==typeof r&&r(e),t.dispatchEvent(e)},this.removeEventListener=t.removeEventListener}function p(t,e,r){if(!(e instanceof c))throw new TypeError("Failed to execute '"+r+"' on 'FileReader': parameter 1 is not of type 'Blob'.");t.result="",setTimeout((function(){this.readyState=h.LOADING,t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend"))}))}u.prototype.toString=function(){return"[object File]"},h.EMPTY=0,h.LOADING=1,h.DONE=2,h.prototype.error=null,h.prototype.onabort=null,h.prototype.onerror=null,h.prototype.onload=null,h.prototype.onloadend=null,h.prototype.onloadstart=null,h.prototype.onprogress=null,h.prototype.readAsDataURL=function(t){p(this,t,"readAsDataURL"),this.result="data:"+t.type+";base64,"+r(t._buffer)},h.prototype.readAsText=function(t){p(this,t,"readAsText"),this.result=y(t._buffer)},h.prototype.readAsArrayBuffer=function(t){p(this,t,"readAsText"),this.result=(t._buffer.buffer||t._buffer).slice()},h.prototype.abort=function(){},URL.createObjectURL=function(t){return t instanceof c?"data:"+t.type+";base64,"+r(t._buffer):o.call(URL,t)},URL.revokeObjectURL=function(t){i&&i.call(URL,t)};var d=t.XMLHttpRequest&&t.XMLHttpRequest.prototype.send;d&&(XMLHttpRequest.prototype.send=function(t){t instanceof c?(this.setRequestHeader("Content-Type",t.type),d.call(this,y(t._buffer))):d.call(this,t)}),t.FileReader=h,t.File=u,t.Blob=c}(),a&&(File.prototype[a]="File",Blob.prototype[a]="Blob",FileReader.prototype[a]="FileReader");var g,m=t.Blob.prototype;function v(t){return new Promise((function(e,r){t.onload=t.onerror=function(n){t.onload=t.onerror=null,"load"===n.type?e(t.result||t):r(new Error("Failed to read the blob/file"))}}))}try{new ReadableStream({type:"bytes"}),g=function(){var t=0,e=this;return new ReadableStream({type:"bytes",autoAllocateChunkSize:524288,pull:function(r){var n=r.byobRequest.view;return e.slice(t,t+n.byteLength).arrayBuffer().then((function(o){var i=new Uint8Array(o),a=i.byteLength;t+=a,n.set(i),r.byobRequest.respond(a),t>=e.size&&r.close()}))}})}}catch(t){try{new ReadableStream({}),g=function(t){var e=0;t=this;return new ReadableStream({pull:function(r){return t.slice(e,e+524288).arrayBuffer().then((function(n){e+=n.byteLength;var o=new Uint8Array(n);r.enqueue(o),e==t.size&&r.close()}))}})}}catch(t){try{new Response("").body.getReader().read(),g=function(){return new Response(this).body}}catch(t){g=function(){throw new Error("Include https://github.com/MattiasBuelens/web-streams-polyfill")}}}}m.arrayBuffer||(m.arrayBuffer=function(){var t=new FileReader;return t.readAsArrayBuffer(this),v(t)}),m.text||(m.text=function(){var t=new FileReader;return t.readAsText(this),v(t)}),m.stream||(m.stream=g)}(),function(t){"use strict";var e,r=t.Uint8Array,n=t.HTMLCanvasElement,o=n&&n.prototype,i=/\s*;\s*base64\s*(?:;|$)/i,a="toDataURL",s=function(t){for(var n,o,i=t.length,a=new r(i/4*3|0),s=0,l=0,c=[0,0],f=0,u=0;i--;)o=t.charCodeAt(s++),255!==(n=e[o-43])&&void 0!==n&&(c[1]=c[0],c[0]=o,u=u<<6|n,4===++f&&(a[l++]=u>>>16,61!==c[1]&&(a[l++]=u>>>8),61!==c[0]&&(a[l++]=u),f=0));return a};r&&(e=new r([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),!n||o.toBlob&&o.toBlobHD||(o.toBlob||(o.toBlob=function(t,e){if(e||(e="image/png"),this.mozGetAsFile)t(this.mozGetAsFile("canvas",e));else if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(e))t(this.msToBlob());else{var n,o=Array.prototype.slice.call(arguments,1),l=this[a].apply(this,o),c=l.indexOf(","),f=l.substring(c+1),u=i.test(l.substring(0,c));Blob.fake?((n=new Blob).encoding=u?"base64":"URI",n.data=f,n.size=f.length):r&&(n=u?new Blob([s(f)],{type:e}):new Blob([decodeURIComponent(f)],{type:e})),t(n)}}),!o.toBlobHD&&o.toDataURLHD?o.toBlobHD=function(){a="toDataURLHD";var t=this.toBlob();return a="toDataURL",t}:o.toBlobHD=o.toBlob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this)},"8oxB":function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var l,c=[],f=!1,u=-1;function h(){f&&l&&(f=!1,l.length?c=l.concat(c):u=-1,c.length&&p())}function p(){if(!f){var t=s(h);f=!0;for(var e=c.length;e;){for(l=c,c=[];++u<e;)l&&l[u].run();u=-1,e=c.length}l=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function b(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new d(t,e)),1!==c.length||f||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},BLqG:function(t,e){},JO1w:function(t,e,r){r("8FsP"),window._=r("LvDl"),window.Popper=r("8L3F").default,window.pixelfed=window.pixelfed||{},window.$=window.jQuery=r("EVdn"),r("SYky"),window.axios=r("vDqi"),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",r("KGuw"),window.blurhash=r("tz93");var n=document.head.querySelector('meta[name="csrf-token"]');n?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=n.content:console.error("CSRF token not found."),window.App=window.App||{},window.App.redirect=function(){document.querySelectorAll("a").forEach((function(t,e){var r=t.getAttribute("href");if(r&&r.length>5&&r.startsWith("https://")){var n=new URL(r);n.host!==window.location.host&&"/i/redirect"!==n.pathname&&t.setAttribute("href","/i/redirect?url="+encodeURIComponent(r))}}))},window.App.boot=function(){new Vue({el:"#content"})},window.addEventListener("load",(function(){"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js")})),window.App.util={compose:{post:function(){var t=window.location.pathname;["/","/timeline/public"].includes(t)?$("#composeModal").modal("show"):window.location.href="/?a=co"},circle:function(){console.log("Unsupported method.")},collection:function(){console.log("Unsupported method.")},loop:function(){console.log("Unsupported method.")},story:function(){console.log("Unsupported method.")}},time:function(){return new Date},version:1,format:{count:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-GB",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"compact";return t<1?0:new Intl.NumberFormat(e,{notation:r,compactDisplay:"short"}).format(t)},timeAgo:function(t){var e=Date.parse(t),r=Math.floor((new Date-e)/1e3),n=Math.floor(r/63072e3);return n>=1?n+"y":(n=Math.floor(r/604800))>=1?n+"w":(n=Math.floor(r/86400))>=1?n+"d":(n=Math.floor(r/3600))>=1?n+"h":(n=Math.floor(r/60))>=1?n+"m":Math.floor(r)+"s"},timeAhead:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Date.parse(t),n=r-Date.parse(new Date),o=Math.floor(n/1e3),i=Math.floor(o/63072e3);return i>=1?i+(e?"y":" years"):(i=Math.floor(o/604800))>=1?i+(e?"w":" weeks"):(i=Math.floor(o/86400))>=1?i+(e?"d":" days"):(i=Math.floor(o/3600))>=1?i+(e?"h":" hours"):(i=Math.floor(o/60))>=1?i+(e?"m":" minutes"):Math.floor(o)+(e?"s":" seconds")},rewriteLinks:function(t){var e=t.innerText;return t.href.startsWith(window.location.origin)?t.href:e=1==e.startsWith("#")?"/discover/tags/"+e.substr(1)+"?src=rph":1==e.startsWith("@")?"/"+t.innerText+"?src=rpp":"/i/redirect?url="+encodeURIComponent(e)}},filters:[["1977","filter-1977"],["Aden","filter-aden"],["Amaro","filter-amaro"],["Ashby","filter-ashby"],["Brannan","filter-brannan"],["Brooklyn","filter-brooklyn"],["Charmes","filter-charmes"],["Clarendon","filter-clarendon"],["Crema","filter-crema"],["Dogpatch","filter-dogpatch"],["Earlybird","filter-earlybird"],["Gingham","filter-gingham"],["Ginza","filter-ginza"],["Hefe","filter-hefe"],["Helena","filter-helena"],["Hudson","filter-hudson"],["Inkwell","filter-inkwell"],["Kelvin","filter-kelvin"],["Kuno","filter-juno"],["Lark","filter-lark"],["Lo-Fi","filter-lofi"],["Ludwig","filter-ludwig"],["Maven","filter-maven"],["Mayfair","filter-mayfair"],["Moon","filter-moon"],["Nashville","filter-nashville"],["Perpetua","filter-perpetua"],["Poprocket","filter-poprocket"],["Reyes","filter-reyes"],["Rise","filter-rise"],["Sierra","filter-sierra"],["Skyline","filter-skyline"],["Slumber","filter-slumber"],["Stinson","filter-stinson"],["Sutro","filter-sutro"],["Toaster","filter-toaster"],["Valencia","filter-valencia"],["Vesper","filter-vesper"],["Walden","filter-walden"],["Willow","filter-willow"],["X-Pro II","filter-xpro-ii"]],filterCss:{"filter-1977":"sepia(.5) hue-rotate(-30deg) saturate(1.4)","filter-aden":"sepia(.2) brightness(1.15) saturate(1.4)","filter-amaro":"sepia(.35) contrast(1.1) brightness(1.2) saturate(1.3)","filter-ashby":"sepia(.5) contrast(1.2) saturate(1.8)","filter-brannan":"sepia(.4) contrast(1.25) brightness(1.1) saturate(.9) hue-rotate(-2deg)","filter-brooklyn":"sepia(.25) contrast(1.25) brightness(1.25) hue-rotate(5deg)","filter-charmes":"sepia(.25) contrast(1.25) brightness(1.25) saturate(1.35) hue-rotate(-5deg)","filter-clarendon":"sepia(.15) contrast(1.25) brightness(1.25) hue-rotate(5deg)","filter-crema":"sepia(.5) contrast(1.25) brightness(1.15) saturate(.9) hue-rotate(-2deg)","filter-dogpatch":"sepia(.35) saturate(1.1) contrast(1.5)","filter-earlybird":"sepia(.25) contrast(1.25) brightness(1.15) saturate(.9) hue-rotate(-5deg)","filter-gingham":"contrast(1.1) brightness(1.1)","filter-ginza":"sepia(.25) contrast(1.15) brightness(1.2) saturate(1.35) hue-rotate(-5deg)","filter-hefe":"sepia(.4) contrast(1.5) brightness(1.2) saturate(1.4) hue-rotate(-10deg)","filter-helena":"sepia(.5) contrast(1.05) brightness(1.05) saturate(1.35)","filter-hudson":"sepia(.25) contrast(1.2) brightness(1.2) saturate(1.05) hue-rotate(-15deg)","filter-inkwell":"brightness(1.25) contrast(.85) grayscale(1)","filter-kelvin":"sepia(.15) contrast(1.5) brightness(1.1) hue-rotate(-10deg)","filter-juno":"sepia(.35) contrast(1.15) brightness(1.15) saturate(1.8)","filter-lark":"sepia(.25) contrast(1.2) brightness(1.3) saturate(1.25)","filter-lofi":"saturate(1.1) contrast(1.5)","filter-ludwig":"sepia(.25) contrast(1.05) brightness(1.05) saturate(2)","filter-maven":"sepia(.35) contrast(1.05) brightness(1.05) saturate(1.75)","filter-mayfair":"contrast(1.1) brightness(1.15) saturate(1.1)","filter-moon":"brightness(1.4) contrast(.95) saturate(0) sepia(.35)","filter-nashville":"sepia(.25) contrast(1.5) brightness(.9) hue-rotate(-15deg)","filter-perpetua":"contrast(1.1) brightness(1.25) saturate(1.1)","filter-poprocket":"sepia(.15) brightness(1.2)","filter-reyes":"sepia(.75) contrast(.75) brightness(1.25) saturate(1.4)","filter-rise":"sepia(.25) contrast(1.25) brightness(1.2) saturate(.9)","filter-sierra":"sepia(.25) contrast(1.5) brightness(.9) hue-rotate(-15deg)","filter-skyline":"sepia(.15) contrast(1.25) brightness(1.25) saturate(1.2)","filter-slumber":"sepia(.35) contrast(1.25) saturate(1.25)","filter-stinson":"sepia(.35) contrast(1.25) brightness(1.1) saturate(1.25)","filter-sutro":"sepia(.4) contrast(1.2) brightness(.9) saturate(1.4) hue-rotate(-10deg)","filter-toaster":"sepia(.25) contrast(1.5) brightness(.95) hue-rotate(-15deg)","filter-valencia":"sepia(.25) contrast(1.1) brightness(1.1)","filter-vesper":"sepia(.35) contrast(1.15) brightness(1.2) saturate(1.3)","filter-walden":"sepia(.35) contrast(.8) brightness(1.25) saturate(1.4)","filter-willow":"brightness(1.2) contrast(.85) saturate(.05) sepia(.2)","filter-xpro-ii":"sepia(.45) contrast(1.25) brightness(1.75) saturate(1.3) hue-rotate(-5deg)"},emoji:["😂","💯","❤️","🙌","👏","👌","😍","😯","😢","😅","😁","🙂","😎","😀","🤣","😃","😄","😆","😉","😊","😋","😘","😗","😙","😚","🤗","🤩","🤔","🤨","😐","😑","😶","🙄","😏","😣","😥","😮","🤐","😪","😫","😴","😌","😛","😜","😝","🤤","😒","😓","😔","😕","🙃","🤑","😲","🙁","😖","😞","😟","😤","😭","😦","😧","😨","😩","🤯","😬","😰","😱","😳","🤪","😵","😡","😠","🤬","😷","🤒","🤕","🤢","🤮","🤧","😇","🤠","🤡","🤥","🤫","🤭","🧐","🤓","😈","👿","👹","👺","💀","👻","👽","🤖","💩","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🤲","👐","🤝","👍","👎","👊","✊","🤛","🤜","🤞","✌️","🤟","🤘","👈","👉","👆","👇","☝️","✋","🤚","🖐","🖖","👋","🤙","💪","🖕","✍️","🙏","💍","💄","💋","👄","👅","👂","👃","👣","👁","👀","🧠","🗣","👤","👥"],embed:{post:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"full",o=t+"/embed?";return o+=e?"caption=true&":"caption=false&",o+=r?"likes=true&":"likes=false&",'<iframe src="'+(o+="compact"==n?"layout=compact":"layout=full")+'" class="pixelfed__embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><script async defer src="'+window.location.origin+'/embed.js"><\/script>'},profile:function(t){return'<iframe src="'+(t+"/embed")+'" class="pixelfed__embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><script async defer src="'+window.location.origin+'/embed.js"><\/script>'}},clipboard:function(t){return navigator.clipboard.writeText(t)},navatar:function(){$("#navbarDropdown .far").addClass("d-none"),$("#navbarDropdown img").attr("src",window._sharedData.curUser.avatar).removeClass("d-none").addClass("rounded-circle border shadow").attr("width",38).attr("height",38)}}},YfGV:function(t,e){},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},tz93:function(t,e,r){"use strict";r.r(e),r.d(e,"decode",(function(){return d})),r.d(e,"isBlurhashValid",(function(){return u})),r.d(e,"encode",(function(){return y})),r.d(e,"ValidationError",(function(){return c}));const n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],o=t=>{let e=0;for(let r=0;r<t.length;r++){const o=t[r];e=83*e+n.indexOf(o)}return e},i=(t,e)=>{var r="";for(let o=1;o<=e;o++){let i=Math.floor(t)/Math.pow(83,e-o)%83;r+=n[Math.floor(i)]}return r},a=t=>{let e=t/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},s=t=>{let e=Math.max(0,Math.min(1,t));return e<=.0031308?Math.round(12.92*e*255+.5):Math.round(255*(1.055*Math.pow(e,1/2.4)-.055)+.5)},l=(t,e)=>(t<0?-1:1)*Math.pow(Math.abs(t),e);class c extends Error{constructor(t){super(t),this.name="ValidationError",this.message=t}}const f=t=>{if(!t||t.length<6)throw new c("The blurhash string must be at least 6 characters");const e=o(t[0]),r=Math.floor(e/9)+1,n=e%9+1;if(t.length!==4+2*n*r)throw new c(`blurhash length mismatch: length is ${t.length} but it should be ${4+2*n*r}`)},u=t=>{try{f(t)}catch(t){return{result:!1,errorReason:t.message}}return{result:!0}},h=t=>{const e=t>>8&255,r=255&t;return[a(t>>16),a(e),a(r)]},p=(t,e)=>{const r=Math.floor(t/361),n=Math.floor(t/19)%19,o=t%19;return[l((r-9)/9,2)*e,l((n-9)/9,2)*e,l((o-9)/9,2)*e]};var d=(t,e,r,n)=>{f(t),n|=1;const i=o(t[0]),a=Math.floor(i/9)+1,l=i%9+1,c=(o(t[1])+1)/166,u=new Array(l*a);for(let e=0;e<u.length;e++)if(0===e){const r=o(t.substring(2,6));u[e]=h(r)}else{const r=o(t.substring(4+2*e,6+2*e));u[e]=p(r,c*n)}const d=4*e,b=new Uint8ClampedArray(d*r);for(let t=0;t<r;t++)for(let n=0;n<e;n++){let o=0,i=0,c=0;for(let s=0;s<a;s++)for(let a=0;a<l;a++){const f=Math.cos(Math.PI*n*a/e)*Math.cos(Math.PI*t*s/r);let h=u[a+s*l];o+=h[0]*f,i+=h[1]*f,c+=h[2]*f}let f=s(o),h=s(i),p=s(c);b[4*n+0+t*d]=f,b[4*n+1+t*d]=h,b[4*n+2+t*d]=p,b[4*n+3+t*d]=255}return b};const b=(t,e,r,n)=>{let o=0,i=0,s=0;const l=4*e;for(let c=0;c<e;c++)for(let e=0;e<r;e++){const r=n(c,e);o+=r*a(t[4*c+0+e*l]),i+=r*a(t[4*c+1+e*l]),s+=r*a(t[4*c+2+e*l])}let c=1/(e*r);return[o*c,i*c,s*c]};var y=(t,e,r,n,o)=>{if(n<1||n>9||o<1||o>9)throw new c("BlurHash must have between 1 and 9 components");if(e*r*4!==t.length)throw new c("Width and height must match the pixels array");let a=[];for(let i=0;i<o;i++)for(let o=0;o<n;o++){const n=0==o&&0==i?1:2,s=b(t,e,r,(t,a)=>n*Math.cos(Math.PI*o*t/e)*Math.cos(Math.PI*i*a/r));a.push(s)}const f=a[0],u=a.slice(1);let h,p="";if(p+=i(n-1+9*(o-1),1),u.length>0){let t=Math.max(...u.map(t=>Math.max(...t))),e=Math.floor(Math.max(0,Math.min(82,Math.floor(166*t-.5))));h=(e+1)/166,p+=i(e,1)}else h=1,p+=i(0,1);var d;return p+=i((s((d=f)[0])<<16)+(s(d[1])<<8)+s(d[2]),4),u.forEach(t=>{p+=i(((t,e)=>19*Math.floor(Math.max(0,Math.min(18,Math.floor(9*l(t[0]/e,.5)+9.5))))*19+19*Math.floor(Math.max(0,Math.min(18,Math.floor(9*l(t[1]/e,.5)+9.5))))+Math.floor(Math.max(0,Math.min(18,Math.floor(9*l(t[2]/e,.5)+9.5)))))(t,h),2)}),p}},xWuY:function(t,e){},yLpj:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r}},[[0,0,1]]]);