diff --git a/THIRD_PARTY.txt b/THIRD_PARTY.txt
index db2fa0d7..724f3e17 100644
--- a/THIRD_PARTY.txt
+++ b/THIRD_PARTY.txt
@@ -285,6 +285,7 @@ https://cdnjs.cloudflare.com/ajax/libs/bxslider/4.2.15/jquery.bxslider.min.js
https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.bundle.min.js
https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.css
https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.7/chosen.jquery.min.js
+https://cdnjs.cloudflare.com/ajax/libs/clappr/0.4.5/clappr.min.js
https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js
https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.8/clipboard.min.js
https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.1/cookieconsent.min.css
diff --git a/core/mappings.js b/core/mappings.js
index 73563f3b..7d80829c 100644
--- a/core/mappings.js
+++ b/core/mappings.js
@@ -254,6 +254,7 @@ mappings.cdn = {
'Chart.js/{version}/Chart.css': resources.chartJsCSS,
'Chart.js/{version}/Chart.min.css': resources.chartJsCSS,
'chosen/{version}/chosen.jquery.min.js': resources.chosen,
+ 'clappr/{version}/clappr.': resources.clappr,
'clipboard.js/{version}/clipboard.min.js': resources.clipboardJS,
'cookieconsent/{version}/cookieconsent.min.js': resources.cookieconsent2JS,
'cookieconsent/{version}/cookieconsent.js': resources.cookieconsent2JS,
@@ -500,6 +501,7 @@ mappings.cdn = {
'bxslider/{version}/jquery.bxslider.min.css': resources.bxsliderCSS,
'bxslider/{version}/jquery.bxslider.css': resources.bxsliderCSS,
'chart.js@{version}': resources.chartJs,
+ 'clappr@{version}/dist/clappr.': resources.clappr,
'clipboard@{version}/dist/clipboard.': resources.clipboardJS,
'cookieconsent@{version}/build/cookieconsent.min.js': resources.cookieconsent2JS,
'cookieconsent@{version}/build/cookieconsent.js': resources.cookieconsent2JS,
diff --git a/core/resources.js b/core/resources.js
index b638babc..4612c13d 100644
--- a/core/resources.js
+++ b/core/resources.js
@@ -286,6 +286,10 @@ var resources = {
'chosen': {
'path': 'resources/chosen/{version}/chosen.jquery.min.jsm'
},
+ // clappr
+ 'clappr': {
+ 'path': 'resources/clappr/{version}/clappr.min.jsm'
+ },
// clipboard.js
'clipboardJS': {
'path': 'resources/clipboard.js/{version}/clipboard.min.jsm'
diff --git a/modules/internal/targets.js b/modules/internal/targets.js
index b2ffe5cb..d2a2fbac 100644
--- a/modules/internal/targets.js
+++ b/modules/internal/targets.js
@@ -225,6 +225,8 @@ targets.setLastVersion = function (type, version) {
return '2.9.4';
} else if (type.startsWith('/Chart.js/3.')) {
return '3.4.1';
+ } else if (type.startsWith('/clappr/0.') || type.startsWith('/clappr/latest/')) {
+ return '0.4.5';
} else if (type.startsWith('/chosen/1.')) {
return '1.8.7';
} else if (type.startsWith('/clipboard.js/1.')) {
@@ -654,6 +656,7 @@ targets.determineResourceName = function (filename) {
};
const ListOfFiles = {
+ 'clappr.min.jsm': 'clappr',
'script.min.jsm': 'script.js',
'rails.min.jsm': 'jquery-ujs',
'algolia-min.css': 'InstantSearch.css',
diff --git a/pages/updates/updates.html b/pages/updates/updates.html
index 5f246c5b..7c001e61 100644
--- a/pages/updates/updates.html
+++ b/pages/updates/updates.html
@@ -55,6 +55,7 @@
Added: script.js v2.5.9 (#555)
Mapping: FontAwesome (Font only) -> netdna.bootstrapcdn.com (#555)
Added: angular-sanitize v1.6.10 (#556)
+ Added: clappr v0.4.5 (#558)
Includes also the following changes, because the release of this version took a long time caused by a broken validation server of Mozilla (More information).
- Ruleset generator for NoScript (#489)
diff --git a/resources/clappr/0.4.5/clappr.min.jsm b/resources/clappr/0.4.5/clappr.min.jsm
new file mode 100644
index 00000000..75b0dd45
--- /dev/null
+++ b/resources/clappr/0.4.5/clappr.min.jsm
@@ -0,0 +1,85 @@
+var Clappr=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;ie.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var i=arguments[1],r=0;r>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var i=arguments[1],r=0;r]*>/,g=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,m=/^(?:body|html)$/i,y=/([A-Z])/g,A=["val","css","html","text","data","width","height","offset"],b=c.createElement("table"),E=c.createElement("tr"),T={tr:c.createElement("tbody"),tbody:b,thead:b,tfoot:b,td:E,th:E,"*":c.createElement("div")},k=/complete|loaded|interactive/,_=/^[\w-]*$/,S={},C=S.toString,R={},w=c.createElement("div"),O={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},L=Array.isArray||function(e){return e instanceof Array};function D(e){return null==e?String(e):S[C.call(e)]||"object"}function I(e){return"function"==D(e)}function P(e){return null!=e&&e==e.window}function x(e){return null!=e&&e.nodeType==e.DOCUMENT_NODE}function N(e){return"object"==D(e)}function M(e){return N(e)&&!P(e)&&Object.getPrototypeOf(e)==Object.prototype}function F(e){var t=!!e&&"length"in e&&e.length,i=n.type(e);return"function"!=i&&!P(e)&&("array"==i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function B(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function U(e){return e in h?h[e]:h[e]=new RegExp("(^|\\s)"+e+"(\\s|$)")}function V(e,t){return"number"!=typeof t||f[B(e)]?t:t+"px"}function j(e){return"children"in e?u.call(e.children):n.map(e.childNodes,(function(e){if(1==e.nodeType)return e}))}function K(e,t){var n,i=e?e.length:0;for(n=0;n$2>")),i===e&&(i=p.test(t)&&RegExp.$1),i in T||(i="*"),(s=T[i]).innerHTML=""+t,a=n.each(u.call(s.childNodes),(function(){s.removeChild(this)}))),M(r)&&(o=n(a),n.each(r,(function(e,t){A.indexOf(e)>-1?o[e](t):o.attr(e,t)}))),a},R.Z=function(e,t){return new K(e,t)},R.isZ=function(e){return e instanceof R.Z},R.init=function(t,i){var r,a;if(!t)return R.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&p.test(t))r=R.fragment(t,RegExp.$1,i),t=null;else{if(i!==e)return n(i).find(t);r=R.qsa(c,t)}else{if(I(t))return n(c).ready(t);if(R.isZ(t))return t;if(L(t))a=t,r=l.call(a,(function(e){return null!=e}));else if(N(t))r=[t],t=null;else if(p.test(t))r=R.fragment(t.trim(),RegExp.$1,i),t=null;else{if(i!==e)return n(i).find(t);r=R.qsa(c,t)}}return R.Z(r,t)},(n=function(e,t){return R.init(e,t)}).extend=function(e){var t,n=u.call(arguments,1);return"boolean"==typeof e&&(t=e,e=n.shift()),n.forEach((function(n){G(e,n,t)})),e},R.qsa=function(e,t){var n,i="#"==t[0],r=!i&&"."==t[0],a=i||r?t.slice(1):t,o=_.test(a);return e.getElementById&&o&&i?(n=e.getElementById(a))?[n]:[]:1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType?[]:u.call(o&&!i&&e.getElementsByClassName?r?e.getElementsByClassName(a):e.getElementsByTagName(t):e.querySelectorAll(t))},n.contains=c.documentElement.contains?function(e,t){return e!==t&&e.contains(t)}:function(e,t){for(;t&&(t=t.parentNode);)if(t===e)return!0;return!1},n.type=D,n.isFunction=I,n.isWindow=P,n.isArray=L,n.isPlainObject=M,n.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},n.isNumeric=function(e){var t=Number(e),n=typeof e;return null!=e&&"boolean"!=n&&("string"!=n||e.length)&&!isNaN(t)&&isFinite(t)||!1},n.inArray=function(e,t,n){return o.indexOf.call(t,e,n)},n.camelCase=r,n.trim=function(e){return null==e?"":String.prototype.trim.call(e)},n.uuid=0,n.support={},n.expr={},n.noop=function(){},n.map=function(e,t){var i,r,a,o,s=[];if(F(e))for(r=0;r0?n.fn.concat.apply([],o):o},n.each=function(e,t){var n,i;if(F(e)){for(n=0;n=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(e){return o.every.call(this,(function(t,n){return!1!==e.call(t,n,t)})),this},filter:function(e){return I(e)?this.not(this.not(e)):n(l.call(this,(function(t){return R.matches(t,e)})))},add:function(e,t){return n(a(this.concat(n(e,t))))},is:function(e){return this.length>0&&R.matches(this[0],e)},not:function(t){var i=[];if(I(t)&&t.call!==e)this.each((function(e){t.call(this,e)||i.push(this)}));else{var r="string"==typeof t?this.filter(t):F(t)&&I(t.item)?u.call(t):n(t);this.forEach((function(e){r.indexOf(e)<0&&i.push(e)}))}return n(i)},has:function(e){return this.filter((function(){return N(e)?n.contains(this,e):n(this).find(e).size()}))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){var e=this[0];return e&&!N(e)?e:n(e)},last:function(){var e=this[this.length-1];return e&&!N(e)?e:n(e)},find:function(e){var t=this;return e?"object"==typeof e?n(e).filter((function(){var e=this;return o.some.call(t,(function(t){return n.contains(t,e)}))})):1==this.length?n(R.qsa(this[0],e)):this.map((function(){return R.qsa(this,e)})):n()},closest:function(e,t){var i=[],r="object"==typeof e&&n(e);return this.each((function(n,a){for(;a&&!(r?r.indexOf(a)>=0:R.matches(a,e));)a=a!==t&&!x(a)&&a.parentNode;a&&i.indexOf(a)<0&&i.push(a)})),n(i)},parents:function(e){for(var t=[],i=this;i.length>0;)i=n.map(i,(function(e){if((e=e.parentNode)&&!x(e)&&t.indexOf(e)<0)return t.push(e),e}));return Y(t,e)},parent:function(e){return Y(a(this.pluck("parentNode")),e)},children:function(e){return Y(this.map((function(){return j(this)})),e)},contents:function(){return this.map((function(){return this.contentDocument||u.call(this.childNodes)}))},siblings:function(e){return Y(this.map((function(e,t){return l.call(j(t.parentNode),(function(e){return e!==t}))})),e)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(e){return n.map(this,(function(t){return t[e]}))},show:function(){return this.each((function(){var e,t,n;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(e=this.nodeName,d[e]||(t=c.createElement(e),c.body.appendChild(t),n=getComputedStyle(t,"").getPropertyValue("display"),t.parentNode.removeChild(t),"none"==n&&(n="block"),d[e]=n),d[e]))}))},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){var t=I(e);if(this[0]&&!t)var i=n(e).get(0),r=i.parentNode||this.length>1;return this.each((function(a){n(this).wrapAll(t?e.call(this,a):r?i.cloneNode(!0):i)}))},wrapAll:function(e){if(this[0]){var t;for(n(this[0]).before(e=n(e));(t=e.children()).length;)e=t.first();n(e).append(this)}return this},wrapInner:function(e){var t=I(e);return this.each((function(i){var r=n(this),a=r.contents(),o=t?e.call(this,i):e;a.length?a.wrapAll(o):r.append(o)}))},unwrap:function(){return this.parent().each((function(){n(this).replaceWith(n(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(t){return this.each((function(){var i=n(this);(t===e?"none"==i.css("display"):t)?i.show():i.hide()}))},prev:function(e){return n(this.pluck("previousElementSibling")).filter(e||"*")},next:function(e){return n(this.pluck("nextElementSibling")).filter(e||"*")},html:function(e){return 0 in arguments?this.each((function(t){var i=this.innerHTML;n(this).empty().append(H(this,e,t,i))})):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each((function(t){var n=H(this,e,t,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(n,i){var r;return"string"!=typeof n||1 in arguments?this.each((function(e){if(1===this.nodeType)if(N(n))for(t in n)$(this,t,n[t]);else $(this,n,H(this,i,e,this.getAttribute(n)))})):0 in this&&1==this[0].nodeType&&null!=(r=this[0].getAttribute(n))?r:e},removeAttr:function(e){return this.each((function(){1===this.nodeType&&e.split(" ").forEach((function(e){$(this,e)}),this)}))},prop:function(e,t){return e=O[e]||e,1 in arguments?this.each((function(n){this[e]=H(this,t,n,this[e])})):this[0]&&this[0][e]},removeProp:function(e){return e=O[e]||e,this.each((function(){delete this[e]}))},data:function(t,n){var i="data-"+t.replace(y,"-$1").toLowerCase(),r=1 in arguments?this.attr(i,n):this.attr(i);return null!==r?W(r):e},val:function(e){return 0 in arguments?(null==e&&(e=""),this.each((function(t){this.value=H(this,e,t,this.value)}))):this[0]&&(this[0].multiple?n(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each((function(t){var i=n(this),r=H(this,e,t,i.offset()),a=i.offsetParent().offset(),o={top:r.top-a.top,left:r.left-a.left};"static"==i.css("position")&&(o.position="relative"),i.css(o)}));if(!this.length)return null;if(c.documentElement!==this[0]&&!n.contains(c.documentElement,this[0]))return{top:0,left:0};var t=this[0].getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,width:Math.round(t.width),height:Math.round(t.height)}},css:function(e,i){if(arguments.length<2){var a=this[0];if("string"==typeof e){if(!a)return;return a.style[r(e)]||getComputedStyle(a,"").getPropertyValue(e)}if(L(e)){if(!a)return;var o={},s=getComputedStyle(a,"");return n.each(e,(function(e,t){o[t]=a.style[r(t)]||s.getPropertyValue(t)})),o}}var l="";if("string"==D(e))i||0===i?l=B(e)+":"+V(e,i):this.each((function(){this.style.removeProperty(B(e))}));else for(t in e)e[t]||0===e[t]?l+=B(t)+":"+V(t,e[t])+";":this.each((function(){this.style.removeProperty(B(t))}));return this.each((function(){this.style.cssText+=";"+l}))},index:function(e){return e?this.indexOf(n(e)[0]):this.parent().children().indexOf(this[0])},hasClass:function(e){return!!e&&o.some.call(this,(function(e){return this.test(z(e))}),U(e))},addClass:function(e){return e?this.each((function(t){if("className"in this){i=[];var r=z(this);H(this,e,t,r).split(/\s+/g).forEach((function(e){n(this).hasClass(e)||i.push(e)}),this),i.length&&z(this,r+(r?" ":"")+i.join(" "))}})):this},removeClass:function(t){return this.each((function(n){if("className"in this){if(t===e)return z(this,"");i=z(this),H(this,t,n,i).split(/\s+/g).forEach((function(e){i=i.replace(U(e)," ")})),z(this,i.trim())}}))},toggleClass:function(t,i){return t?this.each((function(r){var a=n(this);H(this,t,r,z(this)).split(/\s+/g).forEach((function(t){(i===e?!a.hasClass(t):i)?a.addClass(t):a.removeClass(t)}))})):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var e=this[0],t=this.offsetParent(),i=this.offset(),r=m.test(t[0].nodeName)?{top:0,left:0}:t.offset();return i.top-=parseFloat(n(e).css("margin-top"))||0,i.left-=parseFloat(n(e).css("margin-left"))||0,r.top+=parseFloat(n(t[0]).css("border-top-width"))||0,r.left+=parseFloat(n(t[0]).css("border-left-width"))||0,{top:i.top-r.top,left:i.left-r.left}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||c.body;e&&!m.test(e.nodeName)&&"static"==n(e).css("position");)e=e.offsetParent;return e}))}},n.fn.detach=n.fn.remove,["width","height"].forEach((function(t){var i=t.replace(/./,(function(e){return e[0].toUpperCase()}));n.fn[t]=function(r){var a,o=this[0];return r===e?P(o)?o["inner"+i]:x(o)?o.documentElement["scroll"+i]:(a=this.offset())&&a[t]:this.each((function(e){(o=n(this)).css(t,H(this,r,e,o[t]()))}))}})),["after","prepend","before","append"].forEach((function(t,i){var r=i%2;n.fn[t]=function(){var t,a,o=n.map(arguments,(function(i){var r=[];return"array"==(t=D(i))?(i.forEach((function(t){return t.nodeType!==e?r.push(t):n.zepto.isZ(t)?r=r.concat(t.get()):void(r=r.concat(R.fragment(t)))})),r):"object"==t||null==i?i:R.fragment(i)})),s=this.length>1;return o.length<1?this:this.each((function(e,t){a=r?t:t.parentNode,t=0==i?t.nextSibling:1==i?t.firstChild:2==i?t:null;var l=n.contains(c.documentElement,a);o.forEach((function(e){if(s)e=e.cloneNode(!0);else if(!a)return n(e).remove();a.insertBefore(e,t),l&&q(e,(function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var t=e.ownerDocument?e.ownerDocument.defaultView:window;t.eval.call(t,e.innerHTML)}}))}))}))},n.fn[r?t+"To":"insert"+(i?"Before":"After")]=function(e){return n(e)[t](this),this}})),R.Z.prototype=K.prototype=n.fn,R.uniq=a,R.deserializeValue=W,n.zepto=R,n}();window.Zepto=_,void 0===window.$&&(window.$=_),function(e){var t,n,i=+new Date,r=window.document,a=/