diff --git a/dist/wikibase.termbox.main.js b/dist/wikibase.termbox.main.js index 9cfd254..560b411 100644 --- a/dist/wikibase.termbox.main.js +++ b/dist/wikibase.termbox.main.js @@ -1,4 +1,4 @@ -(function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="b798")})({"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),f=n("38fd"),l=n("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",h="values",y=function(){return this};t.exports=function(t,e,n,m,g,_,b){c(n,e,m);var w,x,O,C=function(t){if(!p&&t in S)return S[t];switch(t){case v:return function(){return new n(this,t)};case h:return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",A=g==h,$=!1,S=t.prototype,j=S[l]||S[d]||g&&S[g],E=j||C(g),L=g?A?C("entries"):E:void 0,P="Array"==e&&S.entries||j;if(P&&(O=f(P.call(new t)),O!==Object.prototype&&O.next&&(u(O,k,!0),r||"function"==typeof O[l]||a(O,l,y))),A&&j&&j.name!==h&&($=!0,E=function(){return j.call(this)}),r&&!b||!p&&!$&&S[l]||a(S,l,E),s[e]=E,s[k]=y,g)if(w={values:A?E:C(h),keys:_?E:C(v),entries:L},b)for(x in w)x in S||o(S,x,w[x]);else i(i.P+i.F*(p||$),e,w);return w}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},"097d":function(t,e,n){"use strict";var r=n("5ca1"),i=n("8378"),o=n("7726"),a=n("ebd6"),s=n("bcaa");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},"0a49":function(t,e,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");t.exports=function(t,e){var n=1==t,c=2==t,u=3==t,f=4==t,l=6==t,p=5==t||l,d=e||s;return function(e,s,v){for(var h,y,m=o(e),g=i(m),_=r(s,v,3),b=a(g.length),w=0,x=n?d(e,b):c?d(e,0):void 0;b>w;w++)if((p||w in g)&&(h=g[w],y=_(h,w,m),t))if(n)x[w]=y;else if(y)switch(t){case 3:return!0;case 5:return h;case 6:return w;case 2:x.push(h)}else if(f)return!1;return l?-1:u||f?f:x}}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},1169:function(t,e,n){var r=n("2d95");t.exports=Array.isArray||function(t){return"Array"==r(t)}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,c=0;while(s>c)r.f(t,n=a[c++],e[n]);return t}},1991:function(t,e,n){var r,i,o,a=n("9b43"),s=n("31f4"),c=n("fab2"),u=n("230e"),f=n("7726"),l=f.process,p=f.setImmediate,d=f.clearImmediate,v=f.MessageChannel,h=f.Dispatch,y=0,m={},g="onreadystatechange",_=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},b=function(t){_.call(t.data)};p&&d||(p=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return m[++y]=function(){s("function"==typeof t?t:Function(t),e)},r(y),y},d=function(t){delete m[t]},"process"==n("2d95")(l)?r=function(t){l.nextTick(a(_,t,1))}:h&&h.now?r=function(t){h.now(a(_,t,1))}:v?(i=new v,o=i.port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):r=g in u("script")?function(t){c.appendChild(u("script"))[g]=function(){c.removeChild(this),_.call(t)}}:function(t){setTimeout(a(_,t,1),0)}),t.exports={set:p,clear:d}},"1fa8":function(t,e,n){var r=n("cb7c");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t["return"];throw void 0!==o&&r(o.call(t)),e}}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},"27ee":function(t,e,n){var r=n("23c6"),i=n("2b4c")("iterator"),o=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s="toString",c=Function[s],u=(""+c).split(s);n("8378").inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c="prototype",u=function(){var t,e=n("230e")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;while(r--)delete u[c][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[c]=r(t),n=new s,s[c]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},"2b0e":function(t,e,n){"use strict";n.r(e); +(function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="b798")})({"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),f=n("38fd"),l=n("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",h="values",y=function(){return this};t.exports=function(t,e,n,m,g,_,b){c(n,e,m);var w,x,O,C=function(t){if(!p&&t in S)return S[t];switch(t){case v:return function(){return new n(this,t)};case h:return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",A=g==h,$=!1,S=t.prototype,j=S[l]||S[d]||g&&S[g],E=j||C(g),L=g?A?C("entries"):E:void 0,P="Array"==e&&S.entries||j;if(P&&(O=f(P.call(new t)),O!==Object.prototype&&O.next&&(u(O,k,!0),r||"function"==typeof O[l]||a(O,l,y))),A&&j&&j.name!==h&&($=!0,E=function(){return j.call(this)}),r&&!b||!p&&!$&&S[l]||a(S,l,E),s[e]=E,s[k]=y,g)if(w={values:A?E:C(h),keys:_?E:C(v),entries:L},b)for(x in w)x in S||o(S,x,w[x]);else i(i.P+i.F*(p||$),e,w);return w}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},"097d":function(t,e,n){"use strict";var r=n("5ca1"),i=n("8378"),o=n("7726"),a=n("ebd6"),s=n("bcaa");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},"0a49":function(t,e,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");t.exports=function(t,e){var n=1==t,c=2==t,u=3==t,f=4==t,l=6==t,p=5==t||l,d=e||s;return function(e,s,v){for(var h,y,m=o(e),g=i(m),_=r(s,v,3),b=a(g.length),w=0,x=n?d(e,b):c?d(e,0):void 0;b>w;w++)if((p||w in g)&&(h=g[w],y=_(h,w,m),t))if(n)x[w]=y;else if(y)switch(t){case 3:return!0;case 5:return h;case 6:return w;case 2:x.push(h)}else if(f)return!1;return l?-1:u||f?f:x}}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},1169:function(t,e,n){var r=n("2d95");t.exports=Array.isArray||function(t){return"Array"==r(t)}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,c=0;while(s>c)r.f(t,n=a[c++],e[n]);return t}},1991:function(t,e,n){var r,i,o,a=n("9b43"),s=n("31f4"),c=n("fab2"),u=n("230e"),f=n("7726"),l=f.process,p=f.setImmediate,d=f.clearImmediate,v=f.MessageChannel,h=f.Dispatch,y=0,m={},g="onreadystatechange",_=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},b=function(t){_.call(t.data)};p&&d||(p=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return m[++y]=function(){s("function"==typeof t?t:Function(t),e)},r(y),y},d=function(t){delete m[t]},"process"==n("2d95")(l)?r=function(t){l.nextTick(a(_,t,1))}:h&&h.now?r=function(t){h.now(a(_,t,1))}:v?(i=new v,o=i.port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):r=g in u("script")?function(t){c.appendChild(u("script"))[g]=function(){c.removeChild(this),_.call(t)}}:function(t){setTimeout(a(_,t,1),0)}),t.exports={set:p,clear:d}},"1dfc":function(t,e,n){"use strict";var r=n("a648"),i=n.n(r);i.a},"1fa8":function(t,e,n){var r=n("cb7c");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t["return"];throw void 0!==o&&r(o.call(t)),e}}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},"27ee":function(t,e,n){var r=n("23c6"),i=n("2b4c")("iterator"),o=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s="toString",c=Function[s],u=(""+c).split(s);n("8378").inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c="prototype",u=function(){var t,e=n("230e")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;while(r--)delete u[c][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[c]=r(t),n=new s,s[c]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},"2b0e":function(t,e,n){"use strict";n.r(e); /*! * Vue.js v2.5.17 * (c) 2014-2018 Evan You @@ -9,7 +9,7 @@ var r=Object.freeze({});function i(t){return void 0===t||null===t}function o(t){ * vue-class-component v6.3.0 * (c) 2015-present Evan You * @license MIT - */function r(t){return t&&"object"===typeof t&&"default"in t?t["default"]:t}Object.defineProperty(e,"__esModule",{value:!0});var i=r(n("2b0e"));function o(){return void 0!==(Reflect&&Reflect.defineMetadata)}function a(t,e){s(t,e),Object.getOwnPropertyNames(e.prototype).forEach(function(n){s(t.prototype,e.prototype,n)}),Object.getOwnPropertyNames(e).forEach(function(n){s(t,e,n)})}function s(t,e,n){var r=n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e);r.forEach(function(r){var i=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,i,t,n):Reflect.defineMetadata(r,i,t)})}var c={__proto__:[]},u=c instanceof Array;function f(t){return function(e,n,r){var i="function"===typeof e?e:e.constructor;i.__decorators__||(i.__decorators__=[]),"number"!==typeof r&&(r=void 0),i.__decorators__.push(function(e){return t(e,n,r)})}}function l(){for(var t=[],e=0;e-1)e[t]=n[t];else{var r=Object.getOwnPropertyDescriptor(n,t);void 0!==r.value?"function"===typeof r.value?(e.methods||(e.methods={}))[t]=r.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return e={},e[t]=r.value,e}}):(r.get||r.set)&&((e.computed||(e.computed={}))[t]={get:r.get,set:r.set})}}),(e.mixins||(e.mixins=[])).push({data:function(){return d(this,t)}});var r=t.__decorators__;r&&(r.forEach(function(t){return t(e)}),delete t.__decorators__);var s=Object.getPrototypeOf(t.prototype),c=s instanceof i?s.constructor:i,u=c.extend(e);return y(u,t,c),o()&&a(u,t),u}function y(t,e,n){Object.getOwnPropertyNames(e).forEach(function(r){if("prototype"!==r){var i=Object.getOwnPropertyDescriptor(t,r);if(!i||i.configurable){var o=Object.getOwnPropertyDescriptor(e,r);if(!u){if("cid"===r)return;var a=Object.getOwnPropertyDescriptor(n,r);if(!p(o.value)&&a&&a.value===o.value)return}0,Object.defineProperty(t,r,o)}}})}function m(t){return"function"===typeof t?h(t):function(e){return h(e,t)}}m.registerHooks=function(t){v.push.apply(v,t)},e.default=m,e.createDecorator=f,e.mixins=l},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6d67":function(t,e,n){"use strict";var r=n("5ca1"),i=n("0a49")(1);r(r.P+r.F*!n("2f21")([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},7850:function(t,e,n){},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7a56":function(t,e,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),a=n("2b4c")("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},8079:function(t,e,n){var r=n("7726"),i=n("1991").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==n("2d95")(a);t.exports=function(){var t,e,n,u=function(){var r,i;c&&(r=a.domain)&&r.exit();while(t){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var f=s.resolve(void 0);n=function(){f.then(u)}}else n=function(){i.call(r,u)};else{var l=!0,p=document.createTextNode("");new o(u).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},8378:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},8615:function(t,e,n){var r=n("5ca1"),i=n("504c")(!1);r(r.S,"Object",{values:function(t){return i(t)}})},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"897f":function(t,e,n){"use strict";var r=n("aa59"),i=n.n(r);i.a},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a25f:function(t,e,n){var r=n("7726"),i=r.navigator;t.exports=i&&i.userAgent||""},a5b8:function(t,e,n){"use strict";var r=n("d8e8");function i(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new i(t)}},aa59:function(t,e,n){},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),c=n("84f2"),u=n("2b4c"),f=u("iterator"),l=u("toStringTag"),p=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=i(d),h=0;h-1)e[t]=n[t];else{var r=Object.getOwnPropertyDescriptor(n,t);void 0!==r.value?"function"===typeof r.value?(e.methods||(e.methods={}))[t]=r.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return e={},e[t]=r.value,e}}):(r.get||r.set)&&((e.computed||(e.computed={}))[t]={get:r.get,set:r.set})}}),(e.mixins||(e.mixins=[])).push({data:function(){return d(this,t)}});var r=t.__decorators__;r&&(r.forEach(function(t){return t(e)}),delete t.__decorators__);var s=Object.getPrototypeOf(t.prototype),c=s instanceof i?s.constructor:i,u=c.extend(e);return y(u,t,c),o()&&a(u,t),u}function y(t,e,n){Object.getOwnPropertyNames(e).forEach(function(r){if("prototype"!==r){var i=Object.getOwnPropertyDescriptor(t,r);if(!i||i.configurable){var o=Object.getOwnPropertyDescriptor(e,r);if(!u){if("cid"===r)return;var a=Object.getOwnPropertyDescriptor(n,r);if(!p(o.value)&&a&&a.value===o.value)return}0,Object.defineProperty(t,r,o)}}})}function m(t){return"function"===typeof t?h(t):function(e){return h(e,t)}}m.registerHooks=function(t){v.push.apply(v,t)},e.default=m,e.createDecorator=f,e.mixins=l},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6d67":function(t,e,n){"use strict";var r=n("5ca1"),i=n("0a49")(1);r(r.P+r.F*!n("2f21")([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},7850:function(t,e,n){},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7a56":function(t,e,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),a=n("2b4c")("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},8079:function(t,e,n){var r=n("7726"),i=n("1991").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==n("2d95")(a);t.exports=function(){var t,e,n,u=function(){var r,i;c&&(r=a.domain)&&r.exit();while(t){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var f=s.resolve(void 0);n=function(){f.then(u)}}else n=function(){i.call(r,u)};else{var l=!0,p=document.createTextNode("");new o(u).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},8378:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},8615:function(t,e,n){var r=n("5ca1"),i=n("504c")(!1);r(r.S,"Object",{values:function(t){return i(t)}})},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"897f":function(t,e,n){"use strict";var r=n("aa59"),i=n.n(r);i.a},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a25f:function(t,e,n){var r=n("7726"),i=r.navigator;t.exports=i&&i.userAgent||""},a5b8:function(t,e,n){"use strict";var r=n("d8e8");function i(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new i(t)}},a648:function(t,e,n){},aa59:function(t,e,n){},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),c=n("84f2"),u=n("2b4c"),f=u("iterator"),l=u("toStringTag"),p=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=i(d),h=0;h=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}var _=n("65d9"),b=n.n(_),w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wikibase-termbox wikibase-termbox--primaryLanguage"},[n("div",[n("div",{staticClass:"wikibase-termbox__term"},[n("span",{staticClass:"wikibase-termbox__language"},[t._v(t._s(t.primaryLanguageName))]),n("h2",{staticClass:"wikibase-termbox__label"},[t._v(t._s(t.label))]),n("p",{staticClass:"wikibase-termbox__description"},[t._v(t._s(t.description))]),t.hasAliases?n("ul",{staticClass:"wikibase-termbox__aliases"},t._l(t.aliases,function(e){return n("li",{staticClass:"wikibase-termbox__alias",attrs:{"data-separator":t._f("message")("wikibase-termbox-alias-separator")}},[t._v(t._s(e.value))])})):n("p",{staticClass:"wikibase-termbox__aliases wikibase-termbox__aliases--placeholder"},[t._v("?")])])]),n("div",{staticClass:"wikibase-termbox__actions"},[n("div",{staticClass:"wikibase-termbox__action-edit"},[n("a",{attrs:{href:t.editLinkUrl}})])])])},x=[];function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C(t){for(var e=1;e=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}var _=n("65d9"),b=n.n(_),w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wikibase-termbox wikibase-termbox--primaryLanguage"},[n("div",[n("div",{staticClass:"wikibase-termbox__term"},[n("span",{staticClass:"wikibase-termbox__language"},[t._v(t._s(t.primaryLanguageName))]),n("h2",{staticClass:"wikibase-termbox__label"},[t._v(t._s(t.label))]),n("p",{staticClass:"wikibase-termbox__description"},[t._v(t._s(t.description))]),t.hasAliases?n("ul",{staticClass:"wikibase-termbox__aliases"},t._l(t.aliases,function(e){return n("li",{staticClass:"wikibase-termbox__alias",attrs:{"data-separator":t._f("message")("wikibase-termbox-alias-separator")}},[t._v(t._s(e.value))])})):n("p",{staticClass:"wikibase-termbox__aliases wikibase-termbox__aliases--placeholder"},[t._v("?")])])]),n("div",{staticClass:"wikibase-termbox__actions"},[n("EditPen",{attrs:{href:t.editLinkUrl}})],1)])},x=[];function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C(t){for(var e=1;e=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}},A="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function $(t){A&&(t._devtoolHook=A,A.emit("vuex:init",t),A.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){A.emit("vuex:mutation",t,e)}))}function S(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function j(t){return null!==t&&"object"===typeof t}function E(t){return t&&"function"===typeof t.then}var L=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},P={namespaced:{configurable:!0}};P.namespaced.get=function(){return!!this._rawModule.namespaced},L.prototype.addChild=function(t,e){this._children[t]=e},L.prototype.removeChild=function(t){delete this._children[t]},L.prototype.getChild=function(t){return this._children[t]},L.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},L.prototype.forEachChild=function(t){S(this._children,t)},L.prototype.forEachGetter=function(t){this._rawModule.getters&&S(this._rawModule.getters,t)},L.prototype.forEachAction=function(t){this._rawModule.actions&&S(this._rawModule.actions,t)},L.prototype.forEachMutation=function(t){this._rawModule.mutations&&S(this._rawModule.mutations,t)},Object.defineProperties(L.prototype,P);var T=function(t){this.register([],t,!1)};function M(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;M(t.concat(r),e.getChild(r),n.modules[r])}}T.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},T.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},T.prototype.update=function(t){M([],this.root,t)},T.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new L(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&S(e.modules,function(e,i){r.register(t.concat(i),e,n)})},T.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var I;var R=function(t){var e=this;void 0===t&&(t={}),!I&&"undefined"!==typeof window&&window.Vue&&J(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var i=t.state;void 0===i&&(i={}),"function"===typeof i&&(i=i()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new T(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new I;var o=this,a=this,s=a.dispatch,c=a.commit;this.dispatch=function(t,e){return s.call(o,t,e)},this.commit=function(t,e,n){return c.call(o,t,e,n)},this.strict=r,B(this,i,[],this._modules.root),U(this,i),n.forEach(function(t){return t(e)}),I.config.devtools&&$(this)},N={state:{configurable:!0}};function D(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function F(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;B(t,n,[],t._modules.root,!0),U(t,n,e)}function U(t,e,n){var r=t._vm;t.getters={};var i=t._wrappedGetters,o={};S(i,function(e,n){o[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var a=I.config.silent;I.config.silent=!0,t._vm=new I({data:{$$state:e},computed:o}),I.config.silent=a,t.strict&&K(t),r&&(n&&t._withCommit(function(){r._data.$$state=null}),I.nextTick(function(){return r.$destroy()}))}function B(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!o&&!i){var s=q(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit(function(){I.set(s,c,r.state)})}var u=r.context=V(t,a,n);r.forEachMutation(function(e,n){var r=a+n;z(t,r,e,u)}),r.forEachAction(function(e,n){var r=e.root?n:a+n,i=e.handler||e;G(t,r,i,u)}),r.forEachGetter(function(e,n){var r=a+n;W(t,r,e,u)}),r.forEachChild(function(r,o){B(t,e,n.concat(o),r,i)})}function V(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=X(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:r?t.commit:function(n,r,i){var o=X(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return H(t,e)}},state:{get:function(){return q(t.state,n)}}}),i}function H(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach(function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}}),n}function z(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push(function(e){n.call(t,r.state,e)})}function G(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push(function(e,i){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return E(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):o})}function W(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function K(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}function q(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function X(t,e,n){return j(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function J(t){I&&t===I||(I=t,k(I))}N.state.get=function(){return this._vm._data.$$state},N.state.set=function(t){0},R.prototype.commit=function(t,e,n){var r=this,i=X(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit(function(){c.forEach(function(t){t(a)})}),this._subscribers.forEach(function(t){return t(s,r.state)}))},R.prototype.dispatch=function(t,e){var n=this,r=X(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s)return this._actionSubscribers.forEach(function(t){return t(a,n.state)}),s.length>1?Promise.all(s.map(function(t){return t(o)})):s[0](o)},R.prototype.subscribe=function(t){return D(t,this._subscribers)},R.prototype.subscribeAction=function(t){return D(t,this._actionSubscribers)},R.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},R.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},R.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),B(this,this.state,t,this._modules.get(t),n.preserveState),U(this,this.state)},R.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=q(e.state,t.slice(0,-1));I.delete(n,t[t.length-1])}),F(this)},R.prototype.hotUpdate=function(t){this._modules.update(t),F(this,!0)},R.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(R.prototype,N);var Z=rt(function(t,e){var n={};return nt(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=it(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0}),n}),Q=rt(function(t,e){var n={};return nt(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=it(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n}),Y=rt(function(t,e){var n={};return nt(e).forEach(function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||it(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0}),n}),tt=rt(function(t,e){var n={};return nt(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=it(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n}),et=function(t){return{mapState:Z.bind(null,t),mapGetters:Y.bind(null,t),mapMutations:Q.bind(null,t),mapActions:tt.bind(null,t)}};function nt(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function rt(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function it(t,e,n){var r=t._modulesNamespaceMap[n];return r}var ot={Store:R,install:J,version:"3.0.1",mapState:Z,mapMutations:Q,mapGetters:Y,mapActions:tt,createNamespacedHelpers:et},at=ot,st="entity",ct="user",ut="language",ft="links",lt=function(t){return"wikibase-termbox-alias-separator"===t?"|":t};r["default"].filter("message",lt);var pt=function(t){function e(){return i(this,e),y(this,m(e).apply(this,arguments))}return p(e,[{key:"label",get:function(){var t=this.entityLabel(this.primaryLanguage);return null===t?"???":t.value}},{key:"description",get:function(){var t=this.entityDescription(this.primaryLanguage);return null===t?"??":t.value}},{key:"hasAliases",get:function(){return!(null==this.entityAliases(this.primaryLanguage))}},{key:"aliases",get:function(){var t=this.entityAliases(this.primaryLanguage);return null===t?[]:t}},{key:"primaryLanguageName",get:function(){var t=this.getLanguageTranslation(this.primaryLanguage,this.primaryLanguage);return null===t?"????":t}}]),f(e,t),e}(r["default"]);pt=g([b()({computed:C({},Z(ft,["editLinkUrl"]),Z(ct,["primaryLanguage"]),Y(st,{entityLabel:"getLabelByLanguage",entityDescription:"getDescriptionByLanguage",entityAliases:"getAliasesByLanguage"}),Y(ut,{getLanguageTranslation:"getTranslationByCode"}))})],pt);var dt=pt,vt=dt;n("897f");function ht(t,e,n,r,i,o,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(t,e){return c.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:u}}var yt=ht(vt,w,x,!1,null,null,null);yt.options.__file="TermBox.vue";var mt=yt.exports,gt="entityInit",_t="languagePreference",bt="languageInit",wt="ensureAvailableInLanguage",xt="editLinkUrlInit",Ot=function(t){function e(){return i(this,e),y(this,m(e).apply(this,arguments))}return p(e,null,[{key:"asyncData",value:function(t,e){return Promise.all([t.dispatch("".concat(ut,"/").concat(bt)),t.dispatch("".concat(st,"/").concat(gt),e.entityId),t.dispatch("".concat(ct,"/").concat(_t),e.language),t.dispatch("".concat(ft,"/").concat(xt),e.editLinkUrl)])}}]),f(e,t),e}(r["default"]);Ot=g([b()({components:{TermBox:mt}})],Ot);var Ct=Ot,kt=Ct,At=(n("c796"),ht(kt,s,c,!1,null,null,null));At.options.__file="App.vue";var $t=At.exports,St={id:function(t){return t.id},labels:function(t){return t.labels},descriptions:function(t){return t.descriptions},aliases:function(t){return t.aliases},getLabelByLanguage:function(t){return function(e){return t.labels[e]||null}},getDescriptionByLanguage:function(t){return function(e){return t.descriptions[e]||null}},getAliasesByLanguage:function(t){return function(e){return t.aliases[e]||null}}},jt="initializeEntity";function Et(t,e,n){return Et="undefined"!==typeof Reflect&&Reflect.construct?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=t.bind.apply(t,r),o=new i;return n&&u(o,n.prototype),o},Et.apply(null,arguments)}function Lt(t){var e="function"===typeof Map?new Map:void 0;return Lt=function(t){if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,u(function(){return Et(t,arguments,m(this).constructor)},t))},Lt(t)}var Pt,Tt=function(t){function e(t){var n;return i(this,e),n=y(this,m(e).call(this)),"undefined"!==typeof t&&(n.message=t),Error.captureStackTrace&&Error.captureStackTrace(h(h(n)),e),n}return f(e,t),e}(Lt(TypeError)),Mt=function(t){function e(t){return i(this,e),y(this,m(e).call(this,t))}return f(e,t),e}(Tt),It=function(t){function e(t){return i(this,e),y(this,m(e).call(this,t))}return f(e,t),e}(Mt),Rt=function t(e,n,r,o){i(this,t),this.id=e,this.labels=n,this.descriptions=r,this.aliases=o},Nt=O({},jt,function(t,e){if(!(e instanceof Rt))throw new It(JSON.stringify(e));t.id=e.id,t.labels=e.labels,t.descriptions=e.descriptions,t.aliases=e.aliases}),Dt=function(){function t(){i(this,t)}return p(t,[{key:"setLanguageTranslationRepository",value:function(t){this.languageTranslationRepository=t}},{key:"getLanguageTranslationRepository",value:function(){if(this.languageTranslationRepository)return this.languageTranslationRepository;throw new Error("languageTranslationRepository is undefined")}},{key:"setLanguageRepository",value:function(t){this.languageRepository=t}},{key:"getLanguageRepository",value:function(){if(this.languageRepository)return this.languageRepository;throw new Error("languageRepository is undefined")}},{key:"setEntityRepository",value:function(t){this.entityRepository=t}},{key:"getEntityRepository",value:function(){if(this.entityRepository)return this.entityRepository;throw new Error("entityRepository is undefined")}}]),t}(),Ft=new Dt,Ut=O({},gt,function(t,e){return Ft.getEntityRepository().getFingerprintableEntity(e).then(function(e){t.commit(jt,e)})}),Bt={id:"",labels:{},descriptions:{},aliases:{}},Vt=!0,Ht={namespaced:Vt,state:Bt,getters:St,mutations:Nt,actions:Ut},zt="initializeLanguage",Gt=O({},_t,function(t,e){return t.commit(zt,e),t.dispatch("".concat(ut,"/").concat(wt),e,{root:!0})}),Wt={primaryLanguage:function(t){return t.primaryLanguage}},Kt=function(t){function e(t){return i(this,e),y(this,m(e).call(this,t))}return f(e,t),e}(Mt),qt=O({},zt,function(t,e){if("string"!==typeof e||e.length<2)throw new Kt;t.primaryLanguage=e}),Xt={primaryLanguage:""},Jt=!0,Zt={namespaced:Jt,state:Xt,actions:Gt,getters:Wt,mutations:qt},Qt="translationUpdate",Yt="languageUpdate",te=(Pt={},O(Pt,bt,function(t){return Ft.getLanguageRepository().getLanguages().then(function(e){t.commit(Yt,e)})}),O(Pt,wt,function(t,e){return Ft.getLanguageTranslationRepository().getLanguagesInLanguage(e).then(function(e){t.commit(Qt,e)})}),Pt),ee={getByCode:function(t){return function(e){return t.languages[e]||null}},getTranslationByCode:function(t){return function(e,n){var r=t.translations[n];return r&&r[e]||null}}};function ne(t){if(Array.isArray(t))return t}function re(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(t){i=!0,o=t}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}function ie(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function oe(t,e){return ne(t)||re(t,e)||ie()}n("ffc1"),n("f3e2");var ae,se=(ae={},O(ae,Yt,function(t,e){Object.entries(e).forEach(function(e){var n=oe(e,2),r=n[0],i=n[1];t.languages[r]=i})}),O(ae,Qt,function(t,e){Object.entries(e).forEach(function(e){var n=oe(e,2),r=n[0],i=n[1];t.translations[r]=i})}),ae),ce={translations:{},languages:{}},ue=!0,fe={namespaced:ue,actions:te,state:ce,getters:ee,mutations:se},le="updateEditLinkUrl",pe=O({},le,function(t,e){t.editLinkUrl=e}),de=O({},xt,function(t,e){t.commit(le,e)}),ve={editLinkUrl:""},he={namespaced:!0,state:ve,mutations:pe,actions:de};function ye(){var t={modules:{entity:Ht,user:Zt,language:fe,links:he},strict:!1};return new at.Store(t)}r["default"].use(at);n("8615");function me(t){return t.cid}function ge(t){var e=O({},me(t),t),n=t.options.components||{};for(var r in n)if(n[r].options){var i=me(n[r]);i in e||(e=C(O({},i,n[r]),e,ge(n[r])))}return e}var _e,be=function(t){var e=t.constructor;return Object.values(ge(e))},we=function(t){var e=ye(),n=new $t({store:e}),r=be(n);return Promise.all(r.map(function(n){if(n.asyncData)return n.asyncData(e,t)})).then(function(){return Promise.resolve(n)})},xe=function(){function t(e){i(this,t),this.contentLanguages=e}return p(t,[{key:"getLanguagesInLanguage",value:function(t){var e=this;return new Promise(function(n){n(O({},t,e.getLanguagesNames()))})}},{key:"getLanguagesNames",value:function(){return this.contentLanguages.getAllPairs()}}]),t}(),Oe=(n("456d"),function(){function t(e,n){i(this,t),this.contentLanguages=e,this.directionalities=n}return p(t,[{key:"getLanguages",value:function(){return Promise.resolve(this.getLanguageCollection())}},{key:"getLanguageCollection",value:function(){var t=this,e=this.getLanguageCodes(),n={};return e.forEach(function(e){n[e]=t.getDirectionalityByKey(e)}),n}},{key:"getLanguageCodes",value:function(){return Object.keys(this.contentLanguages.getAllPairs())}},{key:"getDirectionalityByKey",value:function(t){return{code:t,directionality:this.directionalities.getDir(t)}}}]),t}()),Ce=function(){function t(){i(this,t)}return p(t,[{key:"newFromSerialization",value:function(t){return this.validate(t),new Rt(t.id,t.labels,t.descriptions,t.aliases)}},{key:"validate",value:function(t){if(!t.hasOwnProperty("id")||!t.hasOwnProperty("labels")||!t.hasOwnProperty("descriptions")||!t.hasOwnProperty("aliases"))throw new Error("invalid entity serialization")}}]),t}(),ke=function(){function t(e){i(this,t),this.entityLoadedHook=e}return p(t,[{key:"getFingerprintableEntity",value:function(t){var e=this;return new Promise(function(t){e.entityLoadedHook.add(function(e){t((new Ce).newFromSerialization(e))})})}}]),t}();(function(t){t["entityLoaded"]="wikibase.entityPage.entityLoaded"})(_e||(_e={})),r["default"].config.productionTip=!1;var Ae=new window.wb.WikibaseContentLanguages;Ft.setLanguageTranslationRepository(new xe(Ae)),Ft.setLanguageRepository(new Oe(Ae,window.$.uls.data)),Ft.setEntityRepository(new ke(window.mw.hook(_e.entityLoaded))),a().then(function(t){we(t).then(function(t){t.$mount(".wikibase-entitytermsview")})})},bcaa:function(t,e,n){var r=n("cb7c"),i=n("d3f4"),o=n("a5b8");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,c=r(e),u=i(c.length),f=o(a,u);if(t&&n!=n){while(u>f)if(s=c[f++],s!=s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c796:function(t,e,n){"use strict";var r=n("7850"),i=n.n(r);i.a},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},cd1c:function(t,e,n){var r=n("e853");t.exports=function(t,e){return new(r(t))(e)}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(e.length>c)r(s,n=e[c++])&&(~o(u,n)||u.push(n));return u}},d25f:function(t,e,n){"use strict";var r=n("5ca1"),i=n("0a49")(2);r(r.P+r.F*!n("2f21")([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},dcbc:function(t,e,n){var r=n("2aba");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e853:function(t,e,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&(e=e[o],null===e&&(e=void 0))),void 0===e?Array:e}},ebd6:function(t,e,n){var r=n("cb7c"),i=n("d8e8"),o=n("2b4c")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},f3e2:function(t,e,n){"use strict";var r=n("5ca1"),i=n("0a49")(0),o=n("2f21")([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},f605:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},ffc1:function(t,e,n){var r=n("5ca1"),i=n("504c")(!0);r(r.S,"Object",{entries:function(t){return i(t)}})}}); + */var k=function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}},A="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function $(t){A&&(t._devtoolHook=A,A.emit("vuex:init",t),A.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){A.emit("vuex:mutation",t,e)}))}function S(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function j(t){return null!==t&&"object"===typeof t}function E(t){return t&&"function"===typeof t.then}var L=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},P={namespaced:{configurable:!0}};P.namespaced.get=function(){return!!this._rawModule.namespaced},L.prototype.addChild=function(t,e){this._children[t]=e},L.prototype.removeChild=function(t){delete this._children[t]},L.prototype.getChild=function(t){return this._children[t]},L.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},L.prototype.forEachChild=function(t){S(this._children,t)},L.prototype.forEachGetter=function(t){this._rawModule.getters&&S(this._rawModule.getters,t)},L.prototype.forEachAction=function(t){this._rawModule.actions&&S(this._rawModule.actions,t)},L.prototype.forEachMutation=function(t){this._rawModule.mutations&&S(this._rawModule.mutations,t)},Object.defineProperties(L.prototype,P);var T=function(t){this.register([],t,!1)};function M(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;M(t.concat(r),e.getChild(r),n.modules[r])}}T.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},T.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},T.prototype.update=function(t){M([],this.root,t)},T.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new L(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&S(e.modules,function(e,i){r.register(t.concat(i),e,n)})},T.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var I;var R=function(t){var e=this;void 0===t&&(t={}),!I&&"undefined"!==typeof window&&window.Vue&&J(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var i=t.state;void 0===i&&(i={}),"function"===typeof i&&(i=i()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new T(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new I;var o=this,a=this,s=a.dispatch,c=a.commit;this.dispatch=function(t,e){return s.call(o,t,e)},this.commit=function(t,e,n){return c.call(o,t,e,n)},this.strict=r,B(this,i,[],this._modules.root),U(this,i),n.forEach(function(t){return t(e)}),I.config.devtools&&$(this)},N={state:{configurable:!0}};function D(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function F(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;B(t,n,[],t._modules.root,!0),U(t,n,e)}function U(t,e,n){var r=t._vm;t.getters={};var i=t._wrappedGetters,o={};S(i,function(e,n){o[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var a=I.config.silent;I.config.silent=!0,t._vm=new I({data:{$$state:e},computed:o}),I.config.silent=a,t.strict&&K(t),r&&(n&&t._withCommit(function(){r._data.$$state=null}),I.nextTick(function(){return r.$destroy()}))}function B(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!o&&!i){var s=q(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit(function(){I.set(s,c,r.state)})}var u=r.context=V(t,a,n);r.forEachMutation(function(e,n){var r=a+n;z(t,r,e,u)}),r.forEachAction(function(e,n){var r=e.root?n:a+n,i=e.handler||e;G(t,r,i,u)}),r.forEachGetter(function(e,n){var r=a+n;W(t,r,e,u)}),r.forEachChild(function(r,o){B(t,e,n.concat(o),r,i)})}function V(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=X(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:r?t.commit:function(n,r,i){var o=X(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return H(t,e)}},state:{get:function(){return q(t.state,n)}}}),i}function H(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach(function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}}),n}function z(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push(function(e){n.call(t,r.state,e)})}function G(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push(function(e,i){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return E(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):o})}function W(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function K(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}function q(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function X(t,e,n){return j(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function J(t){I&&t===I||(I=t,k(I))}N.state.get=function(){return this._vm._data.$$state},N.state.set=function(t){0},R.prototype.commit=function(t,e,n){var r=this,i=X(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit(function(){c.forEach(function(t){t(a)})}),this._subscribers.forEach(function(t){return t(s,r.state)}))},R.prototype.dispatch=function(t,e){var n=this,r=X(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s)return this._actionSubscribers.forEach(function(t){return t(a,n.state)}),s.length>1?Promise.all(s.map(function(t){return t(o)})):s[0](o)},R.prototype.subscribe=function(t){return D(t,this._subscribers)},R.prototype.subscribeAction=function(t){return D(t,this._actionSubscribers)},R.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},R.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},R.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),B(this,this.state,t,this._modules.get(t),n.preserveState),U(this,this.state)},R.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=q(e.state,t.slice(0,-1));I.delete(n,t[t.length-1])}),F(this)},R.prototype.hotUpdate=function(t){this._modules.update(t),F(this,!0)},R.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(R.prototype,N);var Z=rt(function(t,e){var n={};return nt(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=it(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0}),n}),Q=rt(function(t,e){var n={};return nt(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=it(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n}),Y=rt(function(t,e){var n={};return nt(e).forEach(function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||it(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0}),n}),tt=rt(function(t,e){var n={};return nt(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=it(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n}),et=function(t){return{mapState:Z.bind(null,t),mapGetters:Y.bind(null,t),mapMutations:Q.bind(null,t),mapActions:tt.bind(null,t)}};function nt(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function rt(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function it(t,e,n){var r=t._modulesNamespaceMap[n];return r}var ot={Store:R,install:J,version:"3.0.1",mapState:Z,mapMutations:Q,mapGetters:Y,mapActions:tt,createNamespacedHelpers:et},at=ot,st="entity",ct="user",ut="language",ft="links",lt=function(t){return"wikibase-termbox-alias-separator"===t?"|":t},pt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"edit-action"},[n("a",{attrs:{href:t.href}})])},dt=[],vt=function(t){function e(){return i(this,e),y(this,m(e).apply(this,arguments))}return f(e,t),e}(r["default"]);vt=g([b()({props:{href:String}})],vt);var ht=vt,yt=ht;n("1dfc");function mt(t,e,n,r,i,o,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(t,e){return c.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:u}}var gt=mt(yt,pt,dt,!1,null,null,null);gt.options.__file="EditPen.vue";var _t=gt.exports;r["default"].filter("message",lt);var bt=function(t){function e(){return i(this,e),y(this,m(e).apply(this,arguments))}return p(e,[{key:"label",get:function(){var t=this.entityLabel(this.primaryLanguage);return null===t?"???":t.value}},{key:"description",get:function(){var t=this.entityDescription(this.primaryLanguage);return null===t?"??":t.value}},{key:"hasAliases",get:function(){return!(null==this.entityAliases(this.primaryLanguage))}},{key:"aliases",get:function(){var t=this.entityAliases(this.primaryLanguage);return null===t?[]:t}},{key:"primaryLanguageName",get:function(){var t=this.getLanguageTranslation(this.primaryLanguage,this.primaryLanguage);return null===t?"????":t}}]),f(e,t),e}(r["default"]);bt=g([b()({components:{EditPen:_t},computed:C({},Z(ft,["editLinkUrl"]),Z(ct,["primaryLanguage"]),Y(st,{entityLabel:"getLabelByLanguage",entityDescription:"getDescriptionByLanguage",entityAliases:"getAliasesByLanguage"}),Y(ut,{getLanguageTranslation:"getTranslationByCode"}))})],bt);var wt=bt,xt=wt,Ot=(n("897f"),mt(xt,w,x,!1,null,null,null));Ot.options.__file="TermBox.vue";var Ct=Ot.exports,kt="entityInit",At="languagePreference",$t="languageInit",St="ensureAvailableInLanguage",jt="editLinkUrlInit",Et=function(t){function e(){return i(this,e),y(this,m(e).apply(this,arguments))}return p(e,null,[{key:"asyncData",value:function(t,e){return Promise.all([t.dispatch("".concat(ut,"/").concat($t)),t.dispatch("".concat(st,"/").concat(kt),e.entityId),t.dispatch("".concat(ct,"/").concat(At),e.language),t.dispatch("".concat(ft,"/").concat(jt),e.editLinkUrl)])}}]),f(e,t),e}(r["default"]);Et=g([b()({components:{TermBox:Ct}})],Et);var Lt=Et,Pt=Lt,Tt=(n("c796"),mt(Pt,s,c,!1,null,null,null));Tt.options.__file="App.vue";var Mt=Tt.exports,It={id:function(t){return t.id},labels:function(t){return t.labels},descriptions:function(t){return t.descriptions},aliases:function(t){return t.aliases},getLabelByLanguage:function(t){return function(e){return t.labels[e]||null}},getDescriptionByLanguage:function(t){return function(e){return t.descriptions[e]||null}},getAliasesByLanguage:function(t){return function(e){return t.aliases[e]||null}}},Rt="initializeEntity";function Nt(t,e,n){return Nt="undefined"!==typeof Reflect&&Reflect.construct?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=t.bind.apply(t,r),o=new i;return n&&u(o,n.prototype),o},Nt.apply(null,arguments)}function Dt(t){var e="function"===typeof Map?new Map:void 0;return Dt=function(t){if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,u(function(){return Nt(t,arguments,m(this).constructor)},t))},Dt(t)}var Ft,Ut=function(t){function e(t){var n;return i(this,e),n=y(this,m(e).call(this)),"undefined"!==typeof t&&(n.message=t),Error.captureStackTrace&&Error.captureStackTrace(h(h(n)),e),n}return f(e,t),e}(Dt(TypeError)),Bt=function(t){function e(t){return i(this,e),y(this,m(e).call(this,t))}return f(e,t),e}(Ut),Vt=function(t){function e(t){return i(this,e),y(this,m(e).call(this,t))}return f(e,t),e}(Bt),Ht=function t(e,n,r,o){i(this,t),this.id=e,this.labels=n,this.descriptions=r,this.aliases=o},zt=O({},Rt,function(t,e){if(!(e instanceof Ht))throw new Vt(JSON.stringify(e));t.id=e.id,t.labels=e.labels,t.descriptions=e.descriptions,t.aliases=e.aliases}),Gt=function(){function t(){i(this,t)}return p(t,[{key:"setLanguageTranslationRepository",value:function(t){this.languageTranslationRepository=t}},{key:"getLanguageTranslationRepository",value:function(){if(this.languageTranslationRepository)return this.languageTranslationRepository;throw new Error("languageTranslationRepository is undefined")}},{key:"setLanguageRepository",value:function(t){this.languageRepository=t}},{key:"getLanguageRepository",value:function(){if(this.languageRepository)return this.languageRepository;throw new Error("languageRepository is undefined")}},{key:"setEntityRepository",value:function(t){this.entityRepository=t}},{key:"getEntityRepository",value:function(){if(this.entityRepository)return this.entityRepository;throw new Error("entityRepository is undefined")}}]),t}(),Wt=new Gt,Kt=O({},kt,function(t,e){return Wt.getEntityRepository().getFingerprintableEntity(e).then(function(e){t.commit(Rt,e)})}),qt={id:"",labels:{},descriptions:{},aliases:{}},Xt=!0,Jt={namespaced:Xt,state:qt,getters:It,mutations:zt,actions:Kt},Zt="initializeLanguage",Qt=O({},At,function(t,e){return t.commit(Zt,e),t.dispatch("".concat(ut,"/").concat(St),e,{root:!0})}),Yt={primaryLanguage:function(t){return t.primaryLanguage}},te=function(t){function e(t){return i(this,e),y(this,m(e).call(this,t))}return f(e,t),e}(Bt),ee=O({},Zt,function(t,e){if("string"!==typeof e||e.length<2)throw new te;t.primaryLanguage=e}),ne={primaryLanguage:""},re=!0,ie={namespaced:re,state:ne,actions:Qt,getters:Yt,mutations:ee},oe="translationUpdate",ae="languageUpdate",se=(Ft={},O(Ft,$t,function(t){return Wt.getLanguageRepository().getLanguages().then(function(e){t.commit(ae,e)})}),O(Ft,St,function(t,e){return Wt.getLanguageTranslationRepository().getLanguagesInLanguage(e).then(function(e){t.commit(oe,e)})}),Ft),ce={getByCode:function(t){return function(e){return t.languages[e]||null}},getTranslationByCode:function(t){return function(e,n){var r=t.translations[n];return r&&r[e]||null}}};function ue(t){if(Array.isArray(t))return t}function fe(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(t){i=!0,o=t}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}function le(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function pe(t,e){return ue(t)||fe(t,e)||le()}n("ffc1"),n("f3e2");var de,ve=(de={},O(de,ae,function(t,e){Object.entries(e).forEach(function(e){var n=pe(e,2),r=n[0],i=n[1];t.languages[r]=i})}),O(de,oe,function(t,e){Object.entries(e).forEach(function(e){var n=pe(e,2),r=n[0],i=n[1];t.translations[r]=i})}),de),he={translations:{},languages:{}},ye=!0,me={namespaced:ye,actions:se,state:he,getters:ce,mutations:ve},ge="updateEditLinkUrl",_e=O({},ge,function(t,e){t.editLinkUrl=e}),be=O({},jt,function(t,e){t.commit(ge,e)}),we={editLinkUrl:""},xe={namespaced:!0,state:we,mutations:_e,actions:be};function Oe(){var t={modules:{entity:Jt,user:ie,language:me,links:xe},strict:!1};return new at.Store(t)}r["default"].use(at);n("8615");function Ce(t){return t.cid}function ke(t){var e=O({},Ce(t),t),n=t.options.components||{};for(var r in n)if(n[r].options){var i=Ce(n[r]);i in e||(e=C(O({},i,n[r]),e,ke(n[r])))}return e}var Ae,$e=function(t){var e=t.constructor;return Object.values(ke(e))},Se=function(t){var e=Oe(),n=new Mt({store:e}),r=$e(n);return Promise.all(r.map(function(n){if(n.asyncData)return n.asyncData(e,t)})).then(function(){return Promise.resolve(n)})},je=function(){function t(e){i(this,t),this.contentLanguages=e}return p(t,[{key:"getLanguagesInLanguage",value:function(t){var e=this;return new Promise(function(n){n(O({},t,e.getLanguagesNames()))})}},{key:"getLanguagesNames",value:function(){return this.contentLanguages.getAllPairs()}}]),t}(),Ee=(n("456d"),function(){function t(e,n){i(this,t),this.contentLanguages=e,this.directionalities=n}return p(t,[{key:"getLanguages",value:function(){return Promise.resolve(this.getLanguageCollection())}},{key:"getLanguageCollection",value:function(){var t=this,e=this.getLanguageCodes(),n={};return e.forEach(function(e){n[e]=t.getDirectionalityByKey(e)}),n}},{key:"getLanguageCodes",value:function(){return Object.keys(this.contentLanguages.getAllPairs())}},{key:"getDirectionalityByKey",value:function(t){return{code:t,directionality:this.directionalities.getDir(t)}}}]),t}()),Le=function(){function t(){i(this,t)}return p(t,[{key:"newFromSerialization",value:function(t){return this.validate(t),new Ht(t.id,t.labels,t.descriptions,t.aliases)}},{key:"validate",value:function(t){if(!t.hasOwnProperty("id")||!t.hasOwnProperty("labels")||!t.hasOwnProperty("descriptions")||!t.hasOwnProperty("aliases"))throw new Error("invalid entity serialization")}}]),t}(),Pe=function(){function t(e){i(this,t),this.entityLoadedHook=e}return p(t,[{key:"getFingerprintableEntity",value:function(t){var e=this;return new Promise(function(t){e.entityLoadedHook.add(function(e){t((new Le).newFromSerialization(e))})})}}]),t}();(function(t){t["entityLoaded"]="wikibase.entityPage.entityLoaded"})(Ae||(Ae={})),r["default"].config.productionTip=!1;var Te=new window.wb.WikibaseContentLanguages;Wt.setLanguageTranslationRepository(new je(Te)),Wt.setLanguageRepository(new Ee(Te,window.$.uls.data)),Wt.setEntityRepository(new Pe(window.mw.hook(Ae.entityLoaded))),a().then(function(t){Se(t).then(function(t){t.$mount(".wikibase-entitytermsview")})})},bcaa:function(t,e,n){var r=n("cb7c"),i=n("d3f4"),o=n("a5b8");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,c=r(e),u=i(c.length),f=o(a,u);if(t&&n!=n){while(u>f)if(s=c[f++],s!=s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c796:function(t,e,n){"use strict";var r=n("7850"),i=n.n(r);i.a},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},cd1c:function(t,e,n){var r=n("e853");t.exports=function(t,e){return new(r(t))(e)}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(e.length>c)r(s,n=e[c++])&&(~o(u,n)||u.push(n));return u}},d25f:function(t,e,n){"use strict";var r=n("5ca1"),i=n("0a49")(2);r(r.P+r.F*!n("2f21")([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},dcbc:function(t,e,n){var r=n("2aba");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e853:function(t,e,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&(e=e[o],null===e&&(e=void 0))),void 0===e?Array:e}},ebd6:function(t,e,n){var r=n("cb7c"),i=n("d8e8"),o=n("2b4c")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},f3e2:function(t,e,n){"use strict";var r=n("5ca1"),i=n("0a49")(0),o=n("2f21")([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},f605:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},ffc1:function(t,e,n){var r=n("5ca1"),i=n("504c")(!0);r(r.S,"Object",{entries:function(t){return i(t)}})}}); //# sourceMappingURL=wikibase.termbox.main.js.map \ No newline at end of file diff --git a/src/components/EditPen.vue b/src/components/EditPen.vue new file mode 100644 index 0000000..7df1bb0 --- /dev/null +++ b/src/components/EditPen.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/src/components/TermBox.vue b/src/components/TermBox.vue index 7873144..e722e62 100644 --- a/src/components/TermBox.vue +++ b/src/components/TermBox.vue @@ -15,9 +15,7 @@
-
- -
+
@@ -37,6 +35,7 @@ import { } from '@/store/namespaces'; import Term from '@/datamodel/Term'; import message from '@/filter/message'; +import EditPen from '@/components/EditPen.vue'; Vue.filter( 'message', message ); @@ -53,6 +52,7 @@ interface TermboxBindings extends Vue, EntityBindings { } @Component( { + components: { EditPen }, computed: { ...mapState( NS_LINKS, [ 'editLinkUrl' ] ), ...mapState( NS_USER, [ @@ -68,7 +68,6 @@ interface TermboxBindings extends Vue, EntityBindings { } ), }, } ) - export default class TermBox extends ( Vue as VueConstructor ) { get label(): string { const label: Term = this.entityLabel( this.primaryLanguage ); diff --git a/tests/unit/components/EditPen.spec.ts b/tests/unit/components/EditPen.spec.ts new file mode 100644 index 0000000..4da63f3 --- /dev/null +++ b/tests/unit/components/EditPen.spec.ts @@ -0,0 +1,17 @@ +import EditPen from '@/components/EditPen.vue'; +import { mount } from '@vue/test-utils'; + +describe( 'EditPen', () => { + + it( 'creates a link from its href prop', () => { + const url = '/edit/Q123'; + const wrapper = mount( EditPen, { + propsData: { + href: url, + }, + } ); + + expect( wrapper.find( 'a' ).attributes().href ).toBe( url ); + } ); + +} ); diff --git a/tests/unit/components/TermBox.spec.ts b/tests/unit/components/TermBox.spec.ts index 2a24f20..4614ae9 100644 --- a/tests/unit/components/TermBox.spec.ts +++ b/tests/unit/components/TermBox.spec.ts @@ -1,6 +1,7 @@ import Vuex from 'vuex'; import { createLocalVue, shallowMount } from '@vue/test-utils'; import TermBox from '@/components/TermBox.vue'; +import EditPen from '@/components/EditPen.vue'; import { createStore } from '@/store'; import { NS_ENTITY, @@ -128,13 +129,13 @@ describe( 'TermBox.vue', () => { expect( wrapper.find( '.wikibase-termbox__aliases--placeholder' ).text() ).toBe( '?' ); } ); - it( 'contains an edit link', () => { + it( 'contains an edit pen', () => { const editLinkUrl = '/edit/Q42'; store.commit( `${NS_LINKS}/${EDIT_LINK_URL_UPDATE}`, editLinkUrl ); const wrapper = shallowMount( TermBox, { store, localVue } ); - expect( wrapper.find( '.wikibase-termbox__action-edit a' ).attributes( 'href' ) ) - .toBe( editLinkUrl ); + expect( wrapper.find( EditPen ).props() ) + .toHaveProperty( 'href', editLinkUrl ); } ); } );