import{__exports as r}from"../../../_virtual/es.unescape.mjs";import{__require as e}from"../internals/export.mjs";import{__require as i}from"../internals/function-uncurry-this.mjs";import{__require as n}from"../internals/to-string.mjs";var t;function s(){if(t)return r;t=1;var s=e(),a=i(),o=n(),u=String.fromCharCode,f=a("".charAt),m=a(/./.exec),c=a("".slice),p=/^[\da-f]{2}$/i,_=/^[\da-f]{4}$/i;return s({global:!0},{unescape:function(r){for(var e,i,n=o(r),t="",s=n.length,a=0;a<s;){if("%"===(e=f(n,a++)))if("u"===f(n,a)){if(i=c(n,a+1,a+5),m(_,i)){t+=u(parseInt(i,16)),a+=5;continue}}else if(i=c(n,a,a+2),m(p,i)){t+=u(parseInt(i,16)),a+=2;continue}t+=e}return t}}),r}export{s as __require};