oidc-spa 4.13.2 → 4.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +0,0 @@
1
- /*! For license information please see 370.index.js.LICENSE.txt */
2
- "use strict";exports.id=370,exports.ids=[370],exports.modules={370:(t,e,r)=>{r.r(e),r.d(e,{toFormData:()=>A});var n=r(89),o=r(105);function i(){i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new H(n||[]);return o(a,"_invoke",{value:R(t,r,u)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",y="suspendedYield",v="executing",E="completed",b={};function g(){}function m(){}function A(){}var w={};l(w,c,(function(){return this}));var _=Object.getPrototypeOf,T=_&&_(_(O([])));T&&T!==r&&n.call(T,c)&&(w=T);var D=A.prototype=g.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var s=d(t[o],t,i);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==u(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function R(e,r,n){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===E){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=P(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=E,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(e,r,n);if("normal"===s.type){if(o=n.done?E:y,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=E,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function H(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function O(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(u(e)+" is not iterable")}return m.prototype=A,o(D,"constructor",{value:A,configurable:!0}),o(A,"constructor",{value:m,configurable:!0}),m.displayName=l(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,l(t,f,"GeneratorFunction")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},L(x.prototype),l(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(D),l(D,f,"Generator"),l(D,c,(function(){return this})),l(D,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=O,H.prototype={constructor:H,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function a(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function u(t){return u="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},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function f(t){var e,r,n,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(e=t[r]))return e.call(t);if(n&&null!=(e=t[n]))return new l(e.call(t));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function l(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return l=function(t){this.s=t,this.n=t.next},l.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var r=this.s.return;return void 0===r?Promise.resolve({value:t,done:!0}):e(r.apply(this.s,arguments))},throw:function(t){var r=this.s.return;return void 0===r?Promise.reject(t):e(r.apply(this.s,arguments))}},new l(t)}var h=0,d={START_BOUNDARY:h++,HEADER_FIELD_START:h++,HEADER_FIELD:h++,HEADER_VALUE_START:h++,HEADER_VALUE:h++,HEADER_VALUE_ALMOST_DONE:h++,HEADERS_ALMOST_DONE:h++,PART_DATA_START:h++,PART_DATA:h++,END:h++},p=1,y=p,v=p*=2,E=function(t){return 32|t},b=function(){},g=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.index=0,this.flags=0,this.onHeaderEnd=b,this.onHeaderField=b,this.onHeadersEnd=b,this.onHeaderValue=b,this.onPartBegin=b,this.onPartData=b,this.onPartEnd=b,this.boundaryChars={},e="\r\n--"+e;for(var r=new Uint8Array(e.length),n=0;n<e.length;n++)r[n]=e.charCodeAt(n),this.boundaryChars[r[n]]=!0;this.boundary=r,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=d.START_BOUNDARY},(e=[{key:"write",value:function(t){var e,r,n=this,o=0,i=t.length,a=this.index,u=this.lookbehind,c=this.boundary,s=this.boundaryChars,f=this.index,l=this.state,h=this.flags,p=this.boundary.length,b=p-1,g=t.length,m=function(t){n[t+"Mark"]=o},A=function(t,e,r,o){void 0!==e&&e===r||n[t](o&&o.subarray(e,r))},w=function(e,r){var i=e+"Mark";i in n&&(r?(A(e,n[i],o,t),delete n[i]):(A(e,n[i],t.length,t),n[i]=0))};for(o=0;o<i;o++)switch(e=t[o],l){case d.START_BOUNDARY:if(f===c.length-2){if(45===e)h|=v;else if(13!==e)return;f++;break}if(f-1==c.length-2){if(h&v&&45===e)l=d.END,h=0;else{if(h&v||10!==e)return;f=0,A("onPartBegin"),l=d.HEADER_FIELD_START}break}e!==c[f+2]&&(f=-2),e===c[f+2]&&f++;break;case d.HEADER_FIELD_START:l=d.HEADER_FIELD,m("onHeaderField"),f=0;case d.HEADER_FIELD:if(13===e){delete n.onHeaderFieldMark,l=d.HEADERS_ALMOST_DONE;break}if(f++,45===e)break;if(58===e){if(1===f)return;w("onHeaderField",!0),l=d.HEADER_VALUE_START;break}if((r=E(e))<97||r>122)return;break;case d.HEADER_VALUE_START:if(32===e)break;m("onHeaderValue"),l=d.HEADER_VALUE;case d.HEADER_VALUE:13===e&&(w("onHeaderValue",!0),A("onHeaderEnd"),l=d.HEADER_VALUE_ALMOST_DONE);break;case d.HEADER_VALUE_ALMOST_DONE:if(10!==e)return;l=d.HEADER_FIELD_START;break;case d.HEADERS_ALMOST_DONE:if(10!==e)return;A("onHeadersEnd"),l=d.PART_DATA_START;break;case d.PART_DATA_START:l=d.PART_DATA,m("onPartData");case d.PART_DATA:if(a=f,0===f){for(o+=b;o<g&&!(t[o]in s);)o+=p;e=t[o-=b]}if(f<c.length)c[f]===e?(0===f&&w("onPartData",!0),f++):f=0;else if(f===c.length)f++,13===e?h|=y:45===e?h|=v:f=0;else if(f-1===c.length)if(h&y){if(f=0,10===e){h&=~y,A("onPartEnd"),A("onPartBegin"),l=d.HEADER_FIELD_START;break}}else h&v&&45===e?(A("onPartEnd"),l=d.END,h=0):f=0;if(f>0)u[f-1]=e;else if(a>0){var _=new Uint8Array(u.buffer,u.byteOffset,u.byteLength);A("onPartData",0,a,_),a=0,m("onPartData"),o--}break;case d.END:break;default:throw new Error("Unexpected state entered: ".concat(l))}w("onHeaderField"),w("onHeaderValue"),w("onPartData"),this.index=f,this.state=l,this.flags=h}},{key:"end",value:function(){if(this.state===d.HEADER_FIELD_START&&0===this.index||this.state===d.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==d.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}}])&&c(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function m(t){var e=t.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(e){var r=e[2]||e[3]||"",n=r.slice(r.lastIndexOf("\\")+1);return(n=n.replace(/%22/g,'"')).replace(/&#(\d{4});/g,(function(t,e){return String.fromCharCode(e)}))}}function A(t,e){return w.apply(this,arguments)}function w(){var t;return t=i().mark((function t(e,r){var a,u,c,s,l,h,d,p,y,v,E,b,A,w,_,T,D,L,x,R,P;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(/multipart/i.test(r)){t.next=2;break}throw new TypeError("Failed to fetch");case 2:if(a=r.match(/boundary=(?:"([^"]+)"|([^;]+))/i)){t.next=5;break}throw new TypeError("no or bad content-type header, no multipart boundary");case 5:u=new g(a[1]||a[2]),y=[],v=new o.fS,E=function(t){l+=_.decode(t,{stream:!0})},b=function(t){y.push(t)},A=function(){var t=new n.ZH(y,p,{type:d});v.append(h,t)},w=function(){v.append(h,l)},(_=new TextDecoder("utf-8")).decode(),u.onPartBegin=function(){u.onPartData=E,u.onPartEnd=w,c="",s="",l="",h="",d="",p=null,y.length=0},u.onHeaderField=function(t){c+=_.decode(t,{stream:!0})},u.onHeaderValue=function(t){s+=_.decode(t,{stream:!0})},u.onHeaderEnd=function(){if(s+=_.decode(),"content-disposition"===(c=c.toLowerCase())){var t=s.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);t&&(h=t[2]||t[3]||""),(p=m(s))&&(u.onPartData=b,u.onPartEnd=A)}else"content-type"===c&&(d=s);s="",c=""},T=!1,D=!1,t.prev=20,x=f(e);case 22:return t.next=24,x.next();case 24:if(!(T=!(R=t.sent).done)){t.next=30;break}P=R.value,u.write(P);case 27:T=!1,t.next=22;break;case 30:t.next=36;break;case 32:t.prev=32,t.t0=t.catch(20),D=!0,L=t.t0;case 36:if(t.prev=36,t.prev=37,!T||null==x.return){t.next=41;break}return t.next=41,x.return();case 41:if(t.prev=41,!D){t.next=44;break}throw L;case 44:return t.finish(41);case 45:return t.finish(36);case 46:return u.end(),t.abrupt("return",v);case 48:case"end":return t.stop()}}),t,null,[[20,32,36,46],[37,,41,45]])})),w=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){a(i,n,o,u,c,"next",t)}function c(t){a(i,n,o,u,c,"throw",t)}u(void 0)}))},w.apply(this,arguments)}}};