UNPKG

has-to-string-tag-x

Version:
15 lines 7.44 kB
/*! { "author": "Graham Fairweather", "copywrite": "Copyright (c) 2015-2017", "date": "2019-08-28T16:56:55.700Z", "describe": "", "description": "Tests if ES6 @@toStringTag is supported.", "file": "has-to-string-tag-x.min.js", "hash": "9283422b8e56895009e0", "license": "MIT", "version": "2.1.2" } */ !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.hasToStringTagX=n():t.hasToStringTagX=n()}(function(){"use strict";var t,n={}.constructor,r=n.prototype,e=n.defineProperty,o=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},u=function(){return this};try{return e?e(r,"$$globalThis$$",{get:u,configurable:!0}):r.__defineGetter__("$$globalThis$$",u),t="undefined"==typeof $$globalThis$$?o():$$globalThis$$,delete r.$$globalThis$$,t}catch(t){return o()}}(),function(){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=5)}([function(t,n,r){"use strict";var e=Object.prototype.toString;if(r(2)()){var o=Symbol.prototype.toString,u=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==e.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&u.test(o.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,n,r){"use strict";var e=String.prototype.valueOf,o=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t||"object"==typeof t&&(u?function(t){try{return e.call(t),!0}catch(t){return!1}}(t):"[object String]"===o.call(t))}},function(t,n,r){"use strict";(function(n){var e=n.Symbol,o=r(4);t.exports=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,r(3))},function(t,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},n=Symbol("test"),r=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(n in t[n]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var e=Object.getOwnPropertySymbols(t);if(1!==e.length||e[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,n);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,n,r){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.r(n);var o=function(t){return"object"===e(t)?null===t:"function"!=typeof t},u=r(1),i=r.n(u),f={}.constructor("a"),c="a"===f[0]&&0 in f,l=function(){}.bind,p="function"==typeof l&&function(){var t=null,n=null,r=null,e=[];try{var o=l.apply(function(e,o){return r=this,t=e,n=o,arguments},[e,1]),u=o(2);return 1===o.length&&2===u.length&&1===t&&2===n&&r===e}catch(t){return!1}}()&&function(){var t=null,n=null,r=null,e=[1,2,3],o=function(o,u){return t=o,n=u,r=this,e};try{var u=l.apply(o,[null]),i=new u(1,2);return u.length===o.length&&i===e&&1===t&&2===n&&r!==e}catch(t){return!1}}(),y="".split,a=Math.max,s=o.bind,b=o.call,h=p?s.call(b,y):function(t,n){return y.call(t,n)},g=function(t){return i()(t)?h(t,""):t},d=function(t,n){var r=arguments.length>2?arguments[2]:[];if("string"!=typeof t&&o(t))return r;for(var e=c?t:g(t),u=e.length,i=a(0,n)||0;i<u;i+=1)r[r.length]=t[i];return r};function m(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=[],e=!0,o=!1,u=void 0;try{for(var i,f=t[Symbol.iterator]();!(e=(i=f.next()).done)&&(r.push(i.value),!n||r.length!==n);e=!0);}catch(t){o=!0,u=t}finally{try{e||null==f.return||f.return()}finally{if(o)throw u}}return r}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var v=d.bind,S=d.call,j={},w=j.constructor,O=j.toString,$=function(t,n){return t>=n?t:n},x=function(t){if("function"!=typeof t&&"[object Function]"!==O.apply(t))throw new TypeError("bind called on incompatible "+t)},T=[function(t){return function(){return t.apply(this,d(arguments))}},function(t,n){return function(r){return t.apply(this,d(arguments,n,[r]))}},function(t,n){return function(r,e){return t.apply(this,d(arguments,n,[r,e]))}},function(t,n){return function(r,e,o){return t.apply(this,d(arguments,n,[r,e,o]))}},function(t,n){return function(r,e,o,u){return t.apply(this,d(arguments,n,[r,e,o,u]))}},function(t,n){return function(r,e,o,u,i){return t.apply(this,d(arguments,n,[r,e,o,u,i]))}},function(t,n){return function(r,e,o,u,i,f){return t.apply(this,d(arguments,n,[r,e,o,u,i,f]))}},function(t,n){return function(r,e,o,u,i,f,c){return t.apply(this,d(arguments,n,[r,e,o,u,i,f,c]))}},function(t,n){return function(r,e,o,u,i,f,c,l){return t.apply(this,d(arguments,n,[r,e,o,u,i,f,c,l]))}}],P=function(t){var n=m(t,3),r=n[0],e=n[1],o=n[2],u=$(0,e.length-$(0,o.length-2)),i=T[u],f=i?i(r,u):T[0](r);if(e.prototype){var c=function(){};c.prototype=e.prototype,f.prototype=new c,c.prototype=null}return f},_=function(t,n){var r=t.apply(this,n);return w(r)===r?r:this},E=p?S.bind(v):function(t,n){x(t);var r,e=arguments,o=function(){var o=d(arguments,0,d(e,2));return this instanceof r?_.apply(this,[t,o]):t.apply(n,o)};return r=P([o,t,e])},M=TypeError,F=E.apply,k=E(E.call,F),A=E(F,{}.toString),D=function(t){if("function"!=typeof t&&"[object Function]"!==A(t))throw new M(t+" is not a function");return t},I=function(t,n){return k(D(t),n,d(arguments[2]))},N=function(t){try{return{threw:!1,value:I(t,this,d(arguments,1))}}catch(t){return{threw:!0,value:t}}},X=r(0),C=r.n(X);var G=N(function(){return function(t,n){if(t!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&C()(Symbol(""))}.bind(void 0)),q=!1===G.threw&&!0===G.value;n.default=q&&C()(Symbol.toStringTag)}])}); //# sourceMappingURL=has-to-string-tag-x.min.js.map