hangoutsslackgmailskypefacebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegram
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
52 KiB
2 lines
52 KiB
9 years ago
|
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){function d(){var a,b=-1,c=navigator.userAgent;return"Microsoft Internet Explorer"===navigator.appName?(a=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),null!=a.exec(c)&&(b=parseFloat(RegExp.$1))):c.indexOf("Trident")>-1&&(a=new RegExp("rv:([0-9]{2,2}[.0-9]{0,})"),null!==a.exec(c)&&(b=parseFloat(RegExp.$1))),b}function e(a){var b="";for(var c in a)b+=c+"="+a[c]+",";return b.slice(0,-1)}function f(a,b){return!(!a||null==a[b])}function g(a,b){var c=a.status,e="string"==typeof a.responseText?a.responseText:a,f=10===d()||11===d(),g=!c||0===c,h=!!window.navigator.onLine;g&&!h?(c=0,e={code:"offline"}):g&&f?(c=401,e={code:"invalid_user_password"}):g&&(c=0,e={code:"connection_refused_timeout"});var i=new B(c,e);b(i)}function h(a,b,c){return a+"//"+b+c}function i(a){return this instanceof i?(p(a,"clientID"),p(a,"domain"),this._useJSONP=null!=a.forceJSONP?!!a.forceJSONP:C()&&!z("https:",a.domain),this._clientID=a.clientID,this._callbackURL=a.callbackURL||document.location.href,this._shouldRedirect=!!a.callbackURL,this._domain=a.domain,this._responseType=this._parseResponseType(a,!0)||"code",this._responseMode=this._parseResponseMode(a,!0),this._cordovaSocialPlugins={facebook:this._phonegapFacebookLogin},this._useCordovaSocialPlugins=a.useCordovaSocialPlugins,void(this._sendClientInfo=null!=a.sendSDKClientInfo?a.sendSDKClientInfo:!0)):new i(a)}function j(a){return a?"token":"code"}function k(a){if("string"!=typeof a)return!1;for(var b=["code","id_token","token"],c=a.split(" "),d=0;d<c.length;d++)if(-1===b.indexOf(c[d]))return!1;return c.length>=1}function l(a){return"form_post"===a}function m(a){console&&console.warn&&console.warn(a)}var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:{},o=a("./lib/base64_url"),p=a("./lib/assert_required"),q=a("./lib/is-array"),r=a("./lib/index-of"),s=a("qs"),t=a("xtend"),u=a("trim"),v=a("reqwest"),w=a("winchan"),x=a("jsonp"),y={param:"cbx",timeout:8e3,prefix:"__auth0jp"},z=a("./lib/same-origin"),A=a("./lib/json-parse"),B=a("./lib/LoginError"),C=a("./lib/use_jsonp");i.version=a("./version").str,i.clientInfo={name:"auth0.js",version:i.version},i.prototype.openWindow=function(a,b,c){return window.open(a,b,e(c))},i.prototype._redirect=function(a){n.window.location=a},i.prototype._getResponseType=function(a){return this._parseResponseType(a)||this._responseType},i.prototype._getCallbackOnLocationHash=function(a){return"form_post"!==this._getResponseMode(a)&&"code"!==this._getResponseType(a)},i.prototype._getResponseMode=function(a){var b=this._parseResponseMode(a)||this._responseMode;return"form_post"===b?"form_post":null},i.prototype._getCallbackURL=function(a){return a&&"undefined"!=typeof a.callbackURL?a.callbackURL:this._callbackURL},i.prototype._getClientInfoString=function(){var a=JSON.stringify(i.clientInfo);return o.encode(a)},i.prototype._getClientInfoHeader=function(){return this._sendClientInfo?{"Auth0-Client":this._getClientInfoString()}:{}},i.prototype._renderAndSubmitWSFedForm=function(a,b){var c=document.createElement("div");c.innerHTML=b;var d=document.body.appendChild(c).children[0];a.popup&&!this._getCallbackOnLocationHash(a)&&(d.target="auth0_signup_popup"),d.submit()},i.prototype._getMode=function(a){var b={scope:"openid",response_type:this._getResponseType(a)},c=this._getResponseMode(a);return c&&(b.response_mode=c),b},i.prototype._configureOfflineMode=function(a){a.scope&&a.scope.indexOf("offline_access")>=0&&(a.device=a.device||"Browser")},i.prototype._getUserInfo=function(a,b,c){if(!a||a.user_id)return c(null,a);var d="https:",e=this._domain,f="/tokeninfo",g=h(d,e,f),i=function(a,b){var d=new Error(a+": "+(b||""));d.error=a,d.error_description=b,c(d)}
|
||
|
}catch(b){}return a}function i(){try{return window.localStorage}catch(a){}}c=b.exports=a("./debug"),c.log=f,c.formatArgs=e,c.save=g,c.load=h,c.useColors=d,c.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:i(),c.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],c.formatters.j=function(a){return JSON.stringify(a)},c.enable(h())},{"./debug":14}],14:[function(a,b,c){function d(){return c.colors[k++%c.colors.length]}function e(a){function b(){}function e(){var a=e,b=+new Date,f=b-(j||b);a.diff=f,a.prev=j,a.curr=b,j=b,null==a.useColors&&(a.useColors=c.useColors()),null==a.color&&a.useColors&&(a.color=d());var g=Array.prototype.slice.call(arguments);g[0]=c.coerce(g[0]),"string"!=typeof g[0]&&(g=["%o"].concat(g));var h=0;g[0]=g[0].replace(/%([a-z%])/g,function(b,d){if("%%"===b)return b;h++;var e=c.formatters[d];if("function"==typeof e){var f=g[h];b=e.call(a,f),g.splice(h,1),h--}return b}),"function"==typeof c.formatArgs&&(g=c.formatArgs.apply(a,g));var i=e.log||c.log||console.log.bind(console);i.apply(a,g)}b.enabled=!1,e.enabled=!0;var f=c.enabled(a)?e:b;return f.namespace=a,f}function f(a){c.save(a);for(var b=(a||"").split(/[\s,]+/),d=b.length,e=0;d>e;e++)b[e]&&(a=b[e].replace(/\*/g,".*?"),"-"===a[0]?c.skips.push(new RegExp("^"+a.substr(1)+"$")):c.names.push(new RegExp("^"+a+"$")))}function g(){c.enable("")}function h(a){var b,d;for(b=0,d=c.skips.length;d>b;b++)if(c.skips[b].test(a))return!1;for(b=0,d=c.names.length;d>b;b++)if(c.names[b].test(a))return!0;return!1}function i(a){return a instanceof Error?a.stack||a.message:a}c=b.exports=e,c.coerce=i,c.disable=g,c.enable=f,c.enabled=h,c.humanize=a("ms"),c.names=[],c.skips=[],c.formatters={};var j,k=0},{ms:15}],15:[function(a,b,c){function d(a){if(a=""+a,!(a.length>1e4)){var b=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(a);if(b){var c=parseFloat(b[1]),d=(b[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return c*l;case"days":case"day":case"d":return c*k;case"hours":case"hour":case"hrs":case"hr":case"h":return c*j;case"minutes":case"minute":case"mins":case"min":case"m":return c*i;case"seconds":case"second":case"secs":case"sec":case"s":return c*h;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c}}}}function e(a){return a>=k?Math.round(a/k)+"d":a>=j?Math.round(a/j)+"h":a>=i?Math.round(a/i)+"m":a>=h?Math.round(a/h)+"s":a+"ms"}function f(a){return g(a,k,"day")||g(a,j,"hour")||g(a,i,"minute")||g(a,h,"second")||a+" ms"}function g(a,b,c){return b>a?void 0:1.5*b>a?Math.floor(a/b)+" "+c:Math.ceil(a/b)+" "+c+"s"}var h=1e3,i=60*h,j=60*i,k=24*j,l=365.25*k;b.exports=function(a,b){return b=b||{},"string"==typeof a?d(a):b["long"]?f(a):e(a)}},{}],16:[function(a,b,c){function d(a,b){if(0==a[b].length)return a[b]={};var c={};for(var d in a[b])q.call(a[b],d)&&(c[d]=a[b][d]);return a[b]=c,c}function e(a,b,c,f){var g=a.shift();if(!q.call(Object.prototype,c))if(g){var h=b[c]=b[c]||[];"]"==g?s(h)?""!=f&&h.push(f):"object"==typeof h?h[t(h).length]=f:h=b[c]=[b[c],f]:~r(g,"]")?(g=g.substr(0,g.length-1),!w.test(g)&&s(h)&&(h=d(b,c)),e(a,h,g,f)):(!w.test(g)&&s(h)&&(h=d(b,c)),e(a,h,g,f))}else s(b[c])?b[c].push(f):"object"==typeof b[c]?b[c]=f:"undefined"==typeof b[c]?b[c]=f:b[c]=[b[c],f]}function f(a,b,c){if(~r(b,"]")){var d=b.split("[");d.length;e(d,a,"base",c)}else{if(!w.test(b)&&s(a.base)){var f={};for(var g in a.base)f[g]=a.base[g];a.base=f}m(a.base,b,c)}return a}function g(a){if("object"!=typeof a)return a;if(s(a)){var b=[];for(var c in a)q.call(a,c)&&b.push(a[c]);return b}for(var d in a)a[d]=g(a[d]);return a}function h(a){var b={base:{}};return u(t(a),function(c){f(b,c,a[c])}),g(b.base)}function i(a,b){var c=v(String(a).split(b.separator),function(a,b){var c=r(b,"="),d=n(b),e=b.substr(0,d||c),g=b.substr(d||c,b.length),g=g.substr(r(g,"=")+1,g.length);return""==e&&(e=b,g=""),""==e?a:f(a,o(e),o(g))},{base:{}}).base;return g(c)}function j(a,b){if(!b)throw new TypeError("stringify expects
|