diff --git a/main/script/wikipedia-preview.production.js b/main/script/wikipedia-preview.production.js index 6f256a0b..a419ddbf 100644 --- a/main/script/wikipedia-preview.production.js +++ b/main/script/wikipedia-preview.production.js @@ -1,3 +1,3 @@ !function(e,i){"object"==typeof exports&&"object"==typeof module?module.exports=i():"function"==typeof define&&define.amd?define("wikipediaPreview",[],i):"object"==typeof exports?exports.wikipediaPreview=i():e.wikipediaPreview=i()}(window,(function(){return function(e){var i={};function r(a){if(i[a])return i[a].exports;var n=i[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=i,r.d=function(e,i,a){r.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,i){if(1&i&&(e=r(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var n in e)r.d(a,n,function(i){return e[i]}.bind(null,n));return a},r.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(i,"a",i),i},r.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},r.p="",r(r.s=155)}([function(e,i,r){"use strict";var a,n=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},o=function(){var e={};return function(i){if(void 0===e[i]){var r=document.querySelector(i);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[i]=r}return e[i]}}(),t=[];function l(e){for(var i=-1,r=0;r$1 is related to more than one article on Wikipedia.","preview-offline-message":"No internet connection available.","preview-offline-cta":"Try again"}')},function(e,i,r){var a=r(0),n=r(150);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.i,n,""]]);var o={insert:"head",singleton:!1};a(n,o);e.exports=n.locals||{}},function(e,i,r){ /*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */ -e.exports=function(){"use strict";var e=Object.hasOwnProperty,i=Object.setPrototypeOf,r=Object.isFrozen,a=Object.getPrototypeOf,n=Object.getOwnPropertyDescriptor,o=Object.freeze,t=Object.seal,l=Object.create,s="undefined"!=typeof Reflect&&Reflect,g=s.apply,d=s.construct;g||(g=function(e,i,r){return e.apply(i,r)}),o||(o=function(e){return e}),t||(t=function(e){return e}),d||(d=function(e,i){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var i=0,r=Array(e.length);i1?r-1:0),n=1;n/gm),R=t(/^data-[\-\w.\u00B7-\uFFFF]/),J=t(/^aria-[\-\w]+$/),B=t(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=t(/^(?:\w+script|data):/i),H=t(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Y(e){if(Array.isArray(e)){for(var i=0,r=Array(e.length);i0&&void 0!==arguments[0]?arguments[0]:U(),r=function(i){return e(i)};if(r.version="2.3.3",r.removed=[],!i||!i.document||9!==i.document.nodeType)return r.isSupported=!1,r;var a=i.document,n=i.document,t=i.DocumentFragment,l=i.HTMLTemplateElement,s=i.Node,g=i.Element,d=i.NodeFilter,u=i.NamedNodeMap,x=void 0===u?i.NamedNodeMap||i.MozNamedAttrMap:u,F=i.Text,V=i.Comment,Q=i.DOMParser,_=i.trustedTypes,X=g.prototype,K=M(X,"cloneNode"),ee=M(X,"nextSibling"),ie=M(X,"childNodes"),re=M(X,"parentNode");if("function"==typeof l){var ae=n.createElement("template");ae.content&&ae.content.ownerDocument&&(n=ae.content.ownerDocument)}var ne=q(_,a),oe=ne&&Pe?ne.createHTML(""):"",te=n,le=te.implementation,se=te.createNodeIterator,ge=te.createDocumentFragment,de=te.getElementsByTagName,ue=a.importNode,pe={};try{pe=I(n).documentMode?n.documentMode:{}}catch(e){}var ce={};r.isSupported="function"==typeof re&&le&&void 0!==le.createHTMLDocument&&9!==pe;var me=P,fe=$,we=R,ye=J,he=G,ve=H,ke=B,be=null,xe=j({},[].concat(Y(N),Y(S),Y(A),Y(T),Y(D))),je=null,Ie=j({},[].concat(Y(O),Y(E),Y(W),Y(C))),Me=null,Ne=null,Se=!0,Ae=!0,Le=!1,Te=!1,ze=!1,De=!1,Oe=!1,Ee=!1,We=!1,Ce=!0,Pe=!1,$e=!0,Re=!0,Je=!1,Be={},Ge=null,He=j({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ze=null,Ye=j({},["audio","video","img","source","image","track"]),Ue=null,qe=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Fe="http://www.w3.org/1998/Math/MathML",Ve="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml",_e=Qe,Xe=!1,Ke=void 0,ei=["application/xhtml+xml","text/html"],ii="text/html",ri=void 0,ai=null,ni=n.createElement("form"),oi=function(e){ai&&ai===e||(e&&"object"===(void 0===e?"undefined":Z(e))||(e={}),e=I(e),be="ALLOWED_TAGS"in e?j({},e.ALLOWED_TAGS):xe,je="ALLOWED_ATTR"in e?j({},e.ALLOWED_ATTR):Ie,Ue="ADD_URI_SAFE_ATTR"in e?j(I(qe),e.ADD_URI_SAFE_ATTR):qe,Ze="ADD_DATA_URI_TAGS"in e?j(I(Ye),e.ADD_DATA_URI_TAGS):Ye,Ge="FORBID_CONTENTS"in e?j({},e.FORBID_CONTENTS):He,Me="FORBID_TAGS"in e?j({},e.FORBID_TAGS):{},Ne="FORBID_ATTR"in e?j({},e.FORBID_ATTR):{},Be="USE_PROFILES"in e&&e.USE_PROFILES,Se=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=e.SAFE_FOR_TEMPLATES||!1,ze=e.WHOLE_DOCUMENT||!1,Ee=e.RETURN_DOM||!1,We=e.RETURN_DOM_FRAGMENT||!1,Ce=!1!==e.RETURN_DOM_IMPORT,Pe=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,$e=!1!==e.SANITIZE_DOM,Re=!1!==e.KEEP_CONTENT,Je=e.IN_PLACE||!1,ke=e.ALLOWED_URI_REGEXP||ke,_e=e.NAMESPACE||Qe,Ke=Ke=-1===ei.indexOf(e.PARSER_MEDIA_TYPE)?ii:e.PARSER_MEDIA_TYPE,ri="application/xhtml+xml"===Ke?function(e){return e}:f,Te&&(Ae=!1),We&&(Ee=!0),Be&&(be=j({},[].concat(Y(D))),je=[],!0===Be.html&&(j(be,N),j(je,O)),!0===Be.svg&&(j(be,S),j(je,E),j(je,C)),!0===Be.svgFilters&&(j(be,A),j(je,E),j(je,C)),!0===Be.mathMl&&(j(be,T),j(je,W),j(je,C))),e.ADD_TAGS&&(be===xe&&(be=I(be)),j(be,e.ADD_TAGS)),e.ADD_ATTR&&(je===Ie&&(je=I(je)),j(je,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&j(Ue,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Ge===He&&(Ge=I(Ge)),j(Ge,e.FORBID_CONTENTS)),Re&&(be["#text"]=!0),ze&&j(be,["html","head","body"]),be.table&&(j(be,["tbody"]),delete Me.tbody),o&&o(e),ai=e)},ti=j({},["mi","mo","mn","ms","mtext"]),li=j({},["foreignobject","desc","title","annotation-xml"]),si=j({},S);j(si,A),j(si,L);var gi=j({},T);j(gi,z);var di=function(e){var i=re(e);i&&i.tagName||(i={namespaceURI:Qe,tagName:"template"});var r=f(e.tagName),a=f(i.tagName);if(e.namespaceURI===Ve)return i.namespaceURI===Qe?"svg"===r:i.namespaceURI===Fe?"svg"===r&&("annotation-xml"===a||ti[a]):Boolean(si[r]);if(e.namespaceURI===Fe)return i.namespaceURI===Qe?"math"===r:i.namespaceURI===Ve?"math"===r&&li[a]:Boolean(gi[r]);if(e.namespaceURI===Qe){if(i.namespaceURI===Ve&&!li[a])return!1;if(i.namespaceURI===Fe&&!ti[a])return!1;var n=j({},["title","style","font","a","script"]);return!gi[r]&&(n[r]||!si[r])}return!1},ui=function(e){m(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(i){try{e.outerHTML=oe}catch(i){e.remove()}}},pi=function(e,i){try{m(r.removed,{attribute:i.getAttributeNode(e),from:i})}catch(e){m(r.removed,{attribute:null,from:i})}if(i.removeAttribute(e),"is"===e&&!je[e])if(Ee||We)try{ui(i)}catch(e){}else try{i.setAttribute(e,"")}catch(e){}},ci=function(e){var i=void 0,r=void 0;if(Oe)e=""+e;else{var a=w(e,/^[\r\n\t ]+/);r=a&&a[0]}"application/xhtml+xml"===Ke&&(e=''+e+"");var o=ne?ne.createHTML(e):e;if(_e===Qe)try{i=(new Q).parseFromString(o,Ke)}catch(e){}if(!i||!i.documentElement){i=le.createDocument(_e,"template",null);try{i.documentElement.innerHTML=Xe?"":o}catch(e){}}var t=i.body||i.documentElement;return e&&r&&t.insertBefore(n.createTextNode(r),t.childNodes[0]||null),_e===Qe?de.call(i,ze?"html":"body")[0]:ze?i.documentElement:t},mi=function(e){return se.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},fi=function(e){return!(e instanceof F||e instanceof V||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof x&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},wi=function(e){return"object"===(void 0===s?"undefined":Z(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":Z(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},yi=function(e,i,a){ce[e]&&p(ce[e],(function(e){e.call(r,i,a,ai)}))},hi=function(e){var i=void 0;if(yi("beforeSanitizeElements",e,null),fi(e))return ui(e),!0;if(w(e.nodeName,/[\u0080-\uFFFF]/))return ui(e),!0;var a=ri(e.nodeName);if(yi("uponSanitizeElement",e,{tagName:a,allowedTags:be}),!wi(e.firstElementChild)&&(!wi(e.content)||!wi(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return ui(e),!0;if("select"===a&&k(/