Build 589089stable
Module 89738
2,656 characters · in 514.d733764d42c2ab66.jsDependencies
Source Raw
function(e,t,n){e=n.nmd(e),function(r){var i=t&&!t.nodeType&&t,a=e&&!e.nodeType&&e,o="object"==typeof n.g&&n.g;(o.global===o||o.window===o||o.self===o)&&(r=o);var s,l,u=/^xn--/,c=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function m(e){throw RangeError(f[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(d,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],i=0,a=e.length;i<a;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<a?(64512&(n=e.charCodeAt(i++)))==56320?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function b(e){return g(e,function(e){var t="";return e>65535&&(e-=65536,t+=h(e>>>10&1023|55296),e=56320|1023&e),t+=h(e)}).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=36)e=p(e/35);return p(r+36*e/(e+38))}function x(e){var t,n,r,i,a,o,s,l,u,c,d,f=[],h=e.length,g=0,v=128,y=72;for((r=e.lastIndexOf("-"))<0&&(r=0),i=0;i<r;++i)e.charCodeAt(i)>=128&&m("not-basic"),f.push(e.charCodeAt(i));for(a=r>0?r+1:0;a<h;){for(o=g,s=1,l=36;a>=h&&m("invalid-input"),((u=(t=e.charCodeAt(a++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36)>=36||u>p((0x7fffffff-g)/s))&&m("overflow"),g+=u*s,!(u<(c=l<=y?1:l>=y+26?26:l-y));l+=36){;s>p(0x7fffffff/(d=36-c))&&m("overflow"),s*=d}y=w(g-o,n=f.length+1,0==o),p(g/n)>0x7fffffff-v&&m("overflow"),v+=p(g/n),g%=n,f.splice(g++,0,v)}return b(f)}function E(e){var t,n,r,i,a,o,s,l,u,c,d,f,g,v,b,x=[];for(o=0,f=(e=y(e)).length,t=128,n=0,a=72;o<f;++o)(d=e[o])<128&&x.push(h(d));for(r=i=x.length,i&&x.push("-");r<f;){for(s=0x7fffffff,o=0;o<f;++o)(d=e[o])>=t&&d<s&&(s=d);for(s-t>p((0x7fffffff-n)/(g=r+1))&&m("overflow"),n+=(s-t)*g,t=s,o=0;o<f;++o)if((d=e[o])<t&&++n>0x7fffffff&&m("overflow"),d==t){for(l=n,u=36;!(l<(c=u<=a?1:u>=a+26?26:u-a));u+=36)b=l-c,v=36-c,x.push(h(_(c+b%v,0))),l=p(b/v);x.push(h(_(l,0))),a=w(n,g,r==i),n=0,++r}++n,++t}return x.join("")}if(s={version:"1.4.1",ucs2:{decode:y,encode:b},decode:x,encode:E,toASCII:function(e){return v(e,function(e){return c.test(e)?"xn--"+E(e):e})},toUnicode:function(e){return v(e,function(e){return u.test(e)?x(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return s});else if(i&&a)if(e.exports==i)a.exports=s;else for(l in s)s.hasOwnProperty(l)&&(i[l]=s[l]);else r.punycode=s}(this)}