(function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.ES6Promise=t()})(this,function(){"use strict";function pt(n){return typeof n=="function"||typeof n=="object"&&n!==null}function ut(n){return typeof n=="function"}function wt(n){b=n}function bt(n){r=n}function gt(){return function(){return process.nextTick(e)}}function ni(){return typeof w!="undefined"?function(){w(e)}:k()}function ti(){var n=0,i=new ht(e),t=document.createTextNode("");return i.observe(t,{characterData:!0}),function(){t.data=n=++n%2}}function ii(){var n=new MessageChannel;return n.port1.onmessage=e,function(){return n.port2.postMessage(0)}}function k(){var n=setTimeout;return function(){return n(e,1)}}function e(){for(var t,i,n=0;n<f;n+=2)t=u[n],i=u[n+1],t(i),u[n]=undefined,u[n+1]=undefined;f=0}function ri(){try{var t=require,n=t("vertx");return w=n.runOnLoop||n.runOnContext,ni()}catch(i){return k()}}function g(n,t){var e=arguments,f=this,i=new this.constructor(o),u;return i[c]===undefined&&yt(i),u=f._state,u?function(){var n=e[u-1];r(function(){return vt(u,i,n,f._result)})}():tt(f,i,n,t),i}function nt(n){var i=this,t;return n&&typeof n=="object"&&n.constructor===i?n:(t=new i(o),a(t,n),t)}function o(){}function ui(){return new TypeError("You cannot resolve a promise with itself")}function fi(){return new TypeError("A promises callback cannot return that same promise.")}function ct(n){try{return n.then}catch(t){return y.error=t,y}}function ei(n,t,i,r){try{n.call(t,i,r)}catch(u){return u}}function oi(n,u,f){r(function(n){var r=!1,e=ei(f,u,function(t){r||(r=!0,u!==t?a(n,t):i(n,t))},function(i){r||(r=!0,t(n,i))},"Settle: "+(n._label||" unknown promise"));!r&&e&&(r=!0,t(n,e))},n)}function si(n,r){r._state===l?i(n,r._result):r._state===h?t(n,r._result):tt(r,undefined,function(t){return a(n,t)},function(i){return t(n,i)})}function lt(n,r,u){r.constructor===n.constructor&&u===g&&r.constructor.resolve===nt?si(n,r):u===y?t(n,y.error):u===undefined?i(n,r):ut(u)?oi(n,r,u):i(n,r)}function a(n,r){n===r?t(n,ui()):pt(r)?lt(n,r,ct(r)):i(n,r)}function hi(n){n._onerror&&n._onerror(n._result);it(n)}function i(n,t){n._state===s&&(n._result=t,n._state=l,n._subscribers.length!==0&&r(it,n))}function t(n,t){n._state===s&&(n._state=h,n._result=t,r(hi,n))}function tt(n,t,i,u){var f=n._subscribers,e=f.length;n._onerror=null;f[e]=t;f[e+l]=i;f[e+h]=u;e===0&&n._state&&r(it,n)}function it(n){var i=n._subscribers,f=n._state,t;if(i.length!==0){var r=undefined,u=undefined,e=n._result;for(t=0;t<i.length;t+=3)r=i[t],u=i[t+f],r?vt(f,r,u,e):u(e);n._subscribers.length=0}}function at(){this.error=null}function ci(n,t){try{return n(t)}catch(i){return p.error=i,p}}function vt(n,r,u,f){var c=ut(u),e=undefined,v=undefined,o=undefined,y=undefined;if(c){if(e=ci(u,f),e===p?(y=!0,v=e.error,e=null):o=!0,r===e){t(r,fi());return}}else e=f,o=!0;r._state!==s||(c&&o?a(r,e):y?t(r,v):n===l?i(r,e):n===h&&t(r,e))}function li(n,i){try{i(function(t){a(n,t)},function(i){t(n,i)})}catch(r){t(n,r)}}function ai(){return rt++}function yt(n){n[c]=rt++;n._state=undefined;n._result=undefined;n._subscribers=[]}function v(n,r){this._instanceConstructor=n;this.promise=new n(o);this.promise[c]||yt(this.promise);et(r)?(this._input=r,this.length=r.length,this._remaining=r.length,this._result=new Array(this.length),this.length===0?i(this.promise,this._result):(this.length=this.length||0,this._enumerate(),this._remaining===0&&i(this.promise,this._result))):t(this.promise,vi())}function vi(){return new Error("Array Methods must be provided an Array")}function yi(n){return new v(this,n).promise}function pi(n){var t=this;return et(n)?new t(function(i,r){for(var f=n.length,u=0;u<f;u++)t.resolve(n[u]).then(i,r)}):new t(function(n,t){return t(new TypeError("You must pass an array to race."))})}function wi(n){var r=this,i=new r(o);return t(i,n),i}function bi(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");}function ki(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");}function n(t){this[c]=ai();this._result=this._state=undefined;this._subscribers=[];o!==t&&(typeof t!="function"&&bi(),this instanceof n?li(this,t):ki())}function di(){var t=undefined,i,r;if(typeof global!="undefined")t=global;else if(typeof self!="undefined")t=self;else try{t=Function("return this")()}catch(u){throw new Error("polyfill failed because global object is unavailable in this environment");}if(i=t.Promise,i){r=null;try{r=Object.prototype.toString.call(i.resolve())}catch(u){}if(r==="[object Promise]"&&!i.cast)return}t.Promise=n}var ft=undefined,u,d,c,p,rt;ft=Array.isArray?Array.isArray:function(n){return Object.prototype.toString.call(n)==="[object Array]"};var et=ft,f=0,w=undefined,b=undefined,r=function(n,t){u[f]=n;u[f+1]=t;f+=2;f===2&&(b?b(e):d())};var ot=typeof window!="undefined"?window:undefined,st=ot||{},ht=st.MutationObserver||st.WebKitMutationObserver,kt=typeof self=="undefined"&&typeof process!="undefined"&&{}.toString.call(process)==="[object process]",dt=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";u=new Array(1e3);d=undefined;d=kt?gt():ht?ti():dt?ii():ot===undefined&&typeof require=="function"?ri():k();c=Math.random().toString(36).substring(16);var s=void 0,l=1,h=2,y=new at;return p=new at,rt=0,v.prototype._enumerate=function(){for(var t=this.length,i=this._input,n=0;this._state===s&&n<t;n++)this._eachEntry(i[n],n)},v.prototype._eachEntry=function(t,i){var r=this._instanceConstructor,e=r.resolve,u,f;e===nt?(u=ct(t),u===g&&t._state!==s?this._settledAt(t._state,i,t._result):typeof u!="function"?(this._remaining--,this._result[i]=t):r===n?(f=new r(o),lt(f,t,u),this._willSettleAt(f,i)):this._willSettleAt(new r(function(n){return n(t)}),i)):this._willSettleAt(e(t),i)},v.prototype._settledAt=function(n,r,u){var f=this.promise;f._state===s&&(this._remaining--,n===h?t(f,u):this._result[r]=u);this._remaining===0&&i(f,this._result)},v.prototype._willSettleAt=function(n,t){var i=this;tt(n,undefined,function(n){return i._settledAt(l,t,n)},function(n){return i._settledAt(h,t,n)})},n.all=yi,n.race=pi,n.resolve=nt,n.reject=wi,n._setScheduler=wt,n._setAsap=bt,n._asap=r,n.prototype={constructor:n,then:g,"catch":function(n){return this.then(null,n)}},n.polyfill=di,n.Promise=n,n});ES6Promise.polyfill();Array.prototype.find||(Array.prototype.find=function(n){var t;if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof n!="function")throw new TypeError("predicate must be a function");var i=Object(this),u=i.length>>>0,f=arguments[1],r;for(t=0;t<u;t++)if(r=i[t],n.call(f,r,t,i))return r;return undefined});Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(n){var i,r,u,t,f;if(this==null)throw new TypeError('"this" is null or not defined');if(i=Object(this),r=i.length>>>0,typeof n!="function")throw new TypeError("predicate must be a function");for(u=arguments[1],t=0;t<r;){if(f=i[t],n.call(u,f,t,i))return t;t++}return-1},configurable:!0,writable:!0}),function(n){"use strict";n.console||(n.console={});for(var t=n.console,i,r,u=function(){},f=["memory"],e="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");i=f.pop();)t[i]||(t[i]={});while(r=e.pop())typeof t[r]!="function"&&(t[r]=u)}(typeof window=="undefined"?this:window);typeof Object.assign!="function"&&(Object.assign=function(n){"use strict";var i,t,r;if(n==null)throw new TypeError("Cannot convert undefined or null to object");for(n=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],t!=null)for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n});var Ellucian=Ellucian||{};Ellucian.Storage=Ellucian.Storage||{};Ellucian.Storage=function(n){var f=function(n){return{}.toString.call(n).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()},t=function(n,t){var i=n.getItem(t);try{i=JSON.parse(i)}catch(r){}return i},i=function(n,t,i){var u=f(i);/object|array/.test(u)&&(i=JSON.stringify(i));try{n.setItem(t,i)}catch(r){r instanceof DOMException&&r.code===22}},r=function(n,t){n.removeItem(t)},u=function(n){n.clear()};return{session:{getItem:function(i){return t(n.sessionStorage,i)},setItem:function(t,r){return i(n.sessionStorage,t,r)},removeItem:function(t){return r(n.sessionStorage,t)},clear:function(){return u(n.sessionStorage)}},local:{getItem:function(i){return t(n.localStorage,i)},setItem:function(t,r){return i(n.localStorage,t,r)},removeItem:function(t){return r(n.localStorage,t)},clear:function(){return u(n.localStorage)}}}}(this)