pixelfed/public/js/compose.js

2 lines
75 KiB
JavaScript
Raw Permalink Normal View History

2024-11-09 05:05:41 +00:00
/*! For license information please see compose.js.LICENSE.txt */
(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[5666],{28320:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>u});var a=i(91584),s=(i(49551),i(2e4)),o=(i(73718),i(79288)),n=i(74692);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},r(t)}function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=Array(e);i<e;i++)a[i]=t[i];return a}function d(){d=function(){return e};var t,e={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(t,e,i){t[e]=i.value},o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function p(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(t){p=function(t,e,i){return t[e]=i}}function u(t,e,i,a){var o=e&&e.prototype instanceof _?e:_,n=Object.create(o.prototype),r=new O(a||[]);return s(n,"_invoke",{value:A(t,i,r)}),n}function h(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var m="suspendedStart",f="suspendedYield",v="executing",g="completed",b={};function _(){}function x(){}function C(){}var y={};p(y,n,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(E([])));k&&k!==i&&a.call(k,n)&&(y=k);var T=C.prototype=_.prototype=Object.create(y);function P(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function i(s,o,n,l){var c=h(t[s],t,o);if("throw"!==c.type){var d=c.arg,p=d.value;return p&&"object"==r(p)&&a.call(p,"__await")?e.resolve(p.__await).then((function(t){i("next",t,n,l)}),(function(t){i("throw",t,n,l)})):e.resolve(p).then((function(t){d.value=t,n(d)}),(function(t){return i("throw",t,n,l)}))}l(c.arg)}var o;s(this,"_invoke",{value:function(t,a){function s(){return new e((function(e,s){i(t,a,e,s)}))}return o=o?o.then(s,s):s()}})}function A(e,i,a){var s=m;return function(o,n){if(s===v)throw Error("Generator is already running");if(s===g){if("throw"===o)throw n;return{value:t,done:!0}}for(a.method=o,a.arg=n;;){var r=a.delegate;if(r){var l=L(r,a);if(l){if(l===b)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===m)throw s=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=v;var c=h(e,i,a);if("normal"===c.type){if(s=a.done?g:f,c.arg===b)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(s=g,a.method="throw",a.arg=c.arg)}}}function L(e,i){var a=i.method,s=e.iterator[a];if(s===t)return i.delegate=null,"throw"===a&&e.iterator.return&&(i.method="return",i.arg=t,L(e,i),"throw"===i.method)||"return"!==a&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+a+"' method")),b;var o=h(s,e.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,b;var n=o.arg;return n?n.done?(i[e.resultName]=n.value,i.next=e.nextLoc,"return"!==i.method&&(i.method="next",i.arg=t),i.delegate=null,b):n:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,b)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.comple