12 |
- var h=function(h){for(var u=[],r=h.length,p=0;p<r;p++){var s=h.charCodeAt(p);if(s>=55296&&s<=56319&&r>p+1){var a=h.charCodeAt(p+1);a>=56320&&a<=57343&&(s=1024*(s-55296)+a-56320+65536,p+=1)}s<128?u.push(s):s<2048?(u.push(s>>6|192),u.push(63&s|128)):s<55296||s>=57344&&s<65536?(u.push(s>>12|224),u.push(s>>6&63|128),u.push(63&s|128)):s>=65536&&s<=1114111?(u.push(s>>18|240),u.push(s>>12&63|128),u.push(s>>6&63|128),u.push(63&s|128)):u.push(239,191,189)}return new Uint8Array(u).buffer};export{h as e};
|