Skip to content
Snippets Groups Projects
Unverified Commit 655bc6b1 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #2932 from HyphaApp/js-cdn-cleanup

Refractor to serve JS locally
parents 353ec18a e17bde9f
No related branches found
No related tags found
No related merge requests found
Showing
with 47 additions and 21 deletions
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
{% block extra_js %} {% block extra_js %}
{{ my_reviewed.filterset.form.media.js }} {{ my_reviewed.filterset.form.media.js }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/url-search-params/1.1.0/url-search-params.js"></script> <script src="{% static 'js/apply/url-search-params.js' %}"></script>
<script src="{% static 'js/apply/submission-filters.js' %}"></script> <script src="{% static 'js/apply/submission-filters.js' %}"></script>
<script src="{% static 'js/apply/submission-tooltips.js' %}"></script> <script src="{% static 'js/apply/submission-tooltips.js' %}"></script>
<script src="{% static 'js/apply/tabs.js' %}"></script> <script src="{% static 'js/apply/tabs.js' %}"></script>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
{% block extra_js %} {% block extra_js %}
{{ my_reviewed.filterset.form.media.js }} {{ my_reviewed.filterset.form.media.js }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/url-search-params/1.1.0/url-search-params.js"></script> <script src="{% static 'js/apply/url-search-params.js' %}"></script>
<script src="{% static 'js/apply/submission-filters.js' %}"></script> <script src="{% static 'js/apply/submission-filters.js' %}"></script>
<script src="{% static 'js/apply/submission-tooltips.js' %}"></script> <script src="{% static 'js/apply/submission-tooltips.js' %}"></script>
<script src="{% static 'js/apply/tabs.js' %}"></script> <script src="{% static 'js/apply/tabs.js' %}"></script>
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
{% block extra_js %} {% block extra_js %}
{{ filter.form.media.js }} {{ filter.form.media.js }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/url-search-params/1.1.0/url-search-params.js"></script> <script src="{% static 'js/apply/url-search-params.js' %}"></script>
<script src="{% static 'js/apply/submission-filters.js' %}"></script> <script src="{% static 'js/apply/submission-filters.js' %}"></script>
<script src="{% static 'js/apply/submission-tooltips.js' %}"></script> <script src="{% static 'js/apply/submission-tooltips.js' %}"></script>
<script src="{% static 'js/apply/flag.js' %}"></script> <script src="{% static 'js/apply/flag.js' %}"></script>
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
{% block extra_js %} {% block extra_js %}
{{ block.super }} {{ block.super }}
<script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/3.4.1/jquery.fancybox.min.js"></script> <script src="{% static 'js/apply/jquery.fancybox.min.js' %}"></script>
<script src="{% static 'js/apply/batch-actions.js' %}"></script> <script src="{% static 'js/apply/batch-actions.js' %}"></script>
<script src="{% static 'js/apply/fancybox-global.js' %}"></script> <script src="{% static 'js/apply/fancybox-global.js' %}"></script>
{% endblock %} {% endblock %}
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
{{ comment_form.media.js }} {{ comment_form.media.js }}
{{ partner_form.media.js }} {{ partner_form.media.js }}
{{ block.super }} {{ block.super }}
<script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/3.4.1/jquery.fancybox.min.js"></script> <script src="{% static 'js/apply/jquery.fancybox.min.js' %}"></script>
<script src="{% static 'js/apply/fancybox-global.js' %}"></script> <script src="{% static 'js/apply/fancybox-global.js' %}"></script>
<script src="{% static 'js/apply/toggle-actions-panel.js' %}"></script> <script src="{% static 'js/apply/toggle-actions-panel.js' %}"></script>
<script src="{% static 'js/apply/toggle-reviewers.js' %}"></script> <script src="{% static 'js/apply/toggle-reviewers.js' %}"></script>
......
...@@ -17,11 +17,11 @@ ...@@ -17,11 +17,11 @@
{% block extra_js %} {% block extra_js %}
{{ filter.form.media.js }} {{ filter.form.media.js }}
<script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/3.4.1/jquery.fancybox.min.js"></script> <script src="{% static 'js/apply/jquery.fancybox.min.js' %}"></script>
<script src="{% static 'js/apply/fancybox-global.js' %}"></script> <script src="{% static 'js/apply/fancybox-global.js' %}"></script>
<script src="{% static 'js/apply/all-submissions-table.js' %}"></script> <script src="{% static 'js/apply/all-submissions-table.js' %}"></script>
<script src="https://cdn.jsdelivr.net/npm/symbol-es6@0.1.2/symbol-es6.min.js"></script> <script src="{% static 'js/apply/symbol-es6.min.js' %}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/url-search-params/1.1.0/url-search-params.js"></script> <script src="{% static 'js/apply/url-search-params.js' %}"></script>
<script src="{% static 'js/apply/submission-filters.js' %}"></script> <script src="{% static 'js/apply/submission-filters.js' %}"></script>
<script src="{% static 'js/apply/submission-tooltips.js' %}"></script> <script src="{% static 'js/apply/submission-tooltips.js' %}"></script>
<script src="{% static 'js/apply/tabs.js' %}"></script> <script src="{% static 'js/apply/tabs.js' %}"></script>
......
...@@ -25,11 +25,11 @@ ...@@ -25,11 +25,11 @@
{% block extra_js %} {% block extra_js %}
{{ filter.form.media.js }} {{ filter.form.media.js }}
<script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/3.4.1/jquery.fancybox.min.js"></script> <script src="{% static 'js/apply/jquery.fancybox.min.js' %}"></script>
<script src="{% static 'js/apply/fancybox-global.js' %}"></script> <script src="{% static 'js/apply/fancybox-global.js' %}"></script>
<script src="{% static 'js/apply/all-submissions-table.js' %}"></script> <script src="{% static 'js/apply/all-submissions-table.js' %}"></script>
<script src="https://cdn.jsdelivr.net/npm/symbol-es6@0.1.2/symbol-es6.min.js"></script> <script src="{% static 'js/apply/symbol-es6.min.js' %}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/url-search-params/1.1.0/url-search-params.js"></script> <script src="{% static 'js/apply/url-search-params.js' %}"></script>
<script src="{% static 'js/apply/submission-filters.js' %}"></script> <script src="{% static 'js/apply/submission-filters.js' %}"></script>
<script src="{% static 'js/apply/submission-tooltips.js' %}"></script> <script src="{% static 'js/apply/submission-tooltips.js' %}"></script>
<script src="{% static 'js/apply/tabs.js' %}"></script> <script src="{% static 'js/apply/tabs.js' %}"></script>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
{% block extra_js %} {% block extra_js %}
{{ filter.form.media.js }} {{ filter.form.media.js }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/url-search-params/1.1.0/url-search-params.js"></script> <script src="{% static 'js/apply/url-search-params.js' %}"></script>
<script src="{% static 'js/apply/submission-filters.js' %}"></script> <script src="{% static 'js/apply/submission-filters.js' %}"></script>
<script src="{% static 'js/apply/submission-tooltips.js' %}"></script> <script src="{% static 'js/apply/submission-tooltips.js' %}"></script>
{% endblock %} {% endblock %}
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
{% block extra_js %} {% block extra_js %}
{{ block.super }} {{ block.super }}
<script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/3.4.1/jquery.fancybox.min.js"></script> <script src="{% static 'js/apply/jquery.fancybox.min.js' %}"></script>
<script src="{% static 'js/apply/fancybox-global.js' %}"></script> <script src="{% static 'js/apply/fancybox-global.js' %}"></script>
<script src="{% static 'js/apply/deliverables.js' %}"></script> <script src="{% static 'js/apply/deliverables.js' %}"></script>
{% can_view_required_checks object user as user_can_view_required_checks %} {% can_view_required_checks object user as user_can_view_required_checks %}
......
...@@ -75,11 +75,11 @@ ...@@ -75,11 +75,11 @@
{% block extra_js %} {% block extra_js %}
{{ projects.filterset.form.media.js }} {{ projects.filterset.form.media.js }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.4.1/jquery.fancybox.min.js"></script> <script src="{% static 'js/apply/jquery.fancybox.min.js' %}"></script>
<script src="{% static 'js/apply/fancybox-global.js' %}"></script> <script src="{% static 'js/apply/fancybox-global.js' %}"></script>
<script src="{% static 'js/apply/all-submissions-table.js' %}"></script> <script src="{% static 'js/apply/all-submissions-table.js' %}"></script>
<script src="https://cdn.jsdelivr.net/npm/symbol-es6@0.1.2/symbol-es6.min.js"></script> <script src="{% static 'js/apply/symbol-es6.min.js' %}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/url-search-params/1.1.0/url-search-params.js"></script> <script src="{% static 'js/apply/url-search-params.js' %}"></script>
<script src="{% static 'js/apply/submission-filters.js' %}"></script> <script src="{% static 'js/apply/submission-filters.js' %}"></script>
<script src="{% static 'js/apply/submission-tooltips.js' %}"></script> <script src="{% static 'js/apply/submission-tooltips.js' %}"></script>
<script src="{% static 'js/apply/tabs.js' %}"></script> <script src="{% static 'js/apply/tabs.js' %}"></script>
......
...@@ -246,5 +246,5 @@ ...@@ -246,5 +246,5 @@
<script src="{% static 'js/apply/toggle-payment-block.js' %}"></script> <script src="{% static 'js/apply/toggle-payment-block.js' %}"></script>
<script src="{% static 'js/apply/past-reports-pagination.js' %}"></script> <script src="{% static 'js/apply/past-reports-pagination.js' %}"></script>
<script src="{% static 'js/apply/report-calculator.js' %}"></script> <script src="{% static 'js/apply/report-calculator.js' %}"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/3.4.1/jquery.fancybox.min.js"></script> <script src="{% static 'js/apply/jquery.fancybox.min.js' %}"></script>
{% endblock %} {% endblock %}
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
{% endblock %} {% endblock %}
{% block extra_js %} {% block extra_js %}
<script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/3.4.1/jquery.fancybox.min.js"></script> <script src="{% static 'js/apply/jquery.fancybox.min.js' %}"></script>
<script src="{% static 'js/apply/list-input-files.js' %}"></script> <script src="{% static 'js/apply/list-input-files.js' %}"></script>
<script src="{% static 'js/apply/fancybox-global.js' %}"></script> <script src="{% static 'js/apply/fancybox-global.js' %}"></script>
{% endblock %} {% endblock %}
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
{% block extra_js %} {% block extra_js %}
{{ filter.form.media.js }} {{ filter.form.media.js }}
<script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/3.4.1/jquery.fancybox.min.js"></script> <script src="{% static 'js/apply/jquery.fancybox.min.js' %}"></script>
<script src="{% static 'js/apply/fancybox-global.js' %}"></script> <script src="{% static 'js/apply/fancybox-global.js' %}"></script>
<script src="{% static 'js/public/all-investments-table.js' %}"></script> <script src="{% static 'js/public/all-investments-table.js' %}"></script>
<script src="{% static 'js/public/investment-tooltips.js' %}"></script> <script src="{% static 'js/public/investment-tooltips.js' %}"></script>
<script src="https://cdn.jsdelivr.net/npm/symbol-es6@0.1.2/symbol-es6.min.js"></script> <script src="{% static 'js/apply/symbol-es6.min.js' %}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/url-search-params/1.1.0/url-search-params.js"></script> <script src="{% static 'js/apply/url-search-params.js' %}"></script>
<script src="{% static 'js/public/investment-filters.js' %}"></script> <script src="{% static 'js/public/investment-filters.js' %}"></script>
{% endblock %} {% endblock %}
This diff is collapsed.
/**
* Minified by jsDelivr using UglifyJS v3.3.27.
* Original file: /npm/symbol-es6@0.1.2/symbol-es6.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e(t):e(t)}("undefined"!=typeof window?window:global,function(t){"use strict";var e=Object.defineProperty,r=Object.defineProperties,n=0,o=[],i=Array.prototype.slice,l="object"==typeof t.ES6?t.ES6:t.ES6={},a=Array.isArray,u=Object.prototype.toString,f=Array.prototype.push,c=function(){},p=function(t){return t},s=function(t){return"function"==typeof t},y=function(){},h=function(t,e){this._array=t,this._flag=e,this._nextIndex=0},g=function(t,e){this._string=t,this._flag=e,this._nextIndex=0},b=function(t){return null!==t&&("object"==typeof t||"function"==typeof t)},d=function(t,e){return r(t,{_description:{value:e},_isSymbol:{value:!0},_id:{value:n++}}),t},v=function(t,e){if("number"==typeof t.length&&0<=t.length&&"number"==typeof e.length&&0<=e.length){var r=Math.floor(t.length),n=Math.floor(e.length),o=0;for(t.length=r+n;o<n;++o)e.hasOwnProperty(o)&&(t[r+o]=e[o])}},w=function(t,e){if("function"!=typeof t||"function"!=typeof e)throw new TypeError("Child and Parent must be function type");t.prototype=Object.create(e.prototype),t.prototype.constructor=t},_=function t(e){if(e=void 0===e?"":String(e),this instanceof t)throw new TypeError("Symbol is not a constructor");return d(Object.create(t.prototype),e)};r(_,{for:{value:function(t){t=String(t);for(var e,r=o.length,n=0;n<r;++n)if((e=o[n]).key===t)return e.symbol;return e={key:t,symbol:_(t)},o.push(e),e.symbol},writable:!0,configurable:!0},keyFor:{value:function(t){if(!l.isSymbol(t))throw new TypeError(String(t)+" is not a symbol");for(var e,r=o.length,n=0;n<r;++n)if((e=o[n]).symbol===t)return e.key},writable:!0,configurable:!0},hasInstance:{value:_("Symbol.hasInstance")},isConcatSpreadable:{value:_("Symbol.isConcatSpreadable")},iterator:{value:_("Symbol.iterator")},toStringTag:{value:_("Symbol.toStringTag")}}),_.prototype.toString=function(){return"@@_____"+this._id+"_____"},_.prototype.valueOf=function(){return this},e(y.prototype,_.iterator.toString(),{value:function(){return this},writable:!0,configurable:!0}),w(h,y),w(g,y),e(h.prototype,_.toStringTag.toString(),{value:"Array Iterator",configurable:!0}),e(g.prototype,_.toStringTag.toString(),{value:"String Iterator",configurable:!0}),h.prototype.next=function(){if(!(this instanceof h))throw new TypeError("Method Array Iterator.prototype.next called on incompatible receiver "+String(this));var t,e=this;return-1===e._nextIndex?{done:!0,value:void 0}:"number"==typeof e._array.length&&0<=e._array.length&&e._nextIndex<Math.floor(e._array.length)?(1===e._flag?t=[e._nextIndex,e._array[e._nextIndex]]:2===e._flag?t=e._array[e._nextIndex]:3===e._flag&&(t=e._nextIndex),e._nextIndex++,{done:!1,value:t}):(e._nextIndex=-1,{done:!0,value:void 0})},g.prototype.next=function(){if(!(this instanceof g))throw new TypeError("Method String Iterator.prototype.next called on incompatible receiver "+String(this));var t,e=this,r=new String(this._string);return-1===e._nextIndex?{done:!0,value:void 0}:e._nextIndex<r.length?(t=r[e._nextIndex],e._nextIndex++,{done:!1,value:t}):(e._nextIndex=-1,{done:!0,value:void 0})};var S=function(t,e){this._target=t,this._values=[],this._thisArg=e};S.prototype.spread=function(){var e=this;return i.call(arguments).forEach(function(t){l.forOf(t,function(t){e._values.push(t)})}),e},S.prototype.add=function(){var e=this;return i.call(arguments).forEach(function(t){e._values.push(t)}),e},S.prototype.call=function(t){if("function"!=typeof this._target)throw new TypeError("Target is not a function");return t=arguments.length<=0?this._thisArg:t,this._target.apply(t,this._values)},S.prototype.new=function(){if("function"!=typeof this._target)throw new TypeError("Target is not a constructor");var t,e;return t=Object.create(this._target.prototype),e=this._target.apply(t,this._values),b(e)?e:t},S.prototype.array=function(){if(!a(this._target))throw new TypeError("Target is not a array");return f.apply(this._target,this._values),this._target};return r(l,{isSymbol:{value:function(t){return t instanceof _&&!0===(e=t)._isSymbol&&"number"==typeof e._id&&"string"==typeof e._description;var e},writable:!0,configurable:!0},instanceOf:{value:function(t,e){if(!b(e))throw new TypeError("Right-hand side of 'instanceof' is not an object");var r=e[_.hasInstance];if(void 0===r)return t instanceof e;if("function"!=typeof r)throw new TypeError(typeof r+" is not a function");return r.call(e,t)},writable:!0,configurable:!0},forOf:{value:function(t,e,r){if(e="function"!=typeof e?c:e,"function"!=typeof t[_.iterator])throw new TypeError("Iterable[Symbol.iterator] is not a function");var n,o=t[_.iterator]();if("function"!=typeof o.next)throw new TypeError(".iterator.next is not a function");for(;;){if(n=o.next(),!b(n))throw new TypeError("Iterator result "+n+" is not an object");if(n.done)break;e.call(r,n.value)}},writable:!0,configurable:!0},spreadOperator:{value:function(t,e){if("function"!=typeof t&&!a(t))throw new TypeError("Spread operator only supports on array and function objects at this moment");return new S(t,e)},writable:!0,configurable:!0}}),e(t,"Symbol",{value:_,writable:!0,configurable:!0}),e(Function.prototype,_.hasInstance.toString(),{value:function(t){return"function"==typeof this&&t instanceof this}}),e(Array.prototype,"concat",{value:function(){if(null==this)throw new TypeError("Array.prototype.concat called on null or undefined");var t=Object(this),e=i.call(arguments),r=[];return e.unshift(t),e.forEach(function(t){b(t)?void 0!==t[_.isConcatSpreadable]?t[_.isConcatSpreadable]?v(r,t):r.push(t):a(t)?v(r,t):r.push(t):r.push(t)}),r},writable:!0,configurable:!0}),e(Object.prototype,"toString",{value:function(){return null==this?u.call(this):"string"==typeof this[_.toStringTag]?"[object "+this[_.toStringTag]+"]":u.call(this)},writable:!0,configurable:!0}),e(Array.prototype,_.iterator.toString(),{value:function(){if(null==this)throw new TypeError("Cannot convert undefined or null to object");var t=Object(this);return new h(t,2)},writable:!0,configurable:!0}),e(Array,"from",{value:function(t,e,r){var n,o,i,a=0;if(n=s(this)?this:Array,null==t)throw new TypeError("Cannot convert undefined or null to object");if(t=Object(t),void 0===e)e=p;else if(!s(e))throw new TypeError(e+" is not a function");if(void 0===t[_.iterator]){if(!("number"==typeof t.length&&0<=t.length))return(i=new n(0)).length=0,i;for(o=Math.floor(t.length),(i=new n(o)).length=o;a<o;++a)i[a]=e.call(r,t[a])}else(i=new n).length=0,l.forOf(t,function(t){i.length++,i[i.length-1]=e.call(r,t)});return i},writable:!0,configurable:!0}),e(Array.prototype,"entries",{value:function(){if(null==this)throw new TypeError("Cannot convert undefined or null to object");var t=Object(this);return new h(t,1)},writable:!0,configurable:!0}),e(Array.prototype,"keys",{value:function(){if(null==this)throw new TypeError("Cannot convert undefined or null to object");var t=Object(this);return new h(t,3)},writable:!0,configurable:!0}),e(String.prototype,_.iterator.toString(),{value:function(){if(null==this)throw new TypeError("String.prototype[Symbol.iterator] called on null or undefined");return new g(String(this),0)},writable:!0,configurable:!0}),l});
//# sourceMappingURL=/sm/294b2ffae120328d905c5636e9a9ba63fae463c63e29c345011b1e42608dbe72.map
\ No newline at end of file
/* (c) Andrea Giammarchi - ISC */
// https://raw.githubusercontent.com/ungap/url-search-params/master/min.js
/* eslint-disable */
var self=this||{};try{!function(t,e){if(new t("q=%2B").get("q")!==e||new t({q:e}).get("q")!==e||new t([["q",e]]).get("q")!==e||"q=%0A"!==new t("q=\n").toString()||"q=+%26"!==new t({q:" &"}).toString()||"q=%25zx"!==new t({q:"%zx"}).toString())throw t;self.URLSearchParams=t}(URLSearchParams,"+")}catch(t){!function(t,a,o){"use strict";var u=t.create,h=t.defineProperty,e=/[!'\(\)~]|%20|%00/g,n=/%(?![0-9a-fA-F]{2})/g,r=/\+/g,i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"},s={append:function(t,e){p(this._ungap,t,e)},delete:function(t){delete this._ungap[t]},get:function(t){return this.has(t)?this._ungap[t][0]:null},getAll:function(t){return this.has(t)?this._ungap[t].slice(0):[]},has:function(t){return t in this._ungap},set:function(t,e){this._ungap[t]=[a(e)]},forEach:function(e,n){var r=this;for(var i in r._ungap)r._ungap[i].forEach(t,i);function t(t){e.call(n,t,a(i),r)}},toJSON:function(){return{}},toString:function(){var t=[];for(var e in this._ungap)for(var n=v(e),r=0,i=this._ungap[e];r<i.length;r++)t.push(n+"="+v(i[r]));return t.join("&")}};for(var c in s)h(f.prototype,c,{configurable:!0,writable:!0,value:s[c]});function f(t){var e=u(null);switch(h(this,"_ungap",{value:e}),!0){case!t:break;case"string"==typeof t:"?"===t.charAt(0)&&(t=t.slice(1));for(var n=t.split("&"),r=0,i=n.length;r<i;r++){var a=(s=n[r]).indexOf("=");-1<a?p(e,g(s.slice(0,a)),g(s.slice(a+1))):s.length&&p(e,g(s),"")}break;case o(t):for(var s,r=0,i=t.length;r<i;r++){p(e,(s=t[r])[0],s[1])}break;case"forEach"in t:t.forEach(l,e);break;default:for(var c in t)p(e,c,t[c])}}function l(t,e){p(this,e,t)}function p(t,e,n){var r=o(n)?n.join(","):n;e in t?t[e].push(r):t[e]=[r]}function g(t){return decodeURIComponent(t.replace(n,"%25").replace(r," "))}function v(t){return encodeURIComponent(t).replace(e,d)}function d(t){return i[t]}self.URLSearchParams=f}(Object,String,Array.isArray)}!function(d){var r=!1;try{r=!!Symbol.iterator}catch(t){}function t(t,e){var n=[];return t.forEach(e,n),r?n[Symbol.iterator]():{next:function(){var t=n.shift();return{done:void 0===t,value:t}}}}"forEach"in d||(d.forEach=function(n,r){var i=this,t=Object.create(null);this.toString().replace(/=[\s\S]*?(?:&|$)/g,"=").split("=").forEach(function(e){!e.length||e in t||(t[e]=i.getAll(e)).forEach(function(t){n.call(r,t,e,i)})})}),"keys"in d||(d.keys=function(){return t(this,function(t,e){this.push(e)})}),"values"in d||(d.values=function(){return t(this,function(t,e){this.push(t)})}),"entries"in d||(d.entries=function(){return t(this,function(t,e){this.push([e,t])})}),!r||Symbol.iterator in d||(d[Symbol.iterator]=d.entries),"sort"in d||(d.sort=function(){for(var t,e,n,r=this.entries(),i=r.next(),a=i.done,s=[],c=Object.create(null);!a;)e=(n=i.value)[0],s.push(e),e in c||(c[e]=[]),c[e].push(n[1]),a=(i=r.next()).done;for(s.sort(),t=0;t<s.length;t++)this.delete(s[t]);for(t=0;t<s.length;t++)e=s[t],this.append(e,c[e].shift())}),function(f){function l(t){var e=t.append;t.append=d.append,URLSearchParams.call(t,t._usp.search.slice(1)),t.append=e}function p(t,e){if(!(t instanceof e))throw new TypeError("'searchParams' accessed on an object that does not implement interface "+e.name)}function t(e){var n,r,i,t=e.prototype,a=v(t,"searchParams"),s=v(t,"href"),c=v(t,"search");function o(t,e){d.append.call(this,t,e),t=this.toString(),i.set.call(this._usp,t?"?"+t:"")}function u(t){d.delete.call(this,t),t=this.toString(),i.set.call(this._usp,t?"?"+t:"")}function h(t,e){d.set.call(this,t,e),t=this.toString(),i.set.call(this._usp,t?"?"+t:"")}!a&&c&&c.set&&(i=c,r=function(t,e){return t.append=o,t.delete=u,t.set=h,g(t,"_usp",{configurable:!0,writable:!0,value:e})},n=function(t,e){return g(t,"_searchParams",{configurable:!0,writable:!0,value:r(e,t)}),e},f.defineProperties(t,{href:{get:function(){return s.get.call(this)},set:function(t){var e=this._searchParams;s.set.call(this,t),e&&l(e)}},search:{get:function(){return c.get.call(this)},set:function(t){var e=this._searchParams;c.set.call(this,t),e&&l(e)}},searchParams:{get:function(){return p(this,e),this._searchParams||n(this,new URLSearchParams(this.search.slice(1)))},set:function(t){p(this,e),n(this,t)}}}))}var g=f.defineProperty,v=f.getOwnPropertyDescriptor;try{t(HTMLAnchorElement),/^function|object$/.test(typeof URL)&&URL.prototype&&t(URL)}catch(t){}}(Object)}(self.URLSearchParams.prototype,Object);
/* eslint-enable */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment