All Downloads are FREE. Search and download functionalities are using the official Maven repository.

polyfills.Symbol.min.js Maven / Gradle / Ivy

The newest version!
!function(e,n){if(!(n in e)){var t,r=typeof global==typeof r?window:global,l=0,o=""+Math.random(),u="__symbol:",a=u.length,i="__symbol@@"+o,c="defineProperty",f="defineProperties",s="getOwnPropertyNames",v="getOwnPropertyDescriptor",b="propertyIsEnumerable",h=e[s],y=e[v],g=e.create,m=e.keys,p=e.freeze||e,w=e[c],S=e[f],d=y(e,s),E=e.prototype,P=E.hasOwnProperty,O=E[b],_=E.toString,j=function(e,n,t){P.call(e,i)||w(e,i,{enumerable:!1,configurable:!1,writable:!1,value:{}}),e[i]["@@"+n]=t},k=function(e,n){var t=g(e);return h(n).forEach(function(e){F.call(n,e)&&B(t,e,n[e])}),t},I=function(e){var n=g(e);return n.enumerable=!1,n},T=function(){},z=function(e){return e!=i&&!P.call(q,e)},D=function(e){return e!=i&&P.call(q,e)},F=function(e){var n=""+e;return D(n)?P.call(this,n)&&this[i]["@@"+n]:O.call(this,e)},M=function(n){return w(E,n,{enumerable:!1,configurable:!0,get:T,set:function(e){t(this,n,{enumerable:!1,configurable:!0,writable:!0,value:e}),j(this,n,!0)}}),p(q[n]=w(e(n),"constructor",x))},N=function(e){if(this&&this!==r)throw new TypeError("Symbol is not a constructor");return M(u.concat(e||"",o,++l))},q=g(null),x={value:N},A=function(e){return q[e]},B=function(e,n,r){var l=""+n;return D(l)?(t(e,l,r.enumerable?I(r):r),j(e,l,!!r.enumerable)):w(e,n,r),e},C=function(e){return h(e).filter(D).map(A)};d.value=B,w(e,c,d),d.value=C,w(e,n,d),d.value=function(e){return h(e).filter(z)},w(e,s,d),d.value=function(e,n){var t=C(n);return t.length?m(n).concat(t).forEach(function(t){F.call(n,t)&&B(e,t,n[t])}):S(e,n),e},w(e,f,d),d.value=F,w(E,b,d),d.value=N,w(r,"Symbol",d),d.value=function(e){var n=u.concat(u,e,o);return n in E?q[n]:M(n)},w(N,"for",d),d.value=function(e){if(z(e))throw new TypeError(e+" is not a symbol");if(P.call(q,e)){var n=e.slice(a);if(n.slice(0,a)===u&&(n=n.slice(a))!==o)return n=n.slice(0,n.length-o.length),n.length>0?n:void 0}},w(N,"keyFor",d),d.value=function(e,n){var t=y(e,n);return t&&D(n)&&(t.enumerable=F.call(e,n)),t},w(e,v,d),d.value=function(e,n){return 1===arguments.length?g(e):k(e,n)},w(e,"create",d),d.value=function(){var e=_.call(this);return"[object String]"===e&&D(this)?"[object Symbol]":e},w(E,"toString",d);try{if(!0!==g(w({},u,{get:function(){return w(this,u,{value:!0})[u]}}))[u])throw"IE11";t=w}catch(G){t=function(e,n,t){var r=y(E,n);delete E[n],w(e,n,t),w(E,n,r)}}}}(Object,"getOwnPropertySymbols");




© 2015 - 2024 Weber Informatics LLC | Privacy Policy