import{__require as r}from"./function-uncurry-this.mjs";var e,n;function t(){if(n)return e;n=1;var t=r(),o=2147483647,f=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,u="Overflow: input needs wider integers to process",i=RangeError,v=t(a.exec),h=Math.floor,c=String.fromCharCode,l=t("".charCodeAt),s=t([].join),g=t([].push),p=t("".replace),w=t("".split),d=t("".toLowerCase),m=function(r){return r+22+75*(r<26)},C=function(r,e,n){var t=0;for(r=n?h(r/700):r>>1,r+=h(r/e);r>455;)r=h(r/35),t+=36;return h(t+36*r/(r+38))},F=function(r){var e=[];r=function(r){for(var e=[],n=0,t=r.length;n<t;){var o=l(r,n++);if(o>=55296&&o<=56319&&n<t){var f=l(r,n++);56320==(64512&f)?g(e,((1023&o)<<10)+(1023&f)+65536):(g(e,o),n--)}else g(e,o)}return e}(r);var n,t,f=r.length,a=128,v=0,p=72;for(n=0;n<r.length;n++)(t=r[n])<128&&g(e,c(t));var w=e.length,d=w;for(w&&g(e,"-");d<f;){var F=o;for(n=0;n<r.length;n++)(t=r[n])>=a&&t<F&&(F=t);var _=d+1;if(F-a>h((o-v)/_))throw new i(u);for(v+=(F-a)*_,a=F,n=0;n<r.length;n++){if((t=r[n])<a&&++v>o)throw new i(u);if(t===a){for(var x=v,E=36;;){var j=E<=p?1:E>=p+26?26:E-p;if(x<j)break;var q=x-j,b=36-j;g(e,c(m(j+q%b))),x=h(q/b),E+=36}g(e,c(m(x))),p=C(v,_,d===w),v=0,d++}}v++,a++}return s(e,"")};return e=function(r){var e,n,t=[],o=w(p(d(r),a,"."),".");for(e=0;e<o.length;e++)n=o[e],g(t,v(f,n)?"xn--"+F(n):n);return s(t,".")}}export{t as __require};