window.$SP=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=221)}([function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));r(144),r(39),r(2),r(3),r(6),r(146),r(30),r(4);var n=r(49),i=r(157);function o(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function a(e){return s.apply(this,arguments)}function s(){var t;return t=regeneratorRuntime.mark((function t(r){var o,s,u,c,l,f,p,h;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.headers=r.headers||{},t.prev=1,o=!1,r.url.toLowerCase().indexOf("/_api/")>-1&&-1===r.url.toLowerCase().indexOf("_api/web/url")&&(void 0===r.headers.Accept&&(r.headers.Accept="application/json;odata="+e._SP_JSON_ACCEPT),void 0===r.headers["Content-Type"]&&(r.headers["Content-Type"]="application/json;odata="+e._SP_JSON_ACCEPT),void 0===r.headers["X-RequestDigest"]&&-1===r.url.indexOf("contextinfo")&&(o=!0)),r.url.toLowerCase().indexOf("_vti_bin/client.svc/processquery")>-1&&void 0===r.headers["X-RequestDigest"]&&(o=!0),!o){t.next=11;break}return t.next=8,n.a.call(this,{url:r.url.toLowerCase().split("_api")[0]});case 8:return s=t.sent,r.headers["X-RequestDigest"]=s,t.abrupt("return",a.call(this,r));case 11:if(void 0===r.headers["Content-Type"]&&(r.headers["Content-Type"]="text/xml; charset=utf-8"),!e._SP_ISBROWSER){t.next=36;break}return"POST"!==r.method||r.body||(r.body=""),t.next=16,new Promise((function(e){Object(i.a)(r,(function(t,r,n){e({code:t,responseText:r,request:n})}))}));case 16:if(u=t.sent,c=u.code,l=u.responseText,f=u.request,!(c>=200&&c<300&&"Error"!==l&&"Abort"!==l&&"Timeout"!==l)){t.next=24;break}return p=f.responseType&&"document"!==f.responseType?l:f.responseXML||f.responseText,(f.getResponseHeader("Content-Type")||"").indexOf("/json")>-1&&"string"==typeof p&&(p=JSON.parse(p)),t.abrupt("return",Promise.resolve(p));case 24:if(!(401==c&&r.headers["X-RequestDigest"]&&new Date(r.headers["X-RequestDigest"].split(",")[1])<new Date||(403==c||500==c)&&(l.includes("security validation for this page is invalid")||l.includes("The security validation for this page has timed out")))){t.next=33;break}return delete r.headers["X-RequestDigest"],t.next=28,n.a.call(this,{cache:!1});case 28:return h=t.sent,r.headers["X-RequestDigest"]=h,t.abrupt("return",a.call(this,r));case 33:return t.abrupt("return",Promise.reject({statusCode:c,responseText:l,request:f}));case 34:t.next=36;break;case 36:t.next=41;break;case 38:return t.prev=38,t.t0=t.catch(1),t.abrupt("return",Promise.reject({error:t.t0,statusCode:t.t0.statusCode,response:t.t0.response,responseText:t.t0.response?t.t0.response.body:""}));case 41:case"end":return t.stop()}}),t,this,[[1,38]])})),(s=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(e){o(a,n,i,s,u,"next",e)}function u(e){o(a,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r(6),r(13);function n(e,t,r){return'<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><'+e+' xmlns="'+(r=r||"http://schemas.microsoft.com/sharepoint/soap/").replace(/webpartpages\/$/,"webpartpages")+'">'+t+"</"+e+"></soap:Body></soap:Envelope>"}},function(e,t,r){var n=r(106),i=r(37),o=r(171);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,r){"use strict";var n,i,o,a,s=r(14),u=r(46),c=r(7),l=r(51),f=r(172),p=r(37),h=r(133),d=r(60),v=r(134),m=r(22),g=r(61),y=r(107),b=r(41),w=r(99),S=r(173),x=r(137),A=r(48),P=r(138).set,I=r(175),E=r(176),k=r(177),_=r(141),T=r(178),D=r(45),O=r(125),R=r(12),N=r(108),C=R("species"),L="Promise",j=D.get,V=D.set,M=D.getterFor(L),F=f,U=c.TypeError,W=c.document,B=c.process,G=l("fetch"),q=_.f,H=q,Y="process"==b(B),$=!!(W&&W.createEvent&&c.dispatchEvent),z=O(L,(function(){if(!(w(F)!==String(F))){if(66===N)return!0;if(!Y&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!F.prototype.finally)return!0;if(N>=51&&/native code/.test(F))return!1;var e=F.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[C]=t,!(e.then((function(){}))instanceof t)})),X=z||!x((function(e){F.all(e).catch((function(){}))})),Q=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},Z=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;I((function(){for(var i=t.value,o=1==t.state,a=0;n.length>a;){var s,u,c,l=n[a++],f=o?l.ok:l.fail,p=l.resolve,h=l.reject,d=l.domain;try{f?(o||(2===t.rejection&&te(e,t),t.rejection=1),!0===f?s=i:(d&&d.enter(),s=f(i),d&&(d.exit(),c=!0)),s===l.promise?h(U("Promise-chain cycle")):(u=Q(s))?u.call(s,p,h):p(s)):h(i)}catch(e){d&&!c&&d.exit(),h(e)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&J(e,t)}))}},K=function(e,t,r){var n,i;$?((n=W.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},(i=c["on"+e])?i(n):"unhandledrejection"===e&&k("Unhandled promise rejection",r)},J=function(e,t){P.call(c,(function(){var r,n=t.value;if(ee(t)&&(r=T((function(){Y?B.emit("unhandledRejection",n,e):K("unhandledrejection",e,n)})),t.rejection=Y||ee(t)?2:1,r.error))throw r.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){P.call(c,(function(){Y?B.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)}))},re=function(e,t,r,n){return function(i){e(t,r,i,n)}},ne=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,Z(e,t,!0))},ie=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw U("Promise can't be resolved itself");var i=Q(r);i?I((function(){var n={done:!1};try{i.call(r,re(ie,e,n,t),re(ne,e,n,t))}catch(r){ne(e,n,r,t)}})):(t.value=r,t.state=1,Z(e,t,!1))}catch(r){ne(e,{done:!1},r,t)}}};z&&(F=function(e){y(this,F,L),g(e),n.call(this);var t=j(this);try{e(re(ie,this,t),re(ne,this,t))}catch(e){ne(this,t,e)}},(n=function(e){V(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(F.prototype,{then:function(e,t){var r=M(this),n=q(A(this,F));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=Y?B.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&Z(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n,t=j(e);this.promise=e,this.resolve=re(ie,e,t),this.reject=re(ne,e,t)},_.f=q=function(e){return e===F||e===o?new i(e):H(e)},u||"function"!=typeof f||(a=f.prototype.then,p(f.prototype,"then",(function(e,t){var r=this;return new F((function(e,t){a.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof G&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return E(F,G.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:z},{Promise:F}),d(F,L,!1,!0),v(L),o=l(L),s({target:L,stat:!0,forced:z},{reject:function(e){var t=q(this);return t.reject.call(void 0,e),t.promise}}),s({target:L,stat:!0,forced:u||z},{resolve:function(e){return E(u&&this===o?F:this,e)}}),s({target:L,stat:!0,forced:X},{all:function(e){var t=this,r=q(t),n=r.resolve,i=r.reject,o=T((function(){var r=g(t.resolve),o=[],a=0,s=1;S(e,(function(e){var u=a++,c=!1;o.push(void 0),s++,r.call(t,e).then((function(e){c||(c=!0,o[u]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise},race:function(e){var t=this,r=q(t),n=r.reject,i=T((function(){var i=g(t.resolve);S(e,(function(e){i.call(t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new k(n||[]);return o._invoke=function(e,t,r){var n=l;return function(i,o){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===i)throw o;return T()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=P(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=c(e,t,r);if("normal"===u.type){if(n=r.done?h:f,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=h,r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l="suspendedStart",f="suspendedYield",p="executing",h="completed",d={};function v(){}function m(){}function g(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==r&&n.call(w,o)&&(y=w);var S=g.prototype=v.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function A(e){var t;this._invoke=function(r,i){function o(){return new Promise((function(t,o){!function t(r,i,o,a){var s=c(e[r],e,i);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?Promise.resolve(l.__await).then((function(e){t("next",e,o,a)}),(function(e){t("throw",e,o,a)})):Promise.resolve(l).then((function(e){u.value=e,o(u)}),(function(e){return t("throw",e,o,a)}))}a(s.arg)}(r,i,t,o)}))}return t=t?t.then(o,o):o()}}function P(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=c(n,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function _(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return m.prototype=S.constructor=g,g.constructor=m,g[s]=m.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},x(A.prototype),A.prototype[a]=function(){return this},e.AsyncIterator=A,e.async=function(t,r,n,i){var o=new A(u(t,r,n,i));return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(S),S[s]="Generator",S[o]=function(){return this},S.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=_,k.prototype={constructor:k,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(E),!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 e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:_(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r(2),r(3),r(6),r(13),r(4);var n=r(0),i=r(1);function o(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function a(){return s.apply(this,arguments)}function s(){var e;return e=regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==this.url){e.next=26;break}if(void 0===window.L_Menu_BaseUrl){e.next=5;break}return e.abrupt("return",Promise.resolve(u(window.L_Menu_BaseUrl)));case 5:if(void 0===window._spPageContextInfo||void 0===window._spPageContextInfo.webServerRelativeUrl){e.next=9;break}return e.abrupt("return",Promise.resolve(u(window._spPageContextInfo.webServerRelativeUrl)));case 9:return e.prev=9,e.next=12,n.a.call(this,{url:"/_vti_bin/Webs.asmx",body:Object(i.a)("WebUrlFromPageUrl","<pageUrl>"+window.location.href.replace(/&/g,"&amp;")+"</pageUrl>")});case 12:if(t=e.sent,!(r=t.getElementsByTagName("WebUrlFromPageUrlResult")).length){e.next=18;break}return e.abrupt("return",Promise.resolve(u(r[0].firstChild.nodeValue.toLowerCase())));case 18:return e.abrupt("return",Promise.reject("[SharepointPlus 'getURL'] Unable to retrieve the URL"));case 19:e.next=24;break;case 21:return e.prev=21,e.t0=e.catch(9),e.abrupt("return",Promise.reject(e.t0));case 24:e.next=27;break;case 26:return e.abrupt("return",Promise.resolve(u(this.url)));case 27:case"end":return e.stop()}}),e,this,[[9,21]])})),(s=function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,u,"next",e)}function u(e){o(a,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}function u(e){return""===e||"/"===e?window.location.protocol+"//"+window.location.host+"/":e}},function(e,t,r){"use strict";var n=r(14),i=r(78);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")()}).call(this,r(10))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";var n,i=r(27),o=r(7),a=r(22),s=r(24),u=r(76),c=r(28),l=r(37),f=r(25).f,p=r(105),h=r(75),d=r(12),v=r(69),m=o.DataView,g=m&&m.prototype,y=o.Int8Array,b=y&&y.prototype,w=o.Uint8ClampedArray,S=w&&w.prototype,x=y&&p(y),A=b&&p(b),P=Object.prototype,I=P.isPrototypeOf,E=d("toStringTag"),k=v("TYPED_ARRAY_TAG"),_=!(!o.ArrayBuffer||!m),T=_&&!!h&&"Opera"!==u(o.opera),D=!1,O={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R=function(e){return a(e)&&s(O,u(e))};for(n in O)o[n]||(T=!1);if((!T||"function"!=typeof x||x===Function.prototype)&&(x=function(){throw TypeError("Incorrect invocation")},T))for(n in O)o[n]&&h(o[n],x);if((!T||!A||A===P)&&(A=x.prototype,T))for(n in O)o[n]&&h(o[n].prototype,A);if(T&&p(S)!==A&&h(S,A),i&&!s(A,E))for(n in D=!0,f(A,E,{get:function(){return a(this)?this[k]:void 0}}),O)o[n]&&c(o[n],k,n);_&&h&&p(g)!==P&&h(g,P),e.exports={NATIVE_ARRAY_BUFFER:_,NATIVE_ARRAY_BUFFER_VIEWS:T,TYPED_ARRAY_TAG:D&&k,aTypedArray:function(e){if(R(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(h){if(I.call(x,e))return e}else for(var t in O)if(s(O,n)){var r=o[t];if(r&&(e===r||I.call(r,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r){if(i){if(r)for(var n in O){var a=o[n];a&&s(a.prototype,e)&&delete a.prototype[e]}A[e]&&!r||l(A,e,r?t:T&&b[e]||t)}},exportTypedArrayStaticMethod:function(e,t,r){var n,a;if(i){if(h){if(r)for(n in O)(a=o[n])&&s(a,e)&&delete a[e];if(x[e]&&!r)return;try{return l(x,e,r?t:T&&y[e]||t)}catch(e){}}for(n in O)!(a=o[n])||a[e]&&!r||l(a,e,t)}},isView:function(e){var t=u(e);return"DataView"===t||s(O,t)},isTypedArray:R,TypedArray:x,TypedArrayPrototype:A}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(36),i=r(130),o=r(62),a=r(45),s=r(131),u=a.set,c=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){u(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,r){var n=r(7),i=r(100),o=r(24),a=r(69),s=r(103),u=r(126),c=i("wks"),l=n.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return o(c,e)||(s&&o(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},function(e,t,r){"use strict";var n=r(112),i=r(23),o=r(29),a=r(15),s=r(38),u=r(34),c=r(113),l=r(114),f=Math.max,p=Math.min,h=Math.floor,d=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(e,t,r,n){return[function(r,n){var i=u(this),o=null==r?void 0:r[e];return void 0!==o?o.call(r,i,n):t.call(String(i),r,n)},function(e,o){if(n.REPLACE_KEEPS_$0||"string"==typeof o&&-1===o.indexOf("$0")){var u=r(t,e,this,o);if(u.done)return u.value}var h=i(e),d=String(this),v="function"==typeof o;v||(o=String(o));var g=h.global;if(g){var y=h.unicode;h.lastIndex=0}for(var b=[];;){var w=l(h,d);if(null===w)break;if(b.push(w),!g)break;""===String(w[0])&&(h.lastIndex=c(d,a(h.lastIndex),y))}for(var S,x="",A=0,P=0;P<b.length;P++){w=b[P];for(var I=String(w[0]),E=f(p(s(w.index),d.length),0),k=[],_=1;_<w.length;_++)k.push(void 0===(S=w[_])?S:String(S));var T=w.groups;if(v){var D=[I].concat(k,E,d);void 0!==T&&D.push(T);var O=String(o.apply(void 0,D))}else O=m(I,d,E,k,T,o);E>=A&&(x+=d.slice(A,E)+O,A=E+I.length)}return x+d.slice(A)}];function m(e,r,n,i,a,s){var u=n+e.length,c=i.length,l=v;return void 0!==a&&(a=o(a),l=d),t.call(s,l,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return r.slice(0,n);case"'":return r.slice(u);case"<":s=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return t;if(l>c){var f=h(l/10);return 0===f?t:f<=c?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):t}s=i[l-1]}return void 0===s?"":s}))}}))},function(e,t,r){var n=r(7),i=r(44).f,o=r(28),a=r(37),s=r(98),u=r(122),c=r(125);e.exports=function(e,t){var r,l,f,p,h,d=e.target,v=e.global,m=e.stat;if(r=v?n:m?n[d]||s(d,{}):(n[d]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(h=i(r,l))&&h.value:r[l],!c(v?l:d+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&o(p,"sham",!0),a(r,l,p,e)}}},function(e,t,r){var n=r(38),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){var n=r(7),i=r(143),o=r(11),a=r(28),s=r(12),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var f in i){var p=n[f],h=p&&p.prototype;if(h){if(h[u]!==l)try{a(h,u,l)}catch(e){h[u]=l}if(h[c]||a(h,c,f),i[f])for(var d in o)if(h[d]!==o[d])try{a(h,d,o[d])}catch(e){h[d]=o[d]}}}},function(e,t,r){"use strict";var n=r(14),i=r(7),o=r(51),a=r(46),s=r(27),u=r(103),c=r(126),l=r(8),f=r(24),p=r(71),h=r(22),d=r(23),v=r(29),m=r(36),g=r(57),y=r(50),b=r(72),w=r(73),S=r(58),x=r(167),A=r(102),P=r(44),I=r(25),E=r(96),k=r(28),_=r(37),T=r(100),D=r(68),O=r(70),R=r(69),N=r(12),C=r(128),L=r(129),j=r(60),V=r(45),M=r(31).forEach,F=D("hidden"),U=N("toPrimitive"),W=V.set,B=V.getterFor("Symbol"),G=Object.prototype,q=i.Symbol,H=o("JSON","stringify"),Y=P.f,$=I.f,z=x.f,X=E.f,Q=T("symbols"),Z=T("op-symbols"),K=T("string-to-symbol-registry"),J=T("symbol-to-string-registry"),ee=T("wks"),te=i.QObject,re=!te||!te.prototype||!te.prototype.findChild,ne=s&&l((function(){return 7!=b($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Y(G,t);n&&delete G[t],$(e,t,r),n&&e!==G&&$(G,t,n)}:$,ie=function(e,t){var r=Q[e]=b(q.prototype);return W(r,{type:"Symbol",tag:e,description:t}),s||(r.description=t),r},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},ae=function(e,t,r){e===G&&ae(Z,t,r),d(e);var n=g(t,!0);return d(r),f(Q,n)?(r.enumerable?(f(e,F)&&e[F][n]&&(e[F][n]=!1),r=b(r,{enumerable:y(0,!1)})):(f(e,F)||$(e,F,y(1,{})),e[F][n]=!0),ne(e,n,r)):$(e,n,r)},se=function(e,t){d(e);var r=m(t),n=w(r).concat(fe(r));return M(n,(function(t){s&&!ue.call(r,t)||ae(e,t,r[t])})),e},ue=function(e){var t=g(e,!0),r=X.call(this,t);return!(this===G&&f(Q,t)&&!f(Z,t))&&(!(r||!f(this,t)||!f(Q,t)||f(this,F)&&this[F][t])||r)},ce=function(e,t){var r=m(e),n=g(t,!0);if(r!==G||!f(Q,n)||f(Z,n)){var i=Y(r,n);return!i||!f(Q,n)||f(r,F)&&r[F][n]||(i.enumerable=!0),i}},le=function(e){var t=z(m(e)),r=[];return M(t,(function(e){f(Q,e)||f(O,e)||r.push(e)})),r},fe=function(e){var t=e===G,r=z(t?Z:m(e)),n=[];return M(r,(function(e){!f(Q,e)||t&&!f(G,e)||n.push(Q[e])})),n};(u||(_((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),r=function(e){this===G&&r.call(Z,e),f(this,F)&&f(this[F],t)&&(this[F][t]=!1),ne(this,t,y(1,e))};return s&&re&&ne(G,t,{configurable:!0,set:r}),ie(t,e)}).prototype,"toString",(function(){return B(this).tag})),_(q,"withoutSetter",(function(e){return ie(R(e),e)})),E.f=ue,I.f=ae,P.f=ce,S.f=x.f=le,A.f=fe,C.f=function(e){return ie(N(e),e)},s&&($(q.prototype,"description",{configurable:!0,get:function(){return B(this).description}}),a||_(G,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),M(w(ee),(function(e){L(e)})),n({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=String(e);if(f(K,t))return K[t];var r=q(t);return K[t]=r,J[r]=t,r},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(f(J,e))return J[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ce}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:le,getOwnPropertySymbols:fe}),n({target:"Object",stat:!0,forced:l((function(){A.f(1)}))},{getOwnPropertySymbols:function(e){return A.f(v(e))}}),H)&&n({target:"JSON",stat:!0,forced:!u||l((function(){var e=q();return"[null]"!=H([e])||"{}"!=H({a:e})||"{}"!=H(Object(e))}))},{stringify:function(e,t,r){for(var n,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=t,(h(t)||void 0!==e)&&!oe(e))return p(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!oe(t))return t}),i[1]=t,H.apply(null,i)}});q.prototype[U]||k(q.prototype,U,q.prototype.valueOf),j(q,"Symbol"),O[F]=!0},function(e,t,r){"use strict";var n=r(14),i=r(27),o=r(7),a=r(24),s=r(22),u=r(25).f,c=r(122),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new l(e):void 0===e?l():l(e);return""===e&&(f[t]=!0),t};c(p,l);var h=p.prototype=l.prototype;h.constructor=p;var d=h.toString,v="Symbol(test)"==String(l("test")),m=/^Symbol\((.*)\)[^)]+$/;u(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=d.call(e);if(a(f,e))return"";var r=v?t.slice(7,-1):t.replace(m,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:p})}},function(e,t,r){r(129)("iterator")},function(e,t,r){"use strict";var n=r(142).charAt,i=r(45),o=r(131),a=i.set,s=i.getterFor("String Iterator");o(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),r=t.string,i=t.index;return i>=r.length?{value:void 0,done:!0}:(e=n(r,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,r){"use strict";var n=r(14),i=r(22),o=r(71),a=r(47),s=r(15),u=r(36),c=r(109),l=r(63),f=r(12)("species"),p=[].slice,h=Math.max;n({target:"Array",proto:!0,forced:!l("slice")},{slice:function(e,t){var r,n,l,d=u(this),v=s(d.length),m=a(e,v),g=a(void 0===t?v:t,v);if(o(d)&&("function"!=typeof(r=d.constructor)||r!==Array&&!o(r.prototype)?i(r)&&null===(r=r[f])&&(r=void 0):r=void 0,r===Array||void 0===r))return p.call(d,m,g);for(n=new(void 0===r?Array:r)(h(g-m,0)),l=0;m<g;m++,l++)m in d&&c(n,l,d[m]);return n.length=l,n}})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(22);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(27),i=r(120),o=r(23),a=r(57),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(o(e),t=a(t,!0),o(r),i)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));r(17),r(18),r(19),r(11),r(2),r(20),r(16);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){var e,t,r,a,s=arguments[0]||{},u=1,c=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[u]||{},u++),"object"!==n(s)&&"function"!=typeof s&&(s={});u<c;u+=1)if(null!==(e=arguments[u]))for(t in e)s!==e[t]&&void 0===s[t]&&(l&&e[t]&&(o(e[t])||(r=Array.isArray(e[t])))?(r?(r=!1,a=s[t]&&Array.isArray(s[t])?s[t]:[]):a=s[t]&&o(s[t])?s[t]:{},s[t]=i(l,a,e[t])):void 0!==e[t]&&(s[t]=e[t]));return s}function o(e){if(null===e||"object"!==n(e)||e.nodeType||null!==e&&e===e.window)return!1;try{if(e.constructor&&!this.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}return!0}},function(e,t,r){var n=r(8);e.exports=!n((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(27),i=r(25),o=r(50);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(34);e.exports=function(e){return Object(n(e))}},function(e,t,r){"use strict";var n=r(112),i=r(147),o=r(23),a=r(34),s=r(48),u=r(113),c=r(15),l=r(114),f=r(78),p=r(8),h=[].push,d=Math.min,v=!p((function(){return!RegExp(4294967295,"y")}));n("split",2,(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=String(a(this)),o=void 0===r?4294967295:r>>>0;if(0===o)return[];if(void 0===e)return[n];if(!i(e))return t.call(n,e,o);for(var s,u,c,l=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,v=new RegExp(e.source,p+"g");(s=f.call(v,n))&&!((u=v.lastIndex)>d&&(l.push(n.slice(d,s.index)),s.length>1&&s.index<n.length&&h.apply(l,s.slice(1)),c=s[0].length,d=u,l.length>=o));)v.lastIndex===s.index&&v.lastIndex++;return d===n.length?!c&&v.test("")||l.push(""):l.push(n.slice(d)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t.call(this,e,r)}:t,[function(t,r){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,r):n.call(String(i),t,r)},function(e,i){var a=r(n,e,this,i,n!==t);if(a.done)return a.value;var f=o(e),p=String(this),h=s(f,RegExp),m=f.unicode,g=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(v?"y":"g"),y=new h(v?f:"^(?:"+f.source+")",g),b=void 0===i?4294967295:i>>>0;if(0===b)return[];if(0===p.length)return null===l(y,p)?[p]:[];for(var w=0,S=0,x=[];S<p.length;){y.lastIndex=v?S:0;var A,P=l(y,v?p:p.slice(S));if(null===P||(A=d(c(y.lastIndex+(v?0:S)),p.length))===w)S=u(p,S,m);else{if(x.push(p.slice(w,S)),x.length===b)return x;for(var I=1;I<=P.length-1;I++)if(x.push(P[I]),x.length===b)return x;S=w=A}}return x.push(p.slice(w)),x}]}),!v)},function(e,t,r){var n=r(74),i=r(56),o=r(29),a=r(15),s=r(104),u=[].push,c=function(e){var t=1==e,r=2==e,c=3==e,l=4==e,f=6==e,p=5==e||f;return function(h,d,v,m){for(var g,y,b=o(h),w=i(b),S=n(d,v,3),x=a(w.length),A=0,P=m||s,I=t?P(h,x):r?P(h,0):void 0;x>A;A++)if((p||A in w)&&(y=S(g=w[A],A,b),e))if(t)I[A]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return A;case 2:u.call(I,g)}else if(l)return!1;return f?-1:c||l?l:I}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,r){"use strict";var n=r(14),i=r(56),o=r(36),a=r(77),s=[].join,u=i!=Object,c=a("join",",");n({target:"Array",proto:!0,forced:u||c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),i=r(1);function o(){if(!this.listID)throw"[SharepointPlus 'info'] the list ID/Name is required.";if(!this.url)throw"[SharepointPlus 'info'] not able to find the URL!";return n.a.call(this,{url:this.url+"/_vti_bin/lists.asmx",body:Object(i.a)("GetList","<listName>"+this.listID+"</listName>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/GetList"}}).then((function(e){var t,r,n,i,o,a,s,u,c,l,f,p,h,d=[],v=e.getElementsByTagName("Field"),m=0,g=e.getElementsByTagName("List");for(r=(g=g.length>0?g[0]:null).attributes,d._List={},s=0;s<r.length;s++)d._List[r[s].nodeName]=r[s].nodeValue;for(s=0;s<v.length;s++)if(v[s].getAttribute("ID")){for(d[m]=[],t=d[m],u=(r=v[s].attributes).length;u--;){if(n=r[u].nodeName,i=r[u].nodeValue,"Type"===n)switch(i){case"Choice":case"MultiChoice":for(t.FillInChoice=v[s].getAttribute("FillInChoice"),c=v[s].getElementsByTagName("CHOICE"),l=[],f=0;f<c.length;f++)l.push(c[f].firstChild.nodeValue);t.Choices=l;break;case"Lookup":case"LookupMulti":t.Choices={list:v[s].getAttribute("List"),field:v[s].getAttribute("ShowField")};break;case"TaxonomyFieldType":case"TaxonomyFieldTypeMulti":for(c=v[s].getElementsByTagName("Property"),t.Property={},f=0;f<c.length;f++)p=c[f].getElementsByTagName("Name"),h=c[f].getElementsByTagName("Value"),p.length>0&&(t.Property[p[0].firstChild.nodeValue]=h.length>0?h[0].firstChild.nodeValue:null);break;default:t.Choices=[]}t[n]=i}if((o=v[s].getElementsByTagName("Default").length)>0){a=v[s].getElementsByTagName("Default"),d[m].DefaultValue=[];for(var y=0;y<o;y++)a[y].firstChild&&d[m].DefaultValue.push(a[y].firstChild.nodeValue);1===o&&(d[m].DefaultValue=d[m].DefaultValue[0])}else d[m].DefaultValue=null;m++}return d}))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r(6),r(13);function n(e){return e.replace(/&(?!amp;|lt;|gt;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}},function(e,t,r){var n=r(56),i=r(34);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(7),i=r(28),o=r(24),a=r(98),s=r(99),u=r(45),c=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,r,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||o(r,"name")||i(r,"name",t),l(r).source=f.join("string"==typeof t?t:"")),e!==n?(u?!p&&e[t]&&(c=!0):delete e[t],c?e[t]=r:i(e,t,r)):c?e[t]=r:a(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){"use strict";var n=r(14),i=r(59).indexOf,o=r(77),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,u=o("indexOf");n({target:"Array",proto:!0,forced:s||u},{indexOf:function(e){return s?a.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return b}));r(17),r(18),r(19),r(116),r(39),r(11),r(32),r(79),r(21),r(215),r(2),r(3),r(6),r(20),r(119),r(13),r(30),r(217),r(42),r(16),r(4);var n=r(26),i=r(83),o=r(65),a=r(33),s=r(35),u=r(85),c=r(1),l=r(0),f=r(66),p=r(86),h=r(87);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.attributes=Object.assign({},t)}var t,r,n;return t=e,(r=[{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"getAttributes",value:function(){return this.attributes}}])&&m(t.prototype,r),n&&m(t,n),e}();function y(e){for(var t,r=[],n=0,i=e.replace(/(\s+)?(=)(\s+)?/g,"$2").replace(/==/g,"=").split(" AND ");n<i.length;n++)if((t=i[n].match(/'([^']+)'\.([a-zA-Z0-9_]+)='([^']+)'\.([a-zA-Z0-9_]+)/))&&5==t.length){var o={};o[t[1]]=t[2],o[t[3]]=t[4],r.push(o)}return r}function b(e){return w.apply(this,arguments)}function w(){var t;return t=regeneratorRuntime.mark((function t(r){var v,m,w=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.delegateYield(regeneratorRuntime.mark((function t(){var d,m,S,x,A,P,I,E,k,_,T,D,O,R,N,C,L,j,V,M,F,U,W,B,G,q,H,Y,$,z,X,Q,Z,K,J,ee,te,re,ne,ie,oe,ae,se,ue,ce,le,fe,pe,he,de,ve,me,ge,ye,be,we,Se,xe,Ae,Pe,Ie,Ee,ke;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(w.listID){t.next=2;break}return t.abrupt("return",{v:Promise.reject("[SharepointPlus 'get']: the list ID/Name is required")});case 2:if(d={},Object(n.a)(!0,d,r),w.url){t.next=6;break}return t.abrupt("return",{v:Promise.reject("[SharepointPlus 'get']: not able to find the URL!")});case 6:if(d.fields=d.fields||"",d.where=d.where||"",d.whereFct=d.whereFct||function(e){return e},d.orderby=d.orderby||"",d.useIndexForOrderBy=!0===d.useIndexForOrderBy,d.groupby=d.groupby||"",d.rowlimit=d.rowlimit||0,d.whereEscapeChar=!1!==d.whereEscapeChar,d.paging=!0===d.paging,d.page=!1===d.paging||isNaN(d.page)?5e3:d.page,d.paging&&0===d.rowlimit&&(d.rowlimit=5e3),d.expandUserField=!0===d.expandUserField||"True"===d.expandUserField?"True":"False",d.dateInUTC=!0===d.dateInUTC?"True":"False",d.folderOptions=d.folderOptions||null,d.view=d.view||"",d.viewCache=!1!==d.viewCache,d.alias=d.alias||w.listID,d.calendar=!0===d.calendar,!0===d.calendar&&(d.calendarOptions=d.calendarOptions||{},d.calendarOptions.referenceDate=d.calendarOptions.referenceDate||new Date,"string"!=typeof d.calendarOptions.referenceDate&&(d.calendarOptions.referenceDate=Object(u.a)(d.calendarOptions.referenceDate)),d.calendarOptions.splitRecurrence=!1===d.calendarOptions.splitRecurrence?"FALSE":"TRUE",d.calendarOptions.range=d.calendarOptions.range||"Month"),d.showListInAttribute&&(d.join||d.innerjoin||d.outerjoin)&&(d.showListInAttribute=!1),d.results=d.results||[],d.listItemCollectionPositionNext=d.listItemCollectionPositionNext||"",d.listItemCollectionPositionNext&&(d.listItemCollectionPositionNext=d.listItemCollectionPositionNext.replace(/&/g,"&amp;").replace(/&amp;amp;/g,"&amp;")),""===d.view){t.next=40;break}return t.next=32,i.a.call(w,d.view,{cache:d.viewCache});case 32:m=t.sent,d.view=m.ID,m.WhereCAML&&(""===(S=Array.isArray(d.where)?d.where.slice(0):[d.where])[0]&&(S=[]),S=S.map((function(e){return d.whereCAML?e:Object(o.a)(e)})),(v=m.WhereCAML.match(/^<And>(<DateRangesOverlap>.*<\/DateRangesOverlap>)(.*)<\/And>$/))&&3===v.length&&(m.WhereCAML="<And>"+v[2]+v[1]+"</And>"),S=S.length>0?S.map((function(e){return"<And>"+e+m.WhereCAML+"</And>"})):m.WhereCAML,d.where=S,d.whereCAML=!0),d.fields+=(""===d.fields?"":",")+m.Fields.join(","),d.orderby+=(""===d.orderby?"":",")+m.OrderBy,d.calendarViaView=d.calendar,d.calendar=!1,d.view="";case 40:if(!Array.isArray(d.where)){t.next=46;break}return x=d.where.length,A=0,t.abrupt("return",{v:Promise.all(d.where.map((function(e){var t={};for(var r in d)t[r]=d[r];return t.where=e,b.call(w,t).then((function(e){return"function"==typeof t.progress&&t.progress(++A,x),e}))}))).then((function(e){var t=[];return e.forEach((function(e){return t=t.concat(e)})),t}))});case 46:d.originalWhere=d.where,d.nextWhere=[];case 48:if(d.progress=d.progress||function(){},P="",E="",D="",N="",L="",d.fields.length>0)for("string"==typeof d.fields&&(d.fields=d.fields.replace(/^\s+/,"").replace(/\s+$/,"").replace(/( )?,( )?/g,",").split(",")),I=0;I<d.fields.length;I++)P+='<FieldRef Name="'+d.fields[I]+'" />';if(""!==d.orderby)for(k=d.orderby.split(","),I=0;I<k.length;I++)_="ASC",(T=k[I].trim().split(" ")).length>0&&(2==T.length&&(_=T[1].toUpperCase()),E+='<FieldRef Name="'+T[0]+'" Ascending="'+("ASC"==_)+'" />');if(!0!==d.calendar&&!0!==d.calendarViaView||""!==E||(E='<FieldRef Name="EventDate" Ascending="ASC" />'),""!==d.groupby)for(O=d.groupby.split(","),I=0;I<O.length;I++)D+='<FieldRef Name="'+O[I]+'" />';if(Array.isArray(d.merge)&&(d.mergeData=d.mergeData||[]),!0===d.calendar||!0===d.calendarViaView)for(R=["Title","EventDate","EndDate","Duration","fAllDayEvent","fRecurrence","RecurrenceData","ID","MasterSeriesItemID","UID","RecurrenceID"],I=0;I<R.length;I++)P+='<FieldRef Name="'+R[I]+'" />';if(!d.folderOptions||d.folderOptions.rootFolder){t.next=61;break}return t.next=59,a.a.call(w);case 59:V=t.sent,d.folderOptions.rootFolder=V._List.RootFolder;case 61:if(void 0!==d.queryOptions){t.next=81;break}if(d._queryOptions="<DateInUtc>"+d.dateInUTC+'</DateInUtc><Paging ListItemCollectionPositionNext="'+d.listItemCollectionPositionNext+'"></Paging><IncludeAttachmentUrls>True</IncludeAttachmentUrls>'+(""===P?"":"<IncludeMandatoryColumns>False</IncludeMandatoryColumns>")+"<ExpandUserField>"+d.expandUserField+"</ExpandUserField>",!d.folderOptions){t.next=78;break}t.t0=d.folderOptions.show,t.next="FilesAndFolders_Recursive"===t.t0?67:"FilesOnly_InFolder"===t.t0?69:"FilesAndFolders_InFolder"===t.t0?71:(t.t0,73);break;case 67:return C="RecursiveAll",t.abrupt("break",74);case 69:return C="FilesOnly",t.abrupt("break",74);case 71:return C="",t.abrupt("break",74);case 73:C="Recursive";case 74:d._queryOptions+='<ViewAttributes Scope="'+C+'"></ViewAttributes>',d.folderOptions.path&&(d._queryOptions+="<Folder>"+d.folderOptions.rootFolder+"/"+d.folderOptions.path+"</Folder>"),t.next=79;break;case 78:d._queryOptions+='<ViewAttributes Scope="Recursive"></ViewAttributes>';case 79:t.next=82;break;case 81:d._queryOptions=d.queryOptions;case 82:return d.calendarOptions&&(d._queryOptions+="<CalendarDate>"+d.calendarOptions.referenceDate+"</CalendarDate><RecurrencePatternXMLVersion>v3</RecurrencePatternXMLVersion><ExpandRecurrence>"+d.calendarOptions.splitRecurrence+"</ExpandRecurrence>"),""!==d.where&&(L=d.whereCAML?d.where:Object(o.a)(d.where)),!0===d.calendar&&(j="<DateRangesOverlap><FieldRef Name='EventDate' /><FieldRef Name='EndDate' /><FieldRef Name='RecurrenceID' /><Value Type='DateTime'><"+d.calendarOptions.range+" /></Value></DateRangesOverlap>",L=""!==L?"<And>"+L+j+"</And>":j),L=d.whereFct(L),N="<listName>"+w.listID+"</listName><viewName>"+(d.viewID||"")+"</viewName><query><Query>"+(""!=L?"<Where>"+L+"</Where>":"")+(""!=D?"<GroupBy>"+D+"</GroupBy>":"")+(""!=E?"<OrderBy"+(d.useIndexForOrderBy?" UseIndexForOrderBy='TRUE' Override='TRUE'":"")+">"+E+"</OrderBy>":"")+"</Query></query><viewFields><ViewFields Properties='True'>"+P+"</ViewFields></viewFields><rowLimit>"+d.rowlimit+"</rowLimit><queryOptions><QueryOptions>"+d._queryOptions+"</QueryOptions></queryOptions>",N=Object(c.a)("GetListItems",N),t.next=90,l.a.call(w,{url:w.url+"/_vti_bin/Lists.asmx",body:N});case 90:if(M=t.sent,ae=[],0===(F=M.getElementsByTagName("z:row")).length&&(F=M.getElementsByTagName("row")),ce=d.json&&!d.join&&!d.innerjoin&&!d.outerjoin&&!d.joinIndex,d.showListInAttribute)for(le=0,fe=F.length;le<fe;le++){for(pe=F[le].attributes,he={},de=pe.length;de--;)he[d.alias+"."+pe[de].nodeName.slice(4)]=pe[de].nodeValue;ce?ae.push(he):ae.push(new g(he))}else if(ce)for(ve=F.length,me=d.fields.length,ge=function(e){var t={};if(0===me)for(var r=F[e].attributes,n=r.length,i=0;i<n;i++){var o=r[i].nodeName.slice(4);t[o]=r[i].nodeValue}else d.fields.forEach((function(r){t[r]=F[e].getAttribute("ows_"+r)}));ae.push(t)},ye=0;ye<ve;ye++)ge(ye);else for(be=0,we=F.length;be<we;be++)ae.push(new p.a(F[be]));if(d.results.length>0)for(I=0,W=ae.length;I<W;I++)d.results.push(ae[I]);if("string"!=typeof d.originalWhere&&d.progress(d.originalWhere.length-d.nextWhere.length,d.originalWhere.length),d.paging&&(void 0!==(B=M.getElementsByTagName("rs:data")[0])&&0!=B.length||(B=M.getElementsByTagName("data")[0]),B&&(z=B.getAttribute("ListItemCollectionPositionNext"))),!(d.paging&&--d.page>0)){t.next=110;break}if(0===d.results.length&&(d.results=ae),d.progress(d.results.length),!z){t.next=107;break}return d.listItemCollectionPositionNext=Object(s.a)(z),t.abrupt("return",{v:b.call(w,d)});case 107:ae=d.results;case 108:t.next=118;break;case 110:if(!(d.nextWhere.length>0)){t.next=116;break}return 0===d.results.length&&(d.results=ae),d.where=d.nextWhere.slice(0),t.abrupt("return",{v:b.call(w,d)});case 116:d.where=d.originalWhere,ae=d.results.length>0?d.results:ae;case 118:if(!d.joinData){t.next=139;break}for(G=d.joinData.noindex,q=[],H="",$={length:0},G.length||alert("$SP.get() -- Error 'get': you must define the ON clause when JOIN is used."),I=0,W=ae.length;I<W;I++){for(Y="",U=0;U<G.length;U++)Y+="_"+Object(f.a)(ae[I].getAttribute(G[U][d.alias])).id;if(d.joinData[Y])for(H!==Y&&($[d.joinIndex[Y]]||$.length++,$[d.joinIndex[Y]]=!0,H=Y),U=0,X=d.joinData[Y].length;U<X;U++){for(Q=[],K=ae[I].getAttributes(),J=K.length;J--;)Q[d.alias+"."+K[J].nodeName.slice(4)]=K[J].nodeValue;for(J in d.joinData[Y][U].getAttributes())Q[J]=d.joinData[Y][U].getAttribute(J);q.push(new g(Q))}d.innerjoin&&(d.join=d.innerjoin),d.outerjoin&&(d.join=d.outerjoin,d.join.outer=!0)}if(ae=q,!d.outer){t.next=139;break}if(ee=d.joinIndex.length,!($.length<ee)){t.next=139;break}I=0;case 130:if(!(I<ee)){t.next=139;break}if(!0===$[I]){t.next=136;break}if(void 0!==(te=d.joinIndex[I])&&void 0!==d.joinData[te]){t.next=135;break}return t.abrupt("continue",136);case 135:for(U=0,X=d.joinData[te].length;U<X;U++){for(J in Q=[],d.joinData[te][U].getAttributes())Q[J]=d.joinData[te][U].getAttribute(J);q.push(new g(Q))}case 136:I++,t.next=130;break;case 139:if(d.outerjoin?(d.join=d.outerjoin,d.join.outer=!0):d.innerjoin&&(d.join=d.innerjoin),Se=!1,!(d.join&&ae.length>0)){t.next=159;break}for(re=[],ne=[],ie=[],d.join.onLookup&&(Se=d.join.onLookup,d.join.on="'"+(d.join.alias||d.join.list)+"'."+d.join.onLookup+" = '"+d.alias+"'.ID"),G=y(d.join.on),re.noindex=G,I=0,W=ae.length;I<W;I++){for(Y="",Q=[],xe="",U=0;U<G.length;U++)xe=ae[I].getAttribute(G[U][d.alias])||ae[I].getAttribute(d.alias+"."+G[U][d.alias]),Y+="_"+Object(f.a)(xe).id;if(!re[Y]&&(ne[Y]=ne.length,ne.push(Y),re[Y]=[],"_"!==Y))if(Ae=Y.slice(1),d.join.onLookup)ie.push("~"+Ae);else if(1===G.length&&-1!==xe.indexOf(";#")&&!isNaN(Ae))for(Pe in G[0])Pe!==d.alias&&"ID"===G[0][Pe]&&(ie.push("~"+Ae),Se="ID");if(d.joinData)re[Y].push(ae[I]);else{for(Z=ae[I].getAttributes(),U=Z.length;U--;)Q[d.alias+"."+Z[U].nodeName.slice(4)]=Z[U].nodeValue;re[Y].push(new g(Q))}}if(d.joinData=void 0,Se){if(ie.length>0){for(oe=Object(h.a)(ie,e._SP_MAXWHERE_ONLOOKUP),U=0;U<oe.length;U++)oe[U]=Se+' IN ["'+oe[U].join('","')+'"]';oe.length<=e._SP_MAXWHERE_ONLOOKUP?(oe="("+oe.join(" OR ")+")",d.join.where?Array.isArray(d.join.where)?d.join.where.forEach((function(e,t){d.join.where[t]=oe+" AND ("+e+")"})):d.join.where=oe+" AND ("+d.join.where+")":d.join.where=oe,d.join.onLookupWhere=oe):d.join.paging=!0}d.join.fields||(d.join.fields=[]),Array.isArray(d.join.fields)?d.join.fields.push(Se):((Q=d.join.fields.split(",")).push(Se),d.join.fields=Q.join(","))}return w.listID=d.join.list,w.url=d.join.url||w.url,d.join.json=d.json,d.join.joinData=re,d.join.joinIndex=ne,t.next=158,b.call(w,d.join);case 158:ae=t.sent;case 159:if(!d.merge){t.next=174;break}if(ue={list:d.list||w.listID,url:d.url||w.url},!(d.merge.length>0)){t.next=173;break}return(se=d.merge.shift()).merge=d.merge.slice(0),se.json=d.join,w.listID=se.list,w.url=se.url||w.url,se.mergeData=d.mergeData.concat(ae.map((function(e){return e.Source=ue,e}))),t.next=170,b.call(w,se);case 170:ae=t.sent,t.next=174;break;case 173:ae=d.mergeData.concat(ae.map((function(e){return e.Source=ue,e})));case 174:if(ae.NextPage=z,!d.json||ce){t.next=180;break}if(Ie=[],!(ae.length>0&&"function"==typeof ae[0].getAttribute)){t.next=180;break}for(Ee=0,ke=ae.length;Ee<ke;Ee++)Ie.push(ae[Ee].getAttributes());return t.abrupt("return",{v:Promise.resolve(Ie)});case 180:return t.abrupt("return",{v:Promise.resolve(ae)});case 181:case"end":return t.stop()}}),t)}))(),"t0",2);case 2:if("object"!==d(m=t.t0)){t.next=5;break}return t.abrupt("return",m.v);case 5:t.next=10;break;case 7:return t.prev=7,t.t1=t.catch(0),t.abrupt("return",Promise.reject(t.t1));case 10:case"end":return t.stop()}}),t,null,[[0,7]])})),(w=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){v(o,n,i,a,s,"next",e)}function s(e){v(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(7),i=r(143),o=r(180),a=r(28);for(var s in i){var u=n[s],c=u&&u.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(e){c.forEach=o}}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p}));r(17),r(18),r(19),r(11),r(32),r(21),r(52),r(2),r(3),r(20),r(16),r(4);var n=r(0),i=r(1),o=r(26),a=r(53),s=r(54),u=r(35),c=r(80);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function p(e,t){return h.apply(this,arguments)}function h(){var t;return t=regeneratorRuntime.mark((function t(r,f){var h,d,v,m,g,y,b,w,S,x,A,P,I,E,k,_,T=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,this.listID){t.next=3;break}throw"[SharepointPlus 'add'] the list ID/Name is required.";case 3:if(this.url){t.next=5;break}throw"[SharepointPlus 'add'] not able to find the URL!";case 5:if(h={},Object(o.a)(!0,h,f),h.escapeChar=null==h.escapeChar||h.escapeChar,h.progress=h.progress||function(){},h.packetsize=h.packetsize||30,h.rootFolder=h.rootFolder||"",Array.isArray(r)||(r=[r]),d=r.length,h.progressVar=h.progressVar||{current:0,max:d,passed:[],failed:[],eventID:"spAdd"+(""+Math.random()).slice(2)},!(d>h.packetsize)){t.next=22;break}v=r.slice(0),m=v.splice(0,h.packetsize),e._SP_ADD_PROGRESSVAR[h.progressVar.eventID]=function(e){return p.call(T,v,e)},d=(r=m).length,t.next=25;break;case 22:if(0!==d){t.next=25;break}return h.progress(1,1),t.abrupt("return",Promise.resolve({passed:[],failed:[]}));case 25:h.progressVar.current+=d,S='<Batch OnError="Continue" ListVersion="1"  ViewName=""'+(h.rootFolder?' RootFolder="'+h.rootFolder+'"':"")+">",w=0;case 28:if(!(w<r.length)){t.next=67;break}S+='<Method ID="'+(w+1)+'" Cmd="New">',S+="<Field Name='ID'>New</Field>",t.t0=regeneratorRuntime.keys(r[w]);case 32:if((t.t1=t.t0()).done){t.next=63;break}if(b=t.t1.value,!Object.prototype.hasOwnProperty.call(r[w],b)){t.next=61;break}g=b,y=r[w][b],Array.isArray(y)&&(y=0===y.length?"":";#"+y.join(";#")+";#"),t.t2=g,t.next="RecurrenceData"===t.t2?41:58;break;case 41:if("object"===l(y)&&(y=Object(a.a)(y)),void 0===r[w].fRecurrence&&(S+="<Field Name='fRecurrence'>1</Field>"),void 0===r[w].EventType&&(S+="<Field Name='EventType'>1</Field>"),void 0===r[w].UID&&(S+="<Field Name='UID'>{"+Object(s.a)()+"}</Field>"),void 0===r[w].fAllDayEvent&&(S+="<Field Name='fAllDayEvent'>0</Field>"),void 0!==r[w].TimeZone){t.next=56;break}if(!e._SP_CACHE_TIMEZONEINFO[this.url]){t.next=51;break}S+="<Field Name='TimeZone'>"+e._SP_CACHE_TIMEZONEINFO[this.url].ID+"</Field>",t.next=56;break;case 51:return t.next=53,c.a.call(this,{url:this.url});case 53:return x=t.sent,e._SP_CACHE_TIMEZONEINFO[this.url]=x,t.abrupt("return",p.call(this,r,f));case 56:return S+="<Field Name='"+g+"'><![CDATA["+y+"]]></Field>",t.abrupt("break",61);case 58:"boolean"==typeof y&&(y=y?"1":"0"),h.escapeChar&&"string"==typeof y&&(y=Object(u.a)(y)),S+="<Field Name='"+g+"'>"+y+"</Field>";case 61:t.next=32;break;case 63:S+="</Method>";case 64:w++,t.next=28;break;case 67:return S+="</Batch>",t.next=70,n.a.call(this,{url:this.url+"/_vti_bin/lists.asmx",body:Object(i.a)("UpdateListItems","<listName>"+this.listID+"</listName><updates>"+S+"</updates>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/UpdateListItems"}});case 70:for(A=t.sent,P=A.getElementsByTagName("Result"),I=P.length,E=h.progressVar.passed,k=h.progressVar.failed,w=0;w<I;w++)"0x00000000"===P[w].getElementsByTagName("ErrorCode")[0].firstChild.nodeValue?(0==(_=P[w].getElementsByTagName("z:row")).length&&(_=P[w].getElementsByTagName("row")),r[w]&&(r[w].ID=_[0].getAttribute("ows_ID"),r[w].raw=_[0],E.push(r[w]))):r[w]&&(r[w].errorMessage=P[w].getElementsByTagName("ErrorText")[0].firstChild.nodeValue,k.push(r[w]));if(h.progress(h.progressVar.current,h.progressVar.max),!(h.progressVar.current<h.progressVar.max)){t.next=82;break}if(!e._SP_ADD_PROGRESSVAR[h.progressVar.eventID]){t.next=80;break}if(!(h.breakOnFailure&&k.length>0)){t.next=79;break}return e._SP_ADD_PROGRESSVAR[h.progressVar.eventID]=void 0,t.abrupt("return",Promise.resolve({passed:E,failed:k}));case 79:return t.abrupt("return",e._SP_ADD_PROGRESSVAR[h.progressVar.eventID](h));case 80:t.next=84;break;case 82:return e._SP_ADD_PROGRESSVAR[h.progressVar.eventID]&&(e._SP_ADD_PROGRESSVAR[h.progressVar.eventID]=void 0),t.abrupt("return",Promise.resolve({passed:E,failed:k}));case 84:t.next=89;break;case 86:return t.prev=86,t.t3=t.catch(0),t.abrupt("return",Promise.reject(t.t3));case 89:case"end":return t.stop()}}),t,this,[[0,86]])})),(h=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){f(o,n,i,a,s,"next",e)}function s(e){f(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){var n=r(27),i=r(96),o=r(50),a=r(36),s=r(57),u=r(24),c=r(120),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=a(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,r){var n,i,o,a=r(164),s=r(7),u=r(22),c=r(28),l=r(24),f=r(68),p=r(70),h=s.WeakMap;if(a){var d=new h,v=d.get,m=d.has,g=d.set;n=function(e,t){return g.call(d,e,t),t},i=function(e){return v.call(d,e)||{}},o=function(e){return m.call(d,e)}}else{var y=f("state");p[y]=!0,n=function(e,t){return c(e,y,t),t},i=function(e){return l(e,y)?e[y]:{}},o=function(e){return l(e,y)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t){e.exports=!1},function(e,t,r){var n=r(38),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},function(e,t,r){var n=r(23),i=r(61),o=r(12)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));r(2),r(3),r(6),r(13),r(30),r(115),r(4);var n=r(0),i=r(5);function o(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function a(e){return s.apply(this,arguments)}function s(){var t;return t=regeneratorRuntime.mark((function t(r){var o,a,s,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,(r=r||{}).cache=!1!==r.cache,(s=r.url||this.url)&&s.startsWith("http")){t.next=8;break}return t.next=7,i.a.call(this);case 7:s=t.sent;case 8:if(s=s.replace(/\/$/,""),r.cache&&(a=e._SP_CACHE_REQUESTDIGEST[s]),!a){t.next=13;break}if(!((new Date).getTime()-new Date(a.split(",")[1]).getTime()<1800)){t.next=13;break}return t.abrupt("return",Promise.resolve(a));case 13:if(!(e._SP_ISBROWSER&&document&&r.cache)){t.next=19;break}if(!(o=document.querySelector("#__REQUESTDIGEST"))){t.next=19;break}return a=o.value,e._SP_CACHE_REQUESTDIGEST[s]=a,t.abrupt("return",Promise.resolve(a));case 19:return t.next=21,n.a.call(this,{url:s+"/_api/contextinfo",method:"POST"});case 21:return u=t.sent,a=u.d.GetContextWebInformation.FormDigestValue,e._SP_CACHE_REQUESTDIGEST[s]=a,e._SP_ISBROWSER&&document&&(o=document.querySelector("#__REQUESTDIGEST"))&&(o.value=a),t.abrupt("return",Promise.resolve(a));case 28:return t.prev=28,t.t0=t.catch(0),t.abrupt("return",Promise.reject(t.t0));case 31:case"end":return t.stop()}}),t,this,[[0,28]])})),(s=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(e){o(a,n,i,s,u,"next",e)}function u(e){o(a,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(123),i=r(7),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},function(e,t,r){"use strict";var n=r(14),i=r(47),o=r(38),a=r(15),s=r(29),u=r(104),c=r(109),l=r(63),f=Math.max,p=Math.min;n({target:"Array",proto:!0,forced:!l("splice")},{splice:function(e,t){var r,n,l,h,d,v,m=s(this),g=a(m.length),y=i(e,g),b=arguments.length;if(0===b?r=n=0:1===b?(r=0,n=g-y):(r=b-2,n=p(f(o(t),0),g-y)),g+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(l=u(m,n),h=0;h<n;h++)(d=y+h)in m&&c(l,h,m[d]);if(l.length=n,r<n){for(h=y;h<g-n;h++)v=h+r,(d=h+n)in m?m[v]=m[d]:delete m[v];for(h=g;h>g-n+r;h--)delete m[h-1]}else if(r>n)for(h=g-n;h>y;h--)v=h+r-1,(d=h+n-1)in m?m[v]=m[d]:delete m[v];for(h=0;h<r;h++)m[h+y]=arguments[h+2];return m.length=g-n+r,l}})},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));r(17),r(18),r(19),r(116),r(39),r(11),r(21),r(2),r(6),r(20),r(13),r(42),r(16);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){var t=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],r=null;if("string"==typeof e&&"<"===e.charAt(0)){r={};var i=(new DOMParser).parseFromString(e,"text/xml"),o=new XMLSerializer,a=function(e){return e.innerHTML?e.innerHTML:o.serializeToString(e).replace(/^<[^>]+>([^<]+)<\/[^>]+>$/m,"$1")};return["firstDayOfWeek","daily","weekly","monthly","monthlyByDay","yearly","yearlyByDay","windowEnd","repeatInstances"].forEach((function(e){var n=i.getElementsByTagName(e);if(1===n.length){var o=n[0];switch(/y$/.test(e)&&(r.type=e),e){case"firstDayOfWeek":for(var s=a(o),u=0;u<t.length;u++)if(t[u].slice(0,2)===s){r.firstDayOfWeek=t[u];break}break;case"daily":"TRUE"===o.getAttribute("weekday")?r.on={weekday:!0}:r.frequency=1*o.getAttribute("dayFrequency");break;case"weekly":r.frequency=1*o.getAttribute("weekFrequency"),r.on={},t.forEach((function(e){"TRUE"===o.getAttribute(e.slice(0,2))&&(r.on[e]=!0)}));break;case"monthly":r.frequency=1*o.getAttribute("monthFrequency"),r.on={day:1*o.getAttribute("day")};break;case"yearlyByDay":case"monthlyByDay":var c=o.getAttribute("weekdayOfMonth")||o.getAttribute("weekDayOfMonth");r.on={},t.forEach((function(e){"TRUE"===o.getAttribute(e.slice(0,2))&&(r.on[e]=c)})),"TRUE"===o.getAttribute("day")&&(r.on.day=c),"TRUE"===o.getAttribute("weekday")&&(r.on.weekday=c),"TRUE"===o.getAttribute("weekend_day")&&(r.on.weekend=c),"monthlyByDay"===e?r.frequency=1*o.getAttribute("monthFrequency"):(r.frequency=1*o.getAttribute("yearFrequency"),r.on.month=1*o.getAttribute("month"));break;case"yearly":r.frequency=1*o.getAttribute("yearFrequency"),r.on={month:1*o.getAttribute("month"),day:1*o.getAttribute("day")};break;case"windowEnd":r.endDate=new Date(a(o));break;case"repeatInstances":r.endAfter=1*a(o)}}})),r}if(e&&"object"===n(e)&&e.type){switch(e.firstDayOfWeek=e.firstDayOfWeek||"mo",r="<recurrence><rule><firstDayOfWeek>"+(e.firstDayOfWeek.toLowerCase().slice(0,2)||"mo")+"</firstDayOfWeek><repeat><"+e.type+" ",e.type){case"daily":r+=(e.frequency?'dayFrequency="'+e.frequency+'"':'weekday="TRUE"')+" />";break;case"weekly":t.forEach((function(t){e.on[t]&&(r+=t.slice(0,2)+'="TRUE" ')})),r+='weekFrequency="'+e.frequency+'" />';break;case"monthly":r+='monthFrequency="'+e.frequency+'" day="'+e.on.day+'" />';break;case"yearlyByDay":case"monthlyByDay":["day","weekday","weekend"].concat(t).forEach((function(t,n){e.on[t]&&(r+=n<3?t+("weekend"===t?"_day":""):t.slice(0,2),-1===(r+='="TRUE" ').indexOf("ayOfMonth")&&(r+="week"+("monthlyByDay"===e.type?"d":"D")+'ayOfMonth="'+e.on[t]+'" '),t=e.on[t])})),e.on.month&&(r+=' month="'+e.on.month+'"'),r+=("monthlyByDay"===e.type?"month":"year")+'Frequency="'+e.frequency+'" />';break;case"yearly":r+='yearFrequency="'+e.frequency+'" month="'+e.on.month+'" day="'+e.on.day+'" />'}return r+="</repeat>",e.endDate?r+="<windowEnd>"+new Date(e.endDate).toISOString().replace(/.000Z/,"Z")+"</windowEnd>":e.endAfter?r+="<repeatInstances>"+e.endAfter+"</repeatInstances>":r+="<repeatForever>FALSE</repeatForever>",r+="</rule></recurrence>"}return null}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r(2),r(117);function n(){for(var e="",t=0;t<32;t++){var r=Math.floor(16*Math.random());switch(t){case 8:e+="-";break;case 12:r=4,e+="-";break;case 16:r=3&r|8,e+="-";break;case 20:e+="-"}e+=r.toString(16)}return e}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));r(17),r(18),r(19),r(11),r(21),r(52),r(64),r(2),r(20),r(16);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(t,r){var o,a=this;switch(arguments.length){case 0:throw"Error 'removeNotify': you must provide 'name' or 'options'.";case 2:if("object"!==n(r))throw"Error 'removeNotify': you must provide an object for 'options'."}if(1===arguments.length&&"object"===n(t)&&(r=t,t=void 0),(r=r||{all:!1}).timeout=!0===r.timeout,!1===e._SP_NOTIFY_READY&&e._SP_NOTIFY_QUEUE.length>0)return setTimeout((function(){return i.call(a,t,r)}),150),this;if(!0===r.all){for(var s=[];e._SP_NOTIFY.length>0;)o=e._SP_NOTIFY.shift(),!1===r.includeSticky&&!0===o.options.sticky?s.push(o):(SP.UI.Notify.removeNotification(o.id),setTimeout((function(){return o.options.after.call(a,o.name,!1)}),150));e._SP_NOTIFY=s.slice(0)}else if(void 0!==t)for(var u=0,c=e._SP_NOTIFY.length;u<c;u++)if(e._SP_NOTIFY[u].name==t)return o=e._SP_NOTIFY.splice(u,1)[0],SP.UI.Notify.removeNotification(o.id),setTimeout((function(){return o.options.after.call(a,o.name,r.timeout)}),150),this;return this}}).call(this,r(10))},function(e,t,r){var n=r(8),i=r(41),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,r){var n=r(22);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(124),i=r(101).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){var n=r(36),i=r(15),o=r(47),a=function(e){return function(t,r,a){var s,u=n(t),c=i(u.length),l=o(a,c);if(e&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,r){var n=r(25).f,i=r(24),o=r(12)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t){e.exports={}},function(e,t,r){var n=r(8),i=r(12),o=r(108),a=i("species");e.exports=function(e){return o>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,r){var n=r(27),i=r(25).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;!n||"name"in o||i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r(17),r(18),r(19),r(11),r(32),r(21),r(2),r(6),r(20),r(13),r(42),r(16);var n=r(35);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var r=e.replace(/(\s+)?(=|~=|<=|>=|~<>|<>|<|>| LIKE | IN )(\s+)?/g,"$2").replace(/""|''/g,"Null").replace(/==/g,"=");/\w+ IN \[([^[]+,)?Null,?/.test(r)&&(r=r.replace(/(\w+) IN \[([^\[]+,)?Null(,[^\]]+)?\]/g,"($1 = Null OR $&)").replace(/\[([^\[]+,)?Null(,[^\]]+)?\]/g,"[$1$2]").replace(/(\[),|(,),|,(\])/g,"$1$2$3"));var a=[];t=!1!==t;for(var s=r.length,u="",c="",l=!1,f="",p={open:0},h=!1,d=0;d<r.length;d++){var v=r.charAt(d);switch(v){case"(":for(var m=d,g=!1;"("==r.charAt(d)&&d<s;)d++,p.open++;for(;p.open>0&&d<s;){d++,"\\"==(y=r.charAt(d))?l=!0:l||"'"!=y&&'"'!=y?l||"("!=y||g?l||")"!=y||g?l=!1:p.open--:p.open++:g=!g}(b=a.length-1)>=0?(""!=u&&(a[0]="<"+u+">"+a[0]),a[0]+=o(r.substring(m+1,d)),""!=u&&(a[0]+="</"+u+">"),u=""):a[0]=o(r.substring(m+1,d));break;case"[":for(m=d,g=!1;d<s;){var y;if(d++,"\\"==(y=r.charAt(d)))l=!0;else if(l||"'"!=y&&'"'!=y){if(!l&&!g&&"]"==y)break;l=!1}else g=!g}var b=a.length-1,w=JSON.parse("["+r.substring(m+1,d)+"]"),S="Text";switch(i(w[0])){case"number":S="Number";break;default:"~"===w[0].charAt(0)&&"number"==typeof(1*w[0].slice(1))&&(S="Integer",w.forEach((function(e,t){w[t]=e.slice(1)})))}a[b]+='<FieldRef Name="'+f+'" '+("Integer"===S?'LookupId="True"':"")+' /><Values><Value Type="'+S+'">'+w.join('</Value><Value Type="'+S+'">')+"</Value></Values>"+c,f="",c="",b>0&&(""!=u&&(a[0]="<"+u+">"+a[0]),a[0]+=a[b],""!=u&&(a[0]+="</"+u+">"),delete a[b],u="");break;case">":case"<":d++,"="==r.charAt(d)?(a.push("<"+(">"==v?"G":"L")+"eq>"),c="</"+(">"==v?"G":"L")+"eq>"):"<"==v&&">"==r.charAt(d)?(a.push("<Neq>"),c="</Neq>"):(d--,a.push("<"+(">"==v?"G":"L")+"t>"),c="</"+(">"==v?"G":"L")+"t>");break;case"~":("="==r.charAt(d+1)||"<"===r.charAt(d+1)&&">"===r.charAt(d+2))&&(h=!0);break;case"=":a.push("<Eq>"),c="</Eq>";break;case" ":" AND "==r.substring(d,d+5).toUpperCase()?(u="And",d+=4):" OR "==r.substring(d,d+4).toUpperCase()?(u="Or",d+=3):" LIKE "==r.slice(d,d+6).toUpperCase()?(d+=5,a.push("<Contains>"),c="</Contains>"):" IN "==r.slice(d,d+4).toUpperCase()?(d+=3,a.push("<In>"),c="</In>"):f+=v;break;case'"':case"'":for(var x=v,A="",P="";(v=r.charAt(++d))!=x&&d<s;)"\\"===v&&r.charAt(d+1)===x&&(v=r.charAt(++d)),A+=v;a[b=a.length-1]+='<FieldRef Name="'+f+'" '+("[Me]"==A?'LookupId="True" ':"")+"/>",f="";var I="Text";/\d{4}-\d\d?-\d\d?((T| )\d{2}:\d{2}:\d{2})?/.test(A)&&(I="DateTime",/\d{4}-\d\d?-\d\d?((T| )\d{2}:\d{2}:\d{2})/.test(A)&&(P=' IncludeTimeValue="TRUE"')),t&&(A=Object(n.a)(A)),"[Me]"===A?(A='<UserID Type="Integer" />',I="Integer"):"[Today"==A.slice(0,6)&&(I="DateTime",A='<Today OffsetDays="'+1*A.slice(6,-1)+'" />'),a[b]+='<Value Type="'+I+'"'+P+">"+A+"</Value>",a[b]+=c,c="",b>0&&(""!=u&&(a[0]="<"+u+">"+a[0]),a[0]+=a[b],""!=u&&(a[0]+="</"+u+">"),delete a[b],u="");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":if(""!=c){for(var E=v;!isNaN(v=r.charAt(++d))&&d<s;)E+=""+v;a[b=a.length-1]+='<FieldRef Name="'+f+'"'+(h?' LookupId="True"':"")+" />",f="",a[b]+='<Value Type="'+(h?"Integer":"Number")+'">'+E.replace(/ $/,"")+"</Value>",a[b]+=c,c="",b>0&&(""!=u&&(a[0]="<"+u+">"+a[0]),a[0]+=a[b],""!=u&&(a[0]+="</"+u+">"),delete a[b],u=""),d-=2;break}default:""==c?f+=v:"n"==v.toLowerCase()&&"null"==r.substring(d,d+4).toLowerCase()?(b=a.length-1,"</Neq>"==c?(a[b]="<IsNotNull>",c="</IsNotNull>"):"</Eq>"==c&&(a[b]="<IsNull>",c="</IsNull>"),d+=3,a[b]+='<FieldRef Name="'+f+'" />',f="",a[b]+=c,c="",b>0&&(""!=u&&(a[0]="<"+u+">"+a[0]),a[0]+=a[b],""!=u&&(a[0]+="</"+u+">"),delete a[b],u="")):("t"===v.toLowerCase()&&"true"===r.substring(d,d+4).toLowerCase()||"f"===v.toLowerCase()&&"false"===r.substring(d,d+5).toLowerCase())&&(b=a.length-1,d+=3,"f"===v.toLowerCase()&&d++,a[b]+='<FieldRef Name="'+f+'" /><Value Type="Boolean">'+("t"===v.toLowerCase()?1:0)+"</Value>",f="",a[b]+=c,c="",b>0&&(""!=u&&(a[0]="<"+u+">"+a[0]),a[0]+=a[b],""!=u&&(a[0]+="</"+u+">"),delete a[b],u=""))}}return a.join("")}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r(21),r(6),r(13),r(30);function n(e){if(!e)return{id:"",value:""};var t=e.split(";#");return t.length<=2?{id:t[0],value:void 0===t[1]?t[0]:t[1]}:{id:e.replace(/([0-9]+;#)([^;]+)/g,"$1").replace(/;#;#/g,",").slice(0,-2).split(","),value:e.replace(/([0-9]+;#)([^;]+)/g,"$2").split(";#")}}},function(e,t,r){"use strict";function n(e){var t={width:0,height:0},r={width:0,height:0},n=e||window,i=n.document,o=i.documentElement,a=i.querySelector("body");return t.width=n.innerWidth||o.clientWidth||a.clientWidth,t.height=n.innerHeight||o.clientHeight||a.clientHeight,r.width=Math.max(a.scrollWidth,o.scrollWidth,a.offsetWidth,o.offsetWidth,a.clientWidth,o.clientWidth),r.height=Math.max(a.scrollHeight,o.scrollHeight,a.offsetHeight,o.offsetHeight,a.clientHeight,o.clientHeight),document.all&&document.querySelector&&!document.addEventListener&&t.width+4==r.width&&t.height+4==r.height&&(t.width=r.width,t.height=r.height),{vw:t,doc:r}}r.d(t,"a",(function(){return n}))},function(e,t,r){var n=r(100),i=r(69),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t){e.exports={}},function(e,t,r){var n=r(41);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n,i=r(23),o=r(166),a=r(101),s=r(70),u=r(127),c=r(97),l=r(68),f=l("IE_PROTO"),p=function(){},h=function(e){return"<script>"+e+"<\/script>"},d=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;d=n?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F);for(var r=a.length;r--;)delete d.prototype[a[r]];return d()};s[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p.prototype=i(e),r=new p,p.prototype=null,r[f]=e):r=d(),void 0===t?r:o(r,t)}},function(e,t,r){var n=r(124),i=r(101);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t,r){var n=r(61);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(23),i=r(170);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,o){return n(r),i(o),t?e.call(r,o):r.__proto__=o,r}}():void 0)},function(e,t,r){var n=r(106),i=r(41),o=r(12)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?r:a?i(t):"Object"==(n=i(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){"use strict";var n=r(8);e.exports=function(e,t){var r=[][e];return!r||!n((function(){r.call(null,t||function(){throw 1},1)}))}},function(e,t,r){"use strict";var n,i,o=r(145),a=r(179),s=RegExp.prototype.exec,u=String.prototype.replace,c=s,l=(n=/a/,i=/b*/g,s.call(n,"a"),s.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(l||p||f)&&(c=function(e){var t,r,n,i,a=this,c=f&&a.sticky,h=o.call(a),d=a.source,v=0,m=e;return c&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),m=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(d="(?: "+d+")",m=" "+m,v++),r=new RegExp("^(?:"+d+")",h)),p&&(r=new RegExp("^"+d+"$(?!\\s)",h)),l&&(t=a.lastIndex),n=s.call(c?r:a,m),c?n?(n.input=n.input.slice(v),n[0]=n[0].slice(v),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:l&&n&&(a.lastIndex=a.global?n.index+n[0].length:t),p&&n&&n.length>1&&u.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),e.exports=c},function(e,t,r){"use strict";var n=r(14),i=r(31).map,o=r(8),a=r(63)("map"),s=a&&!o((function(){[].map.call({length:-1,0:1},(function(e){throw e}))}));n({target:"Array",proto:!0,forced:!a||!s},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r(2),r(3),r(4);var n=r(0),i=r(5);function o(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function a(e){return s.apply(this,arguments)}function s(){var e;return e=regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,(t=t||{}).url){e.next=6;break}return e.next=5,Object(i.a)();case 5:t.url=e.sent;case 6:return e.next=8,n.a.call(this,{url:t.url+"/_api/web/RegionalSettings/TimeZone"});case 8:return r=e.sent,e.abrupt("return",Promise.resolve({ID:r.d.Id,Description:r.d.Description,Bias:r.d.Information.Bias,StandardBias:r.d.Information.StandardBias,DaylightBias:r.d.Information.DaylightBias,XMLTZone:"<timeZoneRule><standardBias>"+(1*r.d.Information.Bias+1*r.d.Information.StandardBias)+"</standardBias><additionalDaylightBias>"+r.d.Information.DaylightBias+"</additionalDaylightBias></timeZoneRule>"}));case 12:return e.prev=12,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 15:case"end":return e.stop()}}),e,this,[[0,12]])})),(s=function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,u,"next",e)}function u(e){o(a,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return n}));r(32),r(21),r(2),r(3),r(6),r(30);function n(t){var r=((t=t||{}).url||this.url||window.location.href).split("/").slice(0,3).join("/");return"boolean"==typeof e._SP_CACHE_HASREST[r]?Promise.resolve(e._SP_CACHE_HASREST[r]):Promise.resolve(!0)}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return d}));r(17),r(18),r(19),r(155),r(39),r(11),r(32),r(21),r(52),r(2),r(3),r(6),r(20),r(30),r(42),r(16),r(4);var n=r(0),i=r(1),o=r(26),a=r(53),s=r(54),u=r(35),c=r(40),l=r(43),f=r(88);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function d(e,t){return v.apply(this,arguments)}function v(){var t;return t=regeneratorRuntime.mark((function t(r,h){var v,m,g,y,b,w,S,x,A,P,I,E,k,_,T,D,O,R,N,C,L,j,V,M,F,U,W=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,this.listID){t.next=3;break}return t.abrupt("return",Promise.reject("[SharepointPlus 'update'] the list ID/name is required."));case 3:if(this.url){t.next=5;break}return t.abrupt("return",Promise.reject("[SharepointPlus 'update'] not able to find the URL!"));case 5:if(v={},Object(o.a)(!0,v,h),v.where=v.where||"",v.escapeChar=void 0===v.escapeChar||v.escapeChar,v.progress=v.progress||function(){},v.packetsize=v.packetsize||30,Array.isArray(r)||(r=[r]),1!==(m=r.length)||!v.where){t.next=57;break}if(delete r[0].ID,x=[],A={fields:["ID"],where:v.where},!v.event){t.next=29;break}return A.calendar=!0,A.calendarOptions={referenceDate:v.event},t.next=22,c.a.call(this,{fields:"ContentType",where:v.where});case 22:if(0!==(P=t.sent).length){t.next=25;break}return t.abrupt("return",Promise.reject("[SharepointPlus 'update'] Unable to find an event with `"+v.where+"`"));case 25:return t.next=27,f.a.call(this,P[0].getAttribute("ContentType")||"Event");case 27:t.sent.forEach((function(e){var t=e.Name||e.StaticName;("TimeZone"===t||"_Hidden"!==e.Group&&"TRUE"!==e.ReadOnly&&"TRUE"!==e.Hidden&&void 0===r[0][t])&&A.fields.push(t)}));case 29:return x=A.fields.slice(0),t.next=32,c.a.call(this,A);case 32:if(I=t.sent,E=function(e){var t={};for(var r in e)t[r]=e[r];return t},k=[],v.event){t.next=42;break}for(T=I.length;T--;)(_=E(r[0])).ID=I[T].getAttribute("ID"),k.push(_);return v.where=void 0,t.abrupt("return",d.call(this,k,v));case 42:if(D="string"!=typeof v.event?this.toSPDate(v.event):v.event.slice(0,10),0!==(O=I.filter((function(e){return-1!==e.getAttribute("ID").indexOf("."+D+"T")}))).length){t.next=46;break}return t.abrupt("return",Promise.reject("[SharepointPlus 'update'] No event found on "+D));case 46:return O=O[0],_=E(r[0]),x.forEach((function(e){if("ID"!==e&&void 0===_[e]){var t=O.getAttribute(e);null!=t&&(_[e]=t)}})),_.MasterSeriesItemID=O.getAttribute("ID").split(".")[0],_.UID=O.getAttribute("UID"),_.EventType=4,_.fRecurrence=1,_.RecurrenceData="No Recurrence",_.RecurrenceID=O.getAttribute("RecurrenceID"),_.TimeZone=O.getAttribute("TimeZone"),t.abrupt("return",l.a.call(this,_,v));case 57:if(v.progressVar=v.progressVar||{current:0,max:m,passed:[],failed:[],eventID:"spUpdate"+(""+Math.random()).slice(2)},!(m>v.packetsize)){t.next=66;break}g=r.slice(0),y=g.splice(0,v.packetsize),e._SP_UPDATE_PROGRESSVAR[v.progressVar.eventID]=function(e){return d.call(W,g,e)},m=(r=y).length,t.next=68;break;case 66:if(0!=m){t.next=68;break}return t.abrupt("return",Promise.resolve({passed:[],failed:[]}));case 68:v.progressVar.current+=m,R='<Batch OnError="Continue" ListVersion="1"  ViewName="">',N=0;case 71:if(!(N<m)){t.next=80;break}if(R+='<Method ID="'+(N+1)+'" Cmd="Update">',r[N].ID){t.next=75;break}return t.abrupt("return",Promise.reject("[SharepointPlus 'update'] you have to provide the item ID called 'ID'"));case 75:for(S in r[N])Object.prototype.hasOwnProperty.call(r[N],S)&&(b=S,w=r[N][S],Array.isArray(w)&&(w=0===w.length?"":";#"+w.join(";#")+";#"),"RecurrenceData"===b?("object"===p(w)&&(w=Object(a.a)(w)),r[N].RecurrenceID||(void 0===r[N].fRecurrence&&(R+="<Field Name='fRecurrence'>1</Field>"),void 0===r[N].EventType&&(R+="<Field Name='EventType'>1</Field>"),void 0===r[N].UID&&(R+="<Field Name='UID'>{"+Object(s.a)()+"}</Field>"),void 0===r[N].fAllDayEvent&&(R+="<Field Name='fAllDayEvent'>0</Field>")),R+="<Field Name='"+b+"'><![CDATA["+w+"]]></Field>"):("boolean"==typeof w&&(w=w?"1":"0"),v.escapeChar&&"string"==typeof w&&(w=Object(u.a)(w)),R+="<Field Name='"+b+"'>"+w+"</Field>"));R+="</Method>";case 77:N++,t.next=71;break;case 80:return R+="</Batch>",t.next=83,n.a.call(this,{url:this.url+"/_vti_bin/lists.asmx",body:Object(i.a)("UpdateListItems","<listName>"+this.listID+"</listName><updates>"+R+"</updates>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/UpdateListItems"}});case 83:for(C=t.sent,L=C.getElementsByTagName("Result"),j=L.length,V=v.progressVar.passed,M=v.progressVar.failed,F=0;F<j;F++)"0x00000000"===L[F].getElementsByTagName("ErrorCode")[0].firstChild.nodeValue&&r[F]?(0===(U=L[F].getElementsByTagName("z:row")).length&&(U=L[F].getElementsByTagName("row")),r[F].raw=U[0],V.push(r[F])):r[F]&&(r[F].errorMessage=L[F].getElementsByTagName("ErrorText")[0].firstChild.nodeValue,M.push(r[F]));if(v.progress(v.progressVar.current,v.progressVar.max),!(v.progressVar.current<v.progressVar.max)){t.next=95;break}if(!e._SP_UPDATE_PROGRESSVAR[v.progressVar.eventID]){t.next=93;break}if(!(v.breakOnFailure&&M.length>0)){t.next=92;break}return e._SP_UPDATE_PROGRESSVAR[v.progressVar.eventID]=void 0,t.abrupt("return",Promise.resolve({passed:V,failed:M}));case 92:return t.abrupt("return",e._SP_UPDATE_PROGRESSVAR[v.progressVar.eventID](v));case 93:t.next=97;break;case 95:return e._SP_UPDATE_PROGRESSVAR[v.progressVar.eventID]&&(e._SP_UPDATE_PROGRESSVAR[v.progressVar.eventID]=void 0),t.abrupt("return",Promise.resolve({passed:V,failed:M}));case 97:t.next=102;break;case 99:return t.prev=99,t.t0=t.catch(0),t.abrupt("return",Promise.reject(t.t0));case 102:case"end":return t.stop()}}),t,this,[[0,99]])})),(v=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){h(o,n,i,a,s,"next",e)}function s(e){h(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));r(17),r(18),r(19),r(11),r(32),r(2),r(3),r(6),r(20),r(119),r(42),r(16),r(4);var n=r(84),i=r(0),o=r(1);function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e,t){return u.apply(this,arguments)}function u(){var t;return t=regeneratorRuntime.mark((function t(r,a){var u,c,l,f,p,h,d,v,m,g,y,b,w,S,x,A,P,I,E,k,_,T=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,this.listID){t.next=3;break}return t.abrupt("return",Promise.reject("[SharepointPlus 'view'] the list ID/Name is required."));case 3:if(r){t.next=5;break}return t.abrupt("return",Promise.reject("[SharepointPlus 'view'] the view ID/Name is required."));case 5:if(u=this.listID,l=!1,(a=a||{}).cache=!1!==a.cache,this.url){t.next=10;break}return t.abrupt("return",Promise.reject("[SharepointPlus 'view'] not able to find the URL!"));case 10:if(!a.cache){t.next=38;break}f=!0,p=!1,h=void 0,t.prev=14,d=e._SP_CACHE_SAVEDVIEW[Symbol.iterator]();case 16:if(f=(v=d.next()).done){t.next=24;break}if((m=v.value).url!==this.url||m.list!==u||m.viewID!==r&&m.viewName!==r){t.next=21;break}return l=!0,t.abrupt("return",Promise.resolve(m.data));case 21:f=!0,t.next=16;break;case 24:t.next=30;break;case 26:t.prev=26,t.t0=t.catch(14),p=!0,h=t.t0;case 30:t.prev=30,t.prev=31,f||null==d.return||d.return();case 33:if(t.prev=33,!p){t.next=36;break}throw h;case 36:return t.finish(33);case 37:return t.finish(30);case 38:if("{"===r.charAt(0)){t.next=69;break}return t.next=41,n.a.call(this);case 41:g=t.sent,y=!0,b=!1,w=void 0,t.prev=45,S=g[Symbol.iterator]();case 47:if(y=(x=S.next()).done){t.next=54;break}if((A=x.value).Name!==r){t.next=51;break}return t.abrupt("return",s.call(this,A.ID));case 51:y=!0,t.next=47;break;case 54:t.next=60;break;case 56:t.prev=56,t.t1=t.catch(45),b=!0,w=t.t1;case 60:t.prev=60,t.prev=61,y||null==S.return||S.return();case 63:if(t.prev=63,!b){t.next=66;break}throw w;case 66:return t.finish(63);case 67:return t.finish(60);case 68:return t.abrupt("return",Promise.reject("[SharepointPlus 'view'] not able to find the view called '"+r+"' for list '"+this.listID+"' at "+this.url));case 69:return t.next=71,i.a.call(this,{url:this.url+"/_vti_bin/Views.asmx",body:Object(o.a)("GetView","<listName>"+this.listID+"</listName><viewName>"+r+"</viewName>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/GetView"}});case 71:for(P=t.sent,I=(I=P.getElementsByTagName("View")).length>0?I[0]:null,k={DefaultView:"TRUE"==I.getAttribute("DefaultView"),Name:I.getAttribute("DisplayName"),ID:r,Type:I.getAttribute("Type"),Url:I.getAttribute("Url"),OrderBy:[],Fields:[],RowLimit:"",WhereCAML:"",Node:I},_=P.getElementsByTagName("ViewFields")[0].getElementsByTagName("FieldRef"),c=0;c<_.length;c++)k.Fields.push(_[c].getAttribute("Name"));if(_=(_=P.getElementsByTagName("OrderBy")).length>0?_[0]:null){for(_=_.getElementsByTagName("FieldRef"),c=0;c<_.length;c++)k.OrderBy.push(_[c].getAttribute("Name")+" "+(null==_[c].getAttribute("Ascending")?"ASC":"DESC"));k.OrderBy=k.OrderBy.join(",")}else k.OrderBy="";return(E=(E=P.getElementsByTagName("Where")).length>0?E[0]:null)&&2==(E=(E=E.xml||(new XMLSerializer).serializeToString(E)).match(/<Where [^>]+>(.*)<\/Where>/)).length&&(k.WhereCAML=E[1]),l=!1,e._SP_CACHE_SAVEDVIEW.forEach((function(e){e.url!==T.url||e.list!==u||e.viewID!==r&&e.viewName!==r||(e.data=k,l=!0)})),l||e._SP_CACHE_SAVEDVIEW.push({url:this.url,list:this.listID,data:k,viewID:r,viewName:k.Name}),t.abrupt("return",Promise.resolve(k));case 89:return t.prev=89,t.t2=t.catch(0),t.abrupt("return",Promise.reject(t.t2));case 92:case"end":return t.stop()}}),t,this,[[0,89],[14,26,30,38],[31,,33,37],[45,56,60,68],[61,,63,67]])})),(u=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));r(17),r(18),r(19),r(11),r(2),r(3),r(20),r(42),r(16),r(4);var n=r(0),i=r(1);function o(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function a(e){return s.apply(this,arguments)}function s(){var t;return t=regeneratorRuntime.mark((function t(r){var o,a,s,u,c,l,f,p,h,d,v,m=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,this.listID){t.next=3;break}throw"[SharepointPlus 'views'] the list ID/Name is required.";case 3:if((r=r||{}).cache=!1!==r.cache,this.url){t.next=7;break}throw"[SharepointPlus 'views'] not able to find the URL!";case 7:if(o=!1,!r.cache){t.next=36;break}a=!0,s=!1,u=void 0,t.prev=12,c=e._SP_CACHE_SAVEDVIEWS[Symbol.iterator]();case 14:if(a=(l=c.next()).done){t.next=22;break}if((f=l.value).url!==this.url||f.listID!==this.listID){t.next=19;break}return o=!0,t.abrupt("return",Promise.resolve(f.data));case 19:a=!0,t.next=14;break;case 22:t.next=28;break;case 24:t.prev=24,t.t0=t.catch(12),s=!0,u=t.t0;case 28:t.prev=28,t.prev=29,a||null==c.return||c.return();case 31:if(t.prev=31,!s){t.next=34;break}throw u;case 34:return t.finish(31);case 35:return t.finish(28);case 36:return t.next=38,n.a.call(this,{url:this.url+"/_vti_bin/Views.asmx",body:Object(i.a)("GetViewCollection","<listName>"+this.listID+"</listName>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/GetViewCollection"}});case 38:for(p=t.sent,h=[],d=p.getElementsByTagName("View"),v=0;v<d.length;v++)h[v]={ID:d[v].getAttribute("Name"),Name:d[v].getAttribute("DisplayName"),Url:d[v].getAttribute("Url"),DefaultView:"TRUE"==d[v].getAttribute("DefaultView"),Type:d[v].getAttribute("Type"),Node:d[v]};return e._SP_CACHE_SAVEDVIEWS.forEach((function(e){e.url===m.url&&e.listID===m.listID&&(e.data=h,o=!0)})),o||e._SP_CACHE_SAVEDVIEWS.push({url:this.url,listID:this.listID,data:h}),t.abrupt("return",Promise.resolve(h));case 46:return t.prev=46,t.t1=t.catch(0),t.abrupt("return",Promise.reject(t.t1));case 49:case"end":return t.stop()}}),t,this,[[0,46],[12,24,28,36],[29,,31,35]])})),(s=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(e){o(a,n,i,s,u,"next",e)}function u(e){o(a,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));r(17),r(18),r(19),r(11),r(2),r(117),r(20),r(16);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!e||"object"!==n(e)||"function"!=typeof e.getFullYear)return"";var r=function(e){return 1==e.toString().length&&(e="0"+e),e},i=r(e.getMonth()+1),o=r(e.getDate()),a=e.getFullYear(),s=r(e.getHours()),u=r(e.getMinutes()),c=r(e.getSeconds());return a+"-"+i+"-"+o+(t?"T"+s+":"+u+":"+c+"Z":"")}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));r(6),r(13);function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mynode=t,this.singleList=!0}var t,r,i;return t=e,(r=[{key:"getAttribute",value:function(e){return this.mynode.getAttribute("ows_"+e.replace(/ /g,""))}},{key:"getAttributes",value:function(){return this.mynode.attributes}}])&&n(t.prototype,r),i&&n(t,i),e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r(21);function n(e,t){for(var r=[],n=0,i=e.length;n<i;n+=t)r.push(e.slice(n,n+t));return r}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));r(21),r(2),r(3),r(4);var n=r(0),i=r(1),o=r(89);function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e,t){return u.apply(this,arguments)}function u(){var t;return t=regeneratorRuntime.mark((function t(r,a){var u,c,l,f,p,h,d,v,m,g,y,b,w,S,x,A,P,I,E,k=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.listID){t.next=2;break}throw"[SharepointPlus 'getContentTypeInfo'] the list ID/Name is required.";case 2:if(!(k.length>=1&&"string"!=typeof r)){t.next=4;break}throw"[SharepointPlus 'getContentTypeInfo'] the Content Type Name/ID is required.";case 4:if(this.url){t.next=6;break}throw"[SharepointPlus 'getContentTypeInfo'] not able to find the URL!";case 6:if(!(a=a||{cache:!0}).cache){t.next=15;break}u=0;case 9:if(!(u<e._SP_CACHE_CONTENTTYPE.length)){t.next=15;break}if(e._SP_CACHE_CONTENTTYPE[u].list!==this.listID||e._SP_CACHE_CONTENTTYPE[u].url!==this.url||e._SP_CACHE_CONTENTTYPE[u].contentType!==r){t.next=12;break}return t.abrupt("return",Promise.resolve(e._SP_CACHE_CONTENTTYPE[u].info));case 12:u++,t.next=9;break;case 15:if("0x"===r.slice(0,2)){t.next=26;break}return t.next=18,o.a.call(this,a);case 18:c=t.sent,l=c.length;case 20:if(!l--){t.next=25;break}if(c[l].Name!==r){t.next=23;break}return t.abrupt("return",s.call(this,c[l].ID,a));case 23:t.next=20;break;case 25:throw"[SharepointPlus 'getContentTypeInfo'] not able to find the Content Type called '"+r+"' at "+this.url;case 26:return t.next=28,n.a.call(this,{url:this.url+"/_vti_bin/lists.asmx",body:Object(i.a)("GetListContentType","<listName>"+this.listID+"</listName><contentTypeId>"+r+"</contentTypeId>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/GetListContentType"}});case 28:f=t.sent,p=[],b=f.getElementsByTagName("Field"),w=0,h=0;case 31:if(!(h<b.length)){t.next=62;break}if(!b[h].getAttribute("ID")){t.next=59;break}p[w]=[],S=p[w],x=b[h].attributes,d=x.length;case 37:if(!d--){t.next=56;break}if(A=x[d].nodeName,I=x[d].nodeValue,"Type"!==A){t.next=53;break}t.t0=I,t.next="Choice"===t.t0?44:"MultiChoice"===t.t0?44:"Lookup"===t.t0?50:"LookupMulti"===t.t0?50:52;break;case 44:for(S.FillInChoice=b[h].getAttribute("FillInChoice"),v=b[h].getElementsByTagName("CHOICE"),m=[],g=0;g<v.length;g++)m.push(v[g].firstChild.nodeValue);return S.Choices=m,t.abrupt("break",53);case 50:return S.Choices={list:b[h].getAttribute("List"),field:b[h].getAttribute("ShowField")},t.abrupt("break",53);case 52:S.Choices=[];case 53:S[A]=I;case 54:t.next=37;break;case 56:if((P=b[h].getElementsByTagName("Default").length)>0){for(E=b[h].getElementsByTagName("Default"),p[w].DefaultValue=[],y=0;y<P;y++)E[y].firstChild&&p[w].DefaultValue.push(E[y].firstChild.nodeValue);1===P&&(p[w].DefaultValue=p[w].DefaultValue[0])}else p[w].DefaultValue=null;w++;case 59:h++,t.next=31;break;case 62:return e._SP_CACHE_CONTENTTYPE.push({list:this.listID,url:this.url,contentType:r,info:p}),t.abrupt("return",Promise.resolve(p));case 64:case"end":return t.stop()}}),t,this)})),(u=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o}));r(2),r(3);var n=r(0),i=r(1);function o(t){var r=this;if(!this.listID)throw"[SharepointPlus 'getContentTypes'] the list ID/name is required.";if(!this.url)throw"[SharepointPlus 'getContentTypes'] not able to find the URL!";if((t=t||{cache:!0}).cache)for(var o=0;o<e._SP_CACHE_CONTENTTYPES.length;o++)if(e._SP_CACHE_CONTENTTYPES[o].list===this.listID&&e._SP_CACHE_CONTENTTYPES[o].url===this.url)return Promise.resolve(e._SP_CACHE_CONTENTTYPES[o].contentTypes);return n.a.call(this,{url:this.url+"/_vti_bin/lists.asmx",body:Object(i.a)("GetListContentTypes","<listName>"+this.listID+"</listName>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/GetListContentTypes"}}).then((function(t){for(var n,i=t.getElementsByTagName("ContentType"),o=0,a=[];o<i.length;o++)(n=i[o].getAttribute("ID"))&&a.push({ID:n,Name:i[o].getAttribute("Name"),Description:i[o].getAttribute("Description")});return e._SP_CACHE_CONTENTTYPES.push({list:r.listID,url:r.url,contentTypes:a}),a}))}}).call(this,r(10))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));r(17),r(18),r(19),r(11),r(2),r(20),r(16);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return SP.SOD.executeOrDelayUntilScriptLoaded((function(){var r;if("object"===n(e)&&"modalDialog"===e.type)r={id:e.id,dialogResult:t,returnValue:void 0,type:"closeModalDialog"},e.modal.close(r),e.options.wait&&e.options.dialogReturnValueCallback(r,t);else{if(void 0!==window.top._SP_MODALDIALOG&&(r=window.top._SP_MODALDIALOG).length>0)return(r=r[r.length-1]).modal.close({id:r.id,dialogResult:e,returnValue:t,type:"closeModalDialog"}),r.options.wait&&r.options.dialogReturnValueCallback(e,t),!1;SP.UI.ModalDialog.commonModalDialogClose(e,t)}}),"sp.ui.dialog.js"),!1}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));r(17),r(18),r(19),r(39),r(11),r(52),r(2),r(3),r(6),r(20),r(13),r(42),r(16);var n=r(67),i=r(90);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(t){var r=this;return new Promise((function(s){if(!e._SP_MODALDIALOG_LOADED&&(e._SP_MODALDIALOG_LOADED="object"===("undefined"==typeof SP?"undefined":o(SP))&&"object"===o(SP.UI)&&"function"==typeof SP.UI.ModalDialog&&"function"==typeof SP.UI.ModalDialog.showModalDialog,!e._SP_MODALDIALOG_LOADED))return LoadSodByKey("sp.ui.dialog.js",(function(){e._SP_MODALDIALOG_LOADED=!0,a.call(this,t).then((function(e){s(e)}))})),r;var u,c;t.id=(t.id||"").replace(/\W+/g,""),t.id=t.id||(new Date).getTime();var l="sp_frame_"+t.id;t.html&&"string"==typeof t.html&&((c=document.createElement("div")).style.padding="10px",c.style.display="inline-block",c.className="sp-showModalDialog",c.id="content_"+l,c.innerHTML=t.html,t.html=c),"calculated"!==t.width&&"calculated"!==t.height||(u=Object(n.a)(),"calculated"===t.width&&(t.width=u.vw.width,t.width>768&&(t.width=2*t.width/3)),"calculated"===t.height&&(t.height=u.vw.height,t.height>576&&(t.height=90*t.height/100))),"full"!==t.width&&"full"!==t.height||(u=Object(n.a)(),"full"===t.width&&(t.width=u.vw.width),"full"===t.height&&(t.height=u.vw.height)),t.wait=!0===t.wait,t.closePrevious=!0===t.closePrevious,!0===t.previousClose&&(t.closePrevious=!0),t.closePrevious&&i.a.call(r),!1===t.showClose&&(t.dialogReturnValueCallback||t.callback)&&(t.showClose=!0,t.hideClose=!0);var f=t.dialogReturnValueCallback||t.callback||function(){};t.dialogReturnValueCallback=function(e,t){var r,n;if("object"===o(e)&&void 0!==e.type&&"closeModalDialog"===e.type){var i=e;e=i.dialogResult,t=i.returnValue,r=i.id}if(r)for(var a=0;a<window.top._SP_MODALDIALOG.length;a++)if(window.top._SP_MODALDIALOG[a].id===r){n=(n=window.top._SP_MODALDIALOG.splice(a,1))[0];break}n||(n=window.top._SP_MODALDIALOG.pop()),window.top.document.body.removeChild(window.top.document.getElementById("style_"+n.id)),f.call(this,e,t),s({dialogResult:e,returnValue:t})};SP.SOD.executeOrDelayUntilScriptLoaded((function(){var e=t.wait?SP.UI.ModalDialog.showWaitScreenWithNoClose(t.title,t.message,t.height,t.width):SP.UI.ModalDialog.showModalDialog(t),r=window.top,n=l,i=r.document.querySelectorAll("body > iframe"),o=i[i.length-1],a=0;if(o.setAttribute("id",n),void 0===r._SP_MODALDIALOG&&(r._SP_MODALDIALOG=[]),r._SP_MODALDIALOG.push({id:n,modal:e,zIndex:o.style.zIndex,options:t,type:"modalDialog"}),r._SP_MODALDIALOG.forEach((function(e){e.zIndex>a&&(a=e.zIndex)})),a--,r.document.body.insertAdjacentHTML("beforeend",'<style id="style_'+n+'">.ms-dlgOverlay { z-index:'+a+" !important; display:block !important }</style>"),!0===t.hideClose){var s=o.nextSibling.querySelector(".ms-dlgCloseBtn");s.parentNode.removeChild(s)}if("function"==typeof t.onload&&t.onload(),t.url&&t.onurlload&&"function"==typeof t.onurlload){var u=r.document.getElementById(n);u&&(u=u.nextSibling),u&&(u=u.querySelector("iframe")),u&&function(e,t){function r(){a||(a=!0,clearTimeout(o),t.call(this))}function n(){"complete"===this.readyState&&r.call(this)}function i(e,t,r){return e.addEventListener?e.addEventListener(t,r):e.attachEvent("on"+t,(function(){return r.call(e,window.event)}))}var o,a=!1;i(e,"load",(function(){var t=e.contentDocument;t||(t=e.contentWindow)&&(t=t.document),t&&r.call(t)})),function t(){var a=e.contentDocument||e.contentWindow.document;0!==a.URL.indexOf("about:")?"complete"===a.readyState?r.call(a):(i(a,"DOMContentLoaded",r),i(a,"readystatechange",n)):o=setTimeout(t,1)}()}(u,t.onurlload)}}),"sp.ui.dialog.js")}))}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));r(17),r(18),r(19),r(11),r(2),r(3),r(20),r(16),r(4);var n=r(0),i=r(1),o=r(5);function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e,t){return u.apply(this,arguments)}function u(){var t;return t=regeneratorRuntime.mark((function t(r,a){var s,u,c,l,f,p,h,d,v,m,g,y,b,w,S,x,A;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r){t.next=3;break}throw"[SharepointPlus 'distributionLists'] the username is required.";case 3:if((a=a||{}).url){t.next=8;break}return t.next=7,o.a.call(this);case 7:a.url=t.sent;case 8:if(r=r.toLowerCase(),a.url=a.url.toLowerCase(),a.cache=!1!==a.cache,!a.cache){t.next=38;break}s=!0,u=!1,c=void 0,t.prev=15,l=e._SP_CACHE_DISTRIBUTIONLISTS[Symbol.iterator]();case 17:if(s=(f=l.next()).done){t.next=24;break}if((p=f.value).user!==r||p.url!==a.url){t.next=21;break}return t.abrupt("return",Promise.resolve(p.data));case 21:s=!0,t.next=17;break;case 24:t.next=30;break;case 26:t.prev=26,t.t0=t.catch(15),u=!0,c=t.t0;case 30:t.prev=30,t.prev=31,s||null==l.return||l.return();case 33:if(t.prev=33,!u){t.next=36;break}throw c;case 36:return t.finish(33);case 37:return t.finish(30);case 38:return t.next=40,n.a.call(this,{url:a.url+"/_vti_bin/UserProfileService.asmx",body:Object(i.a)("GetCommonMemberships","<accountName>"+r+"</accountName>","http://microsoft.com/webservices/SharePointPortalServer/UserProfileService"),headers:{SOAPAction:"http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserMemberships"}});case 40:for(h=t.sent,d=[],h=h.getElementsByTagName("MembershipData"),v=0,m=h.length;v<m;v++)"DistributionList"===h[v].getElementsByTagName("Source")[0].firstChild.nodeValue&&d.push({SourceReference:h[v].getElementsByTagName("SourceReference")[0].firstChild.nodeValue,DisplayName:h[v].getElementsByTagName("DisplayName")[0].firstChild.nodeValue,MailNickname:h[v].getElementsByTagName("MailNickname")[0].firstChild.nodeValue,Url:h[v].getElementsByTagName("Url")[0].firstChild.nodeValue});g=!1,y=!0,b=!1,w=void 0,t.prev=48,S=e._SP_CACHE_DISTRIBUTIONLISTS[Symbol.iterator]();case 50:if(y=(x=S.next()).done){t.next=59;break}if((A=x.value).user!==r||A.url!==a.url){t.next=56;break}return A.data=d,g=!0,t.abrupt("break",59);case 56:y=!0,t.next=50;break;case 59:t.next=65;break;case 61:t.prev=61,t.t1=t.catch(48),b=!0,w=t.t1;case 65:t.prev=65,t.prev=66,y||null==S.return||S.return();case 68:if(t.prev=68,!b){t.next=71;break}throw w;case 71:return t.finish(68);case 72:return t.finish(65);case 73:return g||e._SP_CACHE_DISTRIBUTIONLISTS.push({user:r,url:a.url,data:d}),t.abrupt("return",Promise.resolve(d));case 77:return t.prev=77,t.t2=t.catch(0),t.abrupt("return",Promise.reject(t.t2));case 80:case"end":return t.stop()}}),t,this,[[0,77],[15,26,30,38],[31,,33,37],[48,61,65,73],[66,,68,72]])})),(u=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return u}));r(17),r(18),r(19),r(11),r(2),r(3),r(20),r(16),r(4);var n=r(0),i=r(1),o=r(5),a=r(35);function s(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function u(e,t){return c.apply(this,arguments)}function c(){var t;return t=regeneratorRuntime.mark((function t(r,s){var u,c,l,f,p,h,d,v,m,g,y,b,w,S,x,A,P;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r){t.next=3;break}throw"[SharepointPlus 'groupMembers'] the groupname is required.";case 3:if((s=s||{}).cache=!1!==s.cache,s.url){t.next=9;break}return t.next=8,o.a.call(this);case 8:s.url=t.sent;case 9:if(r=r.toLowerCase(),s.url=s.url.toLowerCase(),!s.cache){t.next=38;break}u=!0,c=!1,l=void 0,t.prev=15,f=e._SP_CACHE_GROUPMEMBERS[Symbol.iterator]();case 17:if(u=(p=f.next()).done){t.next=24;break}if((h=p.value).group!==r||h.url!==s.url){t.next=21;break}return t.abrupt("return",Promise.resolve(h.data));case 21:u=!0,t.next=17;break;case 24:t.next=30;break;case 26:t.prev=26,t.t0=t.catch(15),c=!0,l=t.t0;case 30:t.prev=30,t.prev=31,u||null==f.return||f.return();case 33:if(t.prev=33,!c){t.next=36;break}throw l;case 36:return t.finish(33);case 37:return t.finish(30);case 38:return t.next=40,n.a.call(this,{url:s.url+"/_vti_bin/usergroup.asmx",body:Object(i.a)("GetUserCollectionFromGroup","<groupName>"+Object(a.a)(r)+"</groupName>","http://schemas.microsoft.com/sharepoint/soap/directory/"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/directory/GetUserCollectionFromGroup"}});case 40:for(d=t.sent,v=[],d=d.getElementsByTagName("User"),m=0,g=d.length;m<g;m++)v.push({ID:d[m].getAttribute("ID"),Name:d[m].getAttribute("Name"),LoginName:d[m].getAttribute("LoginName"),Email:d[m].getAttribute("Email")});y=!1,b=!0,w=!1,S=void 0,t.prev=48,x=e._SP_CACHE_GROUPMEMBERS[Symbol.iterator]();case 50:if(b=(A=x.next()).done){t.next=59;break}if((P=A.value).group!==r||P.url!==s.url){t.next=56;break}return P.data=v,y=!0,t.abrupt("break",59);case 56:b=!0,t.next=50;break;case 59:t.next=65;break;case 61:t.prev=61,t.t1=t.catch(48),w=!0,S=t.t1;case 65:t.prev=65,t.prev=66,b||null==x.return||x.return();case 68:if(t.prev=68,!w){t.next=71;break}throw S;case 71:return t.finish(68);case 72:return t.finish(65);case 73:return y||e._SP_CACHE_GROUPMEMBERS.push({group:r,url:s.url,data:v}),t.abrupt("return",Promise.resolve(v));case 77:return t.prev=77,t.t2=t.catch(0),t.abrupt("return",Promise.reject(t.t2));case 80:case"end":return t.stop()}}),t,this,[[0,77],[15,26,30,38],[31,,33,37],[48,61,65,73],[66,,68,72]])})),(c=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){s(o,n,i,a,u,"next",e)}function u(e){s(o,n,i,a,u,"throw",e)}a(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));r(17),r(18),r(19),r(11),r(2),r(3),r(20),r(16),r(4);var n=r(0),i=r(1),o=r(5);function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e,t){return u.apply(this,arguments)}function u(){var t;return t=regeneratorRuntime.mark((function t(r,a){var s,u,c,l,f,p,h,d,v,m,g,y,b,w,S,x,A;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r){t.next=3;break}throw"[SharepointPlus 'usergroups']: the username is required.";case 3:if((a=a||{}).cache=!1!==a.cache,a.url){t.next=9;break}return t.next=8,o.a.call(this);case 8:a.url=t.sent;case 9:if(r=r.toLowerCase(),a.url=a.url.toLowerCase(),!a.cache){t.next=38;break}s=!0,u=!1,c=void 0,t.prev=15,l=e._SP_CACHE_USERGROUPS[Symbol.iterator]();case 17:if(s=(f=l.next()).done){t.next=24;break}if((p=f.value).user!==r||p.url!==a.url){t.next=21;break}return t.abrupt("return",Promise.resolve(p.data));case 21:s=!0,t.next=17;break;case 24:t.next=30;break;case 26:t.prev=26,t.t0=t.catch(15),u=!0,c=t.t0;case 30:t.prev=30,t.prev=31,s||null==l.return||l.return();case 33:if(t.prev=33,!u){t.next=36;break}throw c;case 36:return t.finish(33);case 37:return t.finish(30);case 38:return t.next=40,n.a.call(this,{url:a.url+"/_vti_bin/usergroup.asmx",body:Object(i.a)("GetGroupCollectionFromUser","<userLoginName>"+r+"</userLoginName>","http://schemas.microsoft.com/sharepoint/soap/directory/"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/directory/GetGroupCollectionFromUser"}});case 40:for(h=t.sent,d=[],h=h.getElementsByTagName("Group"),v=0,m=h.length;v<m;v++)d.push(h[v].getAttribute("Name"));g=!1,y=!0,b=!1,w=void 0,t.prev=48,S=e._SP_CACHE_USERGROUPS[Symbol.iterator]();case 50:if(y=(x=S.next()).done){t.next=59;break}if((A=x.value).user!==r||A.url!==a.url){t.next=56;break}return A.data=d,g=!0,t.abrupt("break",59);case 56:y=!0,t.next=50;break;case 59:t.next=65;break;case 61:t.prev=61,t.t1=t.catch(48),b=!0,w=t.t1;case 65:t.prev=65,t.prev=66,y||null==S.return||S.return();case 68:if(t.prev=68,!b){t.next=71;break}throw w;case 71:return t.finish(68);case 72:return t.finish(65);case 73:return g||e._SP_CACHE_USERGROUPS.push({user:r,url:a.url,data:d}),t.abrupt("return",Promise.resolve(d));case 77:return t.prev=77,t.t2=t.catch(0),t.abrupt("return",Promise.reject(t.t2));case 80:case"end":return t.stop()}}),t,this,[[0,77],[15,26,30,38],[31,,33,37],[48,61,65,73],[66,,68,72]])})),(u=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));r(2),r(3),r(4);var n=r(0),i=r(5);function o(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function a(e){return s.apply(this,arguments)}function s(){var t;return t=regeneratorRuntime.mark((function t(r){var o,a,s,u,c,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!e._SP_CACHE_REGIONALSETTINGS){t.next=3;break}return t.abrupt("return",Promise.resolve(e._SP_CACHE_REGIONALSETTINGS));case 3:if(r){t.next=7;break}return t.next=6,i.a.call(this);case 6:r=t.sent;case 7:return t.next=9,n.a.call(this,{url:r+"/_layouts/regionalsetng.aspx?Type=User"});case 9:for(o=t.sent,a={lcid:"",cultureInfo:"",timeZone:"",calendar:"",alternateCalendar:""},(s=document.createElement("div")).innerHTML=o,l=function(e){var t=s.querySelector("select[id$='"+e+"']");return t.options[t.selectedIndex].innerHTML},a.lcid=s.querySelector("select[id$='LCID']").value,a.cultureInfo=l("LCID"),a.timeZone=l("TimeZone"),a.calendar=l("DdlwebCalType"),a.alternateCalendar=l("DdlwebAltCalType"),u=document.querySelectorAll("input[id*='ChkListWeeklyMultiDays']"),a.workWeek={days:[],firstDayOfWeek:"",firstWeekOfYear:"",startTime:"",endTime:""},c=0;c<u.length;c++)u[c].checked&&a.workWeek.days.push(u[c].nextSibling.querySelector("abbr").getAttribute("title"));return a.workWeek.firstDayOfWeek=l("DdlFirstDayOfWeek"),a.workWeek.firstWeekOfYear=l("DdlFirstWeekOfYear"),a.workWeek.startTime=s.querySelector("select[id$='DdlStartTime']").value,a.workWeek.endTime=s.querySelector("select[id$='DdlEndTime']").value,a.timeFormat=l("DdlTimeFormat"),e._SP_CACHE_REGIONALSETTINGS=a,t.abrupt("return",Promise.resolve(a));case 31:return t.prev=31,t.t0=t.catch(0),t.abrupt("return",Promise.reject(t.t0));case 34:case"end":return t.stop()}}),t,this,[[0,31]])})),(s=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(e){o(a,n,i,s,u,"next",e)}function u(e){o(a,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},function(e,t,r){var n=r(7),i=r(22),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,r){var n=r(7),i=r(28);e.exports=function(e,t){try{i(n,e,t)}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(121),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(46),i=r(121);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.1",mode:n?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(8);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t,r){var n=r(22),i=r(71),o=r(12)("species");e.exports=function(e,t){var r;return i(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[o])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},function(e,t,r){var n=r(24),i=r(29),o=r(68),a=r(169),s=o("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,r){var n={};n[r(12)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},function(e,t,r){var n,i,o=r(7),a=r(140),s=o.process,u=s&&s.versions,c=u&&u.v8;c?i=(n=c.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},function(e,t,r){"use strict";var n=r(57),i=r(25),o=r(50);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},function(e,t,r){var n=r(147);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,r){var n=r(12)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,r){"use strict";var n=r(37),i=r(8),o=r(12),a=r(78),s=r(28),u=o("species"),c=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),f=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));e.exports=function(e,t,r,p){var h=o(e),d=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),v=d&&!i((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return t=!0,null},r[h](""),!t}));if(!d||!v||"replace"===e&&(!c||!l)||"split"===e&&!f){var m=/./[h],g=r(h,""[e],(function(e,t,r,n,i){return t.exec===a?d&&!i?{done:!0,value:m.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:l}),y=g[0],b=g[1];n(String.prototype,e,y),n(RegExp.prototype,h,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}p&&s(RegExp.prototype[h],"sham",!0)}},function(e,t,r){"use strict";var n=r(142).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},function(e,t,r){var n=r(41),i=r(78);e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var o=r.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,r){"use strict";var n,i=r(14),o=r(44).f,a=r(15),s=r(110),u=r(34),c=r(111),l=r(46),f="".startsWith,p=Math.min,h=c("startsWith");i({target:"String",proto:!0,forced:!!(l||h||(n=o(String.prototype,"startsWith"),!n||n.writable))&&!h},{startsWith:function(e){var t=String(u(this));s(e);var r=a(p(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return f?f.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){"use strict";var n=r(14),i=r(8),o=r(71),a=r(22),s=r(29),u=r(15),c=r(109),l=r(104),f=r(63),p=r(12),h=r(108),d=p("isConcatSpreadable"),v=h>=51||!i((function(){var e=[];return e[d]=!1,e.concat()[0]!==e})),m=f("concat"),g=function(e){if(!a(e))return!1;var t=e[d];return void 0!==t?!!t:o(e)};n({target:"Array",proto:!0,forced:!v||!m},{concat:function(e){var t,r,n,i,o,a=s(this),f=l(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(o=-1===t?a:arguments[t],g(o)){if(p+(i=u(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,p++)r in o&&c(f,p,o[r])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(f,p++,o)}return f.length=p,f}})},function(e,t,r){"use strict";var n=r(37),i=r(23),o=r(8),a=r(145),s=RegExp.prototype,u=s.toString,c=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),l="toString"!=u.name;(c||l)&&n(RegExp.prototype,"toString",(function(){var e=i(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(void 0===r&&e instanceof RegExp&&!("flags"in s)?a.call(e):r)}),{unsafe:!0})},function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(e,t,r){"use strict";var n=r(112),i=r(23),o=r(15),a=r(34),s=r(113),u=r(114);n("match",1,(function(e,t,r){return[function(t){var r=a(this),n=null==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var a=i(e),c=String(this);if(!a.global)return u(a,c);var l=a.unicode;a.lastIndex=0;for(var f,p=[],h=0;null!==(f=u(a,c));){var d=String(f[0]);p[h]=d,""===d&&(a.lastIndex=s(c,o(a.lastIndex),l)),h++}return 0===h?null:p}]}))},function(e,t,r){var n=r(27),i=r(8),o=r(97);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(7),i=r(98),o=n["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,r){var n=r(24),i=r(165),o=r(44),a=r(25);e.exports=function(e,t){for(var r=i(t),s=a.f,u=o.f,c=0;c<r.length;c++){var l=r[c];n(e,l)||s(e,l,u(t,l))}}},function(e,t,r){var n=r(7);e.exports=n},function(e,t,r){var n=r(24),i=r(36),o=r(59).indexOf,a=r(70);e.exports=function(e,t){var r,s=i(e),u=0,c=[];for(r in s)!n(a,r)&&n(s,r)&&c.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~o(c,r)||c.push(r));return c}},function(e,t,r){var n=r(8),i=/#|\.prototype\./,o=function(e,t){var r=s[a(e)];return r==c||r!=u&&("function"==typeof t?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,r){var n=r(103);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){var n=r(51);e.exports=n("document","documentElement")},function(e,t,r){var n=r(12);t.f=n},function(e,t,r){var n=r(123),i=r(24),o=r(128),a=r(25).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,r){var n=r(12),i=r(72),o=r(25),a=n("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,r){"use strict";var n=r(14),i=r(168),o=r(105),a=r(75),s=r(60),u=r(28),c=r(37),l=r(12),f=r(46),p=r(62),h=r(132),d=h.IteratorPrototype,v=h.BUGGY_SAFARI_ITERATORS,m=l("iterator"),g=function(){return this};e.exports=function(e,t,r,l,h,y,b){i(r,t,l);var w,S,x,A=function(e){if(e===h&&_)return _;if(!v&&e in E)return E[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},P=t+" Iterator",I=!1,E=e.prototype,k=E[m]||E["@@iterator"]||h&&E[h],_=!v&&k||A(h),T="Array"==t&&E.entries||k;if(T&&(w=o(T.call(new e)),d!==Object.prototype&&w.next&&(f||o(w)===d||(a?a(w,d):"function"!=typeof w[m]&&u(w,m,g)),s(w,P,!0,!0),f&&(p[P]=g))),"values"==h&&k&&"values"!==k.name&&(I=!0,_=function(){return k.call(this)}),f&&!b||E[m]===_||u(E,m,_),p[t]=_,h)if(S={values:A("values"),keys:y?_:A("keys"),entries:A("entries")},b)for(x in S)!v&&!I&&x in E||c(E,x,S[x]);else n({target:t,proto:!0,forced:v||I},S);return S}},function(e,t,r){"use strict";var n,i,o,a=r(105),s=r(28),u=r(24),c=r(12),l=r(46),f=c("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(n=i):p=!0),null==n&&(n={}),l||u(n,f)||s(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},function(e,t,r){var n=r(37);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){"use strict";var n=r(51),i=r(25),o=r(12),a=r(27),s=o("species");e.exports=function(e){var t=n(e),r=i.f;a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(12),i=r(62),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,r){var n=r(76),i=r(62),o=r(12)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(12)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r}},function(e,t,r){var n,i,o,a=r(7),s=r(8),u=r(41),c=r(74),l=r(127),f=r(97),p=r(139),h=a.location,d=a.setImmediate,v=a.clearImmediate,m=a.process,g=a.MessageChannel,y=a.Dispatch,b=0,w={},S=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},x=function(e){return function(){S(e)}},A=function(e){S(e.data)},P=function(e){a.postMessage(e+"",h.protocol+"//"+h.host)};d&&v||(d=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(b),b},v=function(e){delete w[e]},"process"==u(m)?n=function(e){m.nextTick(x(e))}:y&&y.now?n=function(e){y.now(x(e))}:g&&!p?(o=(i=new g).port2,i.port1.onmessage=A,n=c(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(P)?n="onreadystatechange"in f("script")?function(e){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),S(e)}}:function(e){setTimeout(x(e),0)}:(n=P,a.addEventListener("message",A,!1))),e.exports={set:d,clear:v}},function(e,t,r){var n=r(140);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,r){var n=r(51);e.exports=n("navigator","userAgent")||""},function(e,t,r){"use strict";var n=r(61),i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},function(e,t,r){var n=r(38),i=r(34),o=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){"use strict";var n=r(14),i=r(59).includes,o=r(130);n({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,r){"use strict";var n=r(23);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){"use strict";var n=r(14),i=r(110),o=r(34);n({target:"String",proto:!0,forced:!r(111)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(22),i=r(41),o=r(12)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,r){"use strict";var n=r(7),i=r(27),o=r(9).NATIVE_ARRAY_BUFFER,a=r(28),s=r(133),u=r(8),c=r(107),l=r(38),f=r(15),p=r(149),h=r(182),d=r(58).f,v=r(25).f,m=r(150),g=r(60),y=r(45),b=y.get,w=y.set,S=n.ArrayBuffer,x=S,A=n.DataView,P=n.RangeError,I=h.pack,E=h.unpack,k=function(e){return[255&e]},_=function(e){return[255&e,e>>8&255]},T=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},D=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},O=function(e){return I(e,23,4)},R=function(e){return I(e,52,8)},N=function(e,t){v(e.prototype,t,{get:function(){return b(this)[t]}})},C=function(e,t,r,n){var i=p(r),o=b(e);if(i+t>o.byteLength)throw P("Wrong index");var a=b(o.buffer).bytes,s=i+o.byteOffset,u=a.slice(s,s+t);return n?u:u.reverse()},L=function(e,t,r,n,i,o){var a=p(r),s=b(e);if(a+t>s.byteLength)throw P("Wrong index");for(var u=b(s.buffer).bytes,c=a+s.byteOffset,l=n(+i),f=0;f<t;f++)u[c+f]=l[o?f:t-f-1]};if(o){if(!u((function(){S(1)}))||!u((function(){new S(-1)}))||u((function(){return new S,new S(1.5),new S(NaN),"ArrayBuffer"!=S.name}))){for(var j,V=(x=function(e){return c(this,x),new S(p(e))}).prototype=S.prototype,M=d(S),F=0;M.length>F;)(j=M[F++])in x||a(x,j,S[j]);V.constructor=x}var U=new A(new x(2)),W=A.prototype.setInt8;U.setInt8(0,2147483648),U.setInt8(1,2147483649),!U.getInt8(0)&&U.getInt8(1)||s(A.prototype,{setInt8:function(e,t){W.call(this,e,t<<24>>24)},setUint8:function(e,t){W.call(this,e,t<<24>>24)}},{unsafe:!0})}else x=function(e){c(this,x,"ArrayBuffer");var t=p(e);w(this,{bytes:m.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},A=function(e,t,r){c(this,A,"DataView"),c(e,x,"DataView");var n=b(e).byteLength,o=l(t);if(o<0||o>n)throw P("Wrong offset");if(o+(r=void 0===r?n-o:f(r))>n)throw P("Wrong length");w(this,{buffer:e,byteLength:r,byteOffset:o}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=o)},i&&(N(x,"byteLength"),N(A,"buffer"),N(A,"byteLength"),N(A,"byteOffset")),s(A.prototype,{getInt8:function(e){return C(this,1,e)[0]<<24>>24},getUint8:function(e){return C(this,1,e)[0]},getInt16:function(e){var t=C(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=C(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return D(C(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return D(C(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return E(C(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return E(C(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){L(this,1,e,k,t)},setUint8:function(e,t){L(this,1,e,k,t)},setInt16:function(e,t){L(this,2,e,_,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){L(this,2,e,_,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){L(this,4,e,T,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){L(this,4,e,T,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){L(this,4,e,O,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){L(this,8,e,R,t,arguments.length>2?arguments[2]:void 0)}});g(x,"ArrayBuffer"),g(A,"DataView"),e.exports={ArrayBuffer:x,DataView:A}},function(e,t,r){var n=r(38),i=r(15);e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length or index");return r}},function(e,t,r){"use strict";var n=r(29),i=r(47),o=r(15);e.exports=function(e){for(var t=n(this),r=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),u=a>2?arguments[2]:void 0,c=void 0===u?r:i(u,r);c>s;)t[s++]=e;return t}},function(e,t,r){var n=r(186);e.exports=function(e,t){var r=n(e);if(r%t)throw RangeError("Wrong offset");return r}},function(e,t,r){var n=r(61),i=r(29),o=r(56),a=r(15),s=function(e){return function(t,r,s,u){n(r);var c=i(t),l=o(c),f=a(c.length),p=e?f-1:0,h=e?-1:1;if(s<2)for(;;){if(p in l){u=l[p],p+=h;break}if(p+=h,e?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:f>p;p+=h)p in l&&(u=r(u,l[p],p,c));return u}};e.exports={left:s(!1),right:s(!0)}},function(e,t,r){var n=r(14),i=r(214);n({global:!0,forced:parseInt!=i},{parseInt:i})},function(e,t,r){var n=r(34),i="["+r(118)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var r=String(n(t));return 1&e&&(r=r.replace(o,"")),2&e&&(r=r.replace(a,"")),r}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t,r){"use strict";var n=r(14),i=r(31).filter,o=r(8),a=r(63)("filter"),s=a&&!o((function(){[].filter.call({length:-1,0:1},(function(e){throw e}))}));n({target:"Array",proto:!0,forced:!a||!s},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));r(17),r(18),r(19),r(11),r(2),r(3),r(20),r(16),r(4);function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e._SP_CACHE_CONTENTTYPES=[],e._SP_CACHE_CONTENTTYPE=[],e._SP_CACHE_SAVEDVIEW=[],e._SP_CACHE_SAVEDVIEWS=[],e._SP_CACHE_SAVEDLISTS=[],e._SP_CACHE_USERGROUPS=[],e._SP_CACHE_GROUPMEMBERS=[],e._SP_CACHE_DISTRIBUTIONLISTS=[],e._SP_CACHE_REGIONALSETTINGS=void 0,e._SP_CACHE_DATEFORMAT=void 0,e._SP_CACHE_HASREST={},e._SP_CACHE_REQUESTDIGEST={},e._SP_CACHE_TIMEZONEINFO={},e._SP_ADD_PROGRESSVAR={},e._SP_UPDATE_PROGRESSVAR={},e._SP_MODERATE_PROGRESSVAR={},e._SP_REMOVE_PROGRESSVAR={},e._SP_NOTIFY_READY=!1,e._SP_NOTIFY_QUEUE=[],e._SP_NOTIFY=[],e._SP_PLUGINS={},e._SP_MODALDIALOG_LOADED=!1,e._SP_MAXWHERE_ONLOOKUP=30,e._SP_ISBROWSER=new Function("try {return this===window;}catch(e){ return false;}")(),e._SP_ISSPO={},e._SP_JSON_ACCEPT="verbose";var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.queue=[],this.data=[],this.length=0,this.listID="",this.url=void 0,this.module_sprequest=null,this.credentialOptions=null,this.authMethod={cookie:null},this.proxyweb=null}var t,r,n;return t=e,(r=[{key:"getVersion",value:function(){return"6.2.0"}},{key:"auth",value:function(e,t){return"cookie"===e.method&&"function"==typeof t?this.authMethod.cookie=t:this.credentialOptions=e,this}},{key:"proxy",value:function(e){return this.proxyweb=e,this}},{key:"init",value:function(e){var t=this;if("object"===o(e)){var r=function(r){if("list"===r)t[r]=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t.queue=[{fct:e[r],args:i}],t};else switch(r){case"get":case"add":case"info":case"view":case"views":case"addAttachment":case"getAttachment":case"getContentTypeInfo":case"getContentTypes":case"getVersions":case"getWorkflowID":case"hasPermission":case"history":case"moderate":case"remove":case"removeAttachment":case"restoreVersion":case"setReadOnly":case"startWorkflow":case"startWorkflow2013":case"stopWorkflow":case"update":case"createFile":case"createFolder":t[r]=t._queueFct(e[r]);break;default:t[r]=e[r]}};for(var n in e)r(n)}}},{key:"_queueFct",value:function(e){var t=this;return(i(regeneratorRuntime.mark((function r(){var n,i,o,a,s=arguments;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(n=s.length,i=new Array(n),o=0;o<n;o++)i[o]=s[o];if(!(t.queue.length>0)){r.next=4;break}return a=t.queue.shift(),r.abrupt("return",a.fct.apply(t,a.args).then((function(){return e.apply(t,i)})));case 4:case"end":return r.stop()}}),r)}))))}}])&&a(t.prototype,r),n&&a(t,n),e}()}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=["responseType","withCredentials","timeout","onprogress"];function i(t,r){var i=t.headers||{},a=t.body,s=t.method||(a?"POST":"GET"),u=!1,c=function(t){if(t&&e.XDomainRequest&&!/MSIE 1/.test(navigator.userAgent))return new e.XDomainRequest;if(e.XMLHttpRequest)return new XMLHttpRequest}(t.cors);function l(e,t){return function(){u||(r(void 0===c.status?e:c.status,0===c.status?"Error":c.response||c.responseText||t,c),u=!0)}}c.open(s,t.url,!0);var f=c.onload=l(200);c.onreadystatechange=function(){4===c.readyState&&f()},c.onerror=l(null,"Error"),c.ontimeout=l(null,"Timeout"),c.onabort=l(null,"Abort"),a&&(o(i,"X-Requested-With","XMLHttpRequest"),e.FormData&&a instanceof e.FormData||o(i,"Content-Type","application/x-www-form-urlencoded"));for(var p,h=0,d=n.length;h<d;h++)void 0!==t[p=n[h]]&&(c[p]=t[p]);for(p in i)c.setRequestHeader(p,i[p]);return t.onprogress&&("GET"===s.toUpperCase()?c.addEventListener("progress",t.onprogress,!1):c.upload.addEventListener("progress",t.onprogress,!1)),t.getXHR&&t.getXHR(c),c.send(a),c}function o(e,t,r){e[t]=e[t]||r}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));r(17),r(18),r(19),r(11),r(2),r(3),r(20),r(16),r(4);var n=r(5),i=r(0),o=r(1);function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return u.apply(this,arguments)}function u(){var t;return t=regeneratorRuntime.mark((function t(r){var a,s,u,c,l,f,p,h,d,v,m,g,y,b,w,S,x,A;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,(r=r||{}).url){t.next=6;break}return t.next=5,n.a.call(this);case 5:r.url=t.sent;case 6:if(r.cache=!1!==r.cache,!r.cache){t.next=34;break}a=!0,s=!1,u=void 0,t.prev=11,c=e._SP_CACHE_SAVEDLISTS[Symbol.iterator]();case 13:if(a=(l=c.next()).done){t.next=20;break}if((f=l.value).url!==r.url){t.next=17;break}return t.abrupt("return",Promise.resolve(f.data));case 17:a=!0,t.next=13;break;case 20:t.next=26;break;case 22:t.prev=22,t.t0=t.catch(11),s=!0,u=t.t0;case 26:t.prev=26,t.prev=27,a||null==c.return||c.return();case 29:if(t.prev=29,!s){t.next=32;break}throw u;case 32:return t.finish(29);case 33:return t.finish(26);case 34:return t.next=36,i.a.call(this,{url:r.url+"/_vti_bin/lists.asmx",body:Object(o.a)("GetListCollection",""),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/GetListCollection"}});case 36:for(p=t.sent,h=[],d=p.getElementsByTagName("List"),v=0;v<d.length;v++){for(h[v]={},g=d[v].attributes,m=g.length;m--;)h[v][g[m].nodeName]=g[m].nodeValue;h[v].Url=d[v].getAttribute("DefaultViewUrl"),h[v].Name=d[v].getAttribute("Title")}if(y=!1,!r.cache){t.next=68;break}b=!0,w=!1,S=void 0,t.prev=44,x=e._SP_CACHE_SAVEDLISTS[Symbol.iterator]();case 46:if(b=(A=x.next()).done){t.next=54;break}if(A.value.url!==r.url){t.next=51;break}return y=!0,t.abrupt("break",54);case 51:b=!0,t.next=46;break;case 54:t.next=60;break;case 56:t.prev=56,t.t1=t.catch(44),w=!0,S=t.t1;case 60:t.prev=60,t.prev=61,b||null==x.return||x.return();case 63:if(t.prev=63,!w){t.next=66;break}throw S;case 66:return t.finish(63);case 67:return t.finish(60);case 68:return y||e._SP_CACHE_SAVEDLISTS.push({url:r.url,data:h}),t.abrupt("return",Promise.resolve(h));case 72:return t.prev=72,t.t2=t.catch(0),t.abrupt("return",Promise.reject(t.t2));case 75:case"end":return t.stop()}}),t,this,[[0,72],[11,22,26,34],[27,,29,33],[44,56,60,68],[61,,63,67]])})),(u=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));r(11),r(21),r(52),r(2),r(3),r(16),r(4);var n=r(0),i=r(1),o=r(86);function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e,t){return u.apply(this,arguments)}function u(){var t;return t=regeneratorRuntime.mark((function t(r,a){var u,c,l,f,p,h,d,v,m,g,y,b,w,S,x,A,P=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,this.listID){t.next=3;break}throw"[SharepointPlus 'moderate'] the list ID/Name is required.";case 3:if(a=a||{},this.url){t.next=6;break}throw"[SharepointPlus 'moderate'] not able to find the URL!";case 6:if(a.progress=a.progress||function(){},Array.isArray(r)||(r=[r]),u=r.length,a.progressVar=a.progressVar||{current:0,max:u,passed:[],failed:[],eventID:"spModerate"+(""+Math.random()).slice(2)},!(u>15)){t.next=17;break}return c=r.slice(0),l=c.splice(0,15),e._SP_MODERATE_PROGRESSVAR[a.progressVar.eventID]=function(e){return s.call(P,c,e)},t.abrupt("return",s.call(this,l,a));case 17:if(0!==u){t.next=19;break}return t.abrupt("return",Promise.resolve({passed:[],failed:[]}));case 19:a.progressVar.current+=u,d='<Batch OnError="Continue" ListVersion="1"  ViewName="">',v=0;case 22:if(!(v<u)){t.next=60;break}if(d+='<Method ID="'+(v+1)+'" Cmd="Moderate">',r[v].ID){t.next=28;break}throw"[SharepointPlus 'moderate'] you have to provide the item ID called 'ID'";case 28:if(void 0!==r[v].ApprovalStatus){t.next=30;break}throw"[SharepointPlus 'moderate'] you have to provide the approval status 'ApprovalStatus' (Approved, Rejected, Pending, Draft or Scheduled)";case 30:t.t0=regeneratorRuntime.keys(r[v]);case 31:if((t.t1=t.t0()).done){t.next=56;break}if(h=t.t1.value,!Object.prototype.hasOwnProperty.call(r[v],h)){t.next=53;break}if(f=h,p=r[v][h],"ApprovalStatus"!=f){t.next=53;break}f="_ModerationStatus",t.t2=p.toLowerCase(),t.next="approve"===t.t2?41:"approved"===t.t2?41:"reject"===t.t2?43:"deny"===t.t2?43:"denied"===t.t2?43:"rejected"===t.t2?43:"pending"===t.t2?45:"draft"===t.t2?47:"scheduled"===t.t2?49:51;break;case 41:return p=0,t.abrupt("break",53);case 43:return p=1,t.abrupt("break",53);case 45:return p=2,t.abrupt("break",53);case 47:return p=3,t.abrupt("break",53);case 49:return p=4,t.abrupt("break",53);case 51:return p=2,t.abrupt("break",53);case 53:d+="<Field Name='"+f+"'>"+p+"</Field>",t.next=31;break;case 56:d+="</Method>";case 57:v++,t.next=22;break;case 60:return d+="</Batch>",t.next=63,n.a.call(this,{url:this.url+"/_vti_bin/lists.asmx",body:Object(i.a)("UpdateListItems","<listName>"+this.listID+"</listName><updates>"+d+"</updates>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/UpdateListItems"}});case 63:for(m=t.sent,g=m.getElementsByTagName("Result"),y=g.length,b=a.progressVar.passed,w=a.progressVar.failed,x=0;x<y;x++)0==(S=g[x].getElementsByTagName("z:row")).length&&(S=m.getElementsByTagName("row")),A=new o.a(S[0]),"0x00000000"==g[x].getElementsByTagName("ErrorCode")[0].firstChild.nodeValue?b.push(A):(r[x].errorMessage=g[x].getElementsByTagName("ErrorText")[0].firstChild.nodeValue,w.push(r[x]));if(a.progress(a.progressVar.current,a.progressVar.max),!(a.progressVar.current<a.progressVar.max)){t.next=72;break}if(!e._SP_MODERATE_PROGRESSVAR[a.progressVar.eventID]){t.next=70;break}return t.abrupt("return",e._SP_MODERATE_PROGRESSVAR[a.progressVar.eventID](a));case 70:t.next=74;break;case 72:return e._SP_MODERATE_PROGRESSVAR[a.progressVar.eventID]&&delete e._SP_MODERATE_PROGRESSVAR[a.progressVar.eventID],t.abrupt("return",Promise.resolve({passed:b,failed:w}));case 74:t.next=79;break;case 76:return t.prev=76,t.t3=t.catch(0),t.abrupt("return",Promise.reject(t.t3));case 79:case"end":return t.stop()}}),t,this,[[0,76]])})),(u=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return c}));r(155),r(39),r(21),r(52),r(2),r(3),r(6),r(30),r(115),r(4);var n=r(0),i=r(1),o=r(26),a=r(40),s=r(43);function u(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function c(e,t){return l.apply(this,arguments)}function l(){var t;return t=regeneratorRuntime.mark((function t(r,u){var l,f,p,h,d,v,m,g,y,b,w,S,x,A,P,I,E,k,_,T,D,O=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,this.url){t.next=3;break}throw"[SharepointPlus 'remove'] not able to find the URL!";case 3:if(!u&&r.where&&(u=r,r=[]),l={},Object(o.a)(!0,l,u),l.progress=l.progress||function(){},l.packetsize=l.packetsize||30,Array.isArray(r)||(r=[r]),f=r.length,!l.where){t.next=44;break}return 1===f&&delete r[0].ID,d={fields:["ID","FileRef"],where:l.where},l.event&&(d.fields.push("Title"),d.calendar=!0,d.calendarOptions={referenceDate:l.event}),t.next=16,a.a.call(this,d);case 16:if(v=t.sent,m=function(e){var t={};for(var r in e)t[r]=e[r];return t},g=[],b={},l.event){t.next=26;break}for(w=v.length;w--;)(b=m(r[0])).ID=v[w].getAttribute("ID"),(y=v[w].getAttribute("FileRef"))&&(b.FileRef=this.cleanResult(y)),g.push(b);return l.where=void 0,t.abrupt("return",c.call(this,g,l));case 26:if(S="string"!=typeof l.event?this.toSPDate(l.event):l.event.slice(0,10),0!==(x=v.filter((function(e){return-1!==e.getAttribute("ID").indexOf("."+S+"T")||(e.getAttribute("RecurrenceID")||"").startsWith(S)}))).length){t.next=30;break}return t.abrupt("return",Promise.reject("[SharepointPlus 'remove'] No event found on "+S));case 30:return x=x[0],b.MasterSeriesItemID=x.getAttribute("ID").split(".")[0],b.UID=x.getAttribute("UID"),b.EventType=3,b.fRecurrence=1,b.fAllDayEvent=x.getAttribute("fAllDayEvent")||"0",b.RecurrenceData="No Recurrence",b.RecurrenceID=x.getAttribute("RecurrenceID"),b.Title="Deleted: "+x.getAttribute("Title")||!1,b.EventDate=x.getAttribute("EventDate"),b.EndDate=x.getAttribute("EndDate"),t.abrupt("return",s.a.call(this,b,l));case 42:t.next=46;break;case 44:if(0!==f){t.next=46;break}return t.abrupt("return",Promise.resolve({passed:[],failed:[]}));case 46:l.progressVar=l.progressVar||{current:0,max:f,passed:[],failed:[],eventID:"spRemove"+(""+Math.random()).slice(2)},f>l.packetsize&&(p=r.slice(0),h=p.splice(0,l.packetsize),e._SP_REMOVE_PROGRESSVAR[l.progressVar.eventID]=function(e){return c.call(O,p,e)},f=(r=h).length),l.progressVar.current+=f,A='<Batch OnError="Continue" ListVersion="1"  ViewName="">',P=0;case 51:if(!(P<r.length)){t.next=61;break}if(A+='<Method ID="'+(P+1)+'" Cmd="Delete">',null!=r[P].ID){t.next=55;break}throw"Error 'delete': you have to provide the item ID called 'ID'";case 55:A+="<Field Name='ID'>"+r[P].ID+"</Field>",null!=r[P].FileRef&&(A+="<Field Name='FileRef'>"+r[P].FileRef+"</Field>"),A+="</Method>";case 58:P++,t.next=51;break;case 61:return A+="</Batch>",t.next=64,n.a.call(this,{url:this.url+"/_vti_bin/lists.asmx",body:Object(i.a)("UpdateListItems","<listName>"+this.listID+"</listName><updates>"+A+"</updates>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/UpdateListItems"}});case 64:for(I=t.sent,E=I.getElementsByTagName("Result"),k=E.length,_=l.progressVar.passed,T=l.progressVar.failed,D=0;D<k;D++)"0x00000000"===E[D].getElementsByTagName("ErrorCode")[0].firstChild.nodeValue?_.push(r[D]):(r[D].errorMessage=E[D].getElementsByTagName("ErrorText")[0].firstChild.nodeValue,T.push(r[D]));if(l.progress(l.progressVar.current,l.progressVar.max),!(l.progressVar.current<l.progressVar.max)){t.next=76;break}if(!e._SP_REMOVE_PROGRESSVAR[l.progressVar.eventID]){t.next=74;break}if(!(l.breakOnFailure&&T.length>0)){t.next=73;break}return e._SP_REMOVE_PROGRESSVAR[l.progressVar.eventID]=void 0,t.abrupt("return",Promise.resolve({passed:_,failed:T}));case 73:return t.abrupt("return",e._SP_REMOVE_PROGRESSVAR[l.progressVar.eventID](l));case 74:t.next=78;break;case 76:return e._SP_REMOVE_PROGRESSVAR[l.progressVar.eventID]&&(e._SP_REMOVE_PROGRESSVAR[l.progressVar.eventID]=void 0),t.abrupt("return",Promise.resolve({passed:_,failed:T}));case 78:t.next=83;break;case 80:return t.prev=80,t.t0=t.catch(0),t.abrupt("return",Promise.reject(t.t0));case 83:case"end":return t.stop()}}),t,this,[[0,80]])})),(l=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){u(o,n,i,a,s,"next",e)}function s(e){u(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));r(64);var n=r(55);function i(t,r){var o=this;if(void 0===t)throw"[SharepointPlus notify'] you must provide the message to show.";if("string"!=typeof t)throw"[SharepointPlus notify'] you must provide a string for the message to show.";if((r=r||{}).timeout=isNaN(r.timeout)?5:r.timeout,r.override=!0===r.override,r.overrideAll=!0===r.overrideAll,r.overrideSticky=!1!==r.overrideSticky,r.sticky=!0===r.sticky,r.name=r.name||(new Date).getTime(),r.after=r.after||function(){},r.fake=!0===r.fake,r.ignoreQueue=!0===r.ignoreQueue,e._SP_NOTIFY_READY=IsSodLoaded(_v_dictSod["sp.js"])&&IsSodLoaded(_v_dictSod["core.js"]),!1===e._SP_NOTIFY_READY)return e._SP_NOTIFY_QUEUE.push({message:t,options:r}),LoadMultipleSods(["sp.js","core.js"],(function(){e._SP_NOTIFY_READY=!0,i.call(o,"fake",{fake:!0})})),this;if(!0!==r.ignoreQueue)for(;e._SP_NOTIFY_QUEUE.length>0;){var a=e._SP_NOTIFY_QUEUE.shift();a.options.ignoreQueue=!0,i.call(this,a.message,a.options)}!0!==r.fake&&(e._SP_NOTIFY.length>0&&(r.overrideAll?n.a.call(this,{all:!0,includeSticky:r.overrideSticky}):r.override&&n.a.call(this,e._SP_NOTIFY[e._SP_NOTIFY.length-1].name)),e._SP_NOTIFY.push({name:r.name,id:SP.UI.Notify.addNotification(t,!0),options:r}),r.sticky||setTimeout((function(){n.a.call(this,r.name,{timeout:!0})}),1e3*r.timeout))}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));r(17),r(18),r(19),r(11),r(32),r(21),r(2),r(6),r(220),r(20),r(30),r(16);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(t){var r=((t=t||{}).url||this.url||window.location.href).split("/").slice(0,3).join("/");return"boolean"==typeof e._SP_ISSPO[r]?e._SP_ISSPO[r]:!!r.endsWith(".sharepoint.com")||("object"===n(e._spPageContextInfo)?e._spPageContextInfo.isSPO||!1:null)}}).call(this,r(10))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));r(2),r(153),r(3),r(6),r(13),r(4);var n=r(0),i=r(5),o=r(95);function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return u.apply(this,arguments)}function u(){var t;return t=regeneratorRuntime.mark((function t(r){var a,s,u,c,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!e._SP_CACHE_DATEFORMAT){t.next=3;break}return t.abrupt("return",Promise.resolve(e._SP_CACHE_DATEFORMAT));case 3:if(r){t.next=7;break}return t.next=6,i.a.call(this);case 6:r=t.sent;case 7:if(a="","undefined"!=typeof _spRegionalSettings?a=_spRegionalSettings.localeId:e._SP_CACHE_REGIONALSETTINGS&&(a=e._SP_CACHE_REGIONALSETTINGS.lcid),a){t.next=13;break}return t.next=12,o.a.call(this,r);case 12:a=e._SP_CACHE_REGIONALSETTINGS.lcid;case 13:return t.next=15,n.a.call(this,{url:r+"/_layouts/iframe.aspx?cal=1&date=1/1/2000&lcid="+a});case 15:return s=t.sent,(u=document.createElement("div")).innerHTML=s,c=u.querySelector('a[id="20000103"]').getAttribute("href").replace(/javascript:ClickDay\('(.*)'\)/,"$1"),l=/\\u([\d\w]{4})/gi,c=c.replace(l,(function(e,t){return String.fromCharCode(parseInt(t,16))})),c=(c=(c=(c=(c=(c=(c=unescape(c)).replace(/20/,"YY")).replace(/00/,"YY")).replace(/03/,"DD")).replace(/3/,"D")).replace(/01/,"MM")).replace(/1/,"M"),e._SP_CACHE_DATEFORMAT=c,t.abrupt("return",Promise.resolve(c));case 32:return t.prev=32,t.t0=t.catch(0),t.abrupt("return",Promise.reject(t.t0));case 35:case"end":return t.stop()}}),t,this,[[0,32]])})),(u=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}).apply(this,arguments)}}).call(this,r(10))},function(e,t,r){var n=r(7),i=r(99),o=n.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,r){var n=r(51),i=r(58),o=r(102),a=r(23);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?t.concat(r(e)):t}},function(e,t,r){var n=r(27),i=r(25),o=r(23),a=r(73);e.exports=n?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=n.length,u=0;s>u;)i.f(e,r=n[u++],t[r]);return e}},function(e,t,r){var n=r(36),i=r(58).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},function(e,t,r){"use strict";var n=r(132).IteratorPrototype,i=r(72),o=r(50),a=r(60),s=r(62),u=function(){return this};e.exports=function(e,t,r){var c=t+" Iterator";return e.prototype=i(n,{next:o(1,r)}),a(e,c,!1,!0),s[c]=u,e}},function(e,t,r){var n=r(8);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){var n=r(22);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,r){"use strict";var n=r(106),i=r(76);e.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,r){var n=r(7);e.exports=n.Promise},function(e,t,r){var n=r(23),i=r(135),o=r(15),a=r(74),s=r(136),u=r(174),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,r,l,f){var p,h,d,v,m,g,y,b=a(t,r,l?2:1);if(f)p=e;else{if("function"!=typeof(h=s(e)))throw TypeError("Target is not iterable");if(i(h)){for(d=0,v=o(e.length);v>d;d++)if((m=l?b(n(y=e[d])[0],y[1]):b(e[d]))&&m instanceof c)return m;return new c(!1)}p=h.call(e)}for(g=p.next;!(y=g.call(p)).done;)if("object"==typeof(m=u(p,b,y.value,l))&&m&&m instanceof c)return m;return new c(!1)}).stop=function(e){return new c(!0,e)}},function(e,t,r){var n=r(23);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n,i,o,a,s,u,c,l,f=r(7),p=r(44).f,h=r(41),d=r(138).set,v=r(139),m=f.MutationObserver||f.WebKitMutationObserver,g=f.process,y=f.Promise,b="process"==h(g),w=p(f,"queueMicrotask"),S=w&&w.value;S||(n=function(){var e,t;for(b&&(e=g.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},b?a=function(){g.nextTick(n)}:m&&!v?(s=!0,u=document.createTextNode(""),new m(n).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):y&&y.resolve?(c=y.resolve(void 0),l=c.then,a=function(){l.call(c,n)}):a=function(){d.call(f,n)}),e.exports=S||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,r){var n=r(23),i=r(22),o=r(141);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){var n=r(7);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,r){"use strict";var n=r(8);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=n((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=n((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,r){"use strict";var n=r(31).forEach,i=r(77);e.exports=i("forEach")?function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(e,t,r){"use strict";var n=r(14),i=r(8),o=r(148),a=r(23),s=r(47),u=r(15),c=r(48),l=o.ArrayBuffer,f=o.DataView,p=l.prototype.slice;n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new l(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(void 0!==p&&void 0===t)return p.call(a(this),e);for(var r=a(this).byteLength,n=s(e,r),i=s(void 0===t?r:t,r),o=new(c(this,l))(u(i-n)),h=new f(this),d=new f(o),v=0;n<i;)d.setUint8(v++,h.getUint8(n++));return o}})},function(e,t){var r=Math.abs,n=Math.pow,i=Math.floor,o=Math.log,a=Math.LN2;e.exports={pack:function(e,t,s){var u,c,l,f=new Array(s),p=8*s-t-1,h=(1<<p)-1,d=h>>1,v=23===t?n(2,-24)-n(2,-77):0,m=e<0||0===e&&1/e<0?1:0,g=0;for((e=r(e))!=e||e===1/0?(c=e!=e?1:0,u=h):(u=i(o(e)/a),e*(l=n(2,-u))<1&&(u--,l*=2),(e+=u+d>=1?v/l:v*n(2,1-d))*l>=2&&(u++,l/=2),u+d>=h?(c=0,u=h):u+d>=1?(c=(e*l-1)*n(2,t),u+=d):(c=e*n(2,d-1)*n(2,t),u=0));t>=8;f[g++]=255&c,c/=256,t-=8);for(u=u<<t|c,p+=t;p>0;f[g++]=255&u,u/=256,p-=8);return f[--g]|=128*m,f},unpack:function(e,t){var r,i=e.length,o=8*i-t-1,a=(1<<o)-1,s=a>>1,u=o-7,c=i-1,l=e[c--],f=127&l;for(l>>=7;u>0;f=256*f+e[c],c--,u-=8);for(r=f&(1<<-u)-1,f>>=-u,u+=t;u>0;r=256*r+e[c],c--,u-=8);if(0===f)f=1-s;else{if(f===a)return r?NaN:l?-1/0:1/0;r+=n(2,t),f-=s}return(l?-1:1)*r*n(2,f-t)}}},function(e,t,r){r(184)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},function(e,t,r){"use strict";var n=r(14),i=r(7),o=r(27),a=r(185),s=r(9),u=r(148),c=r(107),l=r(50),f=r(28),p=r(15),h=r(149),d=r(151),v=r(57),m=r(24),g=r(76),y=r(22),b=r(72),w=r(75),S=r(58).f,x=r(187),A=r(31).forEach,P=r(134),I=r(25),E=r(44),k=r(45),_=r(188),T=k.get,D=k.set,O=I.f,R=E.f,N=Math.round,C=i.RangeError,L=u.ArrayBuffer,j=u.DataView,V=s.NATIVE_ARRAY_BUFFER_VIEWS,M=s.TYPED_ARRAY_TAG,F=s.TypedArray,U=s.TypedArrayPrototype,W=s.aTypedArrayConstructor,B=s.isTypedArray,G=function(e,t){for(var r=0,n=t.length,i=new(W(e))(n);n>r;)i[r]=t[r++];return i},q=function(e,t){O(e,t,{get:function(){return T(this)[t]}})},H=function(e){var t;return e instanceof L||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},Y=function(e,t){return B(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},$=function(e,t){return Y(e,t=v(t,!0))?l(2,e[t]):R(e,t)},z=function(e,t,r){return!(Y(e,t=v(t,!0))&&y(r)&&m(r,"value"))||m(r,"get")||m(r,"set")||r.configurable||m(r,"writable")&&!r.writable||m(r,"enumerable")&&!r.enumerable?O(e,t,r):(e[t]=r.value,e)};o?(V||(E.f=$,I.f=z,q(U,"buffer"),q(U,"byteOffset"),q(U,"byteLength"),q(U,"length")),n({target:"Object",stat:!0,forced:!V},{getOwnPropertyDescriptor:$,defineProperty:z}),e.exports=function(e,t,r){var o=e.match(/\d+$/)[0]/8,s=e+(r?"Clamped":"")+"Array",u="get"+e,l="set"+e,v=i[s],m=v,g=m&&m.prototype,I={},E=function(e,t){O(e,t,{get:function(){return function(e,t){var r=T(e);return r.view[u](t*o+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var i=T(e);r&&(n=(n=N(n))<0?0:n>255?255:255&n),i.view[l](t*o+i.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};V?a&&(m=t((function(e,t,r,n){return c(e,m,s),_(y(t)?H(t)?void 0!==n?new v(t,d(r,o),n):void 0!==r?new v(t,d(r,o)):new v(t):B(t)?G(m,t):x.call(m,t):new v(h(t)),e,m)})),w&&w(m,F),A(S(v),(function(e){e in m||f(m,e,v[e])})),m.prototype=g):(m=t((function(e,t,r,n){c(e,m,s);var i,a,u,l=0,f=0;if(y(t)){if(!H(t))return B(t)?G(m,t):x.call(m,t);i=t,f=d(r,o);var v=t.byteLength;if(void 0===n){if(v%o)throw C("Wrong length");if((a=v-f)<0)throw C("Wrong length")}else if((a=p(n)*o)+f>v)throw C("Wrong length");u=a/o}else u=h(t),i=new L(a=u*o);for(D(e,{buffer:i,byteOffset:f,byteLength:a,length:u,view:new j(i)});l<u;)E(e,l++)})),w&&w(m,F),g=m.prototype=b(U)),g.constructor!==m&&f(g,"constructor",m),M&&f(g,M,s),I[s]=m,n({global:!0,forced:m!=v,sham:!V},I),"BYTES_PER_ELEMENT"in m||f(m,"BYTES_PER_ELEMENT",o),"BYTES_PER_ELEMENT"in g||f(g,"BYTES_PER_ELEMENT",o),P(s)}):e.exports=function(){}},function(e,t,r){var n=r(7),i=r(8),o=r(137),a=r(9).NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,u=n.Int8Array;e.exports=!a||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!o((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},function(e,t,r){var n=r(38);e.exports=function(e){var t=n(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,r){var n=r(29),i=r(15),o=r(136),a=r(135),s=r(74),u=r(9).aTypedArrayConstructor;e.exports=function(e){var t,r,c,l,f,p,h=n(e),d=arguments.length,v=d>1?arguments[1]:void 0,m=void 0!==v,g=o(h);if(null!=g&&!a(g))for(p=(f=g.call(h)).next,h=[];!(l=p.call(f)).done;)h.push(l.value);for(m&&d>2&&(v=s(v,arguments[2],2)),r=i(h.length),c=new(u(this))(r),t=0;r>t;t++)c[t]=m?v(h[t],t):h[t];return c}},function(e,t,r){var n=r(22),i=r(75);e.exports=function(e,t,r){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},function(e,t,r){"use strict";var n=r(9),i=r(190),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("copyWithin",(function(e,t){return i.call(o(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,r){"use strict";var n=r(29),i=r(47),o=r(15),a=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),s=o(r.length),u=i(e,s),c=i(t,s),l=arguments.length>2?arguments[2]:void 0,f=a((void 0===l?s:i(l,s))-c,s-u),p=1;for(c<u&&u<c+f&&(p=-1,c+=f-1,u+=f-1);f-- >0;)c in r?r[u]=r[c]:delete r[u],u+=p,c+=p;return r}},function(e,t,r){"use strict";var n=r(9),i=r(31).every,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(9),i=r(150),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("fill",(function(e){return i.apply(o(this),arguments)}))},function(e,t,r){"use strict";var n=r(9),i=r(31).filter,o=r(48),a=n.aTypedArray,s=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("filter",(function(e){for(var t=i(a(this),e,arguments.length>1?arguments[1]:void 0),r=o(this,this.constructor),n=0,u=t.length,c=new(s(r))(u);u>n;)c[n]=t[n++];return c}))},function(e,t,r){"use strict";var n=r(9),i=r(31).find,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(9),i=r(31).findIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(9),i=r(31).forEach,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(9),i=r(59).includes,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(9),i=r(59).indexOf,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(7),i=r(9),o=r(11),a=r(12)("iterator"),s=n.Uint8Array,u=o.values,c=o.keys,l=o.entries,f=i.aTypedArray,p=i.exportTypedArrayMethod,h=s&&s.prototype[a],d=!!h&&("values"==h.name||null==h.name),v=function(){return u.call(f(this))};p("entries",(function(){return l.call(f(this))})),p("keys",(function(){return c.call(f(this))})),p("values",v,!d),p(a,v,!d)},function(e,t,r){"use strict";var n=r(9),i=n.aTypedArray,o=n.exportTypedArrayMethod,a=[].join;o("join",(function(e){return a.apply(i(this),arguments)}))},function(e,t,r){"use strict";var n=r(9),i=r(202),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){return i.apply(o(this),arguments)}))},function(e,t,r){"use strict";var n=r(36),i=r(38),o=r(15),a=r(77),s=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf");e.exports=c||l?function(e){if(c)return u.apply(this,arguments)||0;var t=n(this),r=o(t.length),a=r-1;for(arguments.length>1&&(a=s(a,i(arguments[1]))),a<0&&(a=r+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:u},function(e,t,r){"use strict";var n=r(9),i=r(31).map,o=r(48),a=n.aTypedArray,s=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("map",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(s(o(e,e.constructor)))(t)}))}))},function(e,t,r){"use strict";var n=r(9),i=r(152).left,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){return i(o(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(9),i=r(152).right,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){return i(o(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(9),i=n.aTypedArray,o=n.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){for(var e,t=i(this).length,r=a(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this}))},function(e,t,r){"use strict";var n=r(9),i=r(15),o=r(151),a=r(29),s=r(8),u=n.aTypedArray;(0,n.exportTypedArrayMethod)("set",(function(e){u(this);var t=o(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=a(e),s=i(n.length),c=0;if(s+t>r)throw RangeError("Wrong length");for(;c<s;)this[t+c]=n[c++]}),s((function(){new Int8Array(1).set({})})))},function(e,t,r){"use strict";var n=r(9),i=r(48),o=r(8),a=n.aTypedArray,s=n.aTypedArrayConstructor,u=n.exportTypedArrayMethod,c=[].slice;u("slice",(function(e,t){for(var r=c.call(a(this),e,t),n=i(this,this.constructor),o=0,u=r.length,l=new(s(n))(u);u>o;)l[o]=r[o++];return l}),o((function(){new Int8Array(1).slice()})))},function(e,t,r){"use strict";var n=r(9),i=r(31).some,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(9),i=n.aTypedArray,o=n.exportTypedArrayMethod,a=[].sort;o("sort",(function(e){return a.call(i(this),e)}))},function(e,t,r){"use strict";var n=r(9),i=r(15),o=r(47),a=r(48),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=s(this),n=r.length,u=o(e,n);return new(a(r,r.constructor))(r.buffer,r.byteOffset+u*r.BYTES_PER_ELEMENT,i((void 0===t?n:o(t,n))-u))}))},function(e,t,r){"use strict";var n=r(7),i=r(9),o=r(8),a=n.Int8Array,s=i.aTypedArray,u=i.exportTypedArrayMethod,c=[].toLocaleString,l=[].slice,f=!!a&&o((function(){c.call(new a(1))}));u("toLocaleString",(function(){return c.apply(f?l.call(s(this)):s(this),arguments)}),o((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!o((function(){a.prototype.toLocaleString.call([1,2])})))},function(e,t,r){"use strict";var n=r(9).exportTypedArrayMethod,i=r(8),o=r(7).Uint8Array,a=o&&o.prototype||{},s=[].toString,u=[].join;i((function(){s.call({})}))&&(s=function(){return u.call(this)});var c=a.toString!=s;n("toString",s,c)},function(e,t,r){var n=r(7),i=r(154).trim,o=r(118),a=n.parseInt,s=/^[+-]?0[Xx]/,u=8!==a(o+"08")||22!==a(o+"0x16");e.exports=u?function(e,t){var r=i(String(e));return a(r,t>>>0||(s.test(r)?16:10))}:a},function(e,t,r){var n=r(14),i=r(216);n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,r){"use strict";var n=r(27),i=r(8),o=r(73),a=r(102),s=r(96),u=r(29),c=r(56),l=Object.assign,f=Object.defineProperty;e.exports=!l||i((function(){if(n&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol();return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[r]||"abcdefghijklmnopqrst"!=o(l({},t)).join("")}))?function(e,t){for(var r=u(e),i=arguments.length,l=1,f=a.f,p=s.f;i>l;)for(var h,d=c(arguments[l++]),v=f?o(d).concat(f(d)):o(d),m=v.length,g=0;m>g;)h=v[g++],n&&!p.call(d,h)||(r[h]=d[h]);return r}:l},function(e,t,r){"use strict";var n=r(14),i=r(154).trim;n({target:"String",proto:!0,forced:r(218)("trim")},{trim:function(){return i(this)}})},function(e,t,r){var n=r(8),i=r(118);e.exports=function(e){return n((function(){return!!i[e]()||"​᠎"!="​᠎"[e]()||i[e].name!==e}))}},function(e,t,r){var n=r(14),i=r(29),o=r(73);n({target:"Object",stat:!0,forced:r(8)((function(){o(1)}))},{keys:function(e){return o(i(e))}})},function(e,t,r){"use strict";var n,i=r(14),o=r(44).f,a=r(15),s=r(110),u=r(34),c=r(111),l=r(46),f="".endsWith,p=Math.min,h=c("endsWith");i({target:"String",proto:!0,forced:!!(l||h||(n=o(String.prototype,"endsWith"),!n||n.writable))&&!h},{endsWith:function(e){var t=String(u(this));s(e);var r=arguments.length>1?arguments[1]:void 0,n=a(t.length),i=void 0===r?n:p(a(r),n),o=String(e);return f?f.call(t,o,i):t.slice(i-o.length,i)===o}})},function(e,t,r){"use strict";r.r(t);var n=r(156),i=r(43),o=(r(21),r(2),r(3),r(6),r(13),r(4),r(0)),a=r(1);r(11),r(181),r(183),r(189),r(191),r(192),r(193),r(194),r(195),r(196),r(197),r(198),r(199),r(200),r(201),r(203),r(204),r(205),r(206),r(207),r(208),r(209),r(210),r(211),r(212),r(213);function s(e){for(var t,r="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(e),o=i.byteLength,a=o%3,s=o-a,u=0;u<s;u+=3)r+=n[(16515072&(t=i[u]<<16|i[u+1]<<8|i[u+2]))>>18]+n[(258048&t)>>12]+n[(4032&t)>>6]+n[63&t];return 1==a?r+=n[(252&(t=i[s]))>>2]+n[(3&t)<<4]+"==":2==a&&(r+=n[(64512&(t=i[s]<<8|i[s+1]))>>10]+n[(1008&t)>>4]+n[(15&t)<<2]+"="),r}function u(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function c(e){return l.apply(this,arguments)}function l(){var e;return e=regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.listID){e.next=2;break}throw"[SharepointPlus 'getVersions'] the list ID/Name is required.";case 2:if(this.url){e.next=4;break}throw"[SharepointPlus 'getVersions'] not able to find the URL!";case 4:if(t){e.next=6;break}throw"[SharepointPlus 'getVersions'] the item ID is required.";case 6:return e.abrupt("return",o.a.call(this,{url:this.url+"/_api/lists/getbytitle('"+this.listID+"')/Items("+t+")/Versions"}).then((function(e){return(e.d?e.d.results:e.value)||[]})));case 7:case"end":return e.stop()}}),e,this)})),(l=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){u(o,n,i,a,s,"next",e)}function s(e){u(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}r(144),r(146);var f=r(33),p=r(49);function h(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function d(e){return v.apply(this,arguments)}function v(){var e;return e=regeneratorRuntime.mark((function e(t){var r,n,i,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==a.length){e.next=2;break}throw"[SharepointPlus 'restoreVersion'] the arguments are mandatory.";case 2:if(this.listID){e.next=4;break}throw"[SharepointPlus 'restoreVersion'] the list ID/Name is required.";case 4:if(this.url){e.next=6;break}throw"[SharepointPlus 'restoreVersion'] not able to find the URL!";case 6:if(t.ID){e.next=8;break}throw"[SharepointPlus 'restoreVersion'] the item ID is required.";case 8:if(t.VersionID){e.next=10;break}throw"[SharepointPlus 'restoreVersion'] the VersionID is required.";case 10:return e.next=12,f.a.call(this);case 12:if(r=e.sent,n=r._List.RootFolder,"True"===r._List.EnableVersioning){e.next=16;break}return e.abrupt("return",Promise.reject("[SharepointPlus 'restoreVersion'] No versionning enabled on the list '"+this.listID+"'."));case 16:return e.next=18,p.a.call(this,{cache:!1});case 18:return i=e.sent,e.abrupt("return",o.a.call(this,{url:this.url+"/_layouts/15/versions.aspx?FileName="+encodeURIComponent(n+"/"+t.ID+"_.000")+"&list="+r._List.Name+"&ID="+t.ID+"&col=Number&order=d&op=Restore&ver="+t.VersionID,method:"POST",body:"__REQUESTDIGEST="+encodeURIComponent(i),headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(e){return!e.includes("Sorry, something went wrong")||Promise.reject("Something went wrong.")})));case 20:case"end":return e.stop()}}),e,this)})),(v=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){h(o,n,i,a,s,"next",e)}function s(e){h(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}function m(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}var g=r(5);function y(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function b(){var e;return e=regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,(t=t||{}).destination){e.next=4;break}throw"[SharepointPlus 'checkin'] the file destination path is required.";case 4:if(this.url&&!t.url&&(t.url=this.url),t.url){e.next=9;break}return e.next=8,g.a.call(this);case 8:t.url=e.sent;case 9:t.comments=(t.comments||"").replace(/&/g,"&amp;"),r=1,e.t0=t.type,e.next="MinorCheckIn"===e.t0?14:"OverwriteCheckIn"===e.t0?16:18;break;case 14:return r=0,e.abrupt("break",18);case 16:return r=2,e.abrupt("break",18);case 18:return e.next=20,o.a.call(this,{url:t.url+"/_vti_bin/Lists.asmx",body:Object(a.a)("CheckInFile","<pageUrl>"+t.destination+"</pageUrl><comment>"+t.comments+"</comment><CheckinType>"+r+"</CheckinType>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/CheckInFile"}});case 20:if(n=e.sent,!(i=(i=n.getElementsByTagName("CheckInFileResult")).length>0?i[0]:null)||"true"==i.firstChild.nodeValue){e.next=27;break}return e.abrupt("return",Promise.reject(i));case 27:return e.abrupt("return",Promise.resolve());case 28:e.next=33;break;case 30:return e.prev=30,e.t1=e.catch(0),e.abrupt("return",Promise.reject(e.t1));case 33:case"end":return e.stop()}}),e,this,[[0,30]])})),(b=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){y(o,n,i,a,s,"next",e)}function s(e){y(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}r(32),r(153),r(30);var w=r(81),S=r(82),x=r(26);function A(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function P(e){return I.apply(this,arguments)}function I(){var e;return e=regeneratorRuntime.mark((function e(t){var r,n,i,u,c,l,p,h,d,v,m,g,y,b,A,I,E;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=t||{},e.prev=1,void 0!==t.content){e.next=4;break}throw"[SharepointPlus 'createFile']: the file content is required.";case 4:if(void 0!==t.filename){e.next=6;break}throw"[SharepointPlus 'createFile']: the filename is required.";case 6:if(this.listID){e.next=8;break}throw"[SharepointPlus 'createFile']: the library name is required.";case 8:if(this.url){e.next=10;break}throw"[SharepointPlus 'createFile']: not able to find the URL!";case 10:return t.extendedFields=t.extendedFields||"",t.progress=t.progress||function(){},t.getXHR=t.getXHR||function(){},t.overwrite="boolean"!=typeof t.overwrite||t.overwrite,r={},e.next=17,f.a.call(this);case 17:return n=e.sent,i=n._List.RootFolder,u=t.filename.split("/"),c=t.filename,u.length>1?(c=u.slice(-1)[0],u="/"+u.slice(0,-1).join("/")):u="",u=i+u,(l=c.replace(/[\*\?\|:"'<>#{}%~&]/g,"").replace(/^[\. ]+|[\. ]+$/g,"").replace(/ {2,}/g," ").replace(/\.{2,}/g,".")).length>=128&&(l=l.slice(0,115)+"__"+l.slice(-8)),e.next=27,w.a.call(this);case 27:if(e.sent){e.next=54;break}if(!t.fields||t.extendedFields){e.next=36;break}return e.next=32,f.a.call(this);case 32:for(p=e.sent,h=p.length;h--;)t.fields[p[h].StaticName]&&(t.extendedFields+='<FieldInformation Type="'+p[h].Type+'" Value="'+t.fields[p[h].StaticName]+'" DisplayName="'+p[h].StaticName+'" InternalName="'+p[h].StaticName+'" />');return t.extendedFields||delete t.fields,e.abrupt("return",P.call(this,t));case 36:return d="/"+u+"/"+l,"http"!==(d=(this.url+d).replace(/([^:]\/)\//g,"$1")).slice(0,4)&&(d=window.location.protocol+"//"+window.location.host+d),t.content=s(t.content),v="<SourceUrl>http://null</SourceUrl><DestinationUrls><string>"+d+'</string></DestinationUrls><Fields><FieldInformation Type="File" />'+t.extendedFields+"</Fields><Stream>"+t.content+"</Stream>",v=Object(a.a)("CopyIntoItems",v),e.next=44,o.a.call(this,{url:this.url+"/_vti_bin/copy.asmx",body:v,onprogress:function(e){e.lengthComputable&&t.progress(parseInt(e.loaded/e.total*100))},getXHR:t.getXHR,headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/CopyIntoItems"}});case 44:if(m=e.sent,!(g=(g=m.getElementsByTagName("CopyResult")).length>0?g[0]:null)||"Success"===g.getAttribute("ErrorCode")){e.next=51;break}return e.abrupt("return",Promise.reject("[SharepointPlus 'createFile'] Error creating ("+d+"): "+g.getAttribute("ErrorCode")+" - "+g.getAttribute("ErrorMessage")));case 51:return e.abrupt("return",Promise.resolve({Url:d,Name:t.filename}));case 52:e.next=82;break;case 54:return y=this.url+"/_api/web/GetFolderByServerRelativeUrl('"+encodeURIComponent(u)+"')/files/add(url='"+encodeURIComponent(l)+"',overwrite="+(t.overwrite?"true":"false")+")","undefined"!=typeof Blob&&(t.content=new Blob([t.content])),e.next=58,o.a.call(this,{url:y,body:t.content,onprogress:function(e){e.lengthComputable&&t.progress(parseInt(e.loaded/e.total*100))},getXHR:t.getXHR});case 58:if(b=e.sent,Object(x.a)(!0,r,b.d),r.Url=r.__metadata.uri.split("/").slice(0,3).join("/")+b.d.ServerRelativeUrl,r.AllFieldsUrl=b.d.ListItemAllFields.__deferred.uri,!t.fields){e.next=81;break}return e.next=65,o.a.call(this,{url:r.AllFieldsUrl});case 65:return b=e.sent,Object(x.a)(!0,r,b.d),A={ID:r.ID},Object(x.a)(A,t.fields),e.next=71,S.a.call(this,A);case 71:if(!((I=e.sent).failed.length>0)){e.next=76;break}return e.abrupt("return",Promise.reject("File '"+r.Url+"' added, but fields not updated: "+I.failed[0].errorMessage));case 76:for(E in I=I.passed[0])r[E]=I[E];return e.abrupt("return",Promise.resolve(r));case 79:e.next=82;break;case 81:return e.abrupt("return",Promise.resolve(r));case 82:e.next=87;break;case 84:return e.prev=84,e.t0=e.catch(1),e.abrupt("return",Promise.reject(e.t0));case 87:case"end":return e.stop()}}),e,this,[[1,84]])})),(I=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){A(o,n,i,a,s,"next",e)}function s(e){A(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}r(39);function E(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function k(){var e;return e=regeneratorRuntime.mark((function e(t){var r,n,o,a,s,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,void 0!==t){e.next=3;break}throw"[SharepointPlus 'createFolder']: the folder path is required.";case 3:for(r=t.replace(/[\*\?\|:"'<>#{}%~&]/g,"").replace(/^[\. ]+|[\. ]+$/g,"").replace(/ {2,}/g," ").replace(/\.{2,}/g,"."),n=[],o="","/"===r.charAt(0)&&(r=r.slice(1)),"/"===r.slice(-1)&&(r=r.slice(0,-1)),r=r.split("/"),a=0;a<r.length;a++)o+=(a>0?"/":"")+r[a],n.push({FSObjType:1,BaseName:o});return e.next=10,i.a.call(this,n);case 10:s=e.sent,"/"===t.charAt(0)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),u=s.passed.length;case 14:if(!u--){e.next=19;break}if(s.passed[u].BaseName!==t){e.next=17;break}return e.abrupt("return",Promise.resolve(s.passed[u]));case 17:e.next=14;break;case 19:a=s.failed.length;case 20:if(!a--){e.next=30;break}if(s.failed[a].BaseName!==t){e.next=28;break}if(!(s.failed[a].errorMessage.indexOf("0x8107090d")>-1)){e.next=27;break}return s.failed[a].errorMessage="Folder '"+s.failed[a].BaseName+"' already exists.",e.abrupt("return",Promise.reject(s.failed[a]));case 27:return e.abrupt("return",Promise.resolve(s.failed[a].errorMessage));case 28:e.next=20;break;case 30:return e.abrupt("return",Promise.reject("Unknown error"));case 33:return e.prev=33,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 36:case"end":return e.stop()}}),e,this,[[0,33]])})),(k=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){E(o,n,i,a,s,"next",e)}function s(e){E(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}var _=r(40);var T=r(88),D=r(89);r(117),r(115);function O(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function R(e){return N.apply(this,arguments)}function N(){var e;return e=regeneratorRuntime.mark((function e(t){var r,n,i,s,u,c,l,f,p,h,d,v,m,g,y,b;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.listID){e.next=3;break}throw"[SharepointPlus 'getWorkflowID'] the list ID/Name is required.";case 3:if(this.url){e.next=5;break}throw"[SharepointPlus 'getWorkflowID'] not able to find the URL!";case 5:if((t=t||{}).ID&&t.workflowName){e.next=8;break}throw"[SharepointPlus 'getWorkflowID'] all parameters are mandatory";case 8:return e.next=10,_.a.call(this,{fields:"FieldRef",where:"ID = "+t.ID});case 10:if(0!==(r=e.sent).length){e.next=13;break}throw"[SharepointPlus 'getWorkflowID'] I'm not able to find the item ID "+t.ID;case 13:return n=this.cleanResult(r[0].getAttribute("FileRef")),this.url.startsWith("http")||(n=window.location.href.split("/").slice(0,3).join("/")+"/"+n),n.startsWith("http")||(n=this.url.split("/").slice(0,3).join("/")+"/"+n),e.next=18,o.a.call(this,{url:this.url+"/_vti_bin/Workflow.asmx",body:Object(a.a)("GetWorkflowDataForItem","<item>"+n+"</item>","http://schemas.microsoft.com/sharepoint/soap/workflow/"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/workflow/GetWorkflowDataForItem"}});case 18:if(i=e.sent,s={},0!==(c=i.getElementsByTagName("WorkflowTemplate")).length){e.next=37;break}if("undefined"!=typeof SP){e.next=23;break}throw"[SharepointPlus 'getWorkflowID'] This function must be executed from a Sharepoint page (JSOM support is required).";case 23:return l=SP.ClientContext.get_current(),f=l.get_web().get_lists(),p=f.getByTitle(this.listID),h=p.getItemById(t.ID),l.load(p),l.load(h),d=p.get_workflowAssociations(),l.load(d),e.next=33,new Promise((function(e,r){l.executeQueryAsync((function(){for(var r=d.getEnumerator();r.moveNext();){var i=r.get_current();if(i.get_name()===t.workflowName){v={fileRef:n,description:i.get_description(),workflowID:"{"+i.get_id().toString()+"}",instances:[]};break}}e(v)}),(function(){r("[SharepointPlus 'getWorkflowID'] Problem while dealing with SP.ClientContext.get_current()")}))}));case 33:return v=e.sent,e.abrupt("return",Promise.resolve(v));case 37:u=c.length;case 38:if(!u--){e.next=55;break}if(c[u].getAttribute("Name")!=t.workflowName){e.next=53;break}m=c[u].getElementsByTagName("WorkflowTemplateIdSet")[0].getAttribute("TemplateId"),s={fileRef:n,description:c[u].getAttribute("Description"),workflowID:"{"+m+"}",instances:[]},g=i.getElementsByTagName("Workflow"),y=0;case 44:if(!(y<g.length)){e.next=52;break}if((b=g[y]).getAttribute("TemplateId")!==m){e.next=49;break}return s.instances.push({StatusPageUrl:b.getAttribute("StatusPageUrl"),Id:b.getAttribute("Id"),TemplateId:b.getAttribute("TemplateId"),ListId:b.getAttribute("ListId"),SiteId:b.getAttribute("SiteId"),WebId:b.getAttribute("WebId"),ItemId:b.getAttribute("ItemId"),ItemGUID:b.getAttribute("ItemGUID"),TaskListId:b.getAttribute("TaskListId"),AdminTaskListId:b.getAttribute("AdminTaskListId"),Author:b.getAttribute("Author"),Modified:b.getAttribute("Modified"),Created:b.getAttribute("Created"),StatusVersion:b.getAttribute("StatusVersion"),Status1:{code:b.getAttribute("Status1"),text:this.workflowStatusToText(b.getAttribute("Status1"))},Status2:{code:b.getAttribute("Status2"),text:this.workflowStatusToText(b.getAttribute("Status2"))},Status3:{code:b.getAttribute("Status3"),text:this.workflowStatusToText(b.getAttribute("Status3"))},Status4:{code:b.getAttribute("Status4"),text:this.workflowStatusToText(b.getAttribute("Status4"))},Status5:{code:b.getAttribute("Status5"),text:this.workflowStatusToText(b.getAttribute("Status5"))},Status6:{code:b.getAttribute("Status6"),text:this.workflowStatusToText(b.getAttribute("Status6"))},Status7:{code:b.getAttribute("Status7"),text:this.workflowStatusToText(b.getAttribute("Status7"))},Status8:{code:b.getAttribute("Status8"),text:this.workflowStatusToText(b.getAttribute("Status8"))},Status9:{code:b.getAttribute("Status9"),text:this.workflowStatusToText(b.getAttribute("Status9"))},Status10:{code:b.getAttribute("Status10"),text:this.workflowStatusToText(b.getAttribute("Status10"))},TextStatus1:b.getAttribute("TextStatus1"),TextStatus2:b.getAttribute("TextStatus2"),TextStatus3:b.getAttribute("TextStatus3"),TextStatus4:b.getAttribute("TextStatus4"),TextStatus5:b.getAttribute("TextStatus5"),Modifications:b.getAttribute("Modifications"),InternalState:b.getAttribute("InternalState"),ProcessingId:b.getAttribute("ProcessingId")}),e.abrupt("break",52);case 49:y++,e.next=44;break;case 52:return e.abrupt("break",55);case 53:e.next=38;break;case 55:if(s.fileRef){e.next=57;break}throw"[SharepointPlus 'getWorkflowID'] it seems the requested workflow ('"+t.workflowName+"') doesn't exist!";case 57:return e.abrupt("return",Promise.resolve(s));case 58:e.next=63;break;case 60:return e.prev=60,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 63:case"end":return e.stop()}}),e,this,[[0,60]])})),(N=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){O(o,n,i,a,s,"next",e)}function s(e){O(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}function C(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function L(){var e;return e=regeneratorRuntime.mark((function e(t){var r,n,i,a,s,u,c,l,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.listID){e.next=3;break}throw"[SharepointPlus 'hasPermission'] the list ID/Name is required.";case 3:if(this.url){e.next=5;break}throw"[SharepointPlus 'hasPermission'] not able to find the URL!";case 5:r={emptyMask:0,viewListItems:1,addListItems:2,editListItems:3,deleteListItems:4,approveItems:5,openItems:6,viewVersions:7,deleteVersions:8,cancelCheckout:9,managePersonalViews:10,manageLists:12,viewFormPages:13,anonymousSearchAccessList:14,open:17,viewPages:18,addAndCustomizePages:19,applyThemeAndBorder:20,applyStyleSheets:21,viewUsageData:22,createSSCSite:23,manageSubwebs:24,createGroups:25,managePermissions:26,browseDirectories:27,browseUserInfo:28,addDelPrivateWebParts:29,updatePersonalWebParts:30,manageWeb:31,anonymousSearchAccessWebLists:32,useClientIntegration:37,useRemoteAPIs:38,manageAlerts:39,createAlerts:40,editMyUserInfo:41,enumeratePermissions:63,fullMask:65},Array.isArray(t)||(t=[t]),n=t.length,i=0;case 9:if(!(i<n)){e.next=15;break}if(void 0!==r[t[i]]){e.next=12;break}throw"[SharepointPlus 'hasPermission'] the permission '"+t+"' is not valid. Please, check the documentation.";case 12:i++,e.next=9;break;case 15:return e.next=17,o.a.call(this,{url:this.url+"/_api/web/lists/getbytitle('"+this.listID+"')/EffectiveBasePermissions"});case 17:for(a=e.sent,s=a.d.EffectiveBasePermissions,u={},c=0;c<n;c++)65===r[t[c]]&&(u[t[c]]=32767==(32767&s.High)&&65535===s.Low),l=r[t[c]]-1,f=1,l>=0&&l<32?(f<<=l,u[t[c]]=0!=(s.Low&f)):l>=32&&l<64?(f<<=l-32,u[t[c]]=0!=(s.High&f)):u[t[c]]=!1;return e.abrupt("return",1===n?u[t[0]]:u);case 24:return e.prev=24,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 27:case"end":return e.stop()}}),e,this,[[0,24]])})),(L=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){C(o,n,i,a,s,"next",e)}function s(e){C(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}function j(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function V(){var e;return e=regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.listID=t.replace(/&/g,"&amp;"),!r){e.next=5;break}this.url="/"===r.slice(-1)?r.slice(0,-1):r,e.next=8;break;case 5:return e.next=7,g.a.call(this);case 7:this.url=e.sent;case 8:return e.abrupt("return",Promise.resolve());case 9:case"end":return e.stop()}}),e,this)})),(V=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){j(o,n,i,a,s,"next",e)}function s(e){j(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}var M=r(158),F=r(159),U=r(65),W=r(53),B=r(160);function G(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function q(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){G(o,n,i,a,s,"next",e)}function s(e){G(o,n,i,a,s,"throw",e)}a(void 0)}))}}function H(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function Y(e){return $.apply(this,arguments)}function $(){var e;return e=regeneratorRuntime.mark((function e(t){var r,n,i,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r="",t.service){e.next=4;break}throw"Error 'webService': the option 'service' is required";case 4:if(t.operation){e.next=6;break}throw"Error 'webService': the option 'operation' is required";case 6:if(t.webURL=t.webURL||this.url,t.webURL){e.next=13;break}return e.next=10,g.a.call(this);case 10:return s=e.sent,t.webURL=s,e.abrupt("return",Y.call(this,t));case 13:for(n in t.properties=t.properties||{},t.properties)Object.prototype.hasOwnProperty.call(t.properties,n)&&(r+="<"+n+">"+t.properties[n]+"</"+n+">");return t.soapAction=!1!==t.soapAction,t.soapURL=t.soapURL||"http://schemas.microsoft.com/sharepoint/soap/",t.soapAction||(t.soapURL=t.soapURL.replace(/\/$/,"")),r=Object(a.a)(t.operation,r,t.soapURL),i={url:t.webURL+"/_vti_bin/"+t.service+".asmx",body:r},t.soapAction&&(i.headers={SOAPAction:t.soapURL+t.operation}),e.abrupt("return",o.a.call(this,i));case 24:return e.prev=24,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 27:case"end":return e.stop()}}),e,this,[[0,24]])})),($=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){H(o,n,i,a,s,"next",e)}function s(e){H(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}r(64);function z(e){var t=this;return new Promise((function(r,n){if(!t.url)throw"[SharepointPlus 'startWorkflow2013'] not able to find the URL!";if((e=e||{}).platformType=e.platformType||2013,!e.workflowName)throw"[SharepointPlus 'startWorkflow2013'] Please provide the workflow name.";if(t.listID&&!e.ID)throw"Error 'startWorkflow2013': Please provide the item ID.";if("undefined"==typeof SP||void 0===SP.SOD)throw"[SharepointPlus 'startWorkflow2013']: SP.SOD.executeFunc is required (from the Microsoft file called init.js)";SP.SOD.executeFunc("sp.js","SP.ClientContext",(function(){SP.SOD.registerSod("sp.workflowservices.js",SP.Utilities.Utility.getLayoutsPageUrl("sp.workflowservices.js")),SP.SOD.executeFunc("sp.workflowservices.js","SP.WorkflowServices.WorkflowServicesManager",(function(){var t=new SP.ClientContext(this.url),i=t.get_web(),o=SP.WorkflowServices.WorkflowServicesManager.newObject(t,i);t.load(o);var a=o.getWorkflowSubscriptionService().enumerateSubscriptions();t.load(a),t.executeQueryAsync((function(){var i,s,u=a.getEnumerator(),c={},l=!1,f=e.workflowName.toLowerCase();if(e.parameters)for(void 0===e.parameters.length&&(e.parameters=[e.parameters]),s=0;s<e.parameters.length;s++)c[e.parameters[s].name]=e.parameters[s].value;if(2010==e.platformType){o.getWorkflowInteropService().startWorkflow(f,null,null,null,c),t.executeQueryAsync((function(){r()}),(function(t,r){var i=r.get_message();"associationName"===i&&(i="No workflow found with the name '"+e.workflowName+"'"),n(i)}))}else{for(;u.moveNext();)if((i=u.get_current()).get_name().toLowerCase()===f){e.ID?o.getWorkflowInstanceService().startWorkflowOnListItem(i,e.ID,c):o.getWorkflowInstanceService().startWorkflow(i,c),t.executeQueryAsync((function(){r()}),(function(e,t){n(t.get_message())})),l=!0;break}l||n("No workflow found with the name '"+e.workflowName+"'")}}),(function(e,t){n(t.get_message())}))}))}))}))}function X(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function Q(){var e;return e=regeneratorRuntime.mark((function e(t){var r,n,i,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.url){e.next=3;break}throw"[SharepointPlus 'startWorkflow'] not able to find the URL!";case 3:if(this.listID){e.next=6;break}return t.platformType=2010,e.abrupt("return",z.call(this,t));case 6:if((t=t||{}).workflowName||t.workflowID){e.next=9;break}throw"[SharepointPlus 'startWorkflow'] Please provide the workflow name";case 9:if(t.ID){e.next=11;break}throw"[SharepointPlus 'startWorkflow'] Please provide the item ID";case 11:if(t.fileRef||t.workflowID){e.next=17;break}return e.next=14,R.call(this,{ID:t.ID,workflowName:t.workflowName});case 14:r=e.sent,t.fileRef=r.fileRef,t.workflowID=r.workflowID;case 17:if(n="<root />",t.parameters){for(Array.isArray(t.parameters)||(t.parameters=[t.parameters]),i=t.parameters.slice(0),n="<Data>",s=0;s<i.length;s++)n+="<"+i[s].name+">"+i[s].value+"</"+i[s].name+">";n+="</Data>"}return e.next=21,o.a.call(this,{url:this.url+"/_vti_bin/Workflow.asmx",body:Object(a.a)("StartWorkflow","<item>"+t.fileRef+"</item><templateId>"+t.workflowID+"</templateId><workflowParameters>"+n+"</workflowParameters>","http://schemas.microsoft.com/sharepoint/soap/workflow/"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/workflow/StartWorkflow"}});case 21:return e.abrupt("return",Promise.resolve());case 24:return e.prev=24,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 27:case"end":return e.stop()}}),e,this,[[0,24]])})),(Q=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){X(o,n,i,a,s,"next",e)}function s(e){X(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}r(116),r(79),r(219),r(119);function Z(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}var K=r(83),J=r(84),ee=r(90);var te=r(161),re=r(55);var ne=r(91);function ie(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function oe(){var e;return e=regeneratorRuntime.mark((function e(t,r){var n,i,s,u,c,l,f,p,h,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,e.t0=d.length,e.next=0===e.t0?4:1===e.t0?7:9;break;case 4:return t="",r={},e.abrupt("break",9);case 7:return"string"==typeof t?r={}:(r=t,t=""),e.abrupt("break",9);case 9:if(r.url){e.next=13;break}return e.next=12,g.a.call(this);case 12:r.url=e.sent;case 13:return r.limit=r.limit||10,r.type=r.type||"User",e.next=17,o.a.call(this,{url:r.url+"/_vti_bin/People.asmx",body:Object(a.a)("SearchPrincipals","<searchText>"+t+"</searchText><maxResults>"+r.limit+"</maxResults><principalType>"+r.type+"</principalType>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/SearchPrincipals"}});case 17:for(n=e.sent,i=[],n=n.getElementsByTagName("PrincipalInfo"),l=0,f=n.length;l<f;l++)for(s=n[l].childNodes,i[l]=[],p=0,h=s.length;p<h;p++)u=s[p].nodeName,(c=s[p].firstChild)&&(c=c.nodeValue),i[l].push(u),i[l][u]=c;return e.abrupt("return",Promise.resolve(i));case 24:return e.prev=24,e.t1=e.catch(0),e.abrupt("return",Promise.reject(e.t1));case 27:case"end":return e.stop()}}),e,this,[[0,24]])})),(oe=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ie(o,n,i,a,s,"next",e)}function s(e){ie(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}var ae=r(92);r(17),r(18),r(19),r(20),r(16);function se(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function ue(e,t){return ce.apply(this,arguments)}function ce(){var e;return e=regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"string"==typeof t){e.next=3;break}throw"[SharepointPlus 'getUserInfo'] the username is required.";case 3:if((r=r||{}).url){e.next=8;break}return e.next=7,g.a.call(this);case 7:r.url=e.sent;case 8:return e.next=10,o.a.call(this,{url:r.url+"/_vti_bin/usergroup.asmx",body:Object(a.a)("GetUserInfo","<userLoginName>"+t+"</userLoginName>","http://schemas.microsoft.com/sharepoint/soap/directory/")});case 10:if(0!==(n=(n=e.sent).getElementsByTagName("User")).length){e.next=16;break}return e.abrupt("return",Promise.reject("[SharepointPlus 'getUserInfo'] nothing returned?!"));case 16:return e.abrupt("return",Promise.resolve({ID:n[0].getAttribute("ID"),Sid:n[0].getAttribute("Sid"),Name:n[0].getAttribute("Name"),LoginName:n[0].getAttribute("LoginName"),Email:n[0].getAttribute("Email"),Notes:n[0].getAttribute("Notes"),IsSiteAdmin:n[0].getAttribute("IsSiteAdmin"),IsDomainGroup:n[0].getAttribute("IsDomainGroup"),Flags:n[0].getAttribute("Flags")}));case 17:e.next=22;break;case 19:return e.prev=19,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 22:case"end":return e.stop()}}),e,this,[[0,19]])})),(ce=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){se(o,n,i,a,s,"next",e)}function s(e){se(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function pe(e,t){return he.apply(this,arguments)}function he(){var e;return e=regeneratorRuntime.mark((function e(t,r){var n,i,s,u,c,l,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,1===f.length&&"object"===le(t)&&(r=t,t=""),t=t||"",(r=r||{}).url){e.next=8;break}return e.next=7,g.a.call(this);case 7:r.url=e.sent;case 8:return e.next=10,o.a.call(this,{url:r.url+"/_vti_bin/UserProfileService.asmx",body:Object(a.a)("GetUserProfileByName","<AccountName>"+t+"</AccountName>","http://microsoft.com/webservices/SharePointPortalServer/UserProfileService"),headers:{SOAPAction:"http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserProfileByName"}});case 10:for(n=e.sent,i=[],n=n.getElementsByTagName("PropertyData"),c=0,l=n.length;c<l;c++)s=n[c].getElementsByTagName("Name")[0].firstChild.nodeValue,u=(u=(u=n[c].getElementsByTagName("Value")).length>0?u[0]:null)&&u.firstChild?u.firstChild.nodeValue:"No Value",i.push(s),i[s]=u;return e.abrupt("return",Promise.resolve(i));case 17:return e.prev=17,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 20:case"end":return e.stop()}}),e,this,[[0,17]])})),(he=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){fe(o,n,i,a,s,"next",e)}function s(e){fe(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ve(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function me(){var e;return e=regeneratorRuntime.mark((function e(t,r){var n,i,o,a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,1===s.length&&"object"===de(t)&&(r=t,t=""),t=t||"",(r=r||{}).url){e.next=8;break}return e.next=7,g.a.call(this);case 7:r.url=e.sent;case 8:return r.modify=r.modify||function(e){return e},e.next=11,pe.call(this,t,r);case 11:return n=e.sent,i=r.modify(n.Manager),e.next=15,ue.call(this,i,r);case 15:return o=e.sent,a=o.Name.replace(/,/,",,"),e.abrupt("return",Promise.resolve(o.ID+";#"+a+",#"+i+",#"+o.Email+",#"+o.Email+",#"+a));case 20:return e.prev=20,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 23:case"end":return e.stop()}}),e,this,[[0,20]])})),(me=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ve(o,n,i,a,s,"next",e)}function s(e){ve(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}var ge=r(93),ye=r(94);function be(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function we(){var e;return e=regeneratorRuntime.mark((function e(t){var r,n,i,o,a,s,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,(t=t||{}).user){e.next=4;break}throw"[SharepointPlus 'isMember'] the user is required.";case 4:if(t.group){e.next=6;break}throw"[SharepointPlus 'isMember'] the group is required.";case 6:if(t.cache=!1!==t.cache,t.url){e.next=11;break}return e.next=10,g.a.call(this);case 10:t.url=e.sent;case 11:return t.group=t.group.toLowerCase(),r=[],e.next=15,ye.a.call(this,t.user,{cache:t.cache,url:t.url});case 15:n=e.sent,i=n.length;case 17:if(!i--){e.next=22;break}if(n[i].toLowerCase()!==t.group){e.next=20;break}return e.abrupt("return",Promise.resolve(!0));case 20:e.next=17;break;case 22:return e.next=24,ge.a.call(this,t.group,{cache:t.cache,url:t.url});case 24:for(o=e.sent,a=o.length;a--;)r.push(o[a].Name.toLowerCase());return e.next=28,ae.a.call(this,t.user,{cache:t.cache,url:t.url});case 28:s=e.sent,u=s.length;case 30:if(!u--){e.next=35;break}if(!(r.indexOf(s[u].DisplayName.toLowerCase())>-1)){e.next=33;break}return e.abrupt("return",Promise.resolve(!0));case 33:e.next=30;break;case 35:return e.abrupt("return",Promise.resolve(!1));case 38:return e.prev=38,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 41:case"end":return e.stop()}}),e,this,[[0,38]])})),(we=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){be(o,n,i,a,s,"next",e)}function s(e){be(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}var Se=r(87),xe=r(66),Ae=r(67);r(42);function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function Ee(){var e;return e=regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=t||new Date,r){e.next=6;break}return e.next=5,g.a.call(this);case 5:r=e.sent;case 6:return e.next=8,o.a.call(this,{url:r+"/_api/web/RegionalSettings/TimeZone/utcToLocalTime(@date)?@date='"+t.toUTCString()+"'"});case 8:if("object"!==Pe(n=e.sent)||!n.d||!n.d.UTCToLocalTime){e.next=11;break}return e.abrupt("return",Promise.resolve(n.d.UTCToLocalTime+"Z"));case 11:return e.abrupt("return",Promise.reject("[getServerTime] The server didn't return the expected response."));case 14:return e.prev=14,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 17:case"end":return e.stop()}}),e,this,[[0,14]])})),(Ee=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ie(o,n,i,a,s,"next",e)}function s(e){Ie(o,n,i,a,s,"throw",e)}a(void 0)}))}).apply(this,arguments)}var ke=r(80),_e=r(162),Te=r(54),De=r(163),Oe=r(95);var Re=r(85);t.default=function(e){return function(){var t=new n.a;return t.init(e),t}}({add:i.a,addAttachment:function(e){var t=this;if(0===arguments.length)throw"[SharepointPlus 'addAttachment'] the arguments are mandatory.";if(!this.listID)throw"[SharepointPlus 'addAttachment'] the list ID/Name is required.";if(!this.url)throw"[SharepointPlus 'addAttachment'] not able to find the URL!";if(!e.ID)throw"[SharepointPlus 'addAttachment'] the item ID is required.";if(!e.filename)throw"[SharepointPlus 'addAttachment'] the filename is required.";if(!e.attachment)throw"[SharepointPlus 'addAttachment'] the ArrayBuffer of the attachment's content is required.";var r=e.filename.replace(/[\*\?\|\\/:"'<>#{}%~&]/g,"").replace(/^[\. ]+|[\. ]+$/g,"").replace(/ {2,}/g," ").replace(/\.{2,}/g,".");return r.length>=128&&(r=r.slice(0,115)+"__"+r.slice(-8)),o.a.call(this,{url:this.url+"/_vti_bin/Lists.asmx",body:Object(a.a)("AddAttachment","<listName>"+this.listID+"</listName><listItemID>"+e.ID+"</listItemID><fileName>"+r+"</fileName><attachment>"+s(e.attachment)+"</attachment>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/AddAttachment"}}).then(function(){var r,n=(r=regeneratorRuntime.mark((function r(n){var i,o,a,s;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=(i=n.getElementsByTagName("AddAttachmentResult")).length>0?i[0]:null,o="",i&&(o=t.url+"/"+i.firstChild.nodeValue),o){r.next=6;break}return r.abrupt("return",Promise.reject(i));case 6:return r.prev=6,r.next=9,c.call(t,e.ID);case 9:if(!((a=r.sent).length>0)){r.next=14;break}return s=a[a.length-1].VersionID,r.next=14,d.call(t,{ID:e.ID,VersionID:s});case 14:return r.abrupt("return",o);case 17:return r.prev=17,r.t0=r.catch(6),r.abrupt("return",o);case 20:case"end":return r.stop()}}),r,null,[[6,17]])})),function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){m(o,n,i,a,s,"next",e)}function s(e){m(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}())},checkin:function(e){return b.apply(this,arguments)},cleanResult:function(e,t){return null==e?"":(t=t||";","string"==typeof e?e.replace(/^(string;|float;|datetime;)#?/,"").replace(/^(\d{4}-\d{2}-\d{2}) 00:00:00$/,"$1").replace(/;#-?[0-9]+;#/g,t).replace(/^-?[0-9]+;#/,"").replace(/^;#|;#$/g,"").replace(/;#/g,t):e)},createFile:P,createFolder:function(e){return k.apply(this,arguments)},get:_.a,getAttachment:function(e){if(!this.listID)throw"[SharepointPlus 'getAttachment']: the list ID/Name is required";if(!this.url)throw"[SharepointPlus 'getAttachment']: not able to find the URL!";return o.a.call(this,{url:this.url+"/_vti_bin/lists.asmx",body:Object(a.a)("GetAttachmentCollection","<listName>"+this.listID+"</listName><listItemID>"+e+"</listItemID>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/GetAttachmentCollection"}}).then((function(e){for(var t=[],r=0,n=e.getElementsByTagName("Attachment");r<n.length;r++)t.push(n[r].firstChild.nodeValue);return t}))},getContentTypeInfo:T.a,getContentTypes:D.a,getVersions:c,getWorkflowID:R,hasPermission:function(e){return L.apply(this,arguments)},history:function(e){if(!this.listID)throw"[SharepointPlus 'history'] the list ID/Name is required.";if(!(e=e||{}).ID||!e.Name)throw"[SharepointPlus 'history'] you must provide the item ID and field Name.";return o.a.call(this,{url:this.url+"/_vti_bin/lists.asmx",body:Object(a.a)("GetVersionCollection","<strlistID>"+this.listID+"</strlistID><strlistItemID>"+e.ID+"</strlistItemID><strFieldName>"+e.Name+"</strFieldName>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/GetVersionCollection"}}).then((function(e){return e.getElementsByTagName("Version")}))},info:f.a,list:function(e,t){return V.apply(this,arguments)},lists:M.a,moderate:F.a,parse:U.a,parseRecurrence:W.a,remove:B.a,removeAttachment:function(e){var t=this;if(0===arguments.length)throw"[SharepointPlus 'removeAttachment'] the arguments are mandatory.";if(!this.listID)throw"[SharepointPlus 'removeAttachment'] the list ID/Name is required.";if(!this.url)throw"[SharepointPlus 'removeAttachment'] not able to find the URL!";if(!e.ID)throw"[SharepointPlus 'removeAttachment'] the item ID is required.";if(!e.fileURL)throw"[SharepointPlus 'removeAttachment'] the fileURL is required.";return o.a.call(this,{url:this.url+"/_vti_bin/Lists.asmx",body:Object(a.a)("DeleteAttachment","<listName>"+this.listID+"</listName><listItemID>"+e.ID+"</listItemID><url>"+e.fileURL+"</url>"),headers:{SOAPAction:"http://schemas.microsoft.com/sharepoint/soap/DeleteAttachment"}}).then(q(regeneratorRuntime.mark((function r(){var n,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,c.call(t,e.ID);case 3:if(!((n=r.sent).length>0)){r.next=8;break}return i=n[n.length-1].VersionID,r.next=8,d.call(t,{ID:e.ID,VersionID:i});case 8:return r.abrupt("return",!0);case 11:return r.prev=11,r.t0=r.catch(0),r.abrupt("return",!0);case 14:case"end":return r.stop()}}),r,null,[[0,11]])}))))},restoreVersion:d,setReadOnly:function(e,t){var r=this;if(!this.listID)throw"[SharepointPlus 'setReadOnly']: the list ID/Name is required";if(!this.url)throw"[SharepointPlus 'setReadOnly']: not able to find the URL!";var n="<Fields><Method ID='1'>";return"<"===e.charAt(0)&&(n+=e),f.a.call(this).then((function(i){var o=["ID","Name","SourceID","StaticName","ColName","RowOrdinal","Type","DisplayName"];n+="<Field";for(var a=function(r){if(i[r].Name===e){switch(e){case"Created":case"Modified":o.push("StorageTZ");break;case"Author":case"Editor":o.push("List")}return o.forEach((function(e){i[r][e]&&(n+=" "+e+'="'+i[r][e]+'"')})),n+=' ReadOnly="'+(t?"TRUE":"FALSE")+'" />',"break"}},s=i.length;s--;){if("break"===a(s))break}return n+="</Method></Fields>",Y.call(r,{webURL:r.url,service:"Lists",operation:"UpdateList",properties:{listName:r.listID,listProperties:"",updateFields:n,newFields:"",deleteFields:"",listVersion:""}})})).then((function(e){if("0x00000000"!==e.getElementsByTagName("ErrorCode")[0].firstChild.nodeValue){var t=e.getElementsByTagName("ErrorText");return Promise.reject(t.length>0?t[0].firstChild.nodeValue:"Unknown Error")}}))},startWorkflow:function(e){return Q.apply(this,arguments)},startWorkflow2013:z,stopWorkflow:function(e){var t=this;if(!this.url)throw"[SharepointPlus 'stopWorkflow'] not able to find the URL!";if(!(e=e||{}).workflowName&&!e.workflowID)throw"[SharepointPlus 'stopWorkflow'] Please provide the workflow name";if(!e.ID)throw"[SharepointPlus 'stopWorkflow'] Please provide the item ID";return R.call(this,{ID:e.ID,workflowName:e.workflowName}).then(function(){var e,r=(e=regeneratorRuntime.mark((function e(r){var n,i,a,s,u,c,l,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==(n=r.instances.length)){e.next=3;break}return e.abrupt("return",Promise.reject("[SharepointPlus 'stopWorkflow'] No instances found for this workflow"));case 3:return i=r.instances[n-1],e.next=6,o.a.call(t,{url:i.StatusPageUrl});case 6:if(a=e.sent,s=a.match(/<input type="hidden" name="__REQUESTDIGEST" id="__REQUESTDIGEST" value=".*" \/>/g)){e.next=10;break}throw"[SharepointPlus 'stopWorkflow'] Unable to find the __REQUESTDIGEST from the Workflow Status page";case 10:if(s=s[0].match(/<input type="hidden" name="__REQUESTDIGEST" id="__REQUESTDIGEST" value="(.*)" \/>/)[1],u=a.match(/<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value=".*" \/>/g)){e.next=14;break}throw"[SharepointPlus 'stopWorkflow'] Unable to find the __VIEWSTATE from the Workflow Status page";case 14:if(u=u[0].match(/<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="(.*)" \/>/)[1],c=a.match(/<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value=".*" \/>/g)){e.next=18;break}throw"[SharepointPlus 'stopWorkflow'] Unable to find the __VIEWSTATEGENERATOR from the Workflow Status page";case 18:if(c=c[0].match(/<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="(.*)" \/>/)[1],l=a.match(/<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value=".*" \/>/g)){e.next=22;break}throw"[SharepointPlus 'stopWorkflow'] Unable to find the __EVENTVALIDATION from the Workflow Status page";case 22:return l=l[0].match(/<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="(.*)" \/>/)[1],(f={}).MSOWebPartPage_PostbackSource="",f.MSOTlPn_SelectedWpId="",f.MSOTlPn_View=0,f.MSOTlPn_ShowSettings="False",f.MSOGallery_SelectedLibrary="",f.MSOGallery_FilterString="",f.MSOTlPn_Button="none",f.__EVENTTARGET="ctl00$PlaceHolderMain$HtmlAnchorEnd",f.__EVENTARGUMENT="",f.MSOSPWebPartManager_DisplayModeName="Browse",f.MSOSPWebPartManager_ExitingDesignMode="false",f.MSOWebPartPage_Shared="",f.MSOLayout_LayoutChanges="",f.MSOLayout_InDesignMode="",f.MSOSPWebPartManager_OldDisplayModeName="Browse",f.MSOSPWebPartManager_StartWebPartEditingName="false",f.MSOSPWebPartManager_EndWebPartEditing="false",f._maintainWorkspaceScrollPosition=0,f.__REQUESTDIGEST=s,f.__VIEWSTATE=u,f.__VIEWSTATEGENERATOR=c,f.__SCROLLPOSITIONX=0,f.__SCROLLPOSITIONY=0,f.__EVENTVALIDATION=l,f.ctl00$PlaceHolderMain$WorkflowInstanceID=i.Id,f.ctl00$PlaceHolderMain$WorkflowInstanceName="",f.ctl00$PlaceHolderMain$CachedTaskQueryString="",f.ctl00$PlaceHolderMain$CachedHistoryQueryString="",e.next=54,o.a.call(t,{url:i.StatusPageUrl,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:Object.keys(f).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(f[e]))})).join("&")});case 54:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Z(o,n,i,a,s,"next",e)}function s(e){Z(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}())},update:S.a,view:K.a,views:J.a,closeModalDialog:ee.a,getModalDialog:function(e){if(void 0!==window.top._SP_MODALDIALOG){var t=window.top._SP_MODALDIALOG;e=e.replace(/\W+/g,"");for(var r=0;r<t.length;r++)if(t[r].id==="sp_frame_"+e)return t[r]}return null},notify:te.a,removeNotify:re.a,resizeModalDialog:function(e){var t,r,n,i,o,a=function(e){return 1*e.replace(/px/,"")},s=window.top;if(!e.id){if(0===s._SP_MODALDIALOG.length)return!1;e.id=s._SP_MODALDIALOG[s._SP_MODALDIALOG.length-1].id.replace(/sp_frame_/,"")}if(!(t=s.document.getElementById("sp_frame_"+e.id)))return!1;for(o in t=t.nextSibling,e.width=void 0===e.width?a(t.style.width):e.width,e.height=void 0===e.height?a(t.style.height):e.height,r={Border:t.querySelector(".ms-dlgBorder"),TitleText:t.querySelector(".ms-dlgTitleText"),Content:t,Frame:t.querySelector(".ms-dlgFrame")},n=e.width-a(r.Border.style.width),i=e.height-a(r.Border.style.height),r)Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&(r[o].style.width=a(r[o].style.width)+n+"px","TitleText"!==o&&(r[o].style.height=a(r[o].style.height)+i+"px"));var u=this.getPageSize(s);t.style.top=u.vw.height/2-a(t.style.height)/2+"px",t.style.left=u.vw.width/2-a(t.style.width)/2+"px"},showModalDialog:ne.a,waitModalDialog:function(e,t,r,n){return ne.a.call(this,{wait:!0,title:e||"Working...",message:t,width:n,height:r})},addressbook:function(e,t){return oe.apply(this,arguments)},distributionLists:ae.a,getManager:function(e,t){return me.apply(this,arguments)},getUserInfo:ue,groupMembers:ge.a,isMember:function(e){return we.apply(this,arguments)},people:pe,usergroups:ye.a,whoami:function(e){return pe.call(this,"",e)},ajax:o.a,arrayBufferToBase64:s,arrayChunk:Se.a,cloneObject:x.a,getLookup:xe.a,getPageSize:Ae.a,getPeopleLookup:function(e){if(!e)return{id:"",name:"",username:"",email:""};for(var t=e.split(";#"),r=[],n=0;n<t.length;n+=2)r.push(t[n]+";#"+t[n+1]);return 1===(r=r.map((function(e){var t={id:"",name:"",username:"",email:""};return e.split(",#").forEach((function(e,r){switch(r){case 0:var n=e.split(";#");t.id=n[0],t.name=n[1].replace(/,,/g,",");break;case 1:t.username=e;break;case 2:t.email=e;break;case 4:t.name=e.replace(/,,/g,",")}})),t}))).length?r[0]:r},getRequestDigest:p.a,getServerTime:function(e,t){return Ee.apply(this,arguments)},getTimeZoneInfo:ke.a,getURL:g.a,hasREST:w.a,isSPO:_e.a,newGuid:Te.a,regionalDateFormat:De.a,regionalSettings:Oe.a,toDate:function(e,t){if(!e)return"";if("string"!=typeof e&&!isNaN(new Date(e)))return e;if("datetime;#"===e.slice(0,10)&&(e=e.slice(10)),10===e.length&&/\d{4}-\d{2}-\d{2}/.test(e))return new Date(e+"T00:00:00");if(19!=e.length&&20!=e.length)throw"[SharepointPlus toDate] '"+e+"' is invalid.";var r=e.substring(0,4),n=e.substring(5,7),i=e.substring(8,10),o=e.substring(11,13),a=e.substring(14,16),s=e.substring(17,19);return e.indexOf("Z")>-1||t?new Date(Date.UTC(r,n-1,i,o,a,s)):new Date(r,n-1,i,o,a,s)},toPeopleString:function(e){return Array.isArray(e)||(e=[e]),e.map((function(e){return e.username?e.id+";#"+e.name.replace(/,/,",,")+",#"+e.username+",#"+e.email+",#"+e.email+",#"+e.name.replace(/,/,",,"):e.id+";#"+e.name})).join(";#")},toSPDate:Re.a,toXSLString:function(e){if("string"!=typeof e)throw"[SharepointPlus 'toXLSString'] The argument is not a string....";var t,r,n=function(e){var t,r,n,i,o,a,s=new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"),u="";for(t=0;t<e.length;t++){for(r=e.charAt(t).charCodeAt(0),n=0,i="";r>=16;)n=r%16,r=Math.floor(r/16),i+=s[n];for(o="",a=(i+=s[r]).length-1;a>=0;a--)o+=i.charAt(a);u+="%"+o}return u},i=e.split(" "),o="";for(/^[0-9]/.test(i[0])&&i[0].length<5&&(o=n(e.charAt(0)),e=e.substring(1)),t=0;t<e.length;t++)r=e.charAt(t),!1===/[0-9A-Za-z_]/.test(r)?o+=n(r).toLowerCase():o+=r;return o.replace(/%([a-zA-Z0-9][a-zA-Z0-9])/g,"_x00$1_").substring(0,32)},webService:Y,workflowStatusToText:function(e){switch(e*=1){case 0:return"Not Started";case 1:return"Failed On Start";case 2:return"In Progress";case 3:return"Error Occurred";case 4:return"Stopped By User";case 5:return"Completed";case 6:return"Failed On Start Retrying";case 7:return"Error Occurred Retrying";case 8:return"View Query Overflow";case 15:return"Canceled";case 16:return"Approved";case 17:return"Rejected";default:return"Unknown"}}})}]).default;