mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-26 10:00:29 +00:00
28 lines
659 KiB
JavaScript
28 lines
659 KiB
JavaScript
|
!function(e){var t={};function o(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(i,a,function(t){return e[t]}.bind(null,a));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=189)}([function(e,t,o){"use strict";try{self["workbox:precaching:5.1.3"]&&_()}catch(e){}},function(e,t,o){"use strict";try{self["workbox:core:5.1.3"]&&_()}catch(e){}},function(e,t){var o=Array.isArray;e.exports=o},function(e,t,o){e.exports=o(52)},function(e,t,o){var i=o(31),a="object"==typeof self&&self&&self.Object===Object&&self,n=i||a||Function("return this")();e.exports=n},function(e,t,o){var i=o(90),a=o(93);e.exports=function(e,t){var o=a(e,t);return i(o)?o:void 0}},function(e,t,o){var i=o(9),a=o(57),n=o(58),r="[object Null]",s="[object Undefined]",l=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:r:l&&l in Object(e)?a(e):n(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,o){var i=o(30),a=o(20);e.exports=function(e){return null!=e&&a(e.length)&&!i(e)}},function(e,t,o){var i=o(4).Symbol;e.exports=i},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,o){var i=o(6),a=o(7),n="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||a(e)&&i(e)==n}},function(e,t){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"==typeof window&&(o=window)}e.exports=o},function(e,t,o){var i=o(65),a=o(71),n=o(8);e.exports=function(e){return n(e)?i(e):a(e)}},function(e,t,o){var i=o(80),a=o(81),n=o(82),r=o(83),s=o(84);function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,e.exports=l},function(e,t,o){var i=o(24);e.exports=function(e,t){for(var o=e.length;o--;)if(i(e[o][0],t))return o;return-1}},function(e,t,o){var i=o(5)(Object,"create");e.exports=i},function(e,t,o){var i=o(102);e.exports=function(e,t){var o=e.__data__;return i(t)?o["string"==typeof t?"string":"hash"]:o.map}},function(e,t,o){var i=o(11),a=1/0;e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}},function(e,t){e.exports=function(e){return e}},function(e,t){var o=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}},function(e,t){e.exports=function(e,t){for(var o=-1,i=null==e?0:e.length,a=Array(i);++o<i;)a[o]=t(e[o],o,e);return a}},function(e,t,o){var i=o(67),a=o(7),n=Object.prototype,r=n.hasOwnProperty,s=n.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return a(e)&&r.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t){var o=9007199254740991,i=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var a=typeof e;return!!(t=null==t?o:t)&&("number"==a||"symbol"!=a&&i.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,o){var i=o(5)(o(4),"Map");e.exports=i},function(e,t,o){var i=o(94),a=o(101),n=o(103),r=o(104),s=o(105);function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,e.exports=l},function(e,t,o){var i=o(2),a=o(11),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/
|
||
|
/*!
|
||
|
localForage -- Offline Storage, Improved
|
||
|
Version 1.7.3
|
||
|
https://localforage.github.io/localForage
|
||
|
(c) 2013-2017 Mozilla, Apache License 2.0
|
||
|
*/
|
||
|
!function(o){if("object"==typeof t&&void 0!==e)e.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).localforage=o()}}(function(){return function e(t,o,i){function a(r,s){if(!o[r]){if(!t[r]){var l="function"==typeof require&&require;if(!s&&l)return l(r,!0);if(n)return n(r,!0);var u=new Error("Cannot find module '"+r+"'");throw u.code="MODULE_NOT_FOUND",u}var c=o[r]={exports:{}};t[r][0].call(c.exports,function(e){var o=t[r][1][e];return a(o||e)},c,c.exports,e,t,o,i)}return o[r].exports}for(var n="function"==typeof require&&require,r=0;r<i.length;r++)a(i[r]);return a}({1:[function(e,t,o){(function(e){"use strict";var o,i,a=e.MutationObserver||e.WebKitMutationObserver;if(a){var n=0,r=new a(c),s=e.document.createTextNode("");r.observe(s,{characterData:!0}),o=function(){s.data=n=++n%2}}else if(e.setImmediate||void 0===e.MessageChannel)o="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,o=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;i=!0;for(var o=u.length;o;){for(t=u,u=[],e=-1;++e<o;)t[e]();o=u.length}i=!1}t.exports=function(e){1!==u.push(e)||i||o()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,o){"use strict";var i=e(1);function a(){}var n={},r=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==a&&p(this,e)}function c(e,t,o){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof o&&(this.onRejected=o,this.callRejected=this.otherCallRejected)}function d(e,t,o){i(function(){var i;try{i=t(o)}catch(t){return n.reject(e,t)}i===e?n.reject(e,new TypeError("Cannot resolve promise with itself")):n.resolve(e,i)})}function _(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var o=!1;function i(t){o||(o=!0,n.reject(e,t))}function a(t){o||(o=!0,n.resolve(e,t))}var r=m(function(){t(a,i)});"error"===r.status&&i(r.value)}function m(e,t){var o={};try{o.value=e(t),o.status="success"}catch(e){o.status="error",o.value=e}return o}t.exports=u,u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===r)return this;var o=new this.constructor(a);this.state!==l?d(o,this.state===s?e:t,this.outcome):this.queue.push(new c(o,e,t));return o},c.prototype.callFulfilled=function(e){n.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){n.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},n.resolve=function(e,t){var o=m(_,t);if("error"===o.status)return n.reject(e,o.value);var i=o.value;if(i)p(e,i);else{e.state=s,e.outcome=t;for(var a=-1,r=e.queue.length;++a<r;)e.queue[a].callFulfilled(t)}return e},n.reject=function(e,t){e.state=r,e.outcome=t;for(var o=-1,i=e.queue.length;++o<i;)e.queue[o].callRejected(t);return e},u.resolve=function(e){if(e instanceof this)return e;return n.resolve(new this(a),e)},u.reject=function(e){var t=new this(a);return n.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var o=e.length,i=!1;if(!o)return this.resolve([]);var r=new Array(o),s=0,l=-1,u=new this(a);for(;++l<o;)c(e[l],l);return u;function c(e,a){t.resolve(e).then(function(e){r[a]=e,++s!==o||i||(i=!0,n.resolve(u,r))},funct
|
||
|
/*!
|
||
|
* escape-html
|
||
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||
|
* Copyright(c) 2015 Andreas Lubbe
|
||
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||
|
* MIT Licensed
|
||
|
*/var i=/["'&<>]/;e.exports=function(e){var t,o=""+e,a=i.exec(o);if(!a)return o;var n="",r=0,s=0;for(r=a.index;r<o.length;r++){switch(o.charCodeAt(r)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}s!==r&&(n+=o.substring(s,r)),s=r+1,n+=t}return s!==r?n+o.substring(s,r):n}},function(e,t,o){var i=o(6),a=o(10),n="[object AsyncFunction]",r="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!a(e))return!1;var t=i(e);return t==r||t==s||t==n||t==l}},function(e,t,o){(function(t){var o="object"==typeof t&&t&&t.Object===Object&&t;e.exports=o}).call(this,o(12))},function(e,t,o){(function(e){var i=o(4),a=o(68),n=t&&!t.nodeType&&t,r=n&&"object"==typeof e&&e&&!e.nodeType&&e,s=r&&r.exports===n?i.Buffer:void 0,l=(s?s.isBuffer:void 0)||a;e.exports=l}).call(this,o(33)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,o){var i=o(69),a=o(35),n=o(70),r=n&&n.isTypedArray,s=r?a(r):i;e.exports=s},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){e.exports=function(e,t){for(var o=-1,i=t.length,a=e.length;++o<i;)e[a+o]=t[o];return e}},function(e,t,o){var i=o(78),a=o(127),n=o(19),r=o(2),s=o(137);e.exports=function(e){return"function"==typeof e?e:null==e?n:"object"==typeof e?r(e)?a(e[0],e[1]):i(e):s(e)}},function(e,t,o){var i=o(14),a=o(85),n=o(86),r=o(87),s=o(88),l=o(89);function u(e){var t=this.__data__=new i(e);this.size=t.size}u.prototype.clear=a,u.prototype.delete=n,u.prototype.get=r,u.prototype.has=s,u.prototype.set=l,e.exports=u},function(e,t){var o=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,o){var i=o(106),a=o(7);e.exports=function e(t,o,n,r,s){return t===o||(null==t||null==o||!a(t)&&!a(o)?t!=t&&o!=o:i(t,o,n,r,e,s))}},function(e,t,o){var i=o(107),a=o(110),n=o(111),r=1,s=2;e.exports=function(e,t,o,l,u,c){var d=o&r,_=e.length,p=t.length;if(_!=p&&!(d&&p>_))return!1;var m=c.get(e);if(m&&c.get(t))return m==t;var f=-1,h=!0,v=o&s?new i:void 0;for(c.set(e,t),c.set(t,e);++f<_;){var g=e[f],b=t[f];if(l)var k=d?l(b,g,f,t,e,c):l(g,b,f,e,t,c);if(void 0!==k){if(k)continue;h=!1;break}if(v){if(!a(t,function(e,t){if(!n(v,t)&&(g===e||u(g,e,o,l,c)))return v.push(t)})){h=!1;break}}else if(g!==b&&!u(g,b,o,l,c)){h=!1;break}}return c.delete(e),c.delete(t),h}},function(e,t){e.exports=function(e,t){for(var o=-1,i=null==e?0:e.length,a=0,n=[];++o<i;){var r=e[o];t(r,o,e)&&(n[a++]=r)}return n}},function(e,t,o){var i=o(10);e.exports=function(e){return e==e&&!i(e)}},function(e,t){e.exports=function(e,t){return function(o){return null!=o&&o[e]===t&&(void 0!==t||e in Object(o))}}},function(e,t,o){var i=o(46),a=o(18);e.exports=function(e,t){for(var o=0,n=(t=i(t,e)).length;null!=e&&o<n;)e=e[a(t[o++])];return o&&o==n?e:void 0}},function(e,t,o){var i=o(2),a=o(27),n=o(129),r=o(132);e.exports=function(e,t){return i(e)?e:a(e,t)?[e]:n(r(e))}},function(e,t,o){var i=o(141),a=o(144)(i);e.exports=a},function(e,t,o){var i=o(53),a=o(8),n=o(59),r=o(60),s=o(63),l=Math.max;e.exports=function(e,t,o,u){e=a(e)?e:s(e),o=o&&!u?r(o):0;var c=e.length;return o<0&&(o=l(c+o,0)),n(e)?o<=c&&e.indexOf(t,o)>-1:!!c&&i(e,t,o)>-1}},function(e,t,o){var i=o(75),a=o(77),n=o(148),r=o(156),s=n(function(e,t){if(null==e)return[];var o=t.length;return o>1&&r(e,t[0],t[1])?t=[]:o>2&&r(t[0],t[1],t[2])&&(t=[t[0]]),a(e,i(t,1),[])});e.exports=s},function(e,t,o){var i=o(42),a=o(157),n=o(37),r=o(2);e.exports=function(e,t){return(r(e)?i:a)(e,n(t,3))}},function(e,t,o){e.exports=o(185)},function(e,t,o){var i=function(e){"use strict";var t,o=Object.prototype,i=o.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},n=a.iterator||"@@iterator",r=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@t
|
||
|
/*!
|
||
|
* Vue.js v2.6.11
|
||
|
* (c) 2014-2019 Evan You
|
||
|
* Released under the MIT License.
|
||
|
*/
|
||
|
var i=Object.freeze({});function a(e){return null==e}function n(e){return null!=e}function r(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function _(e){return n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function f(e,t){for(var o=Object.create(null),i=e.split(","),a=0;a<i.length;a++)o[i[a]]=!0;return t?function(e){return o[e.toLowerCase()]}:function(e){return o[e]}}var h=f("key,ref,slot,slot-scope,is");function v(e,t){if(e.length){var o=e.indexOf(t);if(o>-1)return e.splice(o,1)}}var g=Object.prototype.hasOwnProperty;function b(e,t){return g.call(e,t)}function k(e){var t=Object.create(null);return function(o){return t[o]||(t[o]=e(o))}}var w=/-(\w)/g,y=k(function(e){return e.replace(w,function(e,t){return t?t.toUpperCase():""})}),z=k(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),j=/\B([A-Z])/g,x=k(function(e){return e.replace(j,"-$1").toLowerCase()}),A=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function o(o){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,o):e.call(t)}return o._length=e.length,o};function S(e,t){t=t||0;for(var o=e.length-t,i=new Array(o);o--;)i[o]=e[o+t];return i}function P(e,t){for(var o in t)e[o]=t[o];return e}function T(e){for(var t={},o=0;o<e.length;o++)e[o]&&P(t,e[o]);return t}function B(e,t,o){}var C=function(e,t,o){return!1},E=function(e){return e};function R(e,t){if(e===t)return!0;var o=l(e),i=l(t);if(!o||!i)return!o&&!i&&String(e)===String(t);try{var a=Array.isArray(e),n=Array.isArray(t);if(a&&n)return e.length===t.length&&e.every(function(e,o){return R(e,t[o])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(a||n)return!1;var r=Object.keys(e),s=Object.keys(t);return r.length===s.length&&r.every(function(o){return R(e[o],t[o])})}catch(e){return!1}}function N(e,t){for(var o=0;o<e.length;o++)if(R(e[o],t))return o;return-1}function O(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var M="data-server-rendered",I=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],L={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:C,isReservedAttr:C,isUnknownElement:C,getTagNamespace:B,parsePlatformTagName:E,mustUseProp:C,async:!0,_lifecycleHooks:F};function q(e,t,o,i){Object.defineProperty(e,t,{value:o,enumerable:!!i,writable:!0,configurable:!0})}var D,V=new RegExp("[^"+/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source+".$_\\d]"),K="__proto__"in{},U="undefined"!=typeof window,G="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,W=G&&WXEnvironment.platform.toLowerCase(),H=U&&window.navigator.userAgent.toLowerCase(),$=H&&/msie|trident/.test(H),Z=H&&H.indexOf("msie 9.0")>0,J=H&&H.indexOf("edge/")>0,Q=(H&&H.indexOf("android"),H&&/iphone|ipad|ipod|ios/.test(H)||"ios"===W),Y=(H&&/chrome\/\d+/.test(H),H&&/phantomjs/.test(H),H&&H.match(/firefox\/(\d+)/)),X={}.watch,ee=!1;if(U)try{var te={};Object.defineProperty(te,"passive",{get:function(){ee=!0}}),window.addEventListener("test-passive",null,te)}catch(i){}var oe=function(){return void 0===D&&(D=!U&&!G&&void 0!==t&&t.process&&"server"===t.process.env.VUE_ENV),D},ie=U&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}var ne,re="undefined"!=typeof Sym
|
||
|
/*!
|
||
|
* vue-i18n v7.8.1
|
||
|
* (c) 2018 kazuya kawaguchi
|
||
|
* Released under the MIT License.
|
||
|
*/
|
||
|
function y(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}function z(e){return null!==e&&"object"==typeof e}var j=Object.prototype.toString,x="[object Object]";function A(e){return j.call(e)===x}function S(e){return null==e}function P(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var o=null,i=null;return 1===e.length?z(e[0])||Array.isArray(e[0])?i=e[0]:"string"==typeof e[0]&&(o=e[0]):2===e.length&&("string"==typeof e[0]&&(o=e[0]),(z(e[1])||Array.isArray(e[1]))&&(i=e[1])),{locale:o,params:i}}function T(e,t){if(!e&&"string"!=typeof e)return null;var o=e.split("|");return o[t=function(e,t){return e=Math.abs(e),2===t?function(e){return e?e>1?1:0:1}(e):e?Math.min(e,2):0}(t,o.length)]?o[t].trim():e}function B(e){return JSON.parse(JSON.stringify(e))}var C=Object.prototype.hasOwnProperty;function E(e,t){return C.call(e,t)}function R(e){for(var t=arguments,o=Object(e),i=1;i<arguments.length;i++){var a=t[i];if(null!=a){var n=void 0;for(n in a)E(a,n)&&(z(a[n])?o[n]=R(o[n],a[n]):o[n]=a[n])}}return o}var N="undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat,O="undefined"!=typeof Intl&&void 0!==Intl.NumberFormat;var M,I={beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n)if(e.i18n instanceof de){if(e.__i18n)try{var t={};e.__i18n.forEach(function(e){t=R(t,JSON.parse(e))}),Object.keys(t).forEach(function(o){e.i18n.mergeLocaleMessage(o,t[o])})}catch(e){0}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData(),this._i18n.subscribeDataChanging(this),this._subscribing=!0}else if(A(e.i18n)){if(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof de&&(e.i18n.root=this.$root.$i18n,e.i18n.formatter=this.$root.$i18n.formatter,e.i18n.fallbackLocale=this.$root.$i18n.fallbackLocale,e.i18n.silentTranslationWarn=this.$root.$i18n.silentTranslationWarn),e.__i18n)try{var o={};e.__i18n.forEach(function(e){o=R(o,JSON.parse(e))}),e.i18n.messages=o}catch(e){0}this._i18n=new de(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),this._i18n.subscribeDataChanging(this),this._subscribing=!0,(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale())}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof de?(this._i18n=this.$root.$i18n,this._i18n.subscribeDataChanging(this),this._subscribing=!0):e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof de&&(this._i18n=e.parent.$i18n,this._i18n.subscribeDataChanging(this),this._subscribing=!0)},beforeDestroy:function(){this._i18n&&(this._subscribing&&(this._i18n.unsubscribeDataChanging(this),delete this._subscribing),this._i18nWatcher&&(this._i18nWatcher(),delete this._i18nWatcher),this._localeWatcher&&(this._localeWatcher(),delete this._localeWatcher),this._i18n=null)}},F={name:"i18n",functional:!0,props:{tag:{type:String,default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var o=t.props,i=t.data,a=t.children,n=t.parent.$i18n;if(a=(a||[]).filter(function(e){return e.tag||(e.text=e.text.trim())}),!n)return a;var r=o.path,s=o.locale,l={},u=o.places||{},c=Array.isArray(u)?u.length>0:Object.keys(u).length>0,d=a.every(function(e){if(e.data&&e.data.attrs){var t=e.data.attrs.place;return void 0!==t&&""!==t}});return c&&a.length>0&&!d&&y("If places prop is set, all child elements must have place prop set."),Array.isArray(u)?u.forEach(function(e,t){l[t]=e}):Object.keys(u).forEach(function(e){l[e]=u[e]}),a.forEach(function(e,t){var o=d?""+e.data.attrs.place:""+t;l[o]=e}),e(o.tag,i,n.i(r,s,l))}};function L(e,t,o){V(e,o)&&K(e,t,o)}function q(e,t,o,i){V(e,o)&&(function(e,t){var o=t.context;return e._locale===o.$i18n.locale}(e,o)&&function e(t,o){if(t===o)return!0;var i=z(t),a=z(o);if(!i||!a)return!i&&!a&&String(t)===String(o);try{var n=Array.isArray(t),r=Array.isArray(o);if(n&&r)return t.length===o.length&&t.every(function(t,i){return e(t,o[i])});if(n||r)return!1;var s=Object.keys(t),l=Object.keys(o);return s.length===l.length&&s.every(function(i){return e(t[i],o[i])})}catch(e){return!1}}(t.value,t.oldValue)||K(e,t,o))}f
|
||
|
//# sourceMappingURL=sw-pleroma-workbox.js.map
|