diff --git a/dist/dist.js b/dist/dist.js index 318f0899..54dab3ff 100644 --- a/dist/dist.js +++ b/dist/dist.js @@ -1,2 +1,2 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("cdav",[],e):"object"==typeof exports?exports.cdav=e():t.cdav=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},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,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r(r.s=117)}([function(t,e,r){r(71)("asyncIterator")},function(t,e,r){"use strict";var n=r(5),o=r(20),i=r(12),a=r(4),u=r(17),c=r(54).KEY,s=r(13),l=r(49),f=r(33),p=r(30),h=r(3),y=r(72),d=r(71),v=r(96),m=r(73),b=r(9),g=r(6),w=r(24),_=r(46),x=r(29),P=r(40),O=r(97),j=r(56),S=r(11),k=r(23),R=j.f,A=S.f,E=O.f,T=n.Symbol,C=n.JSON,F=C&&C.stringify,L=h("_hidden"),D=h("toPrimitive"),N={}.propertyIsEnumerable,V=l("symbol-registry"),I=l("symbols"),Y=l("op-symbols"),q=Object.prototype,M="function"==typeof T,U=n.QObject,X=!U||!U.prototype||!U.prototype.findChild,B=i&&s((function(){return 7!=P(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=R(q,e);n&&delete q[e],A(t,e,r),n&&t!==q&&A(q,e,n)}:A,H=function(t){var e=I[t]=P(T.prototype);return e._k=t,e},G=M&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},z=function(t,e,r){return t===q&&z(Y,e,r),b(t),e=_(e,!0),b(r),o(I,e)?(r.enumerable?(o(t,L)&&t[L][e]&&(t[L][e]=!1),r=P(r,{enumerable:x(0,!1)})):(o(t,L)||A(t,L,x(1,{})),t[L][e]=!0),B(t,e,r)):A(t,e,r)},W=function(t,e){b(t);for(var r,n=v(e=w(e)),o=0,i=n.length;i>o;)z(t,r=n[o++],e[r]);return t},K=function(t){var e=N.call(this,t=_(t,!0));return!(this===q&&o(I,t)&&!o(Y,t))&&(!(e||!o(this,t)||!o(I,t)||o(this,L)&&this[L][t])||e)},Q=function(t,e){if(t=w(t),e=_(e,!0),t!==q||!o(I,e)||o(Y,e)){var r=R(t,e);return!r||!o(I,e)||o(t,L)&&t[L][e]||(r.enumerable=!0),r}},J=function(t){for(var e,r=E(w(t)),n=[],i=0;r.length>i;)o(I,e=r[i++])||e==L||e==c||n.push(e);return n},$=function(t){for(var e,r=t===q,n=E(r?Y:w(t)),i=[],a=0;n.length>a;)!o(I,e=n[a++])||r&&!o(q,e)||i.push(I[e]);return i};M||(u((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===q&&e.call(Y,r),o(this,L)&&o(this[L],t)&&(this[L][t]=!1),B(this,t,x(1,r))};return i&&X&&B(q,t,{configurable:!0,set:e}),H(t)}).prototype,"toString",(function(){return this._k})),j.f=Q,S.f=z,r(74).f=O.f=J,r(35).f=K,r(55).f=$,i&&!r(28)&&u(q,"propertyIsEnumerable",K,!0),y.f=function(t){return H(h(t))}),a(a.G+a.W+a.F*!M,{Symbol:T});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)h(Z[tt++]);for(var et=k(h.store),rt=0;et.length>rt;)d(et[rt++]);a(a.S+a.F*!M,"Symbol",{for:function(t){return o(V,t+="")?V[t]:V[t]=T(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in V)if(V[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),a(a.S+a.F*!M,"Object",{create:function(t,e){return void 0===e?P(t):W(P(t),e)},defineProperty:z,defineProperties:W,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:$}),C&&a(a.S+a.F*(!M||s((function(){var t=T();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(g(e)||void 0!==t)&&!G(t))return m(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!G(e))return e}),n[1]=e,F.apply(C,n)}}),T.prototype[D]||r(19)(T.prototype,D,T.prototype.valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},function(t,e,r){var n=r(4);n(n.S,"Object",{setPrototypeOf:r(82).set})},function(t,e,r){var n=r(49)("wks"),o=r(30),i=r(5).Symbol,a="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=n},function(t,e,r){var n=r(5),o=r(22),i=r(19),a=r(17),u=r(21),c=function(t,e,r){var s,l,f,p,h=t&c.F,y=t&c.G,d=t&c.S,v=t&c.P,m=t&c.B,b=y?n:d?n[e]||(n[e]={}):(n[e]||{}).prototype,g=y?o:o[e]||(o[e]={}),w=g.prototype||(g.prototype={});for(s in y&&(r=e),r)f=((l=!h&&b&&void 0!==b[s])?b:r)[s],p=m&&l?u(f,n):v&&"function"==typeof f?u(Function.call,f):f,b&&a(b,s,f,t&c.U),g[s]!=f&&i(g,s,p),v&&w[s]!=f&&(w[s]=f)};n.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){"use strict";var n=r(52),o={};o[r(3)("toStringTag")]="z",o+""!="[object z]"&&r(17)(Object.prototype,"toString",(function(){return"[object "+n(this)+"]"}),!0)},function(t,e,r){"use strict";r(95);var n=r(9),o=r(70),i=r(12),a=/./.toString,u=function(t){r(17)(RegExp.prototype,"toString",t,!0)};r(13)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?u((function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=a.name&&u((function(){return a.call(this)}))},function(t,e,r){var n=r(6);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,r){for(var n=r(18),o=r(23),i=r(17),a=r(5),u=r(19),c=r(31),s=r(3),l=s("iterator"),f=s("toStringTag"),p=c.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},y=o(h),d=0;di;)a(r[i++]);t._c=[],t._n=!1,e&&!t._h&&L(t)}))}},L=function(t){m.call(c,(function(){var e,r,n,o=t._v,i=D(t);if(i&&(e=w((function(){R?O.emit("unhandledRejection",o,t):(r=c.onunhandledrejection)?r({promise:t,reason:o}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",o)})),t._h=R||D(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){m.call(c,(function(){var e;R?O.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})}))},V=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),F(e,!0))},I=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw P("Promise can't be resolved itself");(e=C(t))?b((function(){var n={_w:r,_d:!1};try{e.call(t,s(I,n,1),s(V,n,1))}catch(t){V.call(n,t)}})):(r._v=t,r._s=1,F(r,!1))}catch(t){V.call({_w:r,_d:!1},t)}}};T||(k=function(t){y(this,k,"Promise","_h"),h(t),n.call(this);try{t(s(I,this,1),s(V,this,1))}catch(t){V.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(59)(k.prototype,{then:function(t,e){var r=E(v(this,k));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=R?O.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&F(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n;this.promise=t,this.resolve=s(I,t,1),this.reject=s(V,t,1)},g.f=E=function(t){return t===k||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!T,{Promise:k}),r(33)(k,"Promise"),r(78)("Promise"),a=r(22).Promise,f(f.S+f.F*!T,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(u||!T),"Promise",{resolve:function(t){return x(u&&this===a?k:this,t)}}),f(f.S+f.F*!(T&&r(53)((function(t){k.all(t).catch(A)}))),"Promise",{all:function(t){var e=this,r=E(e),n=r.resolve,o=r.reject,i=w((function(){var r=[],i=0,a=1;d(t,!1,(function(t){var u=i++,c=!1;r.push(void 0),a++,e.resolve(t).then((function(t){c||(c=!0,r[u]=t,--a||n(r))}),o)})),--a||n(r)}));return i.e&&o(i.v),r.promise},race:function(t){var e=this,r=E(e),n=r.reject,o=w((function(){d(t,!1,(function(t){e.resolve(t).then(r.resolve,n)}))}));return o.e&&n(o.v),r.promise}})},function(t,e){!function(e){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",s="object"==typeof t,l=e.regeneratorRuntime;if(l)s&&(t.exports=l);else{(l=e.regeneratorRuntime=s?t.exports:{}).wrap=w;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",d={},v={};v[a]=function(){return this};var m=Object.getPrototypeOf,b=m&&m(m(T([])));b&&b!==n&&o.call(b,a)&&(v=b);var g=O.prototype=x.prototype=Object.create(v);P.prototype=g.constructor=O,O.constructor=P,O[c]=P.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===P||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(g),t},l.awrap=function(t){return{__await:t}},j(S.prototype),S.prototype[u]=function(){return this},l.AsyncIterator=S,l.async=function(t,e,r,n){var o=new S(w(t,e,r,n));return l.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},j(g),g[c]="Generator",g[a]=function(){return this},g.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},l.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return u.type="throw",u.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),d}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),d}}}function w(t,e,r,n){var o=e&&e.prototype instanceof x?e:x,i=Object.create(o.prototype),a=new E(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=_(t,e,r);if("normal"===c.type){if(n=r.done?y:p,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=y,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function _(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function x(){}function P(){}function O(){}function j(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function S(t){var e;this._invoke=function(r,n){function i(){return new Promise((function(e,i){!function e(r,n,i,a){var u=_(t[r],t,n);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(s).then((function(t){c.value=t,i(c)}),a)}a(u.arg)}(r,n,e,i)}))}return e=e?e.then(i,i):i()}}function k(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,k(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=_(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function R(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function T(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e,r){var n=r(11),o=r(29);t.exports=r(12)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(25);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(63),o=r(50);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,r){var n=r(47),o=r(27);t.exports=function(t){return n(o(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=!1},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){t.exports={}},function(t,e,r){var n=r(43),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(11).f,o=r(20),i=r(3)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){var n=r(27);t.exports=function(t){return Object(n(t))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){r(60)("split",2,(function(t,e,n){"use strict";var o=r(79),i=n,a=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var u=void 0===/()??/.exec("")[1];n=function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!o(t))return i.call(r,t,e);var n,c,s,l,f,p=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),y=0,d=void 0===e?4294967295:e>>>0,v=new RegExp(t.source,h+"g");for(u||(n=new RegExp("^"+v.source+"$(?!\\s)",h));(c=v.exec(r))&&!((s=c.index+c[0].length)>y&&(p.push(r.slice(y,c.index)),!u&&c.length>1&&c[0].replace(n,(function(){for(f=1;f1&&c.index=d));)v.lastIndex===c.index&&v.lastIndex++;return y===r.length?!l&&v.test("")||p.push(""):p.push(r.slice(y)),p.length>d?p.slice(0,d):p}}else"0".split(void 0,0).length&&(n=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},n]}))},function(t,e,r){var n=r(4),o=r(103)(!0);n(n.S,"Object",{entries:function(t){return o(t)}})},function(t,e,r){var n=r(4);n(n.S+n.F,"Object",{assign:r(104)})},function(t,e,r){"use strict";var n=r(90)(!0);r(44)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e,r){var n=r(9),o=r(92),i=r(50),a=r(48)("IE_PROTO"),u=function(){},c=function(){var t,e=r(45)("iframe"),n=i.length;for(e.style.display="none",r(65).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("