33 lines
16 KiB
JavaScript
33 lines
16 KiB
JavaScript
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[1],{455:function(ia,ba,e){(function(ea){function x(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,Goa:function(){return 42}};return"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(ua){return!1}}function ha(e,f){if((ca.$e?2147483647:1073741823)<f)throw new RangeError("Invalid typed array length");ca.$e?(e=new Uint8Array(f),e.__proto__=ca.prototype):(null===e&&(e=new ca(f)),e.length=f);
|
|
return e}function ca(e,f,h){if(!(ca.$e||this instanceof ca))return new ca(e,f,h);if("number"===typeof e){if("string"===typeof f)throw Error("If encoding is specified then the first argument must be a string");return w(this,e)}return da(this,e,f,h)}function da(e,h,r,w){if("number"===typeof h)throw new TypeError('"value" argument must not be a number');if("undefined"!==typeof ArrayBuffer&&h instanceof ArrayBuffer){h.byteLength;if(0>r||h.byteLength<r)throw new RangeError("'offset' is out of bounds");
|
|
if(h.byteLength<r+(w||0))throw new RangeError("'length' is out of bounds");h=void 0===r&&void 0===w?new Uint8Array(h):void 0===w?new Uint8Array(h,r):new Uint8Array(h,r,w);ca.$e?(e=h,e.__proto__=ca.prototype):e=y(e,h);h=e}else if("string"===typeof h){w=e;e=r;if("string"!==typeof e||""===e)e="utf8";if(!ca.UU(e))throw new TypeError('"encoding" must be a valid string encoding');r=f(h,e)|0;w=ha(w,r);h=w.write(h,e);h!==r&&(w=w.slice(0,h));h=w}else h=n(e,h);return h}function aa(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');
|
|
if(0>e)throw new RangeError('"size" argument must not be negative');}function w(e,f){aa(f);e=ha(e,0>f?0:h(f)|0);if(!ca.$e)for(var n=0;n<f;++n)e[n]=0;return e}function y(e,f){var n=0>f.length?0:h(f.length)|0;e=ha(e,n);for(var r=0;r<n;r+=1)e[r]=f[r]&255;return e}function n(e,f){if(ca.isBuffer(f)){var n=h(f.length)|0;e=ha(e,n);if(0===e.length)return e;f.copy(e,0,0,n);return e}if(f){if("undefined"!==typeof ArrayBuffer&&f.buffer instanceof ArrayBuffer||"length"in f)return(n="number"!==typeof f.length)||
|
|
(n=f.length,n=n!==n),n?ha(e,0):y(e,f);if("Buffer"===f.type&&Da(f.data))return y(e,f.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");}function h(e){if(e>=(ca.$e?2147483647:1073741823))throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+(ca.$e?2147483647:1073741823).toString(16)+" bytes");return e|0}function f(e,f){if(ca.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&
|
|
(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var h=e.length;if(0===h)return 0;for(var n=!1;;)switch(f){case "ascii":case "latin1":case "binary":return h;case "utf8":case "utf-8":case void 0:return la(e).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*h;case "hex":return h>>>1;case "base64":return sa.OZ(ma(e)).length;default:if(n)return la(e).length;f=(""+f).toLowerCase();n=!0}}function r(e,f,h){var n=!1;if(void 0===f||
|
|
0>f)f=0;if(f>this.length)return"";if(void 0===h||h>this.length)h=this.length;if(0>=h)return"";h>>>=0;f>>>=0;if(h<=f)return"";for(e||(e="utf8");;)switch(e){case "hex":e=f;f=h;h=this.length;if(!e||0>e)e=0;if(!f||0>f||f>h)f=h;n="";for(h=e;h<f;++h)e=n,n=this[h],n=16>n?"0"+n.toString(16):n.toString(16),n=e+n;return n;case "utf8":case "utf-8":return ia(this,f,h);case "ascii":e="";for(h=Math.min(this.length,h);f<h;++f)e+=String.fromCharCode(this[f]&127);return e;case "latin1":case "binary":e="";for(h=Math.min(this.length,
|
|
h);f<h;++f)e+=String.fromCharCode(this[f]);return e;case "base64":return 0===f&&h===this.length?sa.PS(this):sa.PS(this.slice(f,h));case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":f=this.slice(f,h);h="";for(e=0;e<f.length;e+=2)h+=String.fromCharCode(f[e]+256*f[e+1]);return h;default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();n=!0}}function z(e,f,h,n,r){if(0===e.length)return-1;"string"===typeof h?(n=h,h=0):2147483647<h?h=2147483647:-2147483648>h&&(h=-2147483648);
|
|
h=+h;isNaN(h)&&(h=r?0:e.length-1);0>h&&(h=e.length+h);if(h>=e.length){if(r)return-1;h=e.length-1}else if(0>h)if(r)h=0;else return-1;"string"===typeof f&&(f=ca.from(f,n));if(ca.isBuffer(f))return 0===f.length?-1:fa(e,f,h,n,r);if("number"===typeof f)return f&=255,ca.$e&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,f,h):Uint8Array.prototype.lastIndexOf.call(e,f,h):fa(e,[f],h,n,r);throw new TypeError("val must be string, number or Buffer");}function fa(e,f,h,
|
|
n,r){function w(e,f){return 1===x?e[f]:e.Vx(f*x)}var x=1,z=e.length,y=f.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(2>e.length||2>f.length)return-1;x=2;z/=2;y/=2;h/=2}if(r)for(n=-1;h<z;h++)if(w(e,h)===w(f,-1===n?0:h-n)){if(-1===n&&(n=h),h-n+1===y)return n*x}else-1!==n&&(h-=h-n),n=-1;else for(h+y>z&&(h=z-y);0<=h;h--){z=!0;for(n=0;n<y;n++)if(w(e,h+n)!==w(f,n)){z=!1;break}if(z)return h}return-1}function ia(e,f,h){h=Math.min(e.length,h);
|
|
for(var n=[];f<h;){var r=e[f],w=null,x=239<r?4:223<r?3:191<r?2:1;if(f+x<=h)switch(x){case 1:128>r&&(w=r);break;case 2:var z=e[f+1];128===(z&192)&&(r=(r&31)<<6|z&63,127<r&&(w=r));break;case 3:z=e[f+1];var y=e[f+2];128===(z&192)&&128===(y&192)&&(r=(r&15)<<12|(z&63)<<6|y&63,2047<r&&(55296>r||57343<r)&&(w=r));break;case 4:z=e[f+1];y=e[f+2];var aa=e[f+3];128===(z&192)&&128===(y&192)&&128===(aa&192)&&(r=(r&15)<<18|(z&63)<<12|(y&63)<<6|aa&63,65535<r&&1114112>r&&(w=r))}null===w?(w=65533,x=1):65535<w&&(w-=
|
|
65536,n.push(w>>>10&1023|55296),w=56320|w&1023);n.push(w);f+=x}e=n.length;if(e<=qa)n=String.fromCharCode.apply(String,n);else{h="";for(f=0;f<e;)h+=String.fromCharCode.apply(String,n.slice(f,f+=qa));n=h}return n}function ja(e,f,h){if(0!==e%1||0>e)throw new RangeError("offset is not uint");if(e+f>h)throw new RangeError("Trying to access beyond buffer length");}function pa(e,f,h,n,r,w){if(!ca.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>r||f<w)throw new RangeError('"value" argument is out of bounds');
|
|
if(h+n>e.length)throw new RangeError("Index out of range");}function ma(e){e=(e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(va,"");if(2>e.length)return"";for(;0!==e.length%4;)e+="=";return e}function la(e,f){f=f||Infinity;for(var h,n=e.length,r=null,w=[],x=0;x<n;++x){h=e.charCodeAt(x);if(55295<h&&57344>h){if(!r){if(56319<h){-1<(f-=3)&&w.push(239,191,189);continue}else if(x+1===n){-1<(f-=3)&&w.push(239,191,189);continue}r=h;continue}if(56320>h){-1<(f-=3)&&w.push(239,191,189);r=h;continue}h=(r-
|
|
55296<<10|h-56320)+65536}else r&&-1<(f-=3)&&w.push(239,191,189);r=null;if(128>h){if(0>--f)break;w.push(h)}else if(2048>h){if(0>(f-=2))break;w.push(h>>6|192,h&63|128)}else if(65536>h){if(0>(f-=3))break;w.push(h>>12|224,h>>6&63|128,h&63|128)}else if(1114112>h){if(0>(f-=4))break;w.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw Error("Invalid code point");}return w}function na(e){for(var f=[],h=0;h<e.length;++h)f.push(e.charCodeAt(h)&255);return f}function ra(e,f,h,n){for(var r=0;r<n&&!(r+
|
|
h>=f.length||r>=e.length);++r)f[r+h]=e[r];return r}var sa=e(464);e(465);var Da=e(466);ba.Buffer=ca;ba.Mma=function(e){+e!=e&&(e=0);return ca.FQ(+e)};ba.u0=50;ca.$e=void 0!==ea.$e?ea.$e:x();ba.ppa=ca.$e?2147483647:1073741823;ca.Qpa=8192;ca.qna=function(e){e.__proto__=ca.prototype;return e};ca.from=function(e,f,h){return da(null,e,f,h)};ca.$e&&(ca.prototype.__proto__=Uint8Array.prototype,ca.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.sZ&&ca[Symbol.sZ]===ca&&Object.defineProperty(ca,Symbol.sZ,
|
|
{value:null,configurable:!0}));ca.FQ=function(e){aa(e);return ha(null,e)};ca.allocUnsafe=function(e){return w(null,e)};ca.Fna=function(e){return w(null,e)};ca.isBuffer=function(e){return!(null==e||!e.s3)};ca.compare=function(e,f){if(!ca.isBuffer(e)||!ca.isBuffer(f))throw new TypeError("Arguments must be Buffers");if(e===f)return 0;for(var h=e.length,n=f.length,r=0,w=Math.min(h,n);r<w;++r)if(e[r]!==f[r]){h=e[r];n=f[r];break}return h<n?-1:n<h?1:0};ca.UU=function(e){switch(String(e).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "latin1":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;
|
|
default:return!1}};ca.concat=function(e,f){if(!Da(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ca.FQ(0);var h;if(void 0===f)for(h=f=0;h<e.length;++h)f+=e[h].length;f=ca.allocUnsafe(f);var n=0;for(h=0;h<e.length;++h){var r=e[h];if(!ca.isBuffer(r))throw new TypeError('"list" argument must be an Array of Buffers');r.copy(f,n);n+=r.length}return f};ca.byteLength=f;ca.prototype.s3=!0;ca.prototype.toString=function(){var e=this.length|0;return 0===e?"":0===
|
|
arguments.length?ia(this,0,e):r.apply(this,arguments)};ca.prototype.vs=function(e){if(!ca.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===ca.compare(this,e)};ca.prototype.inspect=function(){var e="",f=ba.u0;0<this.length&&(e=this.toString("hex",0,f).match(/.{2}/g).join(" "),this.length>f&&(e+=" ... "));return"<Buffer "+e+">"};ca.prototype.compare=function(e,f,h,n,r){if(!ca.isBuffer(e))throw new TypeError("Argument must be a Buffer");void 0===f&&(f=0);void 0===h&&
|
|
(h=e?e.length:0);void 0===n&&(n=0);void 0===r&&(r=this.length);if(0>f||h>e.length||0>n||r>this.length)throw new RangeError("out of range index");if(n>=r&&f>=h)return 0;if(n>=r)return-1;if(f>=h)return 1;f>>>=0;h>>>=0;n>>>=0;r>>>=0;if(this===e)return 0;var w=r-n,x=h-f,z=Math.min(w,x);n=this.slice(n,r);e=e.slice(f,h);for(f=0;f<z;++f)if(n[f]!==e[f]){w=n[f];x=e[f];break}return w<x?-1:x<w?1:0};ca.prototype.includes=function(e,f,h){return-1!==this.indexOf(e,f,h)};ca.prototype.indexOf=function(e,f,h){return z(this,
|
|
e,f,h,!0)};ca.prototype.lastIndexOf=function(e,f,h){return z(this,e,f,h,!1)};ca.prototype.write=function(e,f,h,n){if(void 0===f)n="utf8",h=this.length,f=0;else if(void 0===h&&"string"===typeof f)n=f,h=this.length,f=0;else if(isFinite(f))f|=0,isFinite(h)?(h|=0,void 0===n&&(n="utf8")):(n=h,h=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var r=this.length-f;if(void 0===h||h>r)h=r;if(0<e.length&&(0>h||0>f)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");
|
|
n||(n="utf8");for(r=!1;;)switch(n){case "hex":f=Number(f)||0;n=this.length-f;h?(h=Number(h),h>n&&(h=n)):h=n;n=e.length;if(0!==n%2)throw new TypeError("Invalid hex string");h>n/2&&(h=n/2);for(n=0;n<h;++n){r=parseInt(e.substr(2*n,2),16);if(isNaN(r))break;this[f+n]=r}return n;case "utf8":case "utf-8":return ra(la(e,this.length-f),this,f,h);case "ascii":return ra(na(e),this,f,h);case "latin1":case "binary":return ra(na(e),this,f,h);case "base64":return ra(sa.OZ(ma(e)),this,f,h);case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":n=
|
|
e;r=this.length-f;for(var w=[],x=0;x<n.length&&!(0>(r-=2));++x){var z=n.charCodeAt(x);e=z>>8;z%=256;w.push(z);w.push(e)}return ra(w,this,f,h);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase();r=!0}};ca.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.pna||this,0)}};var qa=4096;ca.prototype.slice=function(e,f){var h=this.length;e=~~e;f=void 0===f?h:~~f;0>e?(e+=h,0>e&&(e=0)):e>h&&(e=h);0>f?(f+=h,0>f&&(f=0)):f>h&&(f=h);f<e&&(f=e);if(ca.$e)f=
|
|
this.subarray(e,f),f.__proto__=ca.prototype;else{h=f-e;f=new ca(h,void 0);for(var n=0;n<h;++n)f[n]=this[n+e]}return f};ca.prototype.wL=function(e){ja(e,1,this.length);return this[e]};ca.prototype.Vx=function(e){ja(e,2,this.length);return this[e]<<8|this[e+1]};ca.prototype.rma=function(e,f){e=+e;f|=0;pa(this,e,f,1,255,0);ca.$e||(e=Math.floor(e));this[f]=e&255;return f+1};ca.prototype.qma=function(e,f){e=+e;f|=0;pa(this,e,f,4,4294967295,0);if(ca.$e)this[f]=e>>>24,this[f+1]=e>>>16,this[f+2]=e>>>8,this[f+
|
|
3]=e&255;else{var h=f;0>e&&(e=4294967295+e+1);for(var n=0,r=Math.min(this.length-h,4);n<r;++n)this[h+n]=e>>>8*(3-n)&255}return f+4};ca.prototype.copy=function(e,f,h,n){h||(h=0);n||0===n||(n=this.length);f>=e.length&&(f=e.length);f||(f=0);0<n&&n<h&&(n=h);if(n===h||0===e.length||0===this.length)return 0;if(0>f)throw new RangeError("targetStart out of bounds");if(0>h||h>=this.length)throw new RangeError("sourceStart out of bounds");if(0>n)throw new RangeError("sourceEnd out of bounds");n>this.length&&
|
|
(n=this.length);e.length-f<n-h&&(n=e.length-f+h);var r=n-h;if(this===e&&h<f&&f<n)for(n=r-1;0<=n;--n)e[n+f]=this[n+h];else if(1E3>r||!ca.$e)for(n=0;n<r;++n)e[n+f]=this[n+h];else Uint8Array.prototype.set.call(e,this.subarray(h,h+r),f);return r};ca.prototype.fill=function(e,f,h,n){if("string"===typeof e){"string"===typeof f?(n=f,f=0,h=this.length):"string"===typeof h&&(n=h,h=this.length);if(1===e.length){var r=e.charCodeAt(0);256>r&&(e=r)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");
|
|
if("string"===typeof n&&!ca.UU(n))throw new TypeError("Unknown encoding: "+n);}else"number"===typeof e&&(e&=255);if(0>f||this.length<f||this.length<h)throw new RangeError("Out of range index");if(h<=f)return this;f>>>=0;h=void 0===h?this.length:h>>>0;e||(e=0);if("number"===typeof e)for(n=f;n<h;++n)this[n]=e;else for(e=ca.isBuffer(e)?e:la((new ca(e,n)).toString()),r=e.length,n=0;n<h-f;++n)this[n+f]=e[n%r];return this};var va=/[^+\/0-9A-Za-z-_]/g}).call(this,e(178))},464:function(ia,ba){function e(e){var x=
|
|
e.length;if(0<x%4)throw Error("Invalid string. Length must be a multiple of 4");e=e.indexOf("=");-1===e&&(e=x);return[e,e===x?0:4-e%4]}function ea(e,aa,w){for(var y=[],n=aa;n<w;n+=3)aa=(e[n]<<16&16711680)+(e[n+1]<<8&65280)+(e[n+2]&255),y.push(x[aa>>18&63]+x[aa>>12&63]+x[aa>>6&63]+x[aa&63]);return y.join("")}ba.byteLength=function(x){x=e(x);var aa=x[1];return 3*(x[0]+aa)/4-aa};ba.OZ=function(x){var aa=e(x);var w=aa[0];aa=aa[1];var y=new ca(3*(w+aa)/4-aa),n=0,h=0<aa?w-4:w,f;for(f=0;f<h;f+=4)w=ha[x.charCodeAt(f)]<<
|
|
18|ha[x.charCodeAt(f+1)]<<12|ha[x.charCodeAt(f+2)]<<6|ha[x.charCodeAt(f+3)],y[n++]=w>>16&255,y[n++]=w>>8&255,y[n++]=w&255;2===aa&&(w=ha[x.charCodeAt(f)]<<2|ha[x.charCodeAt(f+1)]>>4,y[n++]=w&255);1===aa&&(w=ha[x.charCodeAt(f)]<<10|ha[x.charCodeAt(f+1)]<<4|ha[x.charCodeAt(f+2)]>>2,y[n++]=w>>8&255,y[n++]=w&255);return y};ba.PS=function(e){for(var aa=e.length,w=aa%3,y=[],n=0,h=aa-w;n<h;n+=16383)y.push(ea(e,n,n+16383>h?h:n+16383));1===w?(e=e[aa-1],y.push(x[e>>2]+x[e<<4&63]+"==")):2===w&&(e=(e[aa-2]<<8)+
|
|
e[aa-1],y.push(x[e>>10]+x[e>>4&63]+x[e<<2&63]+"="));return y.join("")};var x=[],ha=[],ca="undefined"!==typeof Uint8Array?Uint8Array:Array;for(ia=0;64>ia;++ia)x[ia]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[ia],ha["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(ia)]=ia;ha[45]=62;ha[95]=63},465:function(ia,ba){ba.read=function(e,ba,x,ha,ca){var da=8*ca-ha-1;var aa=(1<<da)-1,w=aa>>1,y=-7;ca=x?ca-1:0;var n=x?-1:1,h=e[ba+ca];ca+=n;x=h&(1<<-y)-1;h>>=
|
|
-y;for(y+=da;0<y;x=256*x+e[ba+ca],ca+=n,y-=8);da=x&(1<<-y)-1;x>>=-y;for(y+=ha;0<y;da=256*da+e[ba+ca],ca+=n,y-=8);if(0===x)x=1-w;else{if(x===aa)return da?NaN:Infinity*(h?-1:1);da+=Math.pow(2,ha);x-=w}return(h?-1:1)*da*Math.pow(2,x-ha)};ba.write=function(e,ba,x,ha,ca,da){var aa,w=8*da-ca-1,y=(1<<w)-1,n=y>>1,h=23===ca?Math.pow(2,-24)-Math.pow(2,-77):0;da=ha?0:da-1;var f=ha?1:-1,r=0>ba||0===ba&&0>1/ba?1:0;ba=Math.abs(ba);isNaN(ba)||Infinity===ba?(ba=isNaN(ba)?1:0,ha=y):(ha=Math.floor(Math.log(ba)/Math.LN2),
|
|
1>ba*(aa=Math.pow(2,-ha))&&(ha--,aa*=2),ba=1<=ha+n?ba+h/aa:ba+h*Math.pow(2,1-n),2<=ba*aa&&(ha++,aa/=2),ha+n>=y?(ba=0,ha=y):1<=ha+n?(ba=(ba*aa-1)*Math.pow(2,ca),ha+=n):(ba=ba*Math.pow(2,n-1)*Math.pow(2,ca),ha=0));for(;8<=ca;e[x+da]=ba&255,da+=f,ba/=256,ca-=8);ha=ha<<ca|ba;for(w+=ca;0<w;e[x+da]=ha&255,da+=f,ha/=256,w-=8);e[x+da-f]|=128*r}},466:function(ia){var ba={}.toString;ia.exports=Array.isArray||function(e){return"[object Array]"==ba.call(e)}}}]);}).call(this || window)
|