Files

1 line
6.2 KiB
JavaScript

!function(r){function t(e){if(n[e])return n[e].exports;var o=n[e]={exports:{},id:e,loaded:!1};return r[e].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=r,t.c=n,t.p="",t(0)}([function(r,t,n){"use strict";function e(r){try{return u(r)}catch(t){}}var o,u=n(1).toByteArray,a=n(2).Base64.decode,c=n(3);if(self.TextDecoder)try{o=new self.TextDecoder("GB18030")}catch(i){}self.getText=function(r){var t=r&&e(r);if(!t)return"";if(!c(t))try{if(o)return o.decode(t)}catch(n){}try{return a(r)}catch(n){}return""}},function(r,t){"use strict";function n(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=r.indexOf("=");-1===n&&(n=t);var e=n===t?0:4-n%4;return[n,e]}function e(r){var t=n(r),e=t[0],o=t[1];return 3*(e+o)/4-o}function o(r,t,n){return 3*(t+n)/4-n}function u(r){var t,e,u=n(r),a=u[0],c=u[1],i=new d(o(r,a,c)),f=0,s=c>0?a-4:a;for(e=0;s>e;e+=4)t=h[r.charCodeAt(e)]<<18|h[r.charCodeAt(e+1)]<<12|h[r.charCodeAt(e+2)]<<6|h[r.charCodeAt(e+3)],i[f++]=t>>16&255,i[f++]=t>>8&255,i[f++]=255&t;return 2===c&&(t=h[r.charCodeAt(e)]<<2|h[r.charCodeAt(e+1)]>>4,i[f++]=255&t),1===c&&(t=h[r.charCodeAt(e)]<<10|h[r.charCodeAt(e+1)]<<4|h[r.charCodeAt(e+2)]>>2,i[f++]=t>>8&255,i[f++]=255&t),i}function a(r){return f[r>>18&63]+f[r>>12&63]+f[r>>6&63]+f[63&r]}function c(r,t,n){for(var e,o=[],u=t;n>u;u+=3)e=(r[u]<<16&16711680)+(r[u+1]<<8&65280)+(255&r[u+2]),o.push(a(e));return o.join("")}function i(r){for(var t,n=r.length,e=n%3,o=[],u=16383,a=0,i=n-e;i>a;a+=u)o.push(c(r,a,a+u>i?i:a+u));return 1===e?(t=r[n-1],o.push(f[t>>2]+f[t<<4&63]+"==")):2===e&&(t=(r[n-2]<<8)+r[n-1],o.push(f[t>>10]+f[t>>4&63]+f[t<<2&63]+"=")),o.join("")}t.byteLength=e,t.toByteArray=u,t.fromByteArray=i;for(var f=[],h=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=0,p=s.length;p>A;++A)f[A]=s[A],h[s.charCodeAt(A)]=A;h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63},function(r,t,n){var e,o;(function(n){!function(t,n){r.exports=n(t)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof n?n:this,function(n){"use strict";n=n||{};var u,a=n.Base64,c="2.6.4",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=function(r){for(var t={},n=0,e=r.length;e>n;n++)t[r.charAt(n)]=n;return t}(i),h=String.fromCharCode,d=function(r){if(r.length<2){var t=r.charCodeAt(0);return 128>t?r:2048>t?h(192|t>>>6)+h(128|63&t):h(224|t>>>12&15)+h(128|t>>>6&63)+h(128|63&t)}var t=65536+1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320);return h(240|t>>>18&7)+h(128|t>>>12&63)+h(128|t>>>6&63)+h(128|63&t)},s=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,A=function(r){return r.replace(s,d)},p=function(r){var t=[0,2,1][r.length%3],n=r.charCodeAt(0)<<16|(r.length>1?r.charCodeAt(1):0)<<8|(r.length>2?r.charCodeAt(2):0),e=[i.charAt(n>>>18),i.charAt(n>>>12&63),t>=2?"=":i.charAt(n>>>6&63),t>=1?"=":i.charAt(63&n)];return e.join("")},l=n.btoa&&"function"==typeof n.btoa?function(r){return n.btoa(r)}:function(r){if(r.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return r.replace(/[\s\S]{1,3}/g,p)},g=function(r){return l(A(String(r)))},y=function(r){return r.replace(/[+\/]/g,function(r){return"+"==r?"-":"_"}).replace(/=/g,"")},v=function(r,t){return t?y(g(r)):g(r)},C=function(r){return v(r,!0)};n.Uint8Array&&(u=function(r,t){for(var n="",e=0,o=r.length;o>e;e+=3){var u=r[e],a=r[e+1],c=r[e+2],f=u<<16|a<<8|c;n+=i.charAt(f>>>18)+i.charAt(f>>>12&63)+("undefined"!=typeof a?i.charAt(f>>>6&63):"=")+("undefined"!=typeof c?i.charAt(63&f):"=")}return t?y(n):n});var x,B=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(r){switch(r.length){case 4:var t=(7&r.charCodeAt(0))<<18|(63&r.charCodeAt(1))<<12|(63&r.charCodeAt(2))<<6|63&r.charCodeAt(3),n=t-65536;return h((n>>>10)+55296)+h((1023&n)+56320);case 3:return h((15&r.charCodeAt(0))<<12|(63&r.charCodeAt(1))<<6|63&r.charCodeAt(2));default:return h((31&r.charCodeAt(0))<<6|63&r.charCodeAt(1))}},F=function(r){return r.replace(B,b)},m=function(r){var t=r.length,n=t%4,e=(t>0?f[r.charAt(0)]<<18:0)|(t>1?f[r.charAt(1)]<<12:0)|(t>2?f[r.charAt(2)]<<6:0)|(t>3?f[r.charAt(3)]:0),o=[h(e>>>16),h(e>>>8&255),h(255&e)];return o.length-=[0,0,2,1][n],o.join("")},w=n.atob&&"function"==typeof n.atob?function(r){return n.atob(r)}:function(r){return r.replace(/\S{1,4}/g,m)},S=function(r){return w(String(r).replace(/[^A-Za-z0-9\+\/]/g,""))},U=function(r){return F(w(r))},j=function(r){return String(r).replace(/[-_]/g,function(r){return"-"==r?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},D=function(r){return U(j(r))};n.Uint8Array&&(x=function(r){return Uint8Array.from(S(j(r)),function(r){return r.charCodeAt(0)})});var O=function(){var r=n.Base64;return n.Base64=a,r};if(n.Base64={VERSION:c,atob:S,btoa:l,fromBase64:D,toBase64:v,utob:A,encode:v,encodeURI:C,btou:F,decode:D,noConflict:O,fromUint8Array:u,toUint8Array:x},"function"==typeof Object.defineProperty){var E=function(r){return{value:r,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",E(function(){return D(this)})),Object.defineProperty(String.prototype,"toBase64",E(function(r){return v(this,r)})),Object.defineProperty(String.prototype,"toBase64URI",E(function(){return v(this,!0)}))}}return n.Meteor&&(Base64=n.Base64),"undefined"!=typeof r&&r.exports?r.exports.Base64=n.Base64:(e=[],o=function(){return n.Base64}.apply(t,e),!(void 0!==o&&(r.exports=o))),{Base64:n.Base64}})}).call(t,function(){return this}())},function(r,t){"use strict";function n(r,t){t=t||0;for(var n=Math.min(r.length,e);n>t;t++){var o=r[t];if(!(9==o||10==o||13==o||o>=32&&127>=o)){++t;var u=r[t];if(o>=194&&223>=o){if(u>=128&&191>=u)continue;return!u}++t;var a=r[t];if(224==o){if(u>=160&&191>=u&&a>=128&&191>=a)continue;return!a}if(o>=225&&236>=o||238==o||239==o){if(u>=128&&191>=u&&a>=128&&191>=a)continue;return!a}if(237==o){if(u>=128&&159>=u&&a>=128&&191>=a)continue;return!a}++t;var c=r[t];if(240==o){if(u>=144&&191>=u&&a>=128&&191>=a&&c>=128&&191>=c)continue;return!c}if(o>=241&&243>=o){if(u>=128&&191>=u&&a>=128&&191>=a&&c>=128&&191>=c)continue;return!c}if(244==o){if(u>=128&&143>=u&&a>=128&&191>=a&&c>=128&&191>=c)continue;return!c}return!1}}return!0}var e=32768;r.exports=function(r){return n(r)?!0:0===r[0]&&n(r,5)}}]);