diff --git a/bower.json b/bower.json index 4b606f8..f2d3196 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "js-polyfills", - "version": "0.1.19", + "version": "0.1.20", "homepage": "https://github.com/inexorabletash/polyfill", "authors": [ "Joshua Bell " diff --git a/package.json b/package.json index baef6ec..265a4b1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "js-polyfills", "author": "Joshua Bell ", - "version": "0.1.19", + "version": "0.1.20", "description": "Collection of Web polyfills.", "main": "polyfill.js", "files": [ diff --git a/polyfill.js b/polyfill.js index 251a762..2e102ba 100644 --- a/polyfill.js +++ b/polyfill.js @@ -5338,7 +5338,7 @@ function __cons(t, a) { if (origURL) { for (var i in origURL) { if (origURL.hasOwnProperty(i) && typeof origURL[i] === 'function') - global.URL[i] = origURL[i]; + URL[i] = origURL[i]; } } @@ -6369,7 +6369,7 @@ function __cons(t, a) { if (origURL) { for (var i in origURL) { if (origURL.hasOwnProperty(i) && typeof origURL[i] === 'function') - global.URL[i] = origURL[i]; + URL[i] = origURL[i]; } } diff --git a/polyfill.min.js b/polyfill.min.js index d675993..816a1f6 100644 --- a/polyfill.min.js +++ b/polyfill.min.js @@ -1,3 +1,3 @@ function __cons(t,a){return eval("new t("+a.map(function(e,t){return"a["+t+"]"}).join(",")+")")}Object.getPrototypeOf||(Object.getPrototypeOf=function(e){if(e!==Object(e))throw TypeError("Object.getPrototypeOf called on non-object");return e.__proto__||e.constructor.prototype||Object.prototype}),"function"!=typeof Object.getOwnPropertyNames&&(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),"function"!=typeof Object.create&&(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw TypeError();r.prototype=e;var n=new r;if(e&&(n.constructor=r),void 0!==t){if(t!==Object(t))throw TypeError();Object.defineProperties(n,t)}return n}),function(){if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var e=Object.defineProperty;Object.defineProperty=function(t,r,n){if(e)try{return e(t,r,n)}catch(o){}if(t!==Object(t))throw TypeError("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in n&&Object.prototype.__defineGetter__.call(t,r,n.get),Object.prototype.__defineSetter__&&"set"in n&&Object.prototype.__defineSetter__.call(t,r,n.set),"value"in n&&(t[r]=n.value),t}}}(),"function"!=typeof Object.defineProperties&&(Object.defineProperties=function(e,t){if(e!==Object(e))throw TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.keys||(Object.keys=function(e){if(e!==Object(e))throw TypeError("Object.keys called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Function.prototype.bind||(Function.prototype.bind=function(e){function t(){}if("function"!=typeof this)throw TypeError("Bind must be called on a function");var r=[].slice,n=r.call(arguments,1),o=this,i=function(){return o.apply(this instanceof t?this:e,n.concat(r.call(arguments)))};return t.prototype=o.prototype,i.prototype=new t,i}),Array.isArray=Array.isArray||function(e){return Boolean(e&&"[object Array]"===Object.prototype.toString.call(Object(e)))},Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if(0===r)return-1;var n=0;if(arguments.length>0&&(n=Number(arguments[1]),isNaN(n)?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=r)return-1;for(var o=n>=0?n:Math.max(r-Math.abs(n),0);r>o;o++)if(o in t&&t[o]===e)return o;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if(0===r)return-1;var n=r;arguments.length>1&&(n=Number(arguments[1]),n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))));for(var o=n>=0?Math.min(n,r-1):r-Math.abs(n);o>=0;o--)if(o in t&&t[o]===e)return o;return-1}),Array.prototype.every||(Array.prototype.every=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();var n,o=arguments[1];for(n=0;r>n;n++)if(n in t&&!e.call(o,t[n],n,t))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();var n,o=arguments[1];for(n=0;r>n;n++)if(n in t&&e.call(o,t[n],n,t))return!0;return!1}),Array.prototype.forEach||(Array.prototype.forEach=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();var n,o=arguments[1];for(n=0;r>n;n++)n in t&&e.call(o,t[n],n,t)}),Array.prototype.map||(Array.prototype.map=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();var n=[];n.length=r;var o,i=arguments[1];for(o=0;r>o;o++)o in t&&(n[o]=e.call(i,t[o],o,t));return n}),Array.prototype.filter||(Array.prototype.filter=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();var n,o=[],i=arguments[1];for(n=0;r>n;n++)if(n in t){var a=t[n];e.call(i,a,n,t)&&o.push(a)}return o}),Array.prototype.reduce||(Array.prototype.reduce=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();if(0===r&&1===arguments.length)throw TypeError();var n,o=0;if(arguments.length>=2)n=arguments[1];else for(;;){if(o in t){n=t[o++];break}if(++o>=r)throw TypeError()}for(;r>o;)o in t&&(n=e.call(void 0,n,t[o],o,t)),o++;return n}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();if(0===r&&1===arguments.length)throw TypeError();var n,o=r-1;if(arguments.length>=2)n=arguments[1];else for(;;){if(o in this){n=this[o--];break}if(--o<0)throw TypeError()}for(;o>=0;)o in t&&(n=e.call(void 0,n,t[o],o,t)),o--;return n}),String.prototype.trim||(String.prototype.trim=function(){return String(this).replace(/^\s+/,"").replace(/\s+$/,"")}),Date.now||(Date.now=function(){return Number(new Date)}),Date.prototype.toISOString||(Date.prototype.toISOString=function(){function e(e){return("00"+e).slice(-2)}function t(e){return("000"+e).slice(-3)}return this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+t(this.getUTCMilliseconds())+"Z"}),function(e){"use strict";function t(t){return t===e?I:t}function r(e,r,n){var o=e[r];e[r]=function(){var e=t(this),r=n.apply(e,arguments);return r!==I?r:o.apply(e,arguments)}}function n(e,t){for(var r=Object.getOwnPropertyDescriptor(e,t),n=Object.getPrototypeOf(e);!r&&n;)r=Object.getOwnPropertyDescriptor(n,t),n=Object.getPrototypeOf(n);return r}function o(e,t,r,n){t in e&&!n&&!C||("function"==typeof r?Object.defineProperty(e,t,{value:r,configurable:!0,enumerable:!1,writable:!0}):Object.defineProperty(e,t,{value:r,configurable:!1,enumerable:!1,writable:!1}))}function i(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,enumerable:!1,writable:!0})}function a(){function e(e){var t=e.valueOf,n=x(null);return Object.defineProperty(e,"valueOf",{value:function(r){return function(o){return o===r?n:t.apply(e,arguments)}}(r),configurable:!0,writeable:!0,enumerable:!1}),n}function t(e){var t="function"==typeof e.valueOf&&e.valueOf(r);return t===e?null:t}var r=x(null);return{clear:function(){r=x(null)},remove:function(e){var r=t(e);return r&&g(r,"value")?(delete r.value,!0):!1},get:function(e,r){var n=t(e);return n&&g(n,"value")?n.value:r},has:function(e){var r=t(e);return Boolean(r&&g(r,"value"))},set:function(r,n){var o=t(r)||e(r);o.value=n}}}function u(t){switch(typeof t){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===t?"null":t instanceof e.Symbol?"symbol":"object"}}function s(e){return e=Number(e),U(e)?0:0===e||e===1/0||e===-(1/0)?e:(0>e?-1:1)*V(X(e))}function c(e){return e>>>0}function l(e){if(null===e||e===I)throw TypeError();return Object(e)}function f(e){var t=s(e);return 0>=t?0:t===1/0?9007199254740991:J(t,9007199254740991)}function h(e){return"function"==typeof e}function p(e){return/Constructor/.test(Object.prototype.toString.call(e))?!0:/Function/.test(Object.prototype.toString.call(e))?!0:"function"==typeof e}function y(e,t){if(typeof e!=typeof t)return!1;switch(typeof e){case"undefined":return!0;case"number":return e!==e&&t!==t?!0:0===e&&0===t?1/e===1/t:e===t;case"boolean":case"string":case"object":default:return e===t}}function d(e,t){if(typeof e!=typeof t)return!1;switch(typeof e){case"undefined":return!0;case"number":return e!==e&&t!==t?!0:e===t;case"boolean":case"string":case"object":default:return e===t}}function v(e,t){var r=l(e);return r[t]}function m(e,t){var r=v(e,t);if(r===I||null===r)return I;if(!h(r))throw TypeError();return r}function b(e,t){for(;e;){if(Object.prototype.hasOwnProperty.call(e,t))return!0;if("object"!==u(e))return!1;e=Object.getPrototypeOf(e)}return!1}function g(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function E(e,t){arguments.length<2&&(t=m(e,ae));var r=t.call(e);if("object"!==u(r))throw TypeError();return r}function w(e,t){if(arguments.length<2)var r=e.next();else r=e.next(t);if("object"!==u(r))throw TypeError();return r}function _(e){return e.value}function T(e,t){var r=w(e,t),n=r.done;return Boolean(n)===!0?!1:r}function O(e,t){var r={};return r.value=e,r.done=t,r}function S(e,t,r){var n=function(){t.apply(I,r)};k(n)}function j(e){}function P(e){var t=[];if(Object(e)!==e)return t;for(var r=new Set;null!==e;)Object.getOwnPropertyNames(e).forEach(function(n){if(!r.has(n)){var o=Object.getOwnPropertyDescriptor(e,n);o&&(r.add(n),o.enumerable&&t.push(n))}}),e=Object.getPrototypeOf(e);return t[ae]()}function R(e){return Object.getOwnPropertyNames(e)}function x(e,t){return Object.create(e,t)}function A(){}function D(e,t){var r=String(e),n=new A;return i(n,"[[IteratedString]]",r),i(n,"[[StringIteratorNextIndex]]",0),i(n,"[[StringIterationKind]]",t),n}function N(){}function M(e,t){var r=l(e),n=new N;return i(n,"[[IteratedObject]]",r),i(n,"[[ArrayIteratorNextIndex]]",0),i(n,"[[ArrayIterationKind]]",t),n}var L,C=!1,I=void 0,k=function(e,t){return e?function(t){e.resolve().then(function(){t()})}:t?function(e){t(e)}:function(e){setTimeout(e,0)}}(e.Promise,e.setImmediate),U=e.isNaN,F=e.parseInt,q=e.parseFloat,H=Math.E,B=Math.LOG10E,W=Math.LOG2E,X=Math.abs,G=Math.ceil,$=Math.exp,V=Math.floor,z=Math.log,K=Math.max,J=Math.min,Y=Math.pow,Z=Math.random,Q=Math.sqrt,ee=String.prototype.match,te=String.prototype.replace,re=String.prototype.search,ne=String.prototype.split,oe=Object.create(null);!function(){function r(e){return Array(e+1).join("x").replace(/x/g,function(){return Z()<.5?"‌":"‍"})}function n(e){if(!(this instanceof n))return new n(e,a);if(this instanceof n&&arguments[1]!==a)throw TypeError();var t=e===I?I:String(e);return i(this,"[[SymbolData]]",r(128)),i(this,"[[Description]]",t),u[this]=this,this}var a=Object.create(null),u={};L=function(e){return u[e]};var s=[];"Symbol"in e&&!C||(e.Symbol=n),o(n,"for",function(e){for(var t=String(e),r=0;r>24):16711680&e?t(e>>16)+8:65280&e?t(e>>8)+16:t(e)+24}),o(Math,"cosh",function(e){return e=Number(e),(Y(H,e)+Y(H,-e))/2}),o(Math,"expm1",function(e){return e=Number(e),y(e,-0)?-0:X(e)<1e-5?e+.5*e*e:$(e)-1}),o(Math,"fround",function(e){return U(e)?NaN:1/e===+(1/0)||1/e===-(1/0)||e===+(1/0)||e===-(1/0)?e:new Float32Array([e])[0]}),o(Math,"hypot",function(){for(var e=[],t=0,r=!1,n=0;nt&&(t=o),e[n]=o}if(r)return NaN;if(0===t)return 0;var i=0;for(n=0;n>>16&65535,i=65535&r,a=n>>>16&65535,u=65535&n;return i*u+(o*u+i*a<<16>>>0)|0},"imul"in Math&&0===Math.imul(1,2147483648)),o(Math,"log1p",function(e){return e=Number(e),-1>e?NaN:y(e,-0)?-0:X(e)>1e-4?z(1+e):(-.5*e+1)*e}),o(Math,"log10",function(e){return e=Number(e),z(e)*B}),o(Math,"log2",function(e){return e=Number(e),z(e)*W}),o(Math,"sign",function(e){return e=Number(e),0>e?-1:e>0?1:e}),o(Math,"sinh",function(e){return e=Number(e),y(e,-0)?e:(Y(H,e)-Y(H,-e))/2}),o(Math,"tanh",function(e){e=Number(e);var t=Y(H,2*e)-1,r=Y(H,2*e)+1;return y(e,-0)?e:t===r?1:t/r}),o(Math,"trunc",function(e){return e=Number(e),U(e)?NaN:0>e?G(e):V(e)});var he=function(){var e={},t=Symbol();return e[Symbol.match]=function(){return t},"".match(e)===t}();o(String,"fromCodePoint",function(){for(var e=arguments,t=e.length,r=[],n=0;t>n;){var o=e[n],i=Number(o);if(!y(i,s(i))||0>i||i>1114111)throw RangeError("Invalid code point "+i);65536>i?r.push(String.fromCharCode(i)):(i-=65536,r.push(String.fromCharCode((i>>10)+55296)),r.push(String.fromCharCode(i%1024+56320))),n+=1}return r.join("")}),o(String,"raw",function ve(e){var t=[].slice.call(arguments,1),r=Object(e),n=r.raw,ve=Object(n),o=ve.length,i=f(o);if(0>=i)return"";for(var a=[],u=0;;){var s=ve[u],c=String(s);if(a.push(c),u+1===i)return a.join("");s=t[u];var l=String(s);a.push(l),u+=1}}),o(String.prototype,"codePointAt",function(e){var r=t(this),n=String(r),o=s(e),i=n.length;if(0>o||o>=i)return I;var a=n.charCodeAt(o);if(55296>a||a>56319||o+1===i)return a;var u=n.charCodeAt(o+1);return 56320>u||u>57343?a:1024*(a-55296)+(u-56320)+65536}),o(String.prototype,"endsWith",function(e){var r=arguments[1],n=t(this),o=String(n),i=String(e),a=o.length,u=r===I?a:s(r),c=J(K(u,0),a),l=i.length,f=c-l;return 0>f?!1:o.substring(f,f+l)===i}),o(String.prototype,"includes",function(e){var r=arguments[1],n=t(this),o=String(n),i=String(e),a=s(r),u=o.length,c=J(K(a,0),u);return-1!==o.indexOf(i,c)}),o(String.prototype,"match",function(e){var r=t(this),n=String(r);if(b(e,ue))var o=e;else o=new RegExp(e);return o[ue](n)},!he),o(String.prototype,"repeat",function(e){var r=t(this),n=String(r),o=s(e);if(0>o)throw RangeError();if(o===1/0)throw RangeError();var i=new Array(o+1).join(n);return i}),o(String.prototype,"replace",function(e,r){var n=t(this);return b(e,se)?e[se](n,r):te.call(n,e,r)},!he),o(String.prototype,"search",function(e){var r=t(this),n=String(r);if(b(e,ce))var o=e;else o=new RegExp(e);return o[ce](n)},!he),o(String.prototype,"split",function(e,r){var n=t(this);return b(e,le)?e[le](n,r):ne.call(n,e,r)},!he),o(String.prototype,"startsWith",function(e){var r=arguments[1],n=t(this),o=String(n),i=String(e),a=s(r),u=o.length,c=J(K(a,0),u),l=i.length;return l+c>u?!1:o.substring(c,c+l)===i}),o(String.prototype,ae,function(){return D(this,"value")});var pe=Object.create(ie);A.prototype=pe,o(pe,"next",function(){var e=l(this),t=String(e["[[IteratedString]]"]),r=e["[[StringIteratorNextIndex]]"],n=t.length;if(r>=n)return i(e,"[[StringIteratorNextIndex]]",1/0),O(I,!0);var o=t.codePointAt(r);return i(e,"[[StringIteratorNextIndex]]",r+(o>65535?2:1)),O(String.fromCodePoint(o),!1)}),o(pe,fe,"String Iterator"),"flags"in RegExp.prototype||Object.defineProperty(RegExp.prototype,"flags",{get:function(){var e=String(this);return e.substring(e.lastIndexOf("/")+1)}}),o(RegExp.prototype,ue,function(e){var r=t(this);return ee.call(e,r)}),o(RegExp.prototype,se,function(e,r){var n=t(this);return te.call(e,n,r)}),o(RegExp.prototype,ce,function(e){var r=t(this);return re.call(e,r)}),o(RegExp.prototype,le,function(e,r){var n=t(this);return ne.call(e,n,r)}),o(Array,"from",function(e){var r=arguments[1],n=arguments[2],o=t(this);if(r===I)var i=!1;else{if(!h(r))throw TypeError();var a=n;i=!0}var u=m(e,ae);if(u!==I){if(p(o))var s=new o;else s=new Array(0);for(var c=E(e,u),y=0;;){var d=T(c);if(d===!1)return s.length=y,s;var v=_(d);if(i)var b=r.call(a,v);else b=v;s[y]=b,y+=1}}var g=l(e),w=g.length,O=f(w);for(s=p(o)?new o(O):new Array(O),y=0;O>y;){var S=g[y];b=i?r.call(a,S,y):S,s[y]=b,y+=1}return s.length=O,s}),o(Array,"of",function(){var e,r=arguments,n=r.length,o=c(n),i=t(this);p(i)?(e=new i(o),e=l(e)):e=new Array(o);for(var a=0;o>a;)e[a]=r[a],a+=1;return e.length=o,e}),o(Array.prototype,"copyWithin",function(e,t){var r=arguments[2],n=l(this),o=n.length,i=f(o);i=K(i,0);var a,u=s(e);a=0>u?K(i+u,0):J(u,i);var c,h=s(t);c=0>h?K(i+h,0):J(h,i);var p;p=r===I?i:s(r);var y;y=0>p?K(i+p,0):J(p,i);var d,v=J(y-c,i-a);for(a>c&&c+v>a?(d=-1,c=c+v-1,a=a+v-1):d=1;v>0;){var m=String(c),g=String(a),E=b(n,m);if(E){var w=n[m];n[g]=w}else delete n[g];c+=d,a+=d,v-=1}return n});var ye="entries"in Array.prototype&&"next"in[].entries();o(Array.prototype,"entries",function(){return M(this,"key+value")},!ye),o(Array.prototype,"fill",function(e){var t=arguments[1],r=arguments[2],n=l(this),o=n.length,i=f(o);i=K(i,0);var a,u=s(t);a=0>u?K(i+u,0):J(u,i);var c;c=r===I?i:s(r);var h;for(h=0>c?K(i+c,0):J(c,i);h>a;){var p=String(a);n[p]=e,a+=1}return n}),o(Array.prototype,"find",function(e){var t=l(this),r=t.length,n=s(r);if(!h(e))throw TypeError();for(var o=arguments.length>1?arguments[1]:I,i=0;n>i;){var a=String(i),u=b(t,a);if(u){var c=t[a],f=e.call(o,c,i,t);if(Boolean(f))return c}++i}return I}),o(Array.prototype,"findIndex",function(e){var t=l(this),r=t.length,n=f(r);if(!h(e))throw TypeError();for(var o=arguments.length>1?arguments[1]:I,i=0;n>i;){var a=String(i),u=b(t,a);if(u){var s=t[a],c=e.call(o,s,i,t);if(Boolean(c))return i}++i}return-1}),o(Array.prototype,"keys",function(){return M(this,"key")},!ye),o(Array.prototype,"values",function(){return M(this,"value")},!ye),o(Array.prototype,ae,Array.prototype.values);var de=Object.create(ie);N.prototype=de,o(de,"next",function(){var e=t(this);if("object"!==u(e))throw TypeError();var r,n,o=e["[[IteratedObject]]"],a=e["[[ArrayIteratorNextIndex]]"],s=e["[[ArrayIterationKind]]"],l=o.length,f=c(l);if(-1!==s.indexOf("sparse"))for(var h=!1;!h&&f>a;)r=String(a),h=b(o,r),h||(a+=1);if(a>=f)return i(e,"[[ArrayIteratorNextIndex]]",1/0),O(I,!0);if(r=a,i(e,"[[ArrayIteratorNextIndex]]",a+1),-1!==s.indexOf("value")&&(n=o[r]),-1!==s.indexOf("key+value"))return O([r,n],!1);if(-1!==s.indexOf("key"))return O(r,!1);if("value"===s)return O(n,!1);throw Error("Internal error")}),o(de,fe,"Array Iterator"),["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(r){if(r in e){var n=e[r];o(n,"from",function(e){var r=arguments[1],n=arguments[2],o=t(this);if(!p(o))throw TypeError();if(r===I)var i=!1;else{if(h(r))throw TypeError();var a=n;i=!0}var u=m(e,ae);if(u!==I){for(var s=E(e,u),c=[],y=!0;y!==!1;)if(y=T(s),y!==!1){var d=_(y);c.push(d)}for(var v=c.length,b=new o(v),g=0;v>g;){var w=c.shift();if(i)var O=r.call(a,w);else O=w;b[g]=O,++g}return b}var S=l(e),j=S.length;for(v=f(j),b=new o(v),g=0;v>g;)w=S[g],O=i?r.call(a,w,g):w,b[g]=O,++g;return b}),o(n,"of",function(){for(var e=arguments,r=e.length,n=t(this),o=new n(r),i=0;r>i;)o[i]=e[i],++i;return o}),o(n.prototype,"copyWithin",Array.prototype.copyWithin),o(n.prototype,"entries",Array.prototype.entries),o(n.prototype,"every",Array.prototype.every),o(n.prototype,"fill",function(e){var t=arguments[1],r=arguments[2],n=l(this),o=n.length,i=f(o);i=K(i,0);var a,u=s(t);a=0>u?K(i+u,0):J(u,i);var c;c=r===I?i:s(r);var h;for(h=0>c?K(i+c,0):J(c,i);h>a;){var p=String(a);n[p]=e,a+=1}return n}),o(n.prototype,"filter",function(e){var t=arguments[1],r=l(this),n=r.length,o=f(n);if(!h(e))throw TypeError();for(var i=t,a=r.constructor,u=[],s=0,c=0;o>s;){var p=r[s],y=e.call(i,p,s,r);y&&(u.push(p),++c),++s}for(var d=new a(c),v=0,m=0;ms;){var c=b(r,s);if(c){var y=r[s],d=e.call(i,y,s,r);a[s]=d}++s}return a}),o(n.prototype,"reduce",Array.prototype.reduce),o(n.prototype,"reduceRight",Array.prototype.reduceRight),o(n.prototype,"reverse",Array.prototype.reverse),o(n.prototype,"slice",function(e,t){var r=l(this),n=r.length,o=f(n),i=s(e),a=0>i?K(o+i,0):J(i,o),u=t===I?o:s(t),c=0>u?K(o+u,0):J(u,o),h=c-a,y=r.constructor;if(!p(y))throw TypeError();for(var d=new y(h),v=0;c>a;){var m=r[a];d[v]=m,++a,++v}return d}),o(n.prototype,"some",Array.prototype.some),o(n.prototype,"sort",function(){function e(e,r){return e!==e&&r!==r?0:e!==e?1:r!==r?-1:t!==I?t(e,r):r>e?-1:e>r?1:0}var t=arguments[0];return Array.prototype.sort.call(this,e)}),o(n.prototype,"values",Array.prototype.values),o(n.prototype,ae,n.prototype.values),o(n.prototype,fe,r)}}),function(){function r(){var e=t(this),r=arguments[0];if("object"!==u(e))throw TypeError();if("[[MapData]]"in e)throw TypeError();if(r!==I){var n=e.set;if(!h(n))throw TypeError();var o=E(l(r))}if(i(e,"[[MapData]]",{keys:[],values:[]}),o===I)return e;for(;;){var a=T(o);if(a===!1)return e;var s=_(a);if("object"!==u(s))throw TypeError();var c=s[0],f=s[1];n.call(e,c,f)}return e}function n(e,t){var r;if(t===t)return e.keys.indexOf(t);for(r=0;ri?!1:(o.keys[i]=oe,o.values[i]=oe,!0)}),o(r.prototype,"entries",function(){var e=t(this);if("object"!==u(e))throw TypeError();return s(e,"key+value")}),o(r.prototype,"forEach",function(e){var r=arguments[1],n=t(this);if("object"!==u(n))throw TypeError();if(!("[[MapData]]"in n))throw TypeError();if(n["[[MapData]]"]===I)throw TypeError();var o=n["[[MapData]]"];if(!h(e))throw TypeError("First argument to forEach is not callable.");for(var i=0;i=0?o.values[i]:I}),o(r.prototype,"has",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(!("[[MapData]]"in r))throw TypeError();if(r["[[MapData]]"]===I)throw TypeError();var o=r["[[MapData]]"];return n(o,e)>=0}),o(r.prototype,"keys",function(){var e=t(this);if("object"!==u(e))throw TypeError();return s(e,"key")}),o(r.prototype,"set",function(e,r){var o=t(this);if("object"!==u(o))throw TypeError();if(!("[[MapData]]"in o))throw TypeError();if(o["[[MapData]]"]===I)throw TypeError();var i=o["[[MapData]]"],a=n(i,e);return 0>a&&(a=i.keys.length),y(e,-0)&&(e=0),i.keys[a]=e,i.values[a]=r,o}),Object.defineProperty(r.prototype,"size",{get:function(){var e=t(this);if("object"!==u(e))throw TypeError();if(!("[[MapData]]"in e))throw TypeError();if(e["[[MapData]]"]===I)throw TypeError();for(var r=e["[[MapData]]"],n=0,o=0;oi&&(i=r["[[SetData]]"].length),r["[[SetData]]"][i]=e,r}),o(r.prototype,"clear",function(){var e=t(this);if("object"!==u(e))throw TypeError();if(!("[[SetData]]"in e))throw TypeError();if(e["[[SetData]]"]===I)throw TypeError();var r=e["[[SetData]]"];return r.length=0,I}),o(r.prototype,"delete",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(!("[[SetData]]"in r))throw TypeError();if(r["[[SetData]]"]===I)throw TypeError();var o=r["[[SetData]]"],i=n(o,e);return 0>i?!1:(o[i]=oe,!0)}),o(r.prototype,"entries",function(){var e=t(this);if("object"!==u(e))throw TypeError();return s(e,"key+value")}),o(r.prototype,"forEach",function(e){var r=arguments[1],n=t(this);if("object"!==u(n))throw TypeError();if(!("[[SetData]]"in n))throw TypeError();if(n["[[SetData]]"]===I)throw TypeError();var o=n["[[SetData]]"];if(!h(e))throw TypeError("First argument to forEach is not callable.");for(var i=0;ir;++r)S("PromiseJobs",m,[e[r],t]);return I}function m(e,t){var r,n,o=e["[[Capabilities]]"],i=e["[[Handler]]"];try{if("Identity"===i)r=t;else{if("Thrower"===i)throw t;r=i.call(I,t)}}catch(r){return n=o["[[Reject]]"].call(I,r),void j(n)}n=o["[[Resolve]]"].call(I,r),j(n)}function b(e,t,n){var o=r(e);try{var i=n.call(t,o["[[Resolve]]"],o["[[Reject]]"])}catch(i){var a=o["[[Reject]]"].call(I,i);return void j(a)}j(i)}function g(e){var t={configurable:!1,enumerable:!1,writable:!0,value:I};Object.defineProperty(this,"[[PromiseState]]",t),Object.defineProperty(this,"[[PromiseConstructor]]",t),Object.defineProperty(this,"[[PromiseResult]]",t),Object.defineProperty(this,"[[PromiseFulfillReactions]]",t),Object.defineProperty(this,"[[PromiseRejectReactions]]",t);var r=this;if("object"!==u(r))throw new TypeError;if(!("[[PromiseState]]"in r))throw TypeError();if(r["[[PromiseState]]"]!==I)throw TypeError();if(!h(e))throw TypeError();return i(r,"[[PromiseConstructor]]",g),w(r,e)}function w(e,t){i(e,"[[PromiseState]]","pending"),i(e,"[[PromiseFulfillReactions]]",[]),i(e,"[[PromiseRejectReactions]]",[]);var n=r(e);try{var o=t.call(I,n["[[Resolve]]"],n["[[Reject]]"])}catch(o){n["[[Reject]]"].call(I,o)}return e}function O(){var e=function(t){var r=e["[[AlreadyCalled]]"];if(r.value)return I;r.value=!0;var n=e["[[Index]]"],o=e["[[Values]]"],i=e["[[Capabilities]]"],a=e["[[RemainingElements]]"];try{o[n]=t}catch(u){return i["[[Reject]]"].call(I,u),i["[[Promise]]"]}return a.value-=1,0===a.value?i["[[Resolve]]"].call(I,o):I};return e}o(g,"all",function(e){var r=t(this),n=c(r);try{var o=E(e)}catch(a){return n["[[Reject]]"].call(I,a),n["[[Promise]]"]}for(var u=[],s={value:1},l=0;;){try{var f=T(o)}catch(a){return n["[[Reject]]"].call(I,a),n["[[Promise]]"]}if(!f){if(s.value-=1,0===s.value){n["[[Resolve]]"].apply(I,u)}return n["[[Promise]]"]}try{var h=_(f)}catch(a){return n["[[Reject]]"].call(I,a),n["[[Promise]]"]}try{var p=r.resolve(h)}catch(a){return n["[[Reject]]"].call(I,a),n["[[Promise]]"]}var y=O();i(y,"[[AlreadyCalled]]",{value:!1}),i(y,"[[Index]]",l),i(y,"[[Values]]",u),i(y,"[[Capabilities]]",n),i(y,"[[RemainingElements]]",s),s.value+=1;try{p.then(y,n["[[Reject]]"])}catch(a){return n["[[Reject]]"].call(I,a),n["[[Promise]]"]}l+=1}}),g.prototype={},o(g,"race",function(e){var r=t(this),n=c(r);try{var o=E(e)}catch(i){return n["[[Reject]]"].call(I,i),n["[[Promise]]"]}for(;;){try{var a=T(o)}catch(i){return n["[[Reject]]"].call(I,i),n["[[Promise]]"]}if(!a)return n["[[Promise]]"];try{var u=_(a)}catch(i){return n["[[Reject]]"].call(I,i),n["[[Promise]]"]}try{var s=r.resolve(u)}catch(i){return n["[[Reject]]"].call(I,i),n["[[Promise]]"]}try{s.then(n["[[Resolve]]"],n["[[Reject]]"])}catch(i){return n["[[Reject]]"].call(I,i),n["[[Promise]]"]}}}),o(g,"reject",function(e){var r=t(this),n=c(r);n["[[Reject]]"].call(I,e);return n["[[Promise]]"]}),o(g,"resolve",function(e){var r=t(this);if(p(e)){var n=e["[[PromiseConstructor]]"];if(y(n,r))return e}var o=c(r);o["[[Resolve]]"].call(I,e);return o["[[Promise]]"]}),o(g.prototype,"catch",function(e){var t=this;return t.then(I,e)}),g.prototype.constructor=g,o(g.prototype,"then",function(e,t){var r=this;if(!p(r))throw TypeError();h(e)||(e="Identity"),h(t)||(t="Thrower");var n=r.constructor,o=c(n),i={"[[Capabilities]]":o,"[[Handler]]":e},a={"[[Capabilities]]":o,"[[Handler]]":t};if("pending"===r["[[PromiseState]]"])r["[[PromiseFulfillReactions]]"].push(i),r["[[PromiseRejectReactions]]"].push(a);else if("fulfilled"===r["[[PromiseState]]"]){var u=r["[[PromiseResult]]"];S("PromiseJobs",m,[i,u])}else if("rejected"===r["[[PromiseState]]"]){var s=r["[[PromiseResult]]"];S("PromiseJobs",m,[a,s])}return o["[[Promise]]"]}),"Promise"in e&&!C||(e.Promise=g),"cast"in e.Promise&&(e.Promise.resolve=e.Promise.cast)}(),o(Promise.prototype,fe,"Promise"),function(){var t={};o(t,"apply",function(e,t,r){if(!h(e))throw TypeError();return Function.prototype.apply.call(e,t,r)}),o(t,"construct",function(e,t){return __cons(e,t)}),o(t,"defineProperty",function(e,t,r){try{return Object.defineProperty(e,t,r),!0}catch(n){return!1}}),o(t,"deleteProperty",function(e,t){try{return delete e[t],!g(e,t)}catch(r){return!1}}),o(t,"enumerate",function(e){e=l(e);var t=P(e);return t}),o(t,"get",function(e,t,r){e=l(e),t=String(t),r=r===I?e:l(r);var o=n(e,t);return o&&"get"in o?Function.prototype.call.call(o.get,r):e[t]}),o(t,"getOwnPropertyDescriptor",Object.getOwnPropertyDescriptor),o(t,"getPrototypeOf",Object.getPrototypeOf),o(t,"has",function(e,t){return String(t)in l(e)}),o(t,"isExtensible",Object.isExtensible),o(t,"ownKeys",function(e){var t=l(e);return Object.getOwnPropertyNames(t)}),o(t,"preventExtensions",function(e){try{return Object.preventExtensions(e),!0}catch(t){return!1}}),o(t,"set",function(e,t,r,o){e=l(e),t=String(t),o=o===I?e:l(o);var i=n(e,t);try{return i&&"set"in i?Function.prototype.call.call(i.set,o,r):e[t]=r,!0}catch(a){return!1}}),o(t,"setPrototypeOf",function(e,r){try{return e.__proto__=r,t.getPrototypeOf(e)===r}catch(n){return!1}}),"Reflect"in e&&!C||(e.Reflect=t)}()}(self),function(e){"window"in e&&"document"in e&&(document.head=document.head||document.getElementsByTagName("head")[0],["abbr","article","aside","audio","bdi","canvas","data","datalist","details","dialog","figcaption","figure","footer","header","hgroup","main","mark","meter","nav","output","picture","progress","section","summary","template","time","video"].forEach(function(e){document.createElement(e)}),!("dataset"in document.createElement("span"))&&"Element"in e&&Element.prototype&&Object.defineProperty&&Object.defineProperty(Element.prototype,"dataset",{get:function(){for(var e=Object.create(null),t=0;t>16&255)),o.push(String.fromCharCode(i>>8&255)),o.push(String.fromCharCode(255&i)),a=0,i=0),r+=1;return 12===a?(i>>=4,o.push(String.fromCharCode(255&i))):18===a&&(i>>=2,o.push(String.fromCharCode(i>>8&255)),o.push(String.fromCharCode(255&i))),o.join("")}function r(e){e=String(e);var t,r,o,i,a,u,s,c=0,l=[];if(/[^\x00-\xFF]/.test(e))throw Error("InvalidCharacterError");for(;c>2,a=(3&t)<<4|r>>4,u=(15&r)<<2|o>>6,s=63&o,c===e.length+2?(u=64,s=64):c===e.length+1&&(s=64),l.push(n.charAt(i),n.charAt(a),n.charAt(u),n.charAt(s));return l.join("")}if(!("atob"in e&&"btoa"in e)){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.atob=t,e.btoa=r}}())}(self),function(e){"window"in e&&"document"in e&&(document.querySelectorAll||(document.querySelectorAll=function(e){var t,r=document.createElement("style"),n=[];for(document.documentElement.firstChild.appendChild(r),document._qsa=[],r.styleSheet.cssText=e+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",window.scrollBy(0,0),r.parentNode.removeChild(r);document._qsa.length;)t=document._qsa.shift(),t.style.removeAttribute("x-qsa"),n.push(t);return document._qsa=null,n}),document.querySelector||(document.querySelector=function(e){var t=document.querySelectorAll(e);return t.length?t[0]:null}),document.getElementsByClassName||(document.getElementsByClassName=function(e){return e=String(e).replace(/^|\s+/g,"."),document.querySelectorAll(e)}),e.Node=e.Node||function(){throw TypeError("Illegal constructor")},Node.ELEMENT_NODE=1,Node.ATTRIBUTE_NODE=2,Node.TEXT_NODE=3,Node.CDATA_SECTION_NODE=4,Node.ENTITY_REFERENCE_NODE=5,Node.ENTITY_NODE=6,Node.PROCESSING_INSTRUCTION_NODE=7,Node.COMMENT_NODE=8,Node.DOCUMENT_NODE=9,Node.DOCUMENT_TYPE_NODE=10,Node.DOCUMENT_FRAGMENT_NODE=11,Node.NOTATION_NODE=12,e.DOMException=e.DOMException||function(){throw TypeError("Illegal constructor")},DOMException.INDEX_SIZE_ERR=1,DOMException.DOMSTRING_SIZE_ERR=2,DOMException.HIERARCHY_REQUEST_ERR=3,DOMException.WRONG_DOCUMENT_ERR=4,DOMException.INVALID_CHARACTER_ERR=5,DOMException.NO_DATA_ALLOWED_ERR=6,DOMException.NO_MODIFICATION_ALLOWED_ERR=7,DOMException.NOT_FOUND_ERR=8,DOMException.NOT_SUPPORTED_ERR=9,DOMException.INUSE_ATTRIBUTE_ERR=10,DOMException.INVALID_STATE_ERR=11,DOMException.SYNTAX_ERR=12,DOMException.INVALID_MODIFICATION_ERR=13,DOMException.NAMESPACE_ERR=14,DOMException.INVALID_ACCESS_ERR=15,function(){function t(e,t,r){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var n=this,o=function(e){e._timeStamp=Date.now(),e._currentTarget=n,t.call(this,e),e._currentTarget=null};this["_"+e+t]=o,this.attachEvent("on"+e,o)}}function r(e,t,r){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var n=this["_"+e+t];n&&(this.detachEvent("on"+e,n),this["_"+e+t]=null)}}"Element"in e&&!Element.prototype.addEventListener&&Object.defineProperty&&(Event.CAPTURING_PHASE=1,Event.AT_TARGET=2,Event.BUBBLING_PHASE=3,Object.defineProperties(Event.prototype,{CAPTURING_PHASE:{get:function(){return 1}},AT_TARGET:{get:function(){return 2}},BUBBLING_PHASE:{get:function(){return 3}},target:{get:function(){return this.srcElement}},currentTarget:{get:function(){return this._currentTarget}},eventPhase:{get:function(){return this.srcElement===this.currentTarget?Event.AT_TARGET:Event.BUBBLING_PHASE}},bubbles:{get:function(){switch(this.type){case"click":case"dblclick":case"mousedown":case"mouseup":case"mouseover":case"mousemove":case"mouseout":case"mousewheel":case"keydown":case"keypress":case"keyup":case"resize":case"scroll":case"select":case"change":case"submit":case"reset":return!0}return!1}},cancelable:{get:function(){switch(this.type){case"click":case"dblclick":case"mousedown":case"mouseup":case"mouseover":case"mouseout":case"mousewheel":case"keydown":case"keypress":case"keyup":case"submit":return!0}return!1}},timeStamp:{get:function(){return this._timeStamp}},stopPropagation:{value:function(){this.cancelBubble=!0}},preventDefault:{value:function(){this.returnValue=!1}},defaultPrevented:{get:function(){return this.returnValue===!1}}}),[Window,HTMLDocument,Element].forEach(function(e){e.prototype.addEventListener=t,e.prototype.removeEventListener=r}))}(),window.addEvent=function(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent&&(e["e"+t+r]=r,e[t+r]=function(){var n=window.event;n.currentTarget=e,n.preventDefault=function(){n.returnValue=!1},n.stopPropagation=function(){n.cancelBubble=!0},n.target=n.srcElement,n.timeStamp=Date.now(),e["e"+t+r].call(this,n)},e.attachEvent("on"+t,e[t+r]))},window.removeEvent=function(e,t,r){e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent&&(e.detachEvent("on"+t,e[t+r]),e[t+r]=null,e["e"+t+r]=null)},function(){function t(e,t){function r(e){return e.length?e.split(/\s+/g):[]}function n(e,t){var n=r(t),o=n.indexOf(e);return-1!==o&&n.splice(o,1),n.join(" ")}if(Object.defineProperties(this,{length:{get:function(){return r(e[t]).length}},item:{value:function(n){var o=r(e[t]);return n>=0&&no;++o)Object.defineProperty(this,String(o),{get:function(e){return function(){return this.item(e)}}(o)});else this.length=r(e[t]).length}function r(t,r){"Element"in e&&Element.prototype&&Object.defineProperty&&Object.defineProperty(Element.prototype,t,{get:r})}"classList"in document.createElement("span")?window.getClassList=function(e){return e.classList}:(window.getClassList=function(e){return new t(e,"className")},r("classList",function(){return new t(this,"className")})),"relList"in document.createElement("link")?window.getRelList=function(e){return e.relList}:(window.getRelList=function(e){return new t(e,"rel")},r("relList",function(){return new t(this,"rel")})),"previousElementSibling"in document.documentElement||r("previousElementSibling",function(){for(var e=this.previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}),"nextElementSibling"in document.documentElement||r("nextElementSibling",function(){for(var e=this.nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e})}())}(self),function(e){"window"in e&&"document"in e&&(e.XMLHttpRequest=e.XMLHttpRequest||function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("This browser does not support XMLHttpRequest.")},XMLHttpRequest.UNSENT=0,XMLHttpRequest.OPENED=1,XMLHttpRequest.HEADERS_RECEIVED=2,XMLHttpRequest.LOADING=3,XMLHttpRequest.DONE=4,function(){function t(e){if(this._data=[],e)for(var t=0;t"),e.close()),!e)throw Error("base not supported");var r=e.createElement("base");r.href=i,e.getElementsByTagName("head")[0].appendChild(r);var n=e.createElement("a");return n.href=t,n.href}());var l=n(t||""),f=function(){if(!("defineProperties"in Object))return!1;try{var e={};return Object.defineProperties(e,{prop:{get:function(){return!0}}}),e.prop}catch(t){return!1}}(),h=f?this:document.createElement("a"),p=new o(l.search?l.search.substring(1):null);return p._url_object=h,Object.defineProperties(h,{href:{get:function(){return l.href},set:function(e){l.href=e,s(),c()},enumerable:!0,configurable:!0},origin:{get:function(){return"origin"in l?l.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return l.protocol},set:function(e){l.protocol=e},enumerable:!0,configurable:!0},username:{get:function(){return l.username},set:function(e){l.username=e},enumerable:!0,configurable:!0},password:{get:function(){return l.password},set:function(e){l.password=e},enumerable:!0,configurable:!0},host:{get:function(){var e={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[l.protocol];return e?l.host.replace(e,""):l.host},set:function(e){l.host=e},enumerable:!0,configurable:!0},hostname:{get:function(){return l.hostname},set:function(e){l.hostname=e},enumerable:!0,configurable:!0},port:{get:function(){return l.port},set:function(e){l.port=e},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==l.pathname.charAt(0)?"/"+l.pathname:l.pathname},set:function(e){l.pathname=e},enumerable:!0,configurable:!0},search:{get:function(){return l.search},set:function(e){l.search!==e&&(l.search=e,s(),c())},enumerable:!0,configurable:!0},searchParams:{get:function(){return p},enumerable:!0,configurable:!0},hash:{get:function(){return l.hash},set:function(e){l.hash=e,s()},enumerable:!0,configurable:!0},toString:{value:function(){return l.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return l.valueOf()},enumerable:!1,configurable:!0}}),h}var a,u=e.URL;try{if(u){if(a=new e.URL("http://example.com"),"searchParams"in a)return;"href"in a||(a=void 0)}}catch(s){}if(Object.defineProperties(o.prototype,{append:{value:function(e,t){this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},"delete":{value:function(e){for(var t=0;t=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:[r.name,r.value]}}}},writable:!0,enumerable:!0,configurable:!0},keys:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.name}}}},writable:!0,enumerable:!0,configurable:!0},values:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.value}}}},writable:!0,enumerable:!0,configurable:!0},forEach:{value:function(e){var t=arguments.length>1?arguments[1]:void 0;this._list.forEach(function(r,n){e.call(t,r.name,r.value)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return t(this._list)},writable:!0,enumerable:!1,configurable:!0}}),"Symbol"in e&&"iterator"in e.Symbol&&Object.defineProperty(o.prototype,e.Symbol.iterator,{value:o.prototype.entries,writable:!0,enumerable:!0,configurable:!0}),u)for(var c in u)u.hasOwnProperty(c)&&"function"==typeof u[c]&&(e.URL[c]=u[c]);e.URL=i,e.URLSearchParams=o}(self),function(e){function t(e){if(e=String(e),e.match(/[^\x00-\xFF]/))throw TypeError("Not a valid ByteString");return e}function r(e){return e=String(e),e.replace(/([\u0000-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF])/g,function(e){return/^[\uD800-\uDFFF]$/.test(e)?"�":e})}function n(e){return 65535&e}function o(e){return String(e).replace(/[a-z]/g,function(e){return e.toUpperCase()})}function i(e){return e=o(e),"CONNECT"===e||"TRACE"===e||"TRACK"===e}function a(e){var t=o(e);return"DELETE"===t||"GET"===t||"HEAD"===t||"OPTIONS"===t||"POST"===t||"PUT"===t?t:e}function u(e){return/^[!#$%&'*+\-.09A-Z^_`a-z|~]+$/.test(e)}function s(e){return!0}function c(e){e=String(e).toLowerCase();var t={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0};return t[e]||"proxy-"===e.substring(0,6)||"sec-"===e.substring(0,4)}function l(e){e=String(e).toLowerCase();var t={"set-cookie":!0,"set-cookie2":!0};return t[e]}function f(e,t){return e=String(e).toLowerCase(),"accept"===e||"accept-language"===e||"content-language"===e||"content-type"===e&&-1!==["application/x-www-form-encoded","multipart/form-data","text/plain"].indexOf(t)}function h(e){this._guard="none",this._headerList=[],e&&p(this,e)}function p(e,t){t instanceof h?t._headerList.forEach(function(t){e.append(t[0],t[1])}):Array.isArray(t)?t.forEach(function(t){if(!Array.isArray(t)||2!==t.length)throw TypeError();e.append(t[0],t[1])}):(t=Object(t),Object.keys(t).forEach(function(r){e.append(r,t[r])}))}function y(e){this._headers=e,this._index=0}function d(e){this._stream=e,this.bodyUsed=!1}function v(e,n){if(arguments.length<1)throw TypeError("Not enough arguments");if(d.call(this,null),this.method="GET",this.url="",this.headers=new h,this.headers._guard="request",this.referrer=null,this.mode=null,this.credentials="omit",e instanceof v){if(e.bodyUsed)throw TypeError();e.bodyUsed=!0,this.method=e.method,this.url=e.url,this.headers=new h(e.headers),this.headers._guard=e.headers._guard,this.credentials=e.credentials,this._stream=e._stream}else e=r(e),this.url=String(new URL(e,self.location));if(n=Object(n),"method"in n){var o=t(n.method);if(i(o))throw TypeError();this.method=a(o)}"headers"in n&&(this.headers=new h,p(this.headers,n.headers)),"body"in n&&(this._stream=n.body),"credentials"in n&&-1!==["omit","same-origin","include"].indexOf(n.credentials)&&(this.credentials=n.credentials)}function m(e,t){if(arguments.length<1&&(e=""),this.headers=new h,this.headers._guard="response",e instanceof XMLHttpRequest&&"_url"in e){var o=e;return this.type="basic",this.url=r(o._url),this.status=o.status,this.ok=200<=this.status&&this.status<=299,this.statusText=o.statusText,o.getAllResponseHeaders().split(/\r?\n/).filter(function(e){return e.length}).forEach(function(e){var t=e.indexOf(":");this.headers.append(e.substring(0,t),e.substring(t+2))},this),void d.call(this,o.responseText)}d.call(this,e),t=Object(t)||{},this.url="";var i="status"in t?n(t.status):200;if(200>i||i>599)throw RangeError();this.status=i,this.ok=200<=this.status&&this.status<=299;var a="statusText"in t?String(t.statusText):"OK";if(/[^\x00-\xFF]/.test(a))throw TypeError();this.statusText=a,"headers"in t&&p(this.headers,t),this.type="basic"}function b(e,t){return new Promise(function(r,n){var o=new v(e,t),i=new XMLHttpRequest,a=!0;i._url=o.url;try{i.open(o.method,o.url,a)}catch(u){throw TypeError(u.message)}for(var s=o.headers[Symbol.iterator](),c=s.next();!c.done;c=s.next())i.setRequestHeader(c.value[0],c.value[1]);"include"===o.credentials&&(i.withCredentials=!0),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&(0===i.status?n(new TypeError("Network error")):r(new m(i)))},i.send(o._stream)})}h.prototype={append:function(e,r){if(e=t(e),!u(e)||!s(r))throw TypeError();if("immutable"===this._guard)throw TypeError();"request"===this._guard&&c(e)||("request-no-CORS"!==this._guard||f(e,r))&&("response"===this._guard&&l(e)||(e=e.toLowerCase(),this._headerList.push([e,r])))},"delete":function(e){if(e=t(e),!u(e))throw TypeError();if("immutable"===this._guard)throw TypeError();if(("request"!==this._guard||!c(e))&&("request-no-CORS"!==this._guard||f(e,"invalid"))&&("response"!==this._guard||!l(e))){e=e.toLowerCase();for(var r=0;r=this._headers._headerList.length?{value:void 0,done:!0}:{value:this._headers._headerList[this._index++],done:!1}},y.prototype[Symbol.iterator]=function(){return this},d.prototype={arrayBuffer:function(){if(this.bodyUsed)return Promise.reject(TypeError());if(this.bodyUsed=!0,this._stream instanceof ArrayBuffer)return Promise.resolve(this._stream);var e=this._stream;return new Promise(function(t,r){var n=unescape(encodeURIComponent(e)).split("").map(function(e){return e.charCodeAt(0)});t(new Uint8Array(n).buffer)})},blob:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof Blob?Promise.resolve(this._stream):Promise.resolve(new Blob([this._stream])))},formData:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof FormData?Promise.resolve(this._stream):Promise.reject(Error("Not yet implemented")))},json:function(){if(this.bodyUsed)return Promise.reject(TypeError());this.bodyUsed=!0;var e=this;return new Promise(function(t,r){t(JSON.parse(e._stream))})},text:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,Promise.resolve(String(this._stream)))}},v.prototype=d.prototype,m.prototype=d.prototype,m.redirect=function(){throw Error("Not supported")},"fetch"in e||(e.Headers=h,e.Request=v,e.Response=m,e.fetch=b)}(self),function(e){"window"in e&&"document"in e&&"TextRectangle"in this&&!("width"in TextRectangle.prototype)&&Object.defineProperties(TextRectangle.prototype,{width:{get:function(){return this.right-this.left}},height:{get:function(){return this.bottom-this.top}}})}(this),function(e){"window"in e&&"document"in e&&(!function(){function t(e){return e.offsetWidth>0&&e.offsetHeight>0}function r(){ -var e=a;a=Object.create(null),s=-1,Object.keys(e).forEach(function(r){var n=e[r];n.element&&!t(n.element)||n.callback(Date.now())})}function n(t,n){var o=++u;return a[o]={callback:t,element:n},-1===s&&(s=e.setTimeout(r,1e3/i)),o}function o(t){delete a[t],0===Object.keys(a).length&&(e.clearTimeout(s),s=-1)}if(!("requestAnimationFrame"in e)){var i=60,a=Object.create(null),u=0,s=-1;e.requestAnimationFrame=n,e.cancelAnimationFrame=o}}(),function(){function t(t){var r=[].slice.call(arguments,1);return e.setTimeout(function(){t.apply(null,r)},0)}function r(t){e.clearTimeout(t)}"setImmediate"in e||(e.setImmediate=t,e.clearImmediate=r)}())}(this),function(e){"use strict";function t(e){var t="",r=!0;return e.forEach(function(e){var n=encodeURIComponent(e.name),o=encodeURIComponent(e.value);r||(t+="&"),t+=n+"="+o,r=!1}),t.replace(/%20/g,"+")}function r(e,t){var r=e.split("&");t&&-1===r[0].indexOf("=")&&(r[0]="="+r[0]);var n=[];r.forEach(function(e){if(0!==e.length){var t=e.indexOf("=");if(-1!==t)var r=e.substring(0,t),o=e.substring(t+1);else r=e,o="";r=r.replace(/\+/g," "),o=o.replace(/\+/g," "),n.push({name:r,value:o})}});var o=[];return n.forEach(function(e){o.push({name:decodeURIComponent(e.name),value:decodeURIComponent(e.value)})}),o}function n(e){if(a)return new u(e);var t=document.createElement("a");return t.href=e,t}function o(e){var n=this;this._list=[],void 0!==e&&null!==e||(e=""),Object(e)===e&&e instanceof o||(e=String(e)),"string"==typeof e&&"?"===e.substring(0,1)&&(e=e.substring(1)),"string"==typeof e?this._list=r(e):this._list=e._list.slice(),this._url_object=null,this._setList=function(e){i||(n._list=e)};var i=!1;this._update_steps=function(){i||(i=!0,n._url_object&&("about:"===n._url_object.protocol&&-1!==n._url_object.pathname.indexOf("?")&&(n._url_object.pathname=n._url_object.pathname.split("?")[0]),n._url_object.search=t(n._list),i=!1))}}function i(t,i){function s(){var e=l.href.replace(/#$|\?$|\?(?=#)/g,"");l.href!==e&&(l.href=e)}function c(){p._setList(l.search?r(l.search.substring(1)):[]),p._update_steps()}if(!(this instanceof e.URL))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator.");i&&(t=function(){if(a)return new u(t,i).href;var e;if(document.implementation&&document.implementation.createHTMLDocument?e=document.implementation.createHTMLDocument(""):document.implementation&&document.implementation.createDocument?(e=document.implementation.createElement("http://www.w3.org/1999/xhtml","html",null),e.documentElement.appendChild(e.createElement("head")),e.documentElement.appendChild(e.createElement("body"))):window.ActiveXObject&&(e=new window.ActiveXObject("htmlfile"),e.write(""),e.close()),!e)throw Error("base not supported");var r=e.createElement("base");r.href=i,e.getElementsByTagName("head")[0].appendChild(r);var n=e.createElement("a");return n.href=t,n.href}());var l=n(t||""),f=function(){if(!("defineProperties"in Object))return!1;try{var e={};return Object.defineProperties(e,{prop:{get:function(){return!0}}}),e.prop}catch(t){return!1}}(),h=f?this:document.createElement("a"),p=new o(l.search?l.search.substring(1):null);return p._url_object=h,Object.defineProperties(h,{href:{get:function(){return l.href},set:function(e){l.href=e,s(),c()},enumerable:!0,configurable:!0},origin:{get:function(){return"origin"in l?l.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return l.protocol},set:function(e){l.protocol=e},enumerable:!0,configurable:!0},username:{get:function(){return l.username},set:function(e){l.username=e},enumerable:!0,configurable:!0},password:{get:function(){return l.password},set:function(e){l.password=e},enumerable:!0,configurable:!0},host:{get:function(){var e={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[l.protocol];return e?l.host.replace(e,""):l.host},set:function(e){l.host=e},enumerable:!0,configurable:!0},hostname:{get:function(){return l.hostname},set:function(e){l.hostname=e},enumerable:!0,configurable:!0},port:{get:function(){return l.port},set:function(e){l.port=e},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==l.pathname.charAt(0)?"/"+l.pathname:l.pathname},set:function(e){l.pathname=e},enumerable:!0,configurable:!0},search:{get:function(){return l.search},set:function(e){l.search!==e&&(l.search=e,s(),c())},enumerable:!0,configurable:!0},searchParams:{get:function(){return p},enumerable:!0,configurable:!0},hash:{get:function(){return l.hash},set:function(e){l.hash=e,s()},enumerable:!0,configurable:!0},toString:{value:function(){return l.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return l.valueOf()},enumerable:!1,configurable:!0}}),h}var a,u=e.URL;try{if(u){if(a=new e.URL("http://example.com"),"searchParams"in a)return;"href"in a||(a=void 0)}}catch(s){}if(Object.defineProperties(o.prototype,{append:{value:function(e,t){this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},"delete":{value:function(e){for(var t=0;t=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:[r.name,r.value]}}}},writable:!0,enumerable:!0,configurable:!0},keys:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.name}}}},writable:!0,enumerable:!0,configurable:!0},values:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.value}}}},writable:!0,enumerable:!0,configurable:!0},forEach:{value:function(e){var t=arguments.length>1?arguments[1]:void 0;this._list.forEach(function(r,n){e.call(t,r.name,r.value)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return t(this._list)},writable:!0,enumerable:!1,configurable:!0}}),"Symbol"in e&&"iterator"in e.Symbol&&Object.defineProperty(o.prototype,e.Symbol.iterator,{value:o.prototype.entries,writable:!0,enumerable:!0,configurable:!0}),u)for(var c in u)u.hasOwnProperty(c)&&"function"==typeof u[c]&&(e.URL[c]=u[c]);e.URL=i,e.URLSearchParams=o}(self),function(e){function t(e){if(e=String(e),e.match(/[^\x00-\xFF]/))throw TypeError("Not a valid ByteString");return e}function r(e){return e=String(e),e.replace(/([\u0000-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF])/g,function(e){return/^[\uD800-\uDFFF]$/.test(e)?"�":e})}function n(e){return 65535&e}function o(e){return String(e).replace(/[a-z]/g,function(e){return e.toUpperCase()})}function i(e){return e=o(e),"CONNECT"===e||"TRACE"===e||"TRACK"===e}function a(e){var t=o(e);return"DELETE"===t||"GET"===t||"HEAD"===t||"OPTIONS"===t||"POST"===t||"PUT"===t?t:e}function u(e){return/^[!#$%&'*+\-.09A-Z^_`a-z|~]+$/.test(e)}function s(e){return!0}function c(e){e=String(e).toLowerCase();var t={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0};return t[e]||"proxy-"===e.substring(0,6)||"sec-"===e.substring(0,4)}function l(e){e=String(e).toLowerCase();var t={"set-cookie":!0,"set-cookie2":!0};return t[e]}function f(e,t){return e=String(e).toLowerCase(),"accept"===e||"accept-language"===e||"content-language"===e||"content-type"===e&&-1!==["application/x-www-form-encoded","multipart/form-data","text/plain"].indexOf(t)}function h(e){this._guard="none",this._headerList=[],e&&p(this,e)}function p(e,t){t instanceof h?t._headerList.forEach(function(t){e.append(t[0],t[1])}):Array.isArray(t)?t.forEach(function(t){if(!Array.isArray(t)||2!==t.length)throw TypeError();e.append(t[0],t[1])}):(t=Object(t),Object.keys(t).forEach(function(r){e.append(r,t[r])}))}function y(e){this._headers=e,this._index=0}function d(e){this._stream=e,this.bodyUsed=!1}function v(e,n){if(arguments.length<1)throw TypeError("Not enough arguments");if(d.call(this,null),this.method="GET",this.url="",this.headers=new h,this.headers._guard="request",this.referrer=null,this.mode=null,this.credentials="omit",e instanceof v){if(e.bodyUsed)throw TypeError();e.bodyUsed=!0,this.method=e.method,this.url=e.url,this.headers=new h(e.headers),this.headers._guard=e.headers._guard,this.credentials=e.credentials,this._stream=e._stream}else e=r(e),this.url=String(new URL(e,self.location));if(n=Object(n),"method"in n){var o=t(n.method);if(i(o))throw TypeError();this.method=a(o)}"headers"in n&&(this.headers=new h,p(this.headers,n.headers)),"body"in n&&(this._stream=n.body),"credentials"in n&&-1!==["omit","same-origin","include"].indexOf(n.credentials)&&(this.credentials=n.credentials)}function m(e,t){if(arguments.length<1&&(e=""),this.headers=new h,this.headers._guard="response",e instanceof XMLHttpRequest&&"_url"in e){var o=e;return this.type="basic",this.url=r(o._url),this.status=o.status,this.ok=200<=this.status&&this.status<=299,this.statusText=o.statusText,o.getAllResponseHeaders().split(/\r?\n/).filter(function(e){return e.length}).forEach(function(e){var t=e.indexOf(":");this.headers.append(e.substring(0,t),e.substring(t+2))},this),void d.call(this,o.responseText)}d.call(this,e),t=Object(t)||{},this.url="";var i="status"in t?n(t.status):200;if(200>i||i>599)throw RangeError();this.status=i,this.ok=200<=this.status&&this.status<=299;var a="statusText"in t?String(t.statusText):"OK";if(/[^\x00-\xFF]/.test(a))throw TypeError();this.statusText=a,"headers"in t&&p(this.headers,t),this.type="basic"}function b(e,t){return new Promise(function(r,n){var o=new v(e,t),i=new XMLHttpRequest,a=!0;i._url=o.url;try{i.open(o.method,o.url,a)}catch(u){throw TypeError(u.message)}for(var s=o.headers[Symbol.iterator](),c=s.next();!c.done;c=s.next())i.setRequestHeader(c.value[0],c.value[1]);"include"===o.credentials&&(i.withCredentials=!0),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&(0===i.status?n(new TypeError("Network error")):r(new m(i)))},i.send(o._stream)})}h.prototype={append:function(e,r){if(e=t(e),!u(e)||!s(r))throw TypeError();if("immutable"===this._guard)throw TypeError();"request"===this._guard&&c(e)||("request-no-CORS"!==this._guard||f(e,r))&&("response"===this._guard&&l(e)||(e=e.toLowerCase(),this._headerList.push([e,r])))},"delete":function(e){if(e=t(e),!u(e))throw TypeError();if("immutable"===this._guard)throw TypeError();if(("request"!==this._guard||!c(e))&&("request-no-CORS"!==this._guard||f(e,"invalid"))&&("response"!==this._guard||!l(e))){e=e.toLowerCase();for(var r=0;r=this._headers._headerList.length?{value:void 0,done:!0}:{value:this._headers._headerList[this._index++],done:!1}},y.prototype[Symbol.iterator]=function(){return this},d.prototype={arrayBuffer:function(){if(this.bodyUsed)return Promise.reject(TypeError());if(this.bodyUsed=!0,this._stream instanceof ArrayBuffer)return Promise.resolve(this._stream);var e=this._stream;return new Promise(function(t,r){var n=unescape(encodeURIComponent(e)).split("").map(function(e){return e.charCodeAt(0)});t(new Uint8Array(n).buffer)})},blob:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof Blob?Promise.resolve(this._stream):Promise.resolve(new Blob([this._stream])))},formData:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof FormData?Promise.resolve(this._stream):Promise.reject(Error("Not yet implemented")))},json:function(){if(this.bodyUsed)return Promise.reject(TypeError());this.bodyUsed=!0;var e=this;return new Promise(function(t,r){t(JSON.parse(e._stream))})},text:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,Promise.resolve(String(this._stream)))}},v.prototype=d.prototype,m.prototype=d.prototype,m.redirect=function(){throw Error("Not supported")},"fetch"in e||(e.Headers=h,e.Request=v,e.Response=m,e.fetch=b)}(self); +if(!h(n))throw TypeError();var o=E(l(r))}if(i(e,"[[WeakSetData]]",new a),o===I)return e;for(;;){var s=T(o);if(s===!1)return e;var c=_(s);n.call(e,c)}return e}"WeakSet"in e&&!C||(e.WeakSet=r);var n={};r.prototype=n,o(r.prototype,"add",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(r["[[WeakSetData]]"]===I)throw TypeError();if("object"!==u(e))throw TypeError("Expected object");return r["[[WeakSetData]]"].set(e,!0),r}),o(r.prototype,"delete",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(r["[[WeakSetData]]"]===I)throw TypeError();if("object"!==u(e))throw TypeError("Expected object");return r["[[WeakSetData]]"].remove(e)}),o(r.prototype,"has",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(r["[[WeakSetData]]"]===I)throw TypeError();if("object"!==u(e))throw TypeError("Expected object");return r["[[WeakSetData]]"].has(e)}),o(e.WeakSet.prototype,fe,"WeakSet"),function(){var t=new e.WeakSet,r=e.WeakSet.prototype.add;o(e.WeakSet.prototype,"add",function(){return r.apply(this,arguments),this},t.add({})!==t)}()}(),function(){"ArrayBuffer"in e&&(o(ArrayBuffer,"isView",function(e){return"object"!==u(e)?!1:"buffer"in e&&e.buffer instanceof ArrayBuffer}),o(ArrayBuffer.prototype,fe,"ArrayBuffer"))}(),function(){"DataView"in e&&o(DataView.prototype,fe,"DataView")}(),o(JSON,fe,"JSON"),o(ie,ae,function(){return this}),function(){function r(e){var t={"[[value]]":!1},r=a();i(r,"[[Promise]]",e),i(r,"[[AlreadyResolved]]",t);var o=n();return i(o,"[[Promise]]",e),i(o,"[[AlreadyResolved]]",t),{"[[Resolve]]":r,"[[Reject]]":o}}function n(){var e=function(t){var r=e["[[Promise]]"],n=e["[[AlreadyResolved]]"];return n["[[value]]"]?I:(i(n,"[[value]]",!0),d(r,t))};return e}function a(){var e=function(t){var r=e["[[Promise]]"],n=e["[[AlreadyResolved]]"];if(n["[[value]]"])return I;if(i(n,"[[value]]",!0),y(t,r)){var o=TypeError();return d(r,o)}if("object"!==u(t))return s(r,t);try{var a=t.then}catch(a){return d(r,a)}return h(a)?(S("PromiseJobs",b,[r,t,a]),I):s(r,t)};return e}function s(e,t){var r=e["[[PromiseFulfillReactions]]"];return i(e,"[[PromiseResult]]",t),i(e,"[[PromiseFulfillReactions]]",I),i(e,"[[PromiseRejectReactions]]",I),i(e,"[[PromiseState]]","fulfilled"),v(r,t)}function c(e){return l(I,e)}function l(e,t){var r={};i(r,"[[Promise]]",e),i(r,"[[Resolve]]",I),i(r,"[[Reject]]",I);var n=f();i(n,"[[Capability]]",r);var o=e=new t(n);if(i(r,"[[Promise]]",e),!h(r["[[Resolve]]"]))throw TypeError();if(!h(r["[[Reject]]"]))throw TypeError();if("object"===u(o)&&!y(e,o))throw TypeError();return r}function f(){var e=function(t,r){var n=e["[[Capability]]"];if(n["[[Resolve]]"]!==I)throw TypeError();if(n["[[Reject]]"]!==I)throw TypeError();return i(n,"[[Resolve]]",t),i(n,"[[Reject]]",r),I};return e}function p(e){return"object"!==u(e)?!1:"[[PromiseState]]"in e?e["[[PromiseState]]"]!==I:!1}function d(e,t){var r=e["[[PromiseRejectReactions]]"];return i(e,"[[PromiseResult]]",t),i(e,"[[PromiseFulfillReactions]]",I),i(e,"[[PromiseRejectReactions]]",I),i(e,"[[PromiseState]]","rejected"),v(r,t)}function v(e,t){for(var r=0,n=e.length;n>r;++r)S("PromiseJobs",m,[e[r],t]);return I}function m(e,t){var r,n,o=e["[[Capabilities]]"],i=e["[[Handler]]"];try{if("Identity"===i)r=t;else{if("Thrower"===i)throw t;r=i.call(I,t)}}catch(r){return n=o["[[Reject]]"].call(I,r),void j(n)}n=o["[[Resolve]]"].call(I,r),j(n)}function b(e,t,n){var o=r(e);try{var i=n.call(t,o["[[Resolve]]"],o["[[Reject]]"])}catch(i){var a=o["[[Reject]]"].call(I,i);return void j(a)}j(i)}function g(e){var t={configurable:!1,enumerable:!1,writable:!0,value:I};Object.defineProperty(this,"[[PromiseState]]",t),Object.defineProperty(this,"[[PromiseConstructor]]",t),Object.defineProperty(this,"[[PromiseResult]]",t),Object.defineProperty(this,"[[PromiseFulfillReactions]]",t),Object.defineProperty(this,"[[PromiseRejectReactions]]",t);var r=this;if("object"!==u(r))throw new TypeError;if(!("[[PromiseState]]"in r))throw TypeError();if(r["[[PromiseState]]"]!==I)throw TypeError();if(!h(e))throw TypeError();return i(r,"[[PromiseConstructor]]",g),w(r,e)}function w(e,t){i(e,"[[PromiseState]]","pending"),i(e,"[[PromiseFulfillReactions]]",[]),i(e,"[[PromiseRejectReactions]]",[]);var n=r(e);try{var o=t.call(I,n["[[Resolve]]"],n["[[Reject]]"])}catch(o){n["[[Reject]]"].call(I,o)}return e}function O(){var e=function(t){var r=e["[[AlreadyCalled]]"];if(r.value)return I;r.value=!0;var n=e["[[Index]]"],o=e["[[Values]]"],i=e["[[Capabilities]]"],a=e["[[RemainingElements]]"];try{o[n]=t}catch(u){return i["[[Reject]]"].call(I,u),i["[[Promise]]"]}return a.value-=1,0===a.value?i["[[Resolve]]"].call(I,o):I};return e}o(g,"all",function(e){var r=t(this),n=c(r);try{var o=E(e)}catch(a){return n["[[Reject]]"].call(I,a),n["[[Promise]]"]}for(var u=[],s={value:1},l=0;;){try{var f=T(o)}catch(a){return n["[[Reject]]"].call(I,a),n["[[Promise]]"]}if(!f){if(s.value-=1,0===s.value){n["[[Resolve]]"].apply(I,u)}return n["[[Promise]]"]}try{var h=_(f)}catch(a){return n["[[Reject]]"].call(I,a),n["[[Promise]]"]}try{var p=r.resolve(h)}catch(a){return n["[[Reject]]"].call(I,a),n["[[Promise]]"]}var y=O();i(y,"[[AlreadyCalled]]",{value:!1}),i(y,"[[Index]]",l),i(y,"[[Values]]",u),i(y,"[[Capabilities]]",n),i(y,"[[RemainingElements]]",s),s.value+=1;try{p.then(y,n["[[Reject]]"])}catch(a){return n["[[Reject]]"].call(I,a),n["[[Promise]]"]}l+=1}}),g.prototype={},o(g,"race",function(e){var r=t(this),n=c(r);try{var o=E(e)}catch(i){return n["[[Reject]]"].call(I,i),n["[[Promise]]"]}for(;;){try{var a=T(o)}catch(i){return n["[[Reject]]"].call(I,i),n["[[Promise]]"]}if(!a)return n["[[Promise]]"];try{var u=_(a)}catch(i){return n["[[Reject]]"].call(I,i),n["[[Promise]]"]}try{var s=r.resolve(u)}catch(i){return n["[[Reject]]"].call(I,i),n["[[Promise]]"]}try{s.then(n["[[Resolve]]"],n["[[Reject]]"])}catch(i){return n["[[Reject]]"].call(I,i),n["[[Promise]]"]}}}),o(g,"reject",function(e){var r=t(this),n=c(r);n["[[Reject]]"].call(I,e);return n["[[Promise]]"]}),o(g,"resolve",function(e){var r=t(this);if(p(e)){var n=e["[[PromiseConstructor]]"];if(y(n,r))return e}var o=c(r);o["[[Resolve]]"].call(I,e);return o["[[Promise]]"]}),o(g.prototype,"catch",function(e){var t=this;return t.then(I,e)}),g.prototype.constructor=g,o(g.prototype,"then",function(e,t){var r=this;if(!p(r))throw TypeError();h(e)||(e="Identity"),h(t)||(t="Thrower");var n=r.constructor,o=c(n),i={"[[Capabilities]]":o,"[[Handler]]":e},a={"[[Capabilities]]":o,"[[Handler]]":t};if("pending"===r["[[PromiseState]]"])r["[[PromiseFulfillReactions]]"].push(i),r["[[PromiseRejectReactions]]"].push(a);else if("fulfilled"===r["[[PromiseState]]"]){var u=r["[[PromiseResult]]"];S("PromiseJobs",m,[i,u])}else if("rejected"===r["[[PromiseState]]"]){var s=r["[[PromiseResult]]"];S("PromiseJobs",m,[a,s])}return o["[[Promise]]"]}),"Promise"in e&&!C||(e.Promise=g),"cast"in e.Promise&&(e.Promise.resolve=e.Promise.cast)}(),o(Promise.prototype,fe,"Promise"),function(){var t={};o(t,"apply",function(e,t,r){if(!h(e))throw TypeError();return Function.prototype.apply.call(e,t,r)}),o(t,"construct",function(e,t){return __cons(e,t)}),o(t,"defineProperty",function(e,t,r){try{return Object.defineProperty(e,t,r),!0}catch(n){return!1}}),o(t,"deleteProperty",function(e,t){try{return delete e[t],!g(e,t)}catch(r){return!1}}),o(t,"enumerate",function(e){e=l(e);var t=P(e);return t}),o(t,"get",function(e,t,r){e=l(e),t=String(t),r=r===I?e:l(r);var o=n(e,t);return o&&"get"in o?Function.prototype.call.call(o.get,r):e[t]}),o(t,"getOwnPropertyDescriptor",Object.getOwnPropertyDescriptor),o(t,"getPrototypeOf",Object.getPrototypeOf),o(t,"has",function(e,t){return String(t)in l(e)}),o(t,"isExtensible",Object.isExtensible),o(t,"ownKeys",function(e){var t=l(e);return Object.getOwnPropertyNames(t)}),o(t,"preventExtensions",function(e){try{return Object.preventExtensions(e),!0}catch(t){return!1}}),o(t,"set",function(e,t,r,o){e=l(e),t=String(t),o=o===I?e:l(o);var i=n(e,t);try{return i&&"set"in i?Function.prototype.call.call(i.set,o,r):e[t]=r,!0}catch(a){return!1}}),o(t,"setPrototypeOf",function(e,r){try{return e.__proto__=r,t.getPrototypeOf(e)===r}catch(n){return!1}}),"Reflect"in e&&!C||(e.Reflect=t)}()}(self),function(e){"window"in e&&"document"in e&&(document.head=document.head||document.getElementsByTagName("head")[0],["abbr","article","aside","audio","bdi","canvas","data","datalist","details","dialog","figcaption","figure","footer","header","hgroup","main","mark","meter","nav","output","picture","progress","section","summary","template","time","video"].forEach(function(e){document.createElement(e)}),!("dataset"in document.createElement("span"))&&"Element"in e&&Element.prototype&&Object.defineProperty&&Object.defineProperty(Element.prototype,"dataset",{get:function(){for(var e=Object.create(null),t=0;t>16&255)),o.push(String.fromCharCode(i>>8&255)),o.push(String.fromCharCode(255&i)),a=0,i=0),r+=1;return 12===a?(i>>=4,o.push(String.fromCharCode(255&i))):18===a&&(i>>=2,o.push(String.fromCharCode(i>>8&255)),o.push(String.fromCharCode(255&i))),o.join("")}function r(e){e=String(e);var t,r,o,i,a,u,s,c=0,l=[];if(/[^\x00-\xFF]/.test(e))throw Error("InvalidCharacterError");for(;c>2,a=(3&t)<<4|r>>4,u=(15&r)<<2|o>>6,s=63&o,c===e.length+2?(u=64,s=64):c===e.length+1&&(s=64),l.push(n.charAt(i),n.charAt(a),n.charAt(u),n.charAt(s));return l.join("")}if(!("atob"in e&&"btoa"in e)){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.atob=t,e.btoa=r}}())}(self),function(e){"window"in e&&"document"in e&&(document.querySelectorAll||(document.querySelectorAll=function(e){var t,r=document.createElement("style"),n=[];for(document.documentElement.firstChild.appendChild(r),document._qsa=[],r.styleSheet.cssText=e+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",window.scrollBy(0,0),r.parentNode.removeChild(r);document._qsa.length;)t=document._qsa.shift(),t.style.removeAttribute("x-qsa"),n.push(t);return document._qsa=null,n}),document.querySelector||(document.querySelector=function(e){var t=document.querySelectorAll(e);return t.length?t[0]:null}),document.getElementsByClassName||(document.getElementsByClassName=function(e){return e=String(e).replace(/^|\s+/g,"."),document.querySelectorAll(e)}),e.Node=e.Node||function(){throw TypeError("Illegal constructor")},Node.ELEMENT_NODE=1,Node.ATTRIBUTE_NODE=2,Node.TEXT_NODE=3,Node.CDATA_SECTION_NODE=4,Node.ENTITY_REFERENCE_NODE=5,Node.ENTITY_NODE=6,Node.PROCESSING_INSTRUCTION_NODE=7,Node.COMMENT_NODE=8,Node.DOCUMENT_NODE=9,Node.DOCUMENT_TYPE_NODE=10,Node.DOCUMENT_FRAGMENT_NODE=11,Node.NOTATION_NODE=12,e.DOMException=e.DOMException||function(){throw TypeError("Illegal constructor")},DOMException.INDEX_SIZE_ERR=1,DOMException.DOMSTRING_SIZE_ERR=2,DOMException.HIERARCHY_REQUEST_ERR=3,DOMException.WRONG_DOCUMENT_ERR=4,DOMException.INVALID_CHARACTER_ERR=5,DOMException.NO_DATA_ALLOWED_ERR=6,DOMException.NO_MODIFICATION_ALLOWED_ERR=7,DOMException.NOT_FOUND_ERR=8,DOMException.NOT_SUPPORTED_ERR=9,DOMException.INUSE_ATTRIBUTE_ERR=10,DOMException.INVALID_STATE_ERR=11,DOMException.SYNTAX_ERR=12,DOMException.INVALID_MODIFICATION_ERR=13,DOMException.NAMESPACE_ERR=14,DOMException.INVALID_ACCESS_ERR=15,function(){function t(e,t,r){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var n=this,o=function(e){e._timeStamp=Date.now(),e._currentTarget=n,t.call(this,e),e._currentTarget=null};this["_"+e+t]=o,this.attachEvent("on"+e,o)}}function r(e,t,r){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var n=this["_"+e+t];n&&(this.detachEvent("on"+e,n),this["_"+e+t]=null)}}"Element"in e&&!Element.prototype.addEventListener&&Object.defineProperty&&(Event.CAPTURING_PHASE=1,Event.AT_TARGET=2,Event.BUBBLING_PHASE=3,Object.defineProperties(Event.prototype,{CAPTURING_PHASE:{get:function(){return 1}},AT_TARGET:{get:function(){return 2}},BUBBLING_PHASE:{get:function(){return 3}},target:{get:function(){return this.srcElement}},currentTarget:{get:function(){return this._currentTarget}},eventPhase:{get:function(){return this.srcElement===this.currentTarget?Event.AT_TARGET:Event.BUBBLING_PHASE}},bubbles:{get:function(){switch(this.type){case"click":case"dblclick":case"mousedown":case"mouseup":case"mouseover":case"mousemove":case"mouseout":case"mousewheel":case"keydown":case"keypress":case"keyup":case"resize":case"scroll":case"select":case"change":case"submit":case"reset":return!0}return!1}},cancelable:{get:function(){switch(this.type){case"click":case"dblclick":case"mousedown":case"mouseup":case"mouseover":case"mouseout":case"mousewheel":case"keydown":case"keypress":case"keyup":case"submit":return!0}return!1}},timeStamp:{get:function(){return this._timeStamp}},stopPropagation:{value:function(){this.cancelBubble=!0}},preventDefault:{value:function(){this.returnValue=!1}},defaultPrevented:{get:function(){return this.returnValue===!1}}}),[Window,HTMLDocument,Element].forEach(function(e){e.prototype.addEventListener=t,e.prototype.removeEventListener=r}))}(),window.addEvent=function(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent&&(e["e"+t+r]=r,e[t+r]=function(){var n=window.event;n.currentTarget=e,n.preventDefault=function(){n.returnValue=!1},n.stopPropagation=function(){n.cancelBubble=!0},n.target=n.srcElement,n.timeStamp=Date.now(),e["e"+t+r].call(this,n)},e.attachEvent("on"+t,e[t+r]))},window.removeEvent=function(e,t,r){e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent&&(e.detachEvent("on"+t,e[t+r]),e[t+r]=null,e["e"+t+r]=null)},function(){function t(e,t){function r(e){return e.length?e.split(/\s+/g):[]}function n(e,t){var n=r(t),o=n.indexOf(e);return-1!==o&&n.splice(o,1),n.join(" ")}if(Object.defineProperties(this,{length:{get:function(){return r(e[t]).length}},item:{value:function(n){var o=r(e[t]);return n>=0&&no;++o)Object.defineProperty(this,String(o),{get:function(e){return function(){return this.item(e)}}(o)});else this.length=r(e[t]).length}function r(t,r){"Element"in e&&Element.prototype&&Object.defineProperty&&Object.defineProperty(Element.prototype,t,{get:r})}"classList"in document.createElement("span")?window.getClassList=function(e){return e.classList}:(window.getClassList=function(e){return new t(e,"className")},r("classList",function(){return new t(this,"className")})),"relList"in document.createElement("link")?window.getRelList=function(e){return e.relList}:(window.getRelList=function(e){return new t(e,"rel")},r("relList",function(){return new t(this,"rel")})),"previousElementSibling"in document.documentElement||r("previousElementSibling",function(){for(var e=this.previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}),"nextElementSibling"in document.documentElement||r("nextElementSibling",function(){for(var e=this.nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e})}())}(self),function(e){"window"in e&&"document"in e&&(e.XMLHttpRequest=e.XMLHttpRequest||function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("This browser does not support XMLHttpRequest.")},XMLHttpRequest.UNSENT=0,XMLHttpRequest.OPENED=1,XMLHttpRequest.HEADERS_RECEIVED=2,XMLHttpRequest.LOADING=3,XMLHttpRequest.DONE=4,function(){function t(e){if(this._data=[],e)for(var t=0;t"),e.close()),!e)throw Error("base not supported");var r=e.createElement("base");r.href=i,e.getElementsByTagName("head")[0].appendChild(r);var n=e.createElement("a");return n.href=t,n.href}());var l=n(t||""),f=function(){if(!("defineProperties"in Object))return!1;try{var e={};return Object.defineProperties(e,{prop:{get:function(){return!0}}}),e.prop}catch(t){return!1}}(),h=f?this:document.createElement("a"),p=new o(l.search?l.search.substring(1):null);return p._url_object=h,Object.defineProperties(h,{href:{get:function(){return l.href},set:function(e){l.href=e,s(),c()},enumerable:!0,configurable:!0},origin:{get:function(){return"origin"in l?l.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return l.protocol},set:function(e){l.protocol=e},enumerable:!0,configurable:!0},username:{get:function(){return l.username},set:function(e){l.username=e},enumerable:!0,configurable:!0},password:{get:function(){return l.password},set:function(e){l.password=e},enumerable:!0,configurable:!0},host:{get:function(){var e={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[l.protocol];return e?l.host.replace(e,""):l.host},set:function(e){l.host=e},enumerable:!0,configurable:!0},hostname:{get:function(){return l.hostname},set:function(e){l.hostname=e},enumerable:!0,configurable:!0},port:{get:function(){return l.port},set:function(e){l.port=e},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==l.pathname.charAt(0)?"/"+l.pathname:l.pathname},set:function(e){l.pathname=e},enumerable:!0,configurable:!0},search:{get:function(){return l.search},set:function(e){l.search!==e&&(l.search=e,s(),c())},enumerable:!0,configurable:!0},searchParams:{get:function(){return p},enumerable:!0,configurable:!0},hash:{get:function(){return l.hash},set:function(e){l.hash=e,s()},enumerable:!0,configurable:!0},toString:{value:function(){return l.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return l.valueOf()},enumerable:!1,configurable:!0}}),h}var a,u=e.URL;try{if(u){if(a=new e.URL("http://example.com"),"searchParams"in a)return;"href"in a||(a=void 0)}}catch(s){}if(Object.defineProperties(o.prototype,{append:{value:function(e,t){this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},"delete":{value:function(e){for(var t=0;t=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:[r.name,r.value]}}}},writable:!0,enumerable:!0,configurable:!0},keys:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.name}}}},writable:!0,enumerable:!0,configurable:!0},values:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.value}}}},writable:!0,enumerable:!0,configurable:!0},forEach:{value:function(e){var t=arguments.length>1?arguments[1]:void 0;this._list.forEach(function(r,n){e.call(t,r.name,r.value)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return t(this._list)},writable:!0,enumerable:!1,configurable:!0}}),"Symbol"in e&&"iterator"in e.Symbol&&Object.defineProperty(o.prototype,e.Symbol.iterator,{value:o.prototype.entries,writable:!0,enumerable:!0,configurable:!0}),u)for(var c in u)u.hasOwnProperty(c)&&"function"==typeof u[c]&&(i[c]=u[c]);e.URL=i,e.URLSearchParams=o}(self),function(e){function t(e){if(e=String(e),e.match(/[^\x00-\xFF]/))throw TypeError("Not a valid ByteString");return e}function r(e){return e=String(e),e.replace(/([\u0000-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF])/g,function(e){return/^[\uD800-\uDFFF]$/.test(e)?"�":e})}function n(e){return 65535&e}function o(e){return String(e).replace(/[a-z]/g,function(e){return e.toUpperCase()})}function i(e){return e=o(e),"CONNECT"===e||"TRACE"===e||"TRACK"===e}function a(e){var t=o(e);return"DELETE"===t||"GET"===t||"HEAD"===t||"OPTIONS"===t||"POST"===t||"PUT"===t?t:e}function u(e){return/^[!#$%&'*+\-.09A-Z^_`a-z|~]+$/.test(e)}function s(e){return!0}function c(e){e=String(e).toLowerCase();var t={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0};return t[e]||"proxy-"===e.substring(0,6)||"sec-"===e.substring(0,4)}function l(e){e=String(e).toLowerCase();var t={"set-cookie":!0,"set-cookie2":!0};return t[e]}function f(e,t){return e=String(e).toLowerCase(),"accept"===e||"accept-language"===e||"content-language"===e||"content-type"===e&&-1!==["application/x-www-form-encoded","multipart/form-data","text/plain"].indexOf(t)}function h(e){this._guard="none",this._headerList=[],e&&p(this,e)}function p(e,t){t instanceof h?t._headerList.forEach(function(t){e.append(t[0],t[1])}):Array.isArray(t)?t.forEach(function(t){if(!Array.isArray(t)||2!==t.length)throw TypeError();e.append(t[0],t[1])}):(t=Object(t),Object.keys(t).forEach(function(r){e.append(r,t[r])}))}function y(e){this._headers=e,this._index=0}function d(e){this._stream=e,this.bodyUsed=!1}function v(e,n){if(arguments.length<1)throw TypeError("Not enough arguments");if(d.call(this,null),this.method="GET",this.url="",this.headers=new h,this.headers._guard="request",this.referrer=null,this.mode=null,this.credentials="omit",e instanceof v){if(e.bodyUsed)throw TypeError();e.bodyUsed=!0,this.method=e.method,this.url=e.url,this.headers=new h(e.headers),this.headers._guard=e.headers._guard,this.credentials=e.credentials,this._stream=e._stream}else e=r(e),this.url=String(new URL(e,self.location));if(n=Object(n),"method"in n){var o=t(n.method);if(i(o))throw TypeError();this.method=a(o)}"headers"in n&&(this.headers=new h,p(this.headers,n.headers)),"body"in n&&(this._stream=n.body),"credentials"in n&&-1!==["omit","same-origin","include"].indexOf(n.credentials)&&(this.credentials=n.credentials)}function m(e,t){if(arguments.length<1&&(e=""),this.headers=new h,this.headers._guard="response",e instanceof XMLHttpRequest&&"_url"in e){var o=e;return this.type="basic",this.url=r(o._url),this.status=o.status,this.ok=200<=this.status&&this.status<=299,this.statusText=o.statusText,o.getAllResponseHeaders().split(/\r?\n/).filter(function(e){return e.length}).forEach(function(e){var t=e.indexOf(":");this.headers.append(e.substring(0,t),e.substring(t+2))},this),void d.call(this,o.responseText)}d.call(this,e),t=Object(t)||{},this.url="";var i="status"in t?n(t.status):200;if(200>i||i>599)throw RangeError();this.status=i,this.ok=200<=this.status&&this.status<=299;var a="statusText"in t?String(t.statusText):"OK";if(/[^\x00-\xFF]/.test(a))throw TypeError();this.statusText=a,"headers"in t&&p(this.headers,t),this.type="basic"}function b(e,t){return new Promise(function(r,n){var o=new v(e,t),i=new XMLHttpRequest,a=!0;i._url=o.url;try{i.open(o.method,o.url,a)}catch(u){throw TypeError(u.message)}for(var s=o.headers[Symbol.iterator](),c=s.next();!c.done;c=s.next())i.setRequestHeader(c.value[0],c.value[1]);"include"===o.credentials&&(i.withCredentials=!0),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&(0===i.status?n(new TypeError("Network error")):r(new m(i)))},i.send(o._stream)})}h.prototype={append:function(e,r){if(e=t(e),!u(e)||!s(r))throw TypeError();if("immutable"===this._guard)throw TypeError();"request"===this._guard&&c(e)||("request-no-CORS"!==this._guard||f(e,r))&&("response"===this._guard&&l(e)||(e=e.toLowerCase(),this._headerList.push([e,r])))},"delete":function(e){if(e=t(e),!u(e))throw TypeError();if("immutable"===this._guard)throw TypeError();if(("request"!==this._guard||!c(e))&&("request-no-CORS"!==this._guard||f(e,"invalid"))&&("response"!==this._guard||!l(e))){e=e.toLowerCase();for(var r=0;r=this._headers._headerList.length?{value:void 0,done:!0}:{value:this._headers._headerList[this._index++],done:!1}},y.prototype[Symbol.iterator]=function(){return this},d.prototype={arrayBuffer:function(){if(this.bodyUsed)return Promise.reject(TypeError());if(this.bodyUsed=!0,this._stream instanceof ArrayBuffer)return Promise.resolve(this._stream);var e=this._stream;return new Promise(function(t,r){var n=unescape(encodeURIComponent(e)).split("").map(function(e){return e.charCodeAt(0)});t(new Uint8Array(n).buffer)})},blob:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof Blob?Promise.resolve(this._stream):Promise.resolve(new Blob([this._stream])))},formData:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof FormData?Promise.resolve(this._stream):Promise.reject(Error("Not yet implemented")))},json:function(){if(this.bodyUsed)return Promise.reject(TypeError());this.bodyUsed=!0;var e=this;return new Promise(function(t,r){t(JSON.parse(e._stream))})},text:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,Promise.resolve(String(this._stream)))}},v.prototype=d.prototype,m.prototype=d.prototype,m.redirect=function(){throw Error("Not supported")},"fetch"in e||(e.Headers=h,e.Request=v,e.Response=m,e.fetch=b)}(self),function(e){"window"in e&&"document"in e&&"TextRectangle"in this&&!("width"in TextRectangle.prototype)&&Object.defineProperties(TextRectangle.prototype,{width:{get:function(){return this.right-this.left}},height:{get:function(){return this.bottom-this.top}}})}(this),function(e){"window"in e&&"document"in e&&(!function(){function t(e){return e.offsetWidth>0&&e.offsetHeight>0}function r(){var e=a; +a=Object.create(null),s=-1,Object.keys(e).forEach(function(r){var n=e[r];n.element&&!t(n.element)||n.callback(Date.now())})}function n(t,n){var o=++u;return a[o]={callback:t,element:n},-1===s&&(s=e.setTimeout(r,1e3/i)),o}function o(t){delete a[t],0===Object.keys(a).length&&(e.clearTimeout(s),s=-1)}if(!("requestAnimationFrame"in e)){var i=60,a=Object.create(null),u=0,s=-1;e.requestAnimationFrame=n,e.cancelAnimationFrame=o}}(),function(){function t(t){var r=[].slice.call(arguments,1);return e.setTimeout(function(){t.apply(null,r)},0)}function r(t){e.clearTimeout(t)}"setImmediate"in e||(e.setImmediate=t,e.clearImmediate=r)}())}(this),function(e){"use strict";function t(e){var t="",r=!0;return e.forEach(function(e){var n=encodeURIComponent(e.name),o=encodeURIComponent(e.value);r||(t+="&"),t+=n+"="+o,r=!1}),t.replace(/%20/g,"+")}function r(e,t){var r=e.split("&");t&&-1===r[0].indexOf("=")&&(r[0]="="+r[0]);var n=[];r.forEach(function(e){if(0!==e.length){var t=e.indexOf("=");if(-1!==t)var r=e.substring(0,t),o=e.substring(t+1);else r=e,o="";r=r.replace(/\+/g," "),o=o.replace(/\+/g," "),n.push({name:r,value:o})}});var o=[];return n.forEach(function(e){o.push({name:decodeURIComponent(e.name),value:decodeURIComponent(e.value)})}),o}function n(e){if(a)return new u(e);var t=document.createElement("a");return t.href=e,t}function o(e){var n=this;this._list=[],void 0!==e&&null!==e||(e=""),Object(e)===e&&e instanceof o||(e=String(e)),"string"==typeof e&&"?"===e.substring(0,1)&&(e=e.substring(1)),"string"==typeof e?this._list=r(e):this._list=e._list.slice(),this._url_object=null,this._setList=function(e){i||(n._list=e)};var i=!1;this._update_steps=function(){i||(i=!0,n._url_object&&("about:"===n._url_object.protocol&&-1!==n._url_object.pathname.indexOf("?")&&(n._url_object.pathname=n._url_object.pathname.split("?")[0]),n._url_object.search=t(n._list),i=!1))}}function i(t,i){function s(){var e=l.href.replace(/#$|\?$|\?(?=#)/g,"");l.href!==e&&(l.href=e)}function c(){p._setList(l.search?r(l.search.substring(1)):[]),p._update_steps()}if(!(this instanceof e.URL))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator.");i&&(t=function(){if(a)return new u(t,i).href;var e;if(document.implementation&&document.implementation.createHTMLDocument?e=document.implementation.createHTMLDocument(""):document.implementation&&document.implementation.createDocument?(e=document.implementation.createElement("http://www.w3.org/1999/xhtml","html",null),e.documentElement.appendChild(e.createElement("head")),e.documentElement.appendChild(e.createElement("body"))):window.ActiveXObject&&(e=new window.ActiveXObject("htmlfile"),e.write(""),e.close()),!e)throw Error("base not supported");var r=e.createElement("base");r.href=i,e.getElementsByTagName("head")[0].appendChild(r);var n=e.createElement("a");return n.href=t,n.href}());var l=n(t||""),f=function(){if(!("defineProperties"in Object))return!1;try{var e={};return Object.defineProperties(e,{prop:{get:function(){return!0}}}),e.prop}catch(t){return!1}}(),h=f?this:document.createElement("a"),p=new o(l.search?l.search.substring(1):null);return p._url_object=h,Object.defineProperties(h,{href:{get:function(){return l.href},set:function(e){l.href=e,s(),c()},enumerable:!0,configurable:!0},origin:{get:function(){return"origin"in l?l.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return l.protocol},set:function(e){l.protocol=e},enumerable:!0,configurable:!0},username:{get:function(){return l.username},set:function(e){l.username=e},enumerable:!0,configurable:!0},password:{get:function(){return l.password},set:function(e){l.password=e},enumerable:!0,configurable:!0},host:{get:function(){var e={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[l.protocol];return e?l.host.replace(e,""):l.host},set:function(e){l.host=e},enumerable:!0,configurable:!0},hostname:{get:function(){return l.hostname},set:function(e){l.hostname=e},enumerable:!0,configurable:!0},port:{get:function(){return l.port},set:function(e){l.port=e},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==l.pathname.charAt(0)?"/"+l.pathname:l.pathname},set:function(e){l.pathname=e},enumerable:!0,configurable:!0},search:{get:function(){return l.search},set:function(e){l.search!==e&&(l.search=e,s(),c())},enumerable:!0,configurable:!0},searchParams:{get:function(){return p},enumerable:!0,configurable:!0},hash:{get:function(){return l.hash},set:function(e){l.hash=e,s()},enumerable:!0,configurable:!0},toString:{value:function(){return l.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return l.valueOf()},enumerable:!1,configurable:!0}}),h}var a,u=e.URL;try{if(u){if(a=new e.URL("http://example.com"),"searchParams"in a)return;"href"in a||(a=void 0)}}catch(s){}if(Object.defineProperties(o.prototype,{append:{value:function(e,t){this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},"delete":{value:function(e){for(var t=0;t=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:[r.name,r.value]}}}},writable:!0,enumerable:!0,configurable:!0},keys:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.name}}}},writable:!0,enumerable:!0,configurable:!0},values:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.value}}}},writable:!0,enumerable:!0,configurable:!0},forEach:{value:function(e){var t=arguments.length>1?arguments[1]:void 0;this._list.forEach(function(r,n){e.call(t,r.name,r.value)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return t(this._list)},writable:!0,enumerable:!1,configurable:!0}}),"Symbol"in e&&"iterator"in e.Symbol&&Object.defineProperty(o.prototype,e.Symbol.iterator,{value:o.prototype.entries,writable:!0,enumerable:!0,configurable:!0}),u)for(var c in u)u.hasOwnProperty(c)&&"function"==typeof u[c]&&(i[c]=u[c]);e.URL=i,e.URLSearchParams=o}(self),function(e){function t(e){if(e=String(e),e.match(/[^\x00-\xFF]/))throw TypeError("Not a valid ByteString");return e}function r(e){return e=String(e),e.replace(/([\u0000-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF])/g,function(e){return/^[\uD800-\uDFFF]$/.test(e)?"�":e})}function n(e){return 65535&e}function o(e){return String(e).replace(/[a-z]/g,function(e){return e.toUpperCase()})}function i(e){return e=o(e),"CONNECT"===e||"TRACE"===e||"TRACK"===e}function a(e){var t=o(e);return"DELETE"===t||"GET"===t||"HEAD"===t||"OPTIONS"===t||"POST"===t||"PUT"===t?t:e}function u(e){return/^[!#$%&'*+\-.09A-Z^_`a-z|~]+$/.test(e)}function s(e){return!0}function c(e){e=String(e).toLowerCase();var t={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0};return t[e]||"proxy-"===e.substring(0,6)||"sec-"===e.substring(0,4)}function l(e){e=String(e).toLowerCase();var t={"set-cookie":!0,"set-cookie2":!0};return t[e]}function f(e,t){return e=String(e).toLowerCase(),"accept"===e||"accept-language"===e||"content-language"===e||"content-type"===e&&-1!==["application/x-www-form-encoded","multipart/form-data","text/plain"].indexOf(t)}function h(e){this._guard="none",this._headerList=[],e&&p(this,e)}function p(e,t){t instanceof h?t._headerList.forEach(function(t){e.append(t[0],t[1])}):Array.isArray(t)?t.forEach(function(t){if(!Array.isArray(t)||2!==t.length)throw TypeError();e.append(t[0],t[1])}):(t=Object(t),Object.keys(t).forEach(function(r){e.append(r,t[r])}))}function y(e){this._headers=e,this._index=0}function d(e){this._stream=e,this.bodyUsed=!1}function v(e,n){if(arguments.length<1)throw TypeError("Not enough arguments");if(d.call(this,null),this.method="GET",this.url="",this.headers=new h,this.headers._guard="request",this.referrer=null,this.mode=null,this.credentials="omit",e instanceof v){if(e.bodyUsed)throw TypeError();e.bodyUsed=!0,this.method=e.method,this.url=e.url,this.headers=new h(e.headers),this.headers._guard=e.headers._guard,this.credentials=e.credentials,this._stream=e._stream}else e=r(e),this.url=String(new URL(e,self.location));if(n=Object(n),"method"in n){var o=t(n.method);if(i(o))throw TypeError();this.method=a(o)}"headers"in n&&(this.headers=new h,p(this.headers,n.headers)),"body"in n&&(this._stream=n.body),"credentials"in n&&-1!==["omit","same-origin","include"].indexOf(n.credentials)&&(this.credentials=n.credentials)}function m(e,t){if(arguments.length<1&&(e=""),this.headers=new h,this.headers._guard="response",e instanceof XMLHttpRequest&&"_url"in e){var o=e;return this.type="basic",this.url=r(o._url),this.status=o.status,this.ok=200<=this.status&&this.status<=299,this.statusText=o.statusText,o.getAllResponseHeaders().split(/\r?\n/).filter(function(e){return e.length}).forEach(function(e){var t=e.indexOf(":");this.headers.append(e.substring(0,t),e.substring(t+2))},this),void d.call(this,o.responseText)}d.call(this,e),t=Object(t)||{},this.url="";var i="status"in t?n(t.status):200;if(200>i||i>599)throw RangeError();this.status=i,this.ok=200<=this.status&&this.status<=299;var a="statusText"in t?String(t.statusText):"OK";if(/[^\x00-\xFF]/.test(a))throw TypeError();this.statusText=a,"headers"in t&&p(this.headers,t),this.type="basic"}function b(e,t){return new Promise(function(r,n){var o=new v(e,t),i=new XMLHttpRequest,a=!0;i._url=o.url;try{i.open(o.method,o.url,a)}catch(u){throw TypeError(u.message)}for(var s=o.headers[Symbol.iterator](),c=s.next();!c.done;c=s.next())i.setRequestHeader(c.value[0],c.value[1]);"include"===o.credentials&&(i.withCredentials=!0),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&(0===i.status?n(new TypeError("Network error")):r(new m(i)))},i.send(o._stream)})}h.prototype={append:function(e,r){if(e=t(e),!u(e)||!s(r))throw TypeError();if("immutable"===this._guard)throw TypeError();"request"===this._guard&&c(e)||("request-no-CORS"!==this._guard||f(e,r))&&("response"===this._guard&&l(e)||(e=e.toLowerCase(),this._headerList.push([e,r])))},"delete":function(e){if(e=t(e),!u(e))throw TypeError();if("immutable"===this._guard)throw TypeError();if(("request"!==this._guard||!c(e))&&("request-no-CORS"!==this._guard||f(e,"invalid"))&&("response"!==this._guard||!l(e))){e=e.toLowerCase();for(var r=0;r=this._headers._headerList.length?{value:void 0,done:!0}:{value:this._headers._headerList[this._index++],done:!1}},y.prototype[Symbol.iterator]=function(){return this},d.prototype={arrayBuffer:function(){if(this.bodyUsed)return Promise.reject(TypeError());if(this.bodyUsed=!0,this._stream instanceof ArrayBuffer)return Promise.resolve(this._stream);var e=this._stream;return new Promise(function(t,r){var n=unescape(encodeURIComponent(e)).split("").map(function(e){return e.charCodeAt(0)});t(new Uint8Array(n).buffer)})},blob:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof Blob?Promise.resolve(this._stream):Promise.resolve(new Blob([this._stream])))},formData:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof FormData?Promise.resolve(this._stream):Promise.reject(Error("Not yet implemented")))},json:function(){if(this.bodyUsed)return Promise.reject(TypeError());this.bodyUsed=!0;var e=this;return new Promise(function(t,r){t(JSON.parse(e._stream))})},text:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,Promise.resolve(String(this._stream)))}},v.prototype=d.prototype,m.prototype=d.prototype,m.redirect=function(){throw Error("Not supported")},"fetch"in e||(e.Headers=h,e.Request=v,e.Response=m,e.fetch=b)}(self); diff --git a/web.js b/web.js index f158e38..413613e 100644 --- a/web.js +++ b/web.js @@ -1065,7 +1065,7 @@ if (origURL) { for (var i in origURL) { if (origURL.hasOwnProperty(i) && typeof origURL[i] === 'function') - global.URL[i] = origURL[i]; + URL[i] = origURL[i]; } } @@ -2096,7 +2096,7 @@ if (origURL) { for (var i in origURL) { if (origURL.hasOwnProperty(i) && typeof origURL[i] === 'function') - global.URL[i] = origURL[i]; + URL[i] = origURL[i]; } } diff --git a/web.min.js b/web.min.js index a0a3fe0..36a93bb 100644 --- a/web.min.js +++ b/web.min.js @@ -1,2 +1,2 @@ -!function(e){"window"in e&&"document"in e&&(document.head=document.head||document.getElementsByTagName("head")[0],["abbr","article","aside","audio","bdi","canvas","data","datalist","details","dialog","figcaption","figure","footer","header","hgroup","main","mark","meter","nav","output","picture","progress","section","summary","template","time","video"].forEach(function(e){document.createElement(e)}),!("dataset"in document.createElement("span"))&&"Element"in e&&Element.prototype&&Object.defineProperty&&Object.defineProperty(Element.prototype,"dataset",{get:function(){for(var e=Object.create(null),t=0;t>16&255)),i.push(String.fromCharCode(o>>8&255)),i.push(String.fromCharCode(255&o)),s=0,o=0),r+=1;return 12===s?(o>>=4,i.push(String.fromCharCode(255&o))):18===s&&(o>>=2,i.push(String.fromCharCode(o>>8&255)),i.push(String.fromCharCode(255&o))),i.join("")}function r(e){e=String(e);var t,r,i,o,s,a,u,c=0,l=[];if(/[^\x00-\xFF]/.test(e))throw Error("InvalidCharacterError");for(;c>2,s=(3&t)<<4|r>>4,a=(15&r)<<2|i>>6,u=63&i,c===e.length+2?(a=64,u=64):c===e.length+1&&(u=64),l.push(n.charAt(o),n.charAt(s),n.charAt(a),n.charAt(u));return l.join("")}if(!("atob"in e&&"btoa"in e)){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.atob=t,e.btoa=r}}())}(self),function(e){"window"in e&&"document"in e&&(document.querySelectorAll||(document.querySelectorAll=function(e){var t,r=document.createElement("style"),n=[];for(document.documentElement.firstChild.appendChild(r),document._qsa=[],r.styleSheet.cssText=e+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",window.scrollBy(0,0),r.parentNode.removeChild(r);document._qsa.length;)t=document._qsa.shift(),t.style.removeAttribute("x-qsa"),n.push(t);return document._qsa=null,n}),document.querySelector||(document.querySelector=function(e){var t=document.querySelectorAll(e);return t.length?t[0]:null}),document.getElementsByClassName||(document.getElementsByClassName=function(e){return e=String(e).replace(/^|\s+/g,"."),document.querySelectorAll(e)}),e.Node=e.Node||function(){throw TypeError("Illegal constructor")},Node.ELEMENT_NODE=1,Node.ATTRIBUTE_NODE=2,Node.TEXT_NODE=3,Node.CDATA_SECTION_NODE=4,Node.ENTITY_REFERENCE_NODE=5,Node.ENTITY_NODE=6,Node.PROCESSING_INSTRUCTION_NODE=7,Node.COMMENT_NODE=8,Node.DOCUMENT_NODE=9,Node.DOCUMENT_TYPE_NODE=10,Node.DOCUMENT_FRAGMENT_NODE=11,Node.NOTATION_NODE=12,e.DOMException=e.DOMException||function(){throw TypeError("Illegal constructor")},DOMException.INDEX_SIZE_ERR=1,DOMException.DOMSTRING_SIZE_ERR=2,DOMException.HIERARCHY_REQUEST_ERR=3,DOMException.WRONG_DOCUMENT_ERR=4,DOMException.INVALID_CHARACTER_ERR=5,DOMException.NO_DATA_ALLOWED_ERR=6,DOMException.NO_MODIFICATION_ALLOWED_ERR=7,DOMException.NOT_FOUND_ERR=8,DOMException.NOT_SUPPORTED_ERR=9,DOMException.INUSE_ATTRIBUTE_ERR=10,DOMException.INVALID_STATE_ERR=11,DOMException.SYNTAX_ERR=12,DOMException.INVALID_MODIFICATION_ERR=13,DOMException.NAMESPACE_ERR=14,DOMException.INVALID_ACCESS_ERR=15,function(){function t(e,t,r){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var n=this,i=function(e){e._timeStamp=Date.now(),e._currentTarget=n,t.call(this,e),e._currentTarget=null};this["_"+e+t]=i,this.attachEvent("on"+e,i)}}function r(e,t,r){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var n=this["_"+e+t];n&&(this.detachEvent("on"+e,n),this["_"+e+t]=null)}}"Element"in e&&!Element.prototype.addEventListener&&Object.defineProperty&&(Event.CAPTURING_PHASE=1,Event.AT_TARGET=2,Event.BUBBLING_PHASE=3,Object.defineProperties(Event.prototype,{CAPTURING_PHASE:{get:function(){return 1}},AT_TARGET:{get:function(){return 2}},BUBBLING_PHASE:{get:function(){return 3}},target:{get:function(){return this.srcElement}},currentTarget:{get:function(){return this._currentTarget}},eventPhase:{get:function(){return this.srcElement===this.currentTarget?Event.AT_TARGET:Event.BUBBLING_PHASE}},bubbles:{get:function(){switch(this.type){case"click":case"dblclick":case"mousedown":case"mouseup":case"mouseover":case"mousemove":case"mouseout":case"mousewheel":case"keydown":case"keypress":case"keyup":case"resize":case"scroll":case"select":case"change":case"submit":case"reset":return!0}return!1}},cancelable:{get:function(){switch(this.type){case"click":case"dblclick":case"mousedown":case"mouseup":case"mouseover":case"mouseout":case"mousewheel":case"keydown":case"keypress":case"keyup":case"submit":return!0}return!1}},timeStamp:{get:function(){return this._timeStamp}},stopPropagation:{value:function(){this.cancelBubble=!0}},preventDefault:{value:function(){this.returnValue=!1}},defaultPrevented:{get:function(){return this.returnValue===!1}}}),[Window,HTMLDocument,Element].forEach(function(e){e.prototype.addEventListener=t,e.prototype.removeEventListener=r}))}(),window.addEvent=function(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent&&(e["e"+t+r]=r,e[t+r]=function(){var n=window.event;n.currentTarget=e,n.preventDefault=function(){n.returnValue=!1},n.stopPropagation=function(){n.cancelBubble=!0},n.target=n.srcElement,n.timeStamp=Date.now(),e["e"+t+r].call(this,n)},e.attachEvent("on"+t,e[t+r]))},window.removeEvent=function(e,t,r){e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent&&(e.detachEvent("on"+t,e[t+r]),e[t+r]=null,e["e"+t+r]=null)},function(){function t(e,t){function r(e){return e.length?e.split(/\s+/g):[]}function n(e,t){var n=r(t),i=n.indexOf(e);return-1!==i&&n.splice(i,1),n.join(" ")}if(Object.defineProperties(this,{length:{get:function(){return r(e[t]).length}},item:{value:function(n){var i=r(e[t]);return n>=0&&ni;++i)Object.defineProperty(this,String(i),{get:function(e){return function(){return this.item(e)}}(i)});else this.length=r(e[t]).length}function r(t,r){"Element"in e&&Element.prototype&&Object.defineProperty&&Object.defineProperty(Element.prototype,t,{get:r})}"classList"in document.createElement("span")?window.getClassList=function(e){return e.classList}:(window.getClassList=function(e){return new t(e,"className")},r("classList",function(){return new t(this,"className")})),"relList"in document.createElement("link")?window.getRelList=function(e){return e.relList}:(window.getRelList=function(e){return new t(e,"rel")},r("relList",function(){return new t(this,"rel")})),"previousElementSibling"in document.documentElement||r("previousElementSibling",function(){for(var e=this.previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}),"nextElementSibling"in document.documentElement||r("nextElementSibling",function(){for(var e=this.nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e})}())}(self),function(e){"window"in e&&"document"in e&&(e.XMLHttpRequest=e.XMLHttpRequest||function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("This browser does not support XMLHttpRequest.")},XMLHttpRequest.UNSENT=0,XMLHttpRequest.OPENED=1,XMLHttpRequest.HEADERS_RECEIVED=2,XMLHttpRequest.LOADING=3,XMLHttpRequest.DONE=4,function(){function t(e){if(this._data=[],e)for(var t=0;t"),e.close()),!e)throw Error("base not supported");var r=e.createElement("base");r.href=o,e.getElementsByTagName("head")[0].appendChild(r);var n=e.createElement("a");return n.href=t,n.href}());var l=n(t||""),h=function(){if(!("defineProperties"in Object))return!1;try{var e={};return Object.defineProperties(e,{prop:{get:function(){return!0}}}),e.prop}catch(t){return!1}}(),f=h?this:document.createElement("a"),d=new i(l.search?l.search.substring(1):null);return d._url_object=f,Object.defineProperties(f,{href:{get:function(){return l.href},set:function(e){l.href=e,u(),c()},enumerable:!0,configurable:!0},origin:{get:function(){return"origin"in l?l.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return l.protocol},set:function(e){l.protocol=e},enumerable:!0,configurable:!0},username:{get:function(){return l.username},set:function(e){l.username=e},enumerable:!0,configurable:!0},password:{get:function(){return l.password},set:function(e){l.password=e},enumerable:!0,configurable:!0},host:{get:function(){var e={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[l.protocol];return e?l.host.replace(e,""):l.host},set:function(e){l.host=e},enumerable:!0,configurable:!0},hostname:{get:function(){return l.hostname},set:function(e){l.hostname=e},enumerable:!0,configurable:!0},port:{get:function(){return l.port},set:function(e){l.port=e},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==l.pathname.charAt(0)?"/"+l.pathname:l.pathname},set:function(e){l.pathname=e},enumerable:!0,configurable:!0},search:{get:function(){return l.search},set:function(e){l.search!==e&&(l.search=e,u(),c())},enumerable:!0,configurable:!0},searchParams:{get:function(){return d},enumerable:!0,configurable:!0},hash:{get:function(){return l.hash},set:function(e){l.hash=e,u()},enumerable:!0,configurable:!0},toString:{value:function(){return l.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return l.valueOf()},enumerable:!1,configurable:!0}}),f}var s,a=e.URL;try{if(a){if(s=new e.URL("http://example.com"),"searchParams"in s)return;"href"in s||(s=void 0)}}catch(u){}if(Object.defineProperties(i.prototype,{append:{value:function(e,t){this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},"delete":{value:function(e){for(var t=0;t=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:[r.name,r.value]}}}},writable:!0,enumerable:!0,configurable:!0},keys:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.name}}}},writable:!0,enumerable:!0,configurable:!0},values:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.value}}}},writable:!0,enumerable:!0,configurable:!0},forEach:{value:function(e){var t=arguments.length>1?arguments[1]:void 0;this._list.forEach(function(r,n){e.call(t,r.name,r.value)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return t(this._list)},writable:!0,enumerable:!1,configurable:!0}}),"Symbol"in e&&"iterator"in e.Symbol&&Object.defineProperty(i.prototype,e.Symbol.iterator,{value:i.prototype.entries,writable:!0,enumerable:!0,configurable:!0}),a)for(var c in a)a.hasOwnProperty(c)&&"function"==typeof a[c]&&(e.URL[c]=a[c]);e.URL=o,e.URLSearchParams=i}(self),function(e){function t(e){if(e=String(e),e.match(/[^\x00-\xFF]/))throw TypeError("Not a valid ByteString");return e}function r(e){return e=String(e),e.replace(/([\u0000-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF])/g,function(e){return/^[\uD800-\uDFFF]$/.test(e)?"�":e})}function n(e){return 65535&e}function i(e){return String(e).replace(/[a-z]/g,function(e){return e.toUpperCase()})}function o(e){return e=i(e),"CONNECT"===e||"TRACE"===e||"TRACK"===e}function s(e){var t=i(e);return"DELETE"===t||"GET"===t||"HEAD"===t||"OPTIONS"===t||"POST"===t||"PUT"===t?t:e}function a(e){return/^[!#$%&'*+\-.09A-Z^_`a-z|~]+$/.test(e)}function u(e){return!0}function c(e){e=String(e).toLowerCase();var t={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0};return t[e]||"proxy-"===e.substring(0,6)||"sec-"===e.substring(0,4)}function l(e){e=String(e).toLowerCase();var t={"set-cookie":!0,"set-cookie2":!0};return t[e]}function h(e,t){return e=String(e).toLowerCase(),"accept"===e||"accept-language"===e||"content-language"===e||"content-type"===e&&-1!==["application/x-www-form-encoded","multipart/form-data","text/plain"].indexOf(t)}function f(e){this._guard="none",this._headerList=[],e&&d(this,e)}function d(e,t){t instanceof f?t._headerList.forEach(function(t){e.append(t[0],t[1])}):Array.isArray(t)?t.forEach(function(t){if(!Array.isArray(t)||2!==t.length)throw TypeError();e.append(t[0],t[1])}):(t=Object(t),Object.keys(t).forEach(function(r){e.append(r,t[r])}))}function p(e){this._headers=e,this._index=0}function m(e){this._stream=e,this.bodyUsed=!1}function g(e,n){if(arguments.length<1)throw TypeError("Not enough arguments");if(m.call(this,null),this.method="GET",this.url="",this.headers=new f,this.headers._guard="request",this.referrer=null,this.mode=null,this.credentials="omit",e instanceof g){if(e.bodyUsed)throw TypeError();e.bodyUsed=!0,this.method=e.method,this.url=e.url,this.headers=new f(e.headers),this.headers._guard=e.headers._guard,this.credentials=e.credentials,this._stream=e._stream}else e=r(e),this.url=String(new URL(e,self.location));if(n=Object(n),"method"in n){var i=t(n.method);if(o(i))throw TypeError();this.method=s(i)}"headers"in n&&(this.headers=new f,d(this.headers,n.headers)),"body"in n&&(this._stream=n.body),"credentials"in n&&-1!==["omit","same-origin","include"].indexOf(n.credentials)&&(this.credentials=n.credentials)}function b(e,t){if(arguments.length<1&&(e=""),this.headers=new f,this.headers._guard="response",e instanceof XMLHttpRequest&&"_url"in e){var i=e;return this.type="basic",this.url=r(i._url),this.status=i.status,this.ok=200<=this.status&&this.status<=299,this.statusText=i.statusText,i.getAllResponseHeaders().split(/\r?\n/).filter(function(e){return e.length}).forEach(function(e){var t=e.indexOf(":");this.headers.append(e.substring(0,t),e.substring(t+2))},this),void m.call(this,i.responseText)}m.call(this,e),t=Object(t)||{},this.url="";var o="status"in t?n(t.status):200;if(200>o||o>599)throw RangeError();this.status=o,this.ok=200<=this.status&&this.status<=299;var s="statusText"in t?String(t.statusText):"OK";if(/[^\x00-\xFF]/.test(s))throw TypeError();this.statusText=s,"headers"in t&&d(this.headers,t),this.type="basic"}function _(e,t){return new Promise(function(r,n){var i=new g(e,t),o=new XMLHttpRequest,s=!0;o._url=i.url;try{o.open(i.method,i.url,s)}catch(a){throw TypeError(a.message)}for(var u=i.headers[Symbol.iterator](),c=u.next();!c.done;c=u.next())o.setRequestHeader(c.value[0],c.value[1]);"include"===i.credentials&&(o.withCredentials=!0),o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&(0===o.status?n(new TypeError("Network error")):r(new b(o)))},o.send(i._stream)})}f.prototype={append:function(e,r){if(e=t(e),!a(e)||!u(r))throw TypeError();if("immutable"===this._guard)throw TypeError();"request"===this._guard&&c(e)||("request-no-CORS"!==this._guard||h(e,r))&&("response"===this._guard&&l(e)||(e=e.toLowerCase(),this._headerList.push([e,r])))},"delete":function(e){if(e=t(e),!a(e))throw TypeError();if("immutable"===this._guard)throw TypeError();if(("request"!==this._guard||!c(e))&&("request-no-CORS"!==this._guard||h(e,"invalid"))&&("response"!==this._guard||!l(e))){e=e.toLowerCase();for(var r=0;r=this._headers._headerList.length?{value:void 0,done:!0}:{value:this._headers._headerList[this._index++],done:!1}},p.prototype[Symbol.iterator]=function(){return this},m.prototype={arrayBuffer:function(){if(this.bodyUsed)return Promise.reject(TypeError());if(this.bodyUsed=!0,this._stream instanceof ArrayBuffer)return Promise.resolve(this._stream);var e=this._stream;return new Promise(function(t,r){var n=unescape(encodeURIComponent(e)).split("").map(function(e){return e.charCodeAt(0)});t(new Uint8Array(n).buffer)})},blob:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof Blob?Promise.resolve(this._stream):Promise.resolve(new Blob([this._stream])))},formData:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof FormData?Promise.resolve(this._stream):Promise.reject(Error("Not yet implemented")))},json:function(){if(this.bodyUsed)return Promise.reject(TypeError());this.bodyUsed=!0;var e=this;return new Promise(function(t,r){t(JSON.parse(e._stream))})},text:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,Promise.resolve(String(this._stream)))}},g.prototype=m.prototype,b.prototype=m.prototype,b.redirect=function(){throw Error("Not supported")},"fetch"in e||(e.Headers=f,e.Request=g,e.Response=b,e.fetch=_)}(self),function(e){"window"in e&&"document"in e&&"TextRectangle"in this&&!("width"in TextRectangle.prototype)&&Object.defineProperties(TextRectangle.prototype,{width:{get:function(){return this.right-this.left}},height:{get:function(){return this.bottom-this.top}}})}(this),function(e){"window"in e&&"document"in e&&(!function(){function t(e){return e.offsetWidth>0&&e.offsetHeight>0}function r(){var e=s;s=Object.create(null),u=-1,Object.keys(e).forEach(function(r){var n=e[r];n.element&&!t(n.element)||n.callback(Date.now())})}function n(t,n){var i=++a;return s[i]={callback:t,element:n},-1===u&&(u=e.setTimeout(r,1e3/o)),i}function i(t){delete s[t],0===Object.keys(s).length&&(e.clearTimeout(u),u=-1)}if(!("requestAnimationFrame"in e)){var o=60,s=Object.create(null),a=0,u=-1;e.requestAnimationFrame=n,e.cancelAnimationFrame=i}}(),function(){function t(t){var r=[].slice.call(arguments,1);return e.setTimeout(function(){t.apply(null,r)},0)}function r(t){e.clearTimeout(t)}"setImmediate"in e||(e.setImmediate=t,e.clearImmediate=r)}())}(this),function(e){"use strict";function t(e){var t="",r=!0;return e.forEach(function(e){var n=encodeURIComponent(e.name),i=encodeURIComponent(e.value);r||(t+="&"),t+=n+"="+i,r=!1}),t.replace(/%20/g,"+")}function r(e,t){var r=e.split("&");t&&-1===r[0].indexOf("=")&&(r[0]="="+r[0]);var n=[];r.forEach(function(e){if(0!==e.length){var t=e.indexOf("=");if(-1!==t)var r=e.substring(0,t),i=e.substring(t+1);else r=e,i="";r=r.replace(/\+/g," "),i=i.replace(/\+/g," "),n.push({name:r,value:i})}});var i=[];return n.forEach(function(e){i.push({name:decodeURIComponent(e.name),value:decodeURIComponent(e.value)})}),i}function n(e){if(s)return new a(e);var t=document.createElement("a");return t.href=e,t}function i(e){var n=this;this._list=[],void 0!==e&&null!==e||(e=""),Object(e)===e&&e instanceof i||(e=String(e)),"string"==typeof e&&"?"===e.substring(0,1)&&(e=e.substring(1)),"string"==typeof e?this._list=r(e):this._list=e._list.slice(),this._url_object=null,this._setList=function(e){o||(n._list=e)};var o=!1;this._update_steps=function(){o||(o=!0,n._url_object&&("about:"===n._url_object.protocol&&-1!==n._url_object.pathname.indexOf("?")&&(n._url_object.pathname=n._url_object.pathname.split("?")[0]),n._url_object.search=t(n._list),o=!1))}}function o(t,o){function u(){var e=l.href.replace(/#$|\?$|\?(?=#)/g,"");l.href!==e&&(l.href=e)}function c(){d._setList(l.search?r(l.search.substring(1)):[]),d._update_steps()}if(!(this instanceof e.URL))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator.");o&&(t=function(){if(s)return new a(t,o).href;var e;if(document.implementation&&document.implementation.createHTMLDocument?e=document.implementation.createHTMLDocument(""):document.implementation&&document.implementation.createDocument?(e=document.implementation.createElement("http://www.w3.org/1999/xhtml","html",null),e.documentElement.appendChild(e.createElement("head")),e.documentElement.appendChild(e.createElement("body"))):window.ActiveXObject&&(e=new window.ActiveXObject("htmlfile"),e.write(""),e.close()),!e)throw Error("base not supported");var r=e.createElement("base");r.href=o,e.getElementsByTagName("head")[0].appendChild(r);var n=e.createElement("a");return n.href=t,n.href}());var l=n(t||""),h=function(){if(!("defineProperties"in Object))return!1;try{var e={};return Object.defineProperties(e,{prop:{get:function(){return!0}}}),e.prop}catch(t){return!1}}(),f=h?this:document.createElement("a"),d=new i(l.search?l.search.substring(1):null);return d._url_object=f,Object.defineProperties(f,{href:{get:function(){return l.href},set:function(e){l.href=e,u(),c()},enumerable:!0,configurable:!0},origin:{get:function(){return"origin"in l?l.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return l.protocol},set:function(e){l.protocol=e},enumerable:!0,configurable:!0},username:{get:function(){return l.username},set:function(e){l.username=e},enumerable:!0,configurable:!0},password:{get:function(){return l.password},set:function(e){l.password=e},enumerable:!0,configurable:!0},host:{get:function(){var e={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[l.protocol];return e?l.host.replace(e,""):l.host},set:function(e){l.host=e},enumerable:!0,configurable:!0},hostname:{get:function(){return l.hostname},set:function(e){l.hostname=e},enumerable:!0,configurable:!0},port:{get:function(){return l.port},set:function(e){l.port=e},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==l.pathname.charAt(0)?"/"+l.pathname:l.pathname},set:function(e){l.pathname=e},enumerable:!0,configurable:!0},search:{get:function(){return l.search},set:function(e){l.search!==e&&(l.search=e,u(),c())},enumerable:!0,configurable:!0},searchParams:{get:function(){return d},enumerable:!0,configurable:!0},hash:{get:function(){return l.hash},set:function(e){l.hash=e,u()},enumerable:!0,configurable:!0},toString:{value:function(){return l.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return l.valueOf()},enumerable:!1,configurable:!0}}),f}var s,a=e.URL;try{if(a){if(s=new e.URL("http://example.com"),"searchParams"in s)return;"href"in s||(s=void 0)}}catch(u){}if(Object.defineProperties(i.prototype,{append:{value:function(e,t){this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},"delete":{value:function(e){for(var t=0;t=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:[r.name,r.value]}}}},writable:!0,enumerable:!0,configurable:!0},keys:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.name}}}},writable:!0,enumerable:!0,configurable:!0},values:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.value}}}},writable:!0,enumerable:!0,configurable:!0},forEach:{value:function(e){var t=arguments.length>1?arguments[1]:void 0;this._list.forEach(function(r,n){e.call(t,r.name,r.value)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return t(this._list)},writable:!0,enumerable:!1,configurable:!0}}),"Symbol"in e&&"iterator"in e.Symbol&&Object.defineProperty(i.prototype,e.Symbol.iterator,{value:i.prototype.entries,writable:!0,enumerable:!0,configurable:!0}),a)for(var c in a)a.hasOwnProperty(c)&&"function"==typeof a[c]&&(e.URL[c]=a[c]);e.URL=o,e.URLSearchParams=i}(self),function(e){function t(e){if(e=String(e),e.match(/[^\x00-\xFF]/))throw TypeError("Not a valid ByteString");return e}function r(e){return e=String(e),e.replace(/([\u0000-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF])/g,function(e){return/^[\uD800-\uDFFF]$/.test(e)?"�":e})}function n(e){return 65535&e}function i(e){return String(e).replace(/[a-z]/g,function(e){return e.toUpperCase()})}function o(e){return e=i(e),"CONNECT"===e||"TRACE"===e||"TRACK"===e}function s(e){var t=i(e);return"DELETE"===t||"GET"===t||"HEAD"===t||"OPTIONS"===t||"POST"===t||"PUT"===t?t:e}function a(e){return/^[!#$%&'*+\-.09A-Z^_`a-z|~]+$/.test(e)}function u(e){return!0}function c(e){e=String(e).toLowerCase();var t={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0};return t[e]||"proxy-"===e.substring(0,6)||"sec-"===e.substring(0,4); +!function(e){"window"in e&&"document"in e&&(document.head=document.head||document.getElementsByTagName("head")[0],["abbr","article","aside","audio","bdi","canvas","data","datalist","details","dialog","figcaption","figure","footer","header","hgroup","main","mark","meter","nav","output","picture","progress","section","summary","template","time","video"].forEach(function(e){document.createElement(e)}),!("dataset"in document.createElement("span"))&&"Element"in e&&Element.prototype&&Object.defineProperty&&Object.defineProperty(Element.prototype,"dataset",{get:function(){for(var e=Object.create(null),t=0;t>16&255)),i.push(String.fromCharCode(o>>8&255)),i.push(String.fromCharCode(255&o)),s=0,o=0),r+=1;return 12===s?(o>>=4,i.push(String.fromCharCode(255&o))):18===s&&(o>>=2,i.push(String.fromCharCode(o>>8&255)),i.push(String.fromCharCode(255&o))),i.join("")}function r(e){e=String(e);var t,r,i,o,s,a,u,c=0,l=[];if(/[^\x00-\xFF]/.test(e))throw Error("InvalidCharacterError");for(;c>2,s=(3&t)<<4|r>>4,a=(15&r)<<2|i>>6,u=63&i,c===e.length+2?(a=64,u=64):c===e.length+1&&(u=64),l.push(n.charAt(o),n.charAt(s),n.charAt(a),n.charAt(u));return l.join("")}if(!("atob"in e&&"btoa"in e)){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.atob=t,e.btoa=r}}())}(self),function(e){"window"in e&&"document"in e&&(document.querySelectorAll||(document.querySelectorAll=function(e){var t,r=document.createElement("style"),n=[];for(document.documentElement.firstChild.appendChild(r),document._qsa=[],r.styleSheet.cssText=e+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",window.scrollBy(0,0),r.parentNode.removeChild(r);document._qsa.length;)t=document._qsa.shift(),t.style.removeAttribute("x-qsa"),n.push(t);return document._qsa=null,n}),document.querySelector||(document.querySelector=function(e){var t=document.querySelectorAll(e);return t.length?t[0]:null}),document.getElementsByClassName||(document.getElementsByClassName=function(e){return e=String(e).replace(/^|\s+/g,"."),document.querySelectorAll(e)}),e.Node=e.Node||function(){throw TypeError("Illegal constructor")},Node.ELEMENT_NODE=1,Node.ATTRIBUTE_NODE=2,Node.TEXT_NODE=3,Node.CDATA_SECTION_NODE=4,Node.ENTITY_REFERENCE_NODE=5,Node.ENTITY_NODE=6,Node.PROCESSING_INSTRUCTION_NODE=7,Node.COMMENT_NODE=8,Node.DOCUMENT_NODE=9,Node.DOCUMENT_TYPE_NODE=10,Node.DOCUMENT_FRAGMENT_NODE=11,Node.NOTATION_NODE=12,e.DOMException=e.DOMException||function(){throw TypeError("Illegal constructor")},DOMException.INDEX_SIZE_ERR=1,DOMException.DOMSTRING_SIZE_ERR=2,DOMException.HIERARCHY_REQUEST_ERR=3,DOMException.WRONG_DOCUMENT_ERR=4,DOMException.INVALID_CHARACTER_ERR=5,DOMException.NO_DATA_ALLOWED_ERR=6,DOMException.NO_MODIFICATION_ALLOWED_ERR=7,DOMException.NOT_FOUND_ERR=8,DOMException.NOT_SUPPORTED_ERR=9,DOMException.INUSE_ATTRIBUTE_ERR=10,DOMException.INVALID_STATE_ERR=11,DOMException.SYNTAX_ERR=12,DOMException.INVALID_MODIFICATION_ERR=13,DOMException.NAMESPACE_ERR=14,DOMException.INVALID_ACCESS_ERR=15,function(){function t(e,t,r){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var n=this,i=function(e){e._timeStamp=Date.now(),e._currentTarget=n,t.call(this,e),e._currentTarget=null};this["_"+e+t]=i,this.attachEvent("on"+e,i)}}function r(e,t,r){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var n=this["_"+e+t];n&&(this.detachEvent("on"+e,n),this["_"+e+t]=null)}}"Element"in e&&!Element.prototype.addEventListener&&Object.defineProperty&&(Event.CAPTURING_PHASE=1,Event.AT_TARGET=2,Event.BUBBLING_PHASE=3,Object.defineProperties(Event.prototype,{CAPTURING_PHASE:{get:function(){return 1}},AT_TARGET:{get:function(){return 2}},BUBBLING_PHASE:{get:function(){return 3}},target:{get:function(){return this.srcElement}},currentTarget:{get:function(){return this._currentTarget}},eventPhase:{get:function(){return this.srcElement===this.currentTarget?Event.AT_TARGET:Event.BUBBLING_PHASE}},bubbles:{get:function(){switch(this.type){case"click":case"dblclick":case"mousedown":case"mouseup":case"mouseover":case"mousemove":case"mouseout":case"mousewheel":case"keydown":case"keypress":case"keyup":case"resize":case"scroll":case"select":case"change":case"submit":case"reset":return!0}return!1}},cancelable:{get:function(){switch(this.type){case"click":case"dblclick":case"mousedown":case"mouseup":case"mouseover":case"mouseout":case"mousewheel":case"keydown":case"keypress":case"keyup":case"submit":return!0}return!1}},timeStamp:{get:function(){return this._timeStamp}},stopPropagation:{value:function(){this.cancelBubble=!0}},preventDefault:{value:function(){this.returnValue=!1}},defaultPrevented:{get:function(){return this.returnValue===!1}}}),[Window,HTMLDocument,Element].forEach(function(e){e.prototype.addEventListener=t,e.prototype.removeEventListener=r}))}(),window.addEvent=function(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent&&(e["e"+t+r]=r,e[t+r]=function(){var n=window.event;n.currentTarget=e,n.preventDefault=function(){n.returnValue=!1},n.stopPropagation=function(){n.cancelBubble=!0},n.target=n.srcElement,n.timeStamp=Date.now(),e["e"+t+r].call(this,n)},e.attachEvent("on"+t,e[t+r]))},window.removeEvent=function(e,t,r){e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent&&(e.detachEvent("on"+t,e[t+r]),e[t+r]=null,e["e"+t+r]=null)},function(){function t(e,t){function r(e){return e.length?e.split(/\s+/g):[]}function n(e,t){var n=r(t),i=n.indexOf(e);return-1!==i&&n.splice(i,1),n.join(" ")}if(Object.defineProperties(this,{length:{get:function(){return r(e[t]).length}},item:{value:function(n){var i=r(e[t]);return n>=0&&ni;++i)Object.defineProperty(this,String(i),{get:function(e){return function(){return this.item(e)}}(i)});else this.length=r(e[t]).length}function r(t,r){"Element"in e&&Element.prototype&&Object.defineProperty&&Object.defineProperty(Element.prototype,t,{get:r})}"classList"in document.createElement("span")?window.getClassList=function(e){return e.classList}:(window.getClassList=function(e){return new t(e,"className")},r("classList",function(){return new t(this,"className")})),"relList"in document.createElement("link")?window.getRelList=function(e){return e.relList}:(window.getRelList=function(e){return new t(e,"rel")},r("relList",function(){return new t(this,"rel")})),"previousElementSibling"in document.documentElement||r("previousElementSibling",function(){for(var e=this.previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}),"nextElementSibling"in document.documentElement||r("nextElementSibling",function(){for(var e=this.nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e})}())}(self),function(e){"window"in e&&"document"in e&&(e.XMLHttpRequest=e.XMLHttpRequest||function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("This browser does not support XMLHttpRequest.")},XMLHttpRequest.UNSENT=0,XMLHttpRequest.OPENED=1,XMLHttpRequest.HEADERS_RECEIVED=2,XMLHttpRequest.LOADING=3,XMLHttpRequest.DONE=4,function(){function t(e){if(this._data=[],e)for(var t=0;t"),e.close()),!e)throw Error("base not supported");var r=e.createElement("base");r.href=o,e.getElementsByTagName("head")[0].appendChild(r);var n=e.createElement("a");return n.href=t,n.href}());var l=n(t||""),h=function(){if(!("defineProperties"in Object))return!1;try{var e={};return Object.defineProperties(e,{prop:{get:function(){return!0}}}),e.prop}catch(t){return!1}}(),f=h?this:document.createElement("a"),d=new i(l.search?l.search.substring(1):null);return d._url_object=f,Object.defineProperties(f,{href:{get:function(){return l.href},set:function(e){l.href=e,u(),c()},enumerable:!0,configurable:!0},origin:{get:function(){return"origin"in l?l.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return l.protocol},set:function(e){l.protocol=e},enumerable:!0,configurable:!0},username:{get:function(){return l.username},set:function(e){l.username=e},enumerable:!0,configurable:!0},password:{get:function(){return l.password},set:function(e){l.password=e},enumerable:!0,configurable:!0},host:{get:function(){var e={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[l.protocol];return e?l.host.replace(e,""):l.host},set:function(e){l.host=e},enumerable:!0,configurable:!0},hostname:{get:function(){return l.hostname},set:function(e){l.hostname=e},enumerable:!0,configurable:!0},port:{get:function(){return l.port},set:function(e){l.port=e},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==l.pathname.charAt(0)?"/"+l.pathname:l.pathname},set:function(e){l.pathname=e},enumerable:!0,configurable:!0},search:{get:function(){return l.search},set:function(e){l.search!==e&&(l.search=e,u(),c())},enumerable:!0,configurable:!0},searchParams:{get:function(){return d},enumerable:!0,configurable:!0},hash:{get:function(){return l.hash},set:function(e){l.hash=e,u()},enumerable:!0,configurable:!0},toString:{value:function(){return l.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return l.valueOf()},enumerable:!1,configurable:!0}}),f}var s,a=e.URL;try{if(a){if(s=new e.URL("http://example.com"),"searchParams"in s)return;"href"in s||(s=void 0)}}catch(u){}if(Object.defineProperties(i.prototype,{append:{value:function(e,t){this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},"delete":{value:function(e){for(var t=0;t=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:[r.name,r.value]}}}},writable:!0,enumerable:!0,configurable:!0},keys:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.name}}}},writable:!0,enumerable:!0,configurable:!0},values:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.value}}}},writable:!0,enumerable:!0,configurable:!0},forEach:{value:function(e){var t=arguments.length>1?arguments[1]:void 0;this._list.forEach(function(r,n){e.call(t,r.name,r.value)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return t(this._list)},writable:!0,enumerable:!1,configurable:!0}}),"Symbol"in e&&"iterator"in e.Symbol&&Object.defineProperty(i.prototype,e.Symbol.iterator,{value:i.prototype.entries,writable:!0,enumerable:!0,configurable:!0}),a)for(var c in a)a.hasOwnProperty(c)&&"function"==typeof a[c]&&(o[c]=a[c]);e.URL=o,e.URLSearchParams=i}(self),function(e){function t(e){if(e=String(e),e.match(/[^\x00-\xFF]/))throw TypeError("Not a valid ByteString");return e}function r(e){return e=String(e),e.replace(/([\u0000-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF])/g,function(e){return/^[\uD800-\uDFFF]$/.test(e)?"�":e})}function n(e){return 65535&e}function i(e){return String(e).replace(/[a-z]/g,function(e){return e.toUpperCase()})}function o(e){return e=i(e),"CONNECT"===e||"TRACE"===e||"TRACK"===e}function s(e){var t=i(e);return"DELETE"===t||"GET"===t||"HEAD"===t||"OPTIONS"===t||"POST"===t||"PUT"===t?t:e}function a(e){return/^[!#$%&'*+\-.09A-Z^_`a-z|~]+$/.test(e)}function u(e){return!0}function c(e){e=String(e).toLowerCase();var t={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0};return t[e]||"proxy-"===e.substring(0,6)||"sec-"===e.substring(0,4)}function l(e){e=String(e).toLowerCase();var t={"set-cookie":!0,"set-cookie2":!0};return t[e]}function h(e,t){return e=String(e).toLowerCase(),"accept"===e||"accept-language"===e||"content-language"===e||"content-type"===e&&-1!==["application/x-www-form-encoded","multipart/form-data","text/plain"].indexOf(t)}function f(e){this._guard="none",this._headerList=[],e&&d(this,e)}function d(e,t){t instanceof f?t._headerList.forEach(function(t){e.append(t[0],t[1])}):Array.isArray(t)?t.forEach(function(t){if(!Array.isArray(t)||2!==t.length)throw TypeError();e.append(t[0],t[1])}):(t=Object(t),Object.keys(t).forEach(function(r){e.append(r,t[r])}))}function p(e){this._headers=e,this._index=0}function m(e){this._stream=e,this.bodyUsed=!1}function g(e,n){if(arguments.length<1)throw TypeError("Not enough arguments");if(m.call(this,null),this.method="GET",this.url="",this.headers=new f,this.headers._guard="request",this.referrer=null,this.mode=null,this.credentials="omit",e instanceof g){if(e.bodyUsed)throw TypeError();e.bodyUsed=!0,this.method=e.method,this.url=e.url,this.headers=new f(e.headers),this.headers._guard=e.headers._guard,this.credentials=e.credentials,this._stream=e._stream}else e=r(e),this.url=String(new URL(e,self.location));if(n=Object(n),"method"in n){var i=t(n.method);if(o(i))throw TypeError();this.method=s(i)}"headers"in n&&(this.headers=new f,d(this.headers,n.headers)),"body"in n&&(this._stream=n.body),"credentials"in n&&-1!==["omit","same-origin","include"].indexOf(n.credentials)&&(this.credentials=n.credentials)}function b(e,t){if(arguments.length<1&&(e=""),this.headers=new f,this.headers._guard="response",e instanceof XMLHttpRequest&&"_url"in e){var i=e;return this.type="basic",this.url=r(i._url),this.status=i.status,this.ok=200<=this.status&&this.status<=299,this.statusText=i.statusText,i.getAllResponseHeaders().split(/\r?\n/).filter(function(e){return e.length}).forEach(function(e){var t=e.indexOf(":");this.headers.append(e.substring(0,t),e.substring(t+2))},this),void m.call(this,i.responseText)}m.call(this,e),t=Object(t)||{},this.url="";var o="status"in t?n(t.status):200;if(200>o||o>599)throw RangeError();this.status=o,this.ok=200<=this.status&&this.status<=299;var s="statusText"in t?String(t.statusText):"OK";if(/[^\x00-\xFF]/.test(s))throw TypeError();this.statusText=s,"headers"in t&&d(this.headers,t),this.type="basic"}function _(e,t){return new Promise(function(r,n){var i=new g(e,t),o=new XMLHttpRequest,s=!0;o._url=i.url;try{o.open(i.method,i.url,s)}catch(a){throw TypeError(a.message)}for(var u=i.headers[Symbol.iterator](),c=u.next();!c.done;c=u.next())o.setRequestHeader(c.value[0],c.value[1]);"include"===i.credentials&&(o.withCredentials=!0),o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&(0===o.status?n(new TypeError("Network error")):r(new b(o)))},o.send(i._stream)})}f.prototype={append:function(e,r){if(e=t(e),!a(e)||!u(r))throw TypeError();if("immutable"===this._guard)throw TypeError();"request"===this._guard&&c(e)||("request-no-CORS"!==this._guard||h(e,r))&&("response"===this._guard&&l(e)||(e=e.toLowerCase(),this._headerList.push([e,r])))},"delete":function(e){if(e=t(e),!a(e))throw TypeError();if("immutable"===this._guard)throw TypeError();if(("request"!==this._guard||!c(e))&&("request-no-CORS"!==this._guard||h(e,"invalid"))&&("response"!==this._guard||!l(e))){e=e.toLowerCase();for(var r=0;r=this._headers._headerList.length?{value:void 0,done:!0}:{value:this._headers._headerList[this._index++],done:!1}},p.prototype[Symbol.iterator]=function(){return this},m.prototype={arrayBuffer:function(){if(this.bodyUsed)return Promise.reject(TypeError());if(this.bodyUsed=!0,this._stream instanceof ArrayBuffer)return Promise.resolve(this._stream);var e=this._stream;return new Promise(function(t,r){var n=unescape(encodeURIComponent(e)).split("").map(function(e){return e.charCodeAt(0)});t(new Uint8Array(n).buffer)})},blob:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof Blob?Promise.resolve(this._stream):Promise.resolve(new Blob([this._stream])))},formData:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof FormData?Promise.resolve(this._stream):Promise.reject(Error("Not yet implemented")))},json:function(){if(this.bodyUsed)return Promise.reject(TypeError());this.bodyUsed=!0;var e=this;return new Promise(function(t,r){t(JSON.parse(e._stream))})},text:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,Promise.resolve(String(this._stream)))}},g.prototype=m.prototype,b.prototype=m.prototype,b.redirect=function(){throw Error("Not supported")},"fetch"in e||(e.Headers=f,e.Request=g,e.Response=b,e.fetch=_)}(self),function(e){"window"in e&&"document"in e&&"TextRectangle"in this&&!("width"in TextRectangle.prototype)&&Object.defineProperties(TextRectangle.prototype,{width:{get:function(){return this.right-this.left}},height:{get:function(){return this.bottom-this.top}}})}(this),function(e){"window"in e&&"document"in e&&(!function(){function t(e){return e.offsetWidth>0&&e.offsetHeight>0}function r(){var e=s;s=Object.create(null),u=-1,Object.keys(e).forEach(function(r){var n=e[r];n.element&&!t(n.element)||n.callback(Date.now())})}function n(t,n){var i=++a;return s[i]={callback:t,element:n},-1===u&&(u=e.setTimeout(r,1e3/o)),i}function i(t){delete s[t],0===Object.keys(s).length&&(e.clearTimeout(u),u=-1)}if(!("requestAnimationFrame"in e)){var o=60,s=Object.create(null),a=0,u=-1;e.requestAnimationFrame=n,e.cancelAnimationFrame=i}}(),function(){function t(t){var r=[].slice.call(arguments,1);return e.setTimeout(function(){t.apply(null,r)},0)}function r(t){e.clearTimeout(t)}"setImmediate"in e||(e.setImmediate=t,e.clearImmediate=r)}())}(this),function(e){"use strict";function t(e){var t="",r=!0;return e.forEach(function(e){var n=encodeURIComponent(e.name),i=encodeURIComponent(e.value);r||(t+="&"),t+=n+"="+i,r=!1}),t.replace(/%20/g,"+")}function r(e,t){var r=e.split("&");t&&-1===r[0].indexOf("=")&&(r[0]="="+r[0]);var n=[];r.forEach(function(e){if(0!==e.length){var t=e.indexOf("=");if(-1!==t)var r=e.substring(0,t),i=e.substring(t+1);else r=e,i="";r=r.replace(/\+/g," "),i=i.replace(/\+/g," "),n.push({name:r,value:i})}});var i=[];return n.forEach(function(e){i.push({name:decodeURIComponent(e.name),value:decodeURIComponent(e.value)})}),i}function n(e){if(s)return new a(e);var t=document.createElement("a");return t.href=e,t}function i(e){var n=this;this._list=[],void 0!==e&&null!==e||(e=""),Object(e)===e&&e instanceof i||(e=String(e)),"string"==typeof e&&"?"===e.substring(0,1)&&(e=e.substring(1)),"string"==typeof e?this._list=r(e):this._list=e._list.slice(),this._url_object=null,this._setList=function(e){o||(n._list=e)};var o=!1;this._update_steps=function(){o||(o=!0,n._url_object&&("about:"===n._url_object.protocol&&-1!==n._url_object.pathname.indexOf("?")&&(n._url_object.pathname=n._url_object.pathname.split("?")[0]),n._url_object.search=t(n._list),o=!1))}}function o(t,o){function u(){var e=l.href.replace(/#$|\?$|\?(?=#)/g,"");l.href!==e&&(l.href=e)}function c(){d._setList(l.search?r(l.search.substring(1)):[]),d._update_steps()}if(!(this instanceof e.URL))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator.");o&&(t=function(){if(s)return new a(t,o).href;var e;if(document.implementation&&document.implementation.createHTMLDocument?e=document.implementation.createHTMLDocument(""):document.implementation&&document.implementation.createDocument?(e=document.implementation.createElement("http://www.w3.org/1999/xhtml","html",null),e.documentElement.appendChild(e.createElement("head")),e.documentElement.appendChild(e.createElement("body"))):window.ActiveXObject&&(e=new window.ActiveXObject("htmlfile"),e.write(""),e.close()),!e)throw Error("base not supported");var r=e.createElement("base");r.href=o,e.getElementsByTagName("head")[0].appendChild(r);var n=e.createElement("a");return n.href=t,n.href}());var l=n(t||""),h=function(){if(!("defineProperties"in Object))return!1;try{var e={};return Object.defineProperties(e,{prop:{get:function(){return!0}}}),e.prop}catch(t){return!1}}(),f=h?this:document.createElement("a"),d=new i(l.search?l.search.substring(1):null);return d._url_object=f,Object.defineProperties(f,{href:{get:function(){return l.href},set:function(e){l.href=e,u(),c()},enumerable:!0,configurable:!0},origin:{get:function(){return"origin"in l?l.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return l.protocol},set:function(e){l.protocol=e},enumerable:!0,configurable:!0},username:{get:function(){return l.username},set:function(e){l.username=e},enumerable:!0,configurable:!0},password:{get:function(){return l.password},set:function(e){l.password=e},enumerable:!0,configurable:!0},host:{get:function(){var e={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[l.protocol];return e?l.host.replace(e,""):l.host},set:function(e){l.host=e},enumerable:!0,configurable:!0},hostname:{get:function(){return l.hostname},set:function(e){l.hostname=e},enumerable:!0,configurable:!0},port:{get:function(){return l.port},set:function(e){l.port=e},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==l.pathname.charAt(0)?"/"+l.pathname:l.pathname},set:function(e){l.pathname=e},enumerable:!0,configurable:!0},search:{get:function(){return l.search},set:function(e){l.search!==e&&(l.search=e,u(),c())},enumerable:!0,configurable:!0},searchParams:{get:function(){return d},enumerable:!0,configurable:!0},hash:{get:function(){return l.hash},set:function(e){l.hash=e,u()},enumerable:!0,configurable:!0},toString:{value:function(){return l.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return l.valueOf()},enumerable:!1,configurable:!0}}),f}var s,a=e.URL;try{if(a){if(s=new e.URL("http://example.com"),"searchParams"in s)return;"href"in s||(s=void 0)}}catch(u){}if(Object.defineProperties(i.prototype,{append:{value:function(e,t){this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},"delete":{value:function(e){for(var t=0;t=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:[r.name,r.value]}}}},writable:!0,enumerable:!0,configurable:!0},keys:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.name}}}},writable:!0,enumerable:!0,configurable:!0},values:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.value}}}},writable:!0,enumerable:!0,configurable:!0},forEach:{value:function(e){var t=arguments.length>1?arguments[1]:void 0;this._list.forEach(function(r,n){e.call(t,r.name,r.value)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return t(this._list)},writable:!0,enumerable:!1,configurable:!0}}),"Symbol"in e&&"iterator"in e.Symbol&&Object.defineProperty(i.prototype,e.Symbol.iterator,{value:i.prototype.entries,writable:!0,enumerable:!0,configurable:!0}),a)for(var c in a)a.hasOwnProperty(c)&&"function"==typeof a[c]&&(o[c]=a[c]);e.URL=o,e.URLSearchParams=i}(self),function(e){function t(e){if(e=String(e),e.match(/[^\x00-\xFF]/))throw TypeError("Not a valid ByteString");return e}function r(e){return e=String(e),e.replace(/([\u0000-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF])/g,function(e){return/^[\uD800-\uDFFF]$/.test(e)?"�":e})}function n(e){return 65535&e}function i(e){return String(e).replace(/[a-z]/g,function(e){return e.toUpperCase()})}function o(e){return e=i(e),"CONNECT"===e||"TRACE"===e||"TRACK"===e}function s(e){var t=i(e);return"DELETE"===t||"GET"===t||"HEAD"===t||"OPTIONS"===t||"POST"===t||"PUT"===t?t:e}function a(e){return/^[!#$%&'*+\-.09A-Z^_`a-z|~]+$/.test(e)}function u(e){return!0}function c(e){e=String(e).toLowerCase();var t={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0};return t[e]||"proxy-"===e.substring(0,6)||"sec-"===e.substring(0,4); }function l(e){e=String(e).toLowerCase();var t={"set-cookie":!0,"set-cookie2":!0};return t[e]}function h(e,t){return e=String(e).toLowerCase(),"accept"===e||"accept-language"===e||"content-language"===e||"content-type"===e&&-1!==["application/x-www-form-encoded","multipart/form-data","text/plain"].indexOf(t)}function f(e){this._guard="none",this._headerList=[],e&&d(this,e)}function d(e,t){t instanceof f?t._headerList.forEach(function(t){e.append(t[0],t[1])}):Array.isArray(t)?t.forEach(function(t){if(!Array.isArray(t)||2!==t.length)throw TypeError();e.append(t[0],t[1])}):(t=Object(t),Object.keys(t).forEach(function(r){e.append(r,t[r])}))}function p(e){this._headers=e,this._index=0}function m(e){this._stream=e,this.bodyUsed=!1}function g(e,n){if(arguments.length<1)throw TypeError("Not enough arguments");if(m.call(this,null),this.method="GET",this.url="",this.headers=new f,this.headers._guard="request",this.referrer=null,this.mode=null,this.credentials="omit",e instanceof g){if(e.bodyUsed)throw TypeError();e.bodyUsed=!0,this.method=e.method,this.url=e.url,this.headers=new f(e.headers),this.headers._guard=e.headers._guard,this.credentials=e.credentials,this._stream=e._stream}else e=r(e),this.url=String(new URL(e,self.location));if(n=Object(n),"method"in n){var i=t(n.method);if(o(i))throw TypeError();this.method=s(i)}"headers"in n&&(this.headers=new f,d(this.headers,n.headers)),"body"in n&&(this._stream=n.body),"credentials"in n&&-1!==["omit","same-origin","include"].indexOf(n.credentials)&&(this.credentials=n.credentials)}function b(e,t){if(arguments.length<1&&(e=""),this.headers=new f,this.headers._guard="response",e instanceof XMLHttpRequest&&"_url"in e){var i=e;return this.type="basic",this.url=r(i._url),this.status=i.status,this.ok=200<=this.status&&this.status<=299,this.statusText=i.statusText,i.getAllResponseHeaders().split(/\r?\n/).filter(function(e){return e.length}).forEach(function(e){var t=e.indexOf(":");this.headers.append(e.substring(0,t),e.substring(t+2))},this),void m.call(this,i.responseText)}m.call(this,e),t=Object(t)||{},this.url="";var o="status"in t?n(t.status):200;if(200>o||o>599)throw RangeError();this.status=o,this.ok=200<=this.status&&this.status<=299;var s="statusText"in t?String(t.statusText):"OK";if(/[^\x00-\xFF]/.test(s))throw TypeError();this.statusText=s,"headers"in t&&d(this.headers,t),this.type="basic"}function _(e,t){return new Promise(function(r,n){var i=new g(e,t),o=new XMLHttpRequest,s=!0;o._url=i.url;try{o.open(i.method,i.url,s)}catch(a){throw TypeError(a.message)}for(var u=i.headers[Symbol.iterator](),c=u.next();!c.done;c=u.next())o.setRequestHeader(c.value[0],c.value[1]);"include"===i.credentials&&(o.withCredentials=!0),o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&(0===o.status?n(new TypeError("Network error")):r(new b(o)))},o.send(i._stream)})}f.prototype={append:function(e,r){if(e=t(e),!a(e)||!u(r))throw TypeError();if("immutable"===this._guard)throw TypeError();"request"===this._guard&&c(e)||("request-no-CORS"!==this._guard||h(e,r))&&("response"===this._guard&&l(e)||(e=e.toLowerCase(),this._headerList.push([e,r])))},"delete":function(e){if(e=t(e),!a(e))throw TypeError();if("immutable"===this._guard)throw TypeError();if(("request"!==this._guard||!c(e))&&("request-no-CORS"!==this._guard||h(e,"invalid"))&&("response"!==this._guard||!l(e))){e=e.toLowerCase();for(var r=0;r=this._headers._headerList.length?{value:void 0,done:!0}:{value:this._headers._headerList[this._index++],done:!1}},p.prototype[Symbol.iterator]=function(){return this},m.prototype={arrayBuffer:function(){if(this.bodyUsed)return Promise.reject(TypeError());if(this.bodyUsed=!0,this._stream instanceof ArrayBuffer)return Promise.resolve(this._stream);var e=this._stream;return new Promise(function(t,r){var n=unescape(encodeURIComponent(e)).split("").map(function(e){return e.charCodeAt(0)});t(new Uint8Array(n).buffer)})},blob:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof Blob?Promise.resolve(this._stream):Promise.resolve(new Blob([this._stream])))},formData:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof FormData?Promise.resolve(this._stream):Promise.reject(Error("Not yet implemented")))},json:function(){if(this.bodyUsed)return Promise.reject(TypeError());this.bodyUsed=!0;var e=this;return new Promise(function(t,r){t(JSON.parse(e._stream))})},text:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,Promise.resolve(String(this._stream)))}},g.prototype=m.prototype,b.prototype=m.prototype,b.redirect=function(){throw Error("Not supported")},"fetch"in e||(e.Headers=f,e.Request=g,e.Response=b,e.fetch=_)}(self);