text: "use strict";
  var __cov_7S0k1nkB$Jofz6YOCfPPng = (Function('return this'))();
  if (!__cov_7S0k1nkB$Jofz6YOCfPPng.__coverage__) { __cov_7S0k1nkB$Jofz6YOCfPPng.__coverage__ = {}; }
  __cov_7S0k1nkB$Jofz6YOCfPPng = __cov_7S0k1nkB$Jofz6YOCfPPng.__coverage__;
  if (!(__cov_7S0k1nkB$Jofz6YOCfPPng['packages/spark-core/src/interceptors/redirect.js'])) {
     __cov_7S0k1nkB$Jofz6YOCfPPng['packages/spark-core/src/interceptors/redirect.js'] = {"path":"packages/spark-core/src/interceptors/redirect.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":1,"19":0,"20":0,"21":0,"22":0,"23":0,"24":1,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"fnMap":{"1":{"line":38,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true,"name":"_interopRequireDefault"},"2":{"line":52,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true,"name":"(anonymous_2)"},"3":{"line":55,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true,"name":"RedirectInterceptor"},"4":{"line":69,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true,"name":"onRequest"},"5":{"line":88,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true,"name":"onResponse"},"6":{"line":108,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true,"name":"create"}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"4":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"5":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"6":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"7":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"8":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"9":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"10":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"11":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"12":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"13":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"14":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"15":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"16":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"17":{"start":{"line":8,"column":0},"end":{"line":8,"column":0}},"18":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"19":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"20":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"21":{"start":{"line":11,"column":0},"end":{"line":11,"column":0}},"22":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"23":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"24":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"25":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"26":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"27":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"28":{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},"29":{"start":{"line":31,"column":6},"end":{"line":31,"column":6}},"30":{"start":{"line":34,"column":4},"end":{"line":34,"column":4}},"31":{"start":{"line":35,"column":4},"end":{"line":35,"column":4}},"32":{"start":{"line":36,"column":4},"end":{"line":36,"column":4}},"33":{"start":{"line":46,"column":4},"end":{"line":55,"column":5}},"34":{"start":{"line":47,"column":6},"end":{"line":47,"column":6}},"35":{"start":{"line":48,"column":6},"end":{"line":48,"column":6}},"36":{"start":{"line":49,"column":6},"end":{"line":49,"column":6}},"37":{"start":{"line":50,"column":6},"end":{"line":52,"column":7}},"38":{"start":{"line":51,"column":8},"end":{"line":51,"column":8}},"39":{"start":{"line":54,"column":6},"end":{"line":54,"column":6}},"40":{"start":{"line":57,"column":4},"end":{"line":57,"column":4}},"41":{"start":{"line":21,"column":4},"end":{"line":21,"column":4}},"42":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"43":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true}},"branchMap":{"1":{"line":38,"type":"cond-expr","locations":[{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true}]},"2":{"line":38,"type":"binary-expr","locations":[{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true}]},"3":{"line":57,"type":"binary-expr","locations":[{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true}]},"4":{"line":70,"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":30,"column":4}},{"start":{"line":30,"column":4},"end":{"line":30,"column":4}}]},"5":{"line":70,"type":"binary-expr","locations":[{"start":{"line":30,"column":8},"end":{"line":30,"column":8}},{"start":{"line":30,"column":71},"end":{"line":30,"column":4}}]},"6":{"line":75,"type":"binary-expr","locations":[{"start":{"line":35,"column":29},"end":{"line":35,"column":29}},{"start":{"line":35,"column":55},"end":{"line":35,"column":4}}]},"7":{"line":89,"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":46,"column":4}},{"start":{"line":46,"column":4},"end":{"line":46,"column":4}}]},"8":{"line":89,"type":"binary-expr","locations":[{"start":{"line":46,"column":8},"end":{"line":46,"column":8}},{"start":{"line":46,"column":28},"end":{"line":46,"column":4}}]},"9":{"line":93,"type":"if","locations":[{"start":{"line":50,"column":6},"end":{"line":50,"column":6}},{"start":{"line":50,"column":6},"end":{"line":50,"column":6}}]}}};
  }
  __cov_7S0k1nkB$Jofz6YOCfPPng = __cov_7S0k1nkB$Jofz6YOCfPPng['packages/spark-core/src/interceptors/redirect.js'];
  __cov_7S0k1nkB$Jofz6YOCfPPng.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_7S0k1nkB$Jofz6YOCfPPng.s['2']++;exports.default=undefined;__cov_7S0k1nkB$Jofz6YOCfPPng.s['3']++;var _promise=require('babel-runtime/core-js/promise');__cov_7S0k1nkB$Jofz6YOCfPPng.s['4']++;var _promise2=_interopRequireDefault(_promise);__cov_7S0k1nkB$Jofz6YOCfPPng.s['5']++;var _getPrototypeOf=require('babel-runtime/core-js/object/get-prototype-of');__cov_7S0k1nkB$Jofz6YOCfPPng.s['6']++;var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);__cov_7S0k1nkB$Jofz6YOCfPPng.s['7']++;var _classCallCheck2=require('babel-runtime/helpers/classCallCheck');__cov_7S0k1nkB$Jofz6YOCfPPng.s['8']++;var _classCallCheck3=_interopRequireDefault(_classCallCheck2);__cov_7S0k1nkB$Jofz6YOCfPPng.s['9']++;var _createClass2=require('babel-runtime/helpers/createClass');__cov_7S0k1nkB$Jofz6YOCfPPng.s['10']++;var _createClass3=_interopRequireDefault(_createClass2);__cov_7S0k1nkB$Jofz6YOCfPPng.s['11']++;var _possibleConstructorReturn2=require('babel-runtime/helpers/possibleConstructorReturn');__cov_7S0k1nkB$Jofz6YOCfPPng.s['12']++;var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);__cov_7S0k1nkB$Jofz6YOCfPPng.s['13']++;var _inherits2=require('babel-runtime/helpers/inherits');__cov_7S0k1nkB$Jofz6YOCfPPng.s['14']++;var _inherits3=_interopRequireDefault(_inherits2);__cov_7S0k1nkB$Jofz6YOCfPPng.s['15']++;var _clone2=require('lodash/clone');__cov_7S0k1nkB$Jofz6YOCfPPng.s['16']++;var _clone3=_interopRequireDefault(_clone2);__cov_7S0k1nkB$Jofz6YOCfPPng.s['17']++;var _httpCore=require('@ciscospark/http-core');function _interopRequireDefault(obj){__cov_7S0k1nkB$Jofz6YOCfPPng.f['1']++;__cov_7S0k1nkB$Jofz6YOCfPPng.s['19']++;return(__cov_7S0k1nkB$Jofz6YOCfPPng.b['2'][0]++,obj)&&(__cov_7S0k1nkB$Jofz6YOCfPPng.b['2'][1]++,obj.__esModule)?(__cov_7S0k1nkB$Jofz6YOCfPPng.b['1'][0]++,obj):(__cov_7S0k1nkB$Jofz6YOCfPPng.b['1'][1]++,{default:obj});}__cov_7S0k1nkB$Jofz6YOCfPPng.s['20']++;var requestHeaderName='cisco-no-http-redirect';__cov_7S0k1nkB$Jofz6YOCfPPng.s['21']++;var responseHeaderName='cisco-location';__cov_7S0k1nkB$Jofz6YOCfPPng.s['22']++;var RedirectInterceptor=function(_Interceptor){__cov_7S0k1nkB$Jofz6YOCfPPng.f['2']++;__cov_7S0k1nkB$Jofz6YOCfPPng.s['23']++;(0,_inherits3.default)(RedirectInterceptor,_Interceptor);function RedirectInterceptor(){__cov_7S0k1nkB$Jofz6YOCfPPng.f['3']++;__cov_7S0k1nkB$Jofz6YOCfPPng.s['25']++;(0,_classCallCheck3.default)(this,RedirectInterceptor);__cov_7S0k1nkB$Jofz6YOCfPPng.s['26']++;return(0,_possibleConstructorReturn3.default)(this,((__cov_7S0k1nkB$Jofz6YOCfPPng.b['3'][0]++,RedirectInterceptor.__proto__)||(__cov_7S0k1nkB$Jofz6YOCfPPng.b['3'][1]++,(0,_getPrototypeOf2.default)(RedirectInterceptor))).apply(this,arguments));}__cov_7S0k1nkB$Jofz6YOCfPPng.s['27']++;(0,_createClass3.default)(RedirectInterceptor,[{key:'onRequest',value:function onRequest(options){__cov_7S0k1nkB$Jofz6YOCfPPng.f['4']++;__cov_7S0k1nkB$Jofz6YOCfPPng.s['28']++;if((__cov_7S0k1nkB$Jofz6YOCfPPng.b['5'][0]++,options.uri.includes(this.spark.config.credentials.samlUrl))||(__cov_7S0k1nkB$Jofz6YOCfPPng.b['5'][1]++,options.uri.includes(this.spark.config.credentials.oauth.tokenUrl))){__cov_7S0k1nkB$Jofz6YOCfPPng.b['4'][0]++;__cov_7S0k1nkB$Jofz6YOCfPPng.s['29']++;return options;}else{__cov_7S0k1nkB$Jofz6YOCfPPng.b['4'][1]++;}__cov_7S0k1nkB$Jofz6YOCfPPng.s['30']++;options.headers[requestHeaderName]=true;__cov_7S0k1nkB$Jofz6YOCfPPng.s['31']++;options.$redirectCount=(__cov_7S0k1nkB$Jofz6YOCfPPng.b['6'][0]++,options.$redirectCount)||(__cov_7S0k1nkB$Jofz6YOCfPPng.b['6'][1]++,0);__cov_7S0k1nkB$Jofz6YOCfPPng.s['32']++;return options;}},{key:'onResponse',value:function onResponse(options,response){__cov_7S0k1nkB$Jofz6YOCfPPng.f['5']++;__cov_7S0k1nkB$Jofz6YOCfPPng.s['33']++;if((__cov_7S0k1nkB$Jofz6YOCfPPng.b['8'][0]++,response.headers)&&(__cov_7S0k1nkB$Jofz6YOCfPPng.b['8'][1]++,response.headers[responseHeaderName])){__cov_7S0k1nkB$Jofz6YOCfPPng.b['7'][0]++;__cov_7S0k1nkB$Jofz6YOCfPPng.s['34']++;options=(0,_clone3.default)(options);__cov_7S0k1nkB$Jofz6YOCfPPng.s['35']++;options.uri=response.headers[responseHeaderName];__cov_7S0k1nkB$Jofz6YOCfPPng.s['36']++;options.$redirectCount+=1;__cov_7S0k1nkB$Jofz6YOCfPPng.s['37']++;if(options.$redirectCount>this.spark.config.maxAppLevelRedirects){__cov_7S0k1nkB$Jofz6YOCfPPng.b['9'][0]++;__cov_7S0k1nkB$Jofz6YOCfPPng.s['38']++;return _promise2.default.reject(new Error('Maximum redirects exceeded'));}else{__cov_7S0k1nkB$Jofz6YOCfPPng.b['9'][1]++;}__cov_7S0k1nkB$Jofz6YOCfPPng.s['39']++;return this.spark.request(options);}else{__cov_7S0k1nkB$Jofz6YOCfPPng.b['7'][1]++;}__cov_7S0k1nkB$Jofz6YOCfPPng.s['40']++;return response;}}],[{key:'create',value:function create(){__cov_7S0k1nkB$Jofz6YOCfPPng.f['6']++;__cov_7S0k1nkB$Jofz6YOCfPPng.s['41']++;return new RedirectInterceptor({spark:this});}}]);__cov_7S0k1nkB$Jofz6YOCfPPng.s['42']++;return RedirectInterceptor;}(_httpCore.Interceptor);__cov_7S0k1nkB$Jofz6YOCfPPng.s['43']++;exports.default=RedirectInterceptor;
  