@kintone/rest-api-client 2.0.38 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/README.md +21 -20
- package/esm/KintoneRequestConfigBuilder.d.ts +10 -7
- package/esm/KintoneRequestConfigBuilder.js +18 -7
- package/esm/KintoneRequestConfigBuilder.js.map +1 -1
- package/esm/KintoneRestAPIClient.d.ts +3 -1
- package/esm/KintoneRestAPIClient.js +4 -2
- package/esm/KintoneRestAPIClient.js.map +1 -1
- package/esm/__tests__/KintoneRequestConfigBuilder.test.js +25 -0
- package/esm/__tests__/KintoneRequestConfigBuilder.test.js.map +1 -1
- package/esm/__tests__/KintoneRestAPIClient.test.js +26 -10
- package/esm/__tests__/KintoneRestAPIClient.test.js.map +1 -1
- package/esm/client/FileClient.js +5 -5
- package/esm/client/FileClient.js.map +1 -1
- package/esm/platform/browser.d.ts +0 -1
- package/esm/platform/browser.js.map +1 -1
- package/esm/platform/node.d.ts +2 -1
- package/esm/platform/node.js +9 -5
- package/esm/platform/node.js.map +1 -1
- package/lib/KintoneRequestConfigBuilder.d.ts +10 -7
- package/lib/KintoneRequestConfigBuilder.js +18 -7
- package/lib/KintoneRequestConfigBuilder.js.map +1 -1
- package/lib/KintoneRestAPIClient.d.ts +3 -1
- package/lib/KintoneRestAPIClient.js +6 -4
- package/lib/KintoneRestAPIClient.js.map +1 -1
- package/lib/__tests__/KintoneRequestConfigBuilder.test.js +25 -0
- package/lib/__tests__/KintoneRequestConfigBuilder.test.js.map +1 -1
- package/lib/__tests__/KintoneRestAPIClient.test.js +26 -10
- package/lib/__tests__/KintoneRestAPIClient.test.js.map +1 -1
- package/lib/client/FileClient.js +5 -5
- package/lib/client/FileClient.js.map +1 -1
- package/lib/platform/browser.d.ts +0 -1
- package/lib/platform/browser.js.map +1 -1
- package/lib/platform/node.d.ts +2 -1
- package/lib/platform/node.js +9 -5
- package/lib/platform/node.js.map +1 -1
- package/package.json +8 -8
- package/umd/KintoneRestAPIClient.js +6335 -4187
- package/umd/KintoneRestAPIClient.min.js +4 -1
|
@@ -1 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).window=e.window||{})}(this,(function(e){"use strict";var t={readFileFromPath:function(){throw new Error("not implemented")},getRequestToken:function(){throw new Error("not implemented")},getDefaultAuth:function(){throw new Error("not implemented")},buildPlatformDependentConfig:function(){throw new Error("not implemented")},buildHeaders:function(){throw new Error("not implemented")},buildFormDataValue:function(){throw new Error("not implemented")},buildBaseUrl:function(){throw new Error("not implemented")},getVersion:function(){throw new Error("not implemented")}};function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,c,"next",e)}function c(e){i(a,n,o,u,c,"throw",e)}u(void 0)}))}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function h(e,t,r){return(h=y()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&d(o,r.prototype),o}).apply(null,arguments)}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return h(e,arguments,f(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)})(e)}function g(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function w(e){var t=y();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function S(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function P(e){var t=e.default;if("function"==typeof t){var r=function(){return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var E=function(e){return e&&e.Math==Math&&e},O=E("object"==("undefined"==typeof globalThis?"undefined":o(globalThis))&&globalThis)||E("object"==("undefined"==typeof window?"undefined":o(window))&&window)||E("object"==("undefined"==typeof self?"undefined":o(self))&&self)||E("object"==o(x)&&x)||function(){return this}()||Function("return this")(),k={},j=function(e){try{return!!e()}catch(e){return!0}},I=!j((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),N=!j((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),T=N,F=Function.prototype.call,C=T?F.bind(F):function(){return F.apply(F,arguments)},_={},U={}.propertyIsEnumerable,W=Object.getOwnPropertyDescriptor,D=W&&!U.call({1:2},1);_.f=D?function(e){var t=W(this,e);return!!t&&t.enumerable}:U;var B,G,M=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},L=N,q=Function.prototype,V=q.bind,z=q.call,H=L&&V.bind(z,z),J=L?function(e){return e&&H(e)}:function(e){return e&&function(){return z.apply(e,arguments)}},$=J,K=$({}.toString),Q=$("".slice),X=function(e){return Q(K(e),8,-1)},Y=J,Z=j,ee=X,te=O.Object,re=Y("".split),ne=Z((function(){return!te("z").propertyIsEnumerable(0)}))?function(e){return"String"==ee(e)?re(e,""):te(e)}:te,oe=O.TypeError,ie=function(e){if(null==e)throw oe("Can't call method on "+e);return e},ae=ne,ue=ie,ce=function(e){return ae(ue(e))},se=function(e){return"function"==typeof e},pe=se,le=function(e){return"object"==o(e)?null!==e:pe(e)},fe=O,de=se,ye=function(e){return de(e)?e:void 0},he=function(e,t){return arguments.length<2?ye(fe[e]):fe[e]&&fe[e][t]},ve=J({}.isPrototypeOf),ge=O,me=he("navigator","userAgent")||"",be=ge.process,we=ge.Deno,Se=be&&be.versions||we&&we.version,Ae=Se&&Se.v8;Ae&&(G=(B=Ae.split("."))[0]>0&&B[0]<4?1:+(B[0]+B[1])),!G&&me&&(!(B=me.match(/Edge\/(\d+)/))||B[1]>=74)&&(B=me.match(/Chrome\/(\d+)/))&&(G=+B[1]);var xe=G,Re=xe,Pe=j,Ee=!!Object.getOwnPropertySymbols&&!Pe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Re&&Re<41})),Oe=Ee&&!Symbol.sham&&"symbol"==o(Symbol.iterator),ke=he,je=se,Ie=ve,Ne=Oe,Te=O.Object,Fe=Ne?function(e){return"symbol"==o(e)}:function(e){var t=ke("Symbol");return je(t)&&Ie(t.prototype,Te(e))},Ce=O.String,_e=se,Ue=function(e){try{return Ce(e)}catch(e){return"Object"}},We=O.TypeError,De=function(e){if(_e(e))return e;throw We(Ue(e)+" is not a function")},Be=De,Ge=function(e,t){var r=e[t];return null==r?void 0:Be(r)},Me=C,Le=se,qe=le,Ve=O.TypeError,ze={exports:{}},He=O,Je=Object.defineProperty,$e=function(e,t){try{Je(He,e,{value:t,configurable:!0,writable:!0})}catch(r){He[e]=t}return t},Ke=$e,Qe="__core-js_shared__",Xe=O[Qe]||Ke(Qe,{}),Ye=Xe;(ze.exports=function(e,t){return Ye[e]||(Ye[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.2",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ze=ie,et=O.Object,tt=function(e){return et(Ze(e))},rt=tt,nt=J({}.hasOwnProperty),ot=Object.hasOwn||function(e,t){return nt(rt(e),t)},it=J,at=0,ut=Math.random(),ct=it(1..toString),st=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ct(++at+ut,36)},pt=O,lt=ze.exports,ft=ot,dt=st,yt=Ee,ht=Oe,vt=lt("wks"),gt=pt.Symbol,mt=gt&>.for,bt=ht?gt:gt&>.withoutSetter||dt,wt=function(e){if(!ft(vt,e)||!yt&&"string"!=typeof vt[e]){var t="Symbol."+e;yt&&ft(gt,e)?vt[e]=gt[e]:vt[e]=ht&&mt?mt(t):bt(t)}return vt[e]},St=C,At=le,xt=Fe,Rt=Ge,Pt=function(e,t){var r,n;if("string"===t&&Le(r=e.toString)&&!qe(n=Me(r,e)))return n;if(Le(r=e.valueOf)&&!qe(n=Me(r,e)))return n;if("string"!==t&&Le(r=e.toString)&&!qe(n=Me(r,e)))return n;throw Ve("Can't convert object to primitive value")},Et=wt,Ot=O.TypeError,kt=Et("toPrimitive"),jt=function(e,t){if(!At(e)||xt(e))return e;var r,n=Rt(e,kt);if(n){if(void 0===t&&(t="default"),r=St(n,e,t),!At(r)||xt(r))return r;throw Ot("Can't convert object to primitive value")}return void 0===t&&(t="number"),Pt(e,t)},It=jt,Nt=Fe,Tt=function(e){var t=It(e,"string");return Nt(t)?t:t+""},Ft=le,Ct=O.document,_t=Ft(Ct)&&Ft(Ct.createElement),Ut=function(e){return _t?Ct.createElement(e):{}},Wt=Ut,Dt=!I&&!j((function(){return 7!=Object.defineProperty(Wt("div"),"a",{get:function(){return 7}}).a})),Bt=I,Gt=C,Mt=_,Lt=M,qt=ce,Vt=Tt,zt=ot,Ht=Dt,Jt=Object.getOwnPropertyDescriptor;k.f=Bt?Jt:function(e,t){if(e=qt(e),t=Vt(t),Ht)try{return Jt(e,t)}catch(e){}if(zt(e,t))return Lt(!Gt(Mt.f,e,t),e[t])};var $t={},Kt=I&&j((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qt=O,Xt=le,Yt=Qt.String,Zt=Qt.TypeError,er=function(e){if(Xt(e))return e;throw Zt(Yt(e)+" is not an object")},tr=I,rr=Dt,nr=Kt,or=er,ir=Tt,ar=O.TypeError,ur=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,sr="enumerable",pr="configurable",lr="writable";$t.f=tr?nr?function(e,t,r){if(or(e),t=ir(t),or(r),"function"==typeof e&&"prototype"===t&&"value"in r&&lr in r&&!r.writable){var n=cr(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:pr in r?r.configurable:n.configurable,enumerable:sr in r?r.enumerable:n.enumerable,writable:!1})}return ur(e,t,r)}:ur:function(e,t,r){if(or(e),t=ir(t),or(r),rr)try{return ur(e,t,r)}catch(e){}if("get"in r||"set"in r)throw ar("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var fr=$t,dr=M,yr=I?function(e,t,r){return fr.f(e,t,dr(1,r))}:function(e,t,r){return e[t]=r,e},hr={exports:{}},vr=se,gr=Xe,mr=J(Function.toString);vr(gr.inspectSource)||(gr.inspectSource=function(e){return mr(e)});var br,wr,Sr,Ar=gr.inspectSource,xr=se,Rr=Ar,Pr=O.WeakMap,Er=xr(Pr)&&/native code/.test(Rr(Pr)),Or=ze.exports,kr=st,jr=Or("keys"),Ir=function(e){return jr[e]||(jr[e]=kr(e))},Nr={},Tr=Er,Fr=O,Cr=J,_r=le,Ur=yr,Wr=ot,Dr=Xe,Br=Ir,Gr=Nr,Mr="Object already initialized",Lr=Fr.TypeError,qr=Fr.WeakMap;if(Tr||Dr.state){var Vr=Dr.state||(Dr.state=new qr),zr=Cr(Vr.get),Hr=Cr(Vr.has),Jr=Cr(Vr.set);br=function(e,t){if(Hr(Vr,e))throw new Lr(Mr);return t.facade=e,Jr(Vr,e,t),t},wr=function(e){return zr(Vr,e)||{}},Sr=function(e){return Hr(Vr,e)}}else{var $r=Br("state");Gr[$r]=!0,br=function(e,t){if(Wr(e,$r))throw new Lr(Mr);return t.facade=e,Ur(e,$r,t),t},wr=function(e){return Wr(e,$r)?e[$r]:{}},Sr=function(e){return Wr(e,$r)}}var Kr={set:br,get:wr,has:Sr,enforce:function(e){return Sr(e)?wr(e):br(e,{})},getterFor:function(e){return function(t){var r;if(!_r(t)||(r=wr(t)).type!==e)throw Lr("Incompatible receiver, "+e+" required");return r}}},Qr=I,Xr=ot,Yr=Function.prototype,Zr=Qr&&Object.getOwnPropertyDescriptor,en=Xr(Yr,"name"),tn={EXISTS:en,PROPER:en&&"something"===function(){}.name,CONFIGURABLE:en&&(!Qr||Qr&&Zr(Yr,"name").configurable)},rn=O,nn=se,on=ot,an=yr,un=$e,cn=Ar,sn=tn.CONFIGURABLE,pn=Kr.get,ln=Kr.enforce,fn=String(String).split("String");(hr.exports=function(e,t,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet,c=n&&void 0!==n.name?n.name:t;nn(r)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!on(r,"name")||sn&&r.name!==c)&&an(r,"name",c),(o=ln(r)).source||(o.source=fn.join("string"==typeof c?c:""))),e!==rn?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=r:an(e,t,r)):a?e[t]=r:un(t,r)})(Function.prototype,"toString",(function(){return nn(this)&&pn(this).source||cn(this)}));var dn={},yn=Math.ceil,hn=Math.floor,vn=function(e){var t=+e;return t!=t||0===t?0:(t>0?hn:yn)(t)},gn=vn,mn=Math.max,bn=Math.min,wn=function(e,t){var r=gn(e);return r<0?mn(r+t,0):bn(r,t)},Sn=vn,An=Math.min,xn=function(e){return e>0?An(Sn(e),9007199254740991):0},Rn=xn,Pn=function(e){return Rn(e.length)},En=ce,On=wn,kn=Pn,jn=function(e){return function(t,r,n){var o,i=En(t),a=kn(i),u=On(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},In={includes:jn(!0),indexOf:jn(!1)},Nn=ot,Tn=ce,Fn=In.indexOf,Cn=Nr,_n=J([].push),Un=function(e,t){var r,n=Tn(e),o=0,i=[];for(r in n)!Nn(Cn,r)&&Nn(n,r)&&_n(i,r);for(;t.length>o;)Nn(n,r=t[o++])&&(~Fn(i,r)||_n(i,r));return i},Wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dn=Un,Bn=Wn.concat("length","prototype");dn.f=Object.getOwnPropertyNames||function(e){return Dn(e,Bn)};var Gn={};Gn.f=Object.getOwnPropertySymbols;var Mn=he,Ln=dn,qn=Gn,Vn=er,zn=J([].concat),Hn=Mn("Reflect","ownKeys")||function(e){var t=Ln.f(Vn(e)),r=qn.f;return r?zn(t,r(e)):t},Jn=ot,$n=Hn,Kn=k,Qn=$t,Xn=j,Yn=se,Zn=/#|\.prototype\./,eo=function(e,t){var r=ro[to(e)];return r==oo||r!=no&&(Yn(t)?Xn(t):!!t)},to=eo.normalize=function(e){return String(e).replace(Zn,".").toLowerCase()},ro=eo.data={},no=eo.NATIVE="N",oo=eo.POLYFILL="P",io=eo,ao=O,uo=k.f,co=yr,so=hr.exports,po=$e,lo=function(e,t,r){for(var n=$n(t),o=Qn.f,i=Kn.f,a=0;a<n.length;a++){var u=n[a];Jn(e,u)||r&&Jn(r,u)||o(e,u,i(t,u))}},fo=io,yo=function(e,t){var r,n,i,a,u,c=e.target,s=e.global,p=e.stat;if(r=s?ao:p?ao[c]||po(c,{}):(ao[c]||{}).prototype)for(n in t){if(a=t[n],i=e.noTargetGet?(u=uo(r,n))&&u.value:r[n],!fo(s?n:c+(p?".":"#")+n,e.forced)&&void 0!==i){if(o(a)==o(i))continue;lo(a,i)}(e.sham||i&&i.sham)&&co(a,"sham",!0),so(r,n,a,e)}},ho=X,vo=Array.isArray||function(e){return"Array"==ho(e)},go=Tt,mo=$t,bo=M,wo=function(e,t,r){var n=go(t);n in e?mo.f(e,n,bo(0,r)):e[n]=r},So={};So[wt("toStringTag")]="z";var Ao="[object z]"===String(So),xo=O,Ro=Ao,Po=se,Eo=X,Oo=wt("toStringTag"),ko=xo.Object,jo="Arguments"==Eo(function(){return arguments}()),Io=Ro?Eo: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=ko(e),Oo))?r:jo?Eo(t):"Object"==(n=Eo(t))&&Po(t.callee)?"Arguments":n},No=J,To=j,Fo=se,Co=Io,_o=Ar,Uo=function(){},Wo=[],Do=he("Reflect","construct"),Bo=/^\s*(?:class|function)\b/,Go=No(Bo.exec),Mo=!Bo.exec(Uo),Lo=function(e){if(!Fo(e))return!1;try{return Do(Uo,Wo,e),!0}catch(e){return!1}},qo=function(e){if(!Fo(e))return!1;switch(Co(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Mo||!!Go(Bo,_o(e))}catch(e){return!0}};qo.sham=!0;var Vo=!Do||To((function(){var e;return Lo(Lo.call)||!Lo(Object)||!Lo((function(){e=!0}))||e}))?qo:Lo,zo=O,Ho=vo,Jo=Vo,$o=le,Ko=wt("species"),Qo=zo.Array,Xo=function(e){var t;return Ho(e)&&(t=e.constructor,(Jo(t)&&(t===Qo||Ho(t.prototype))||$o(t)&&null===(t=t[Ko]))&&(t=void 0)),void 0===t?Qo:t},Yo=function(e,t){return new(Xo(e))(0===t?0:t)},Zo=j,ei=xe,ti=wt("species"),ri=function(e){return ei>=51||!Zo((function(){var t=[];return(t.constructor={})[ti]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ni=yo,oi=O,ii=j,ai=vo,ui=le,ci=tt,si=Pn,pi=wo,li=Yo,fi=ri,di=xe,yi=wt("isConcatSpreadable"),hi=9007199254740991,vi="Maximum allowed index exceeded",gi=oi.TypeError,mi=di>=51||!ii((function(){var e=[];return e[yi]=!1,e.concat()[0]!==e})),bi=fi("concat"),wi=function(e){if(!ui(e))return!1;var t=e[yi];return void 0!==t?!!t:ai(e)};ni({target:"Array",proto:!0,forced:!mi||!bi},{concat:function(e){var t,r,n,o,i,a=ci(this),u=li(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(wi(i=-1===t?a:arguments[t])){if(c+(o=si(i))>hi)throw gi(vi);for(r=0;r<o;r++,c++)r in i&&pi(u,c,i[r])}else{if(c>=hi)throw gi(vi);pi(u,c++,i)}return u.length=c,u}});!function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===y)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return N()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=y;var c=l(e,t,r);if("normal"===c.type){if(n=r.done?h:d,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=h,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=p;var f="suspendedStart",d="suspendedYield",y="executing",h="completed",v={};function g(){}function m(){}function b(){}var w={};w[a]=function(){return this};var S=Object.getPrototypeOf,A=S&&S(S(I([])));A&&A!==r&&n.call(A,a)&&(w=A);var x=b.prototype=g.prototype=Object.create(w);function R(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(i,a,u,c){var s=l(e[i],e,a);if("throw"!==s.type){var p=s.arg,f=p.value;return f&&"object"===o(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){p.value=e,u(p)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}}function E(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,E(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function I(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:N}}function N(){return{value:t,done:!0}}return m.prototype=x.constructor=b,b.constructor=m,m.displayName=s(b,c,"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,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},R(P.prototype),P.prototype[u]=function(){return this},e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},R(x),s(x,c,"Generator"),x[a]=function(){return this},x.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=I,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var 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 o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):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),v},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),k(r),v}},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 o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var Si=I,Ai=tn.EXISTS,xi=J,Ri=$t.f,Pi=Function.prototype,Ei=xi(Pi.toString),Oi=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ki=xi(Oi.exec);Si&&!Ai&&Ri(Pi,"name",{configurable:!0,get:function(){try{return ki(Oi,Ei(this))[1]}catch(e){return""}}});var ji=O,Ii=se,Ni=ji.String,Ti=ji.TypeError,Fi=J,Ci=er,_i=function(e){if("object"==o(e)||Ii(e))return e;throw Ti("Can't set "+Ni(e)+" as a prototype")},Ui=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Fi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Ci(r),_i(n),t?e(r,n):r.__proto__=n,r}}():void 0);yo({target:"Object",stat:!0},{setPrototypeOf:Ui});var Wi=function(e){l(r,e);var t=w(r);function r(e){var n;u(this,r);var o="This function is not supported in ".concat(e," environment");return n=t.call(this,o),Error.captureStackTrace&&Error.captureStackTrace(m(n),r),n.name="UnsupportedPlatformError",n.platform=e,Object.setPrototypeOf(m(n),r.prototype),n}return s(r)}(v(Error)),Di=function(){var e=a(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("object"!==("undefined"==typeof kintone?"undefined":o(kintone))||null===kintone||"function"!=typeof kintone.getRequestToken){e.next=2;break}return e.abrupt("return",kintone.getRequestToken());case 2:if("object"!==("undefined"==typeof garoon?"undefined":o(garoon))||null===garoon||"function"!=typeof(null===(t=garoon.connect)||void 0===t||null===(r=t.kintone)||void 0===r?void 0:r.getRequestToken)){e.next=4;break}return e.abrupt("return",garoon.connect.kintone.getRequestToken());case 4:throw new Error("session authentication must specify a request token");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Bi=Object.freeze({__proto__:null,readFileFromPath:function(e){throw new Wi("Browser")},getRequestToken:Di,getDefaultAuth:function(){return{type:"session"}},buildPlatformDependentConfig:function(){return{}},buildHeaders:function(){return{}},buildFormDataValue:function(e){return new Blob([e])},buildBaseUrl:function(e){if(e)return e;var t=location,r=t.host,n=t.protocol;return"".concat(n,"//").concat(r)},getVersion:function(){return"2.0.38"}}),Gi=De,Mi=N,Li=J(J.bind),qi=function(e,t){return Gi(e),void 0===t?e:Mi?Li(e,t):function(){return e.apply(t,arguments)}},Vi=ne,zi=tt,Hi=Pn,Ji=Yo,$i=J([].push),Ki=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(c,s,p,l){for(var f,d,y=zi(c),h=Vi(y),v=qi(s,p),g=Hi(h),m=0,b=l||Ji,w=t?b(c,g):r||a?b(c,0):void 0;g>m;m++)if((u||m in h)&&(d=v(f=h[m],m,y),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:$i(w,f)}else switch(e){case 4:return!1;case 7:$i(w,f)}return i?-1:n||o?o:w}},Qi={forEach:Ki(0),map:Ki(1),filter:Ki(2),some:Ki(3),every:Ki(4),find:Ki(5),findIndex:Ki(6),filterReject:Ki(7)},Xi=Qi.map;yo({target:"Array",proto:!0,forced:!ri("map")},{map:function(e){return Xi(this,e,arguments.length>1?arguments[1]:void 0)}});var Yi=function(e){var t=e.endpointName,r=e.guestSpaceId,n=e.preview,o=void 0!==r?"/guest/".concat(r):"",i=n?"/preview":"";return"/k".concat(o,"/v1").concat(i,"/").concat(t,".json")},Zi=["endpointName"],ea=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r,this.REQUESTS_LENGTH_LIMIT=20}return s(e,[{key:"send",value:function(e){var t=this,r=e.requests.map((function(e){if("endpointName"in e){var r=e.endpointName,o=g(e,Zi);return n({api:t.buildPathWithGuestSpaceId({endpointName:r})},o)}return e})),o=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(o,{requests:r})}},{key:"buildPathWithGuestSpaceId",value:function(e){return Yi(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),ta=["preview"],ra=["preview"],na=["preview"],oa=["preview"],ia=["preview"],aa=["preview"],ua=["preview"],ca=["preview"],sa=["preview"],pa=["preview"],la=["preview"],fa=["preview"],da=["preview"],ya=["preview"],ha=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r}var t;return s(e,[{key:"getFormFields",value:function(e){var t=e.preview,r=g(e,ta),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:t});return this.client.get(o,n({},r))}},{key:"addFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(t,e)}},{key:"updateFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(t,e)}},{key:"deleteFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(t,e)}},{key:"getFormLayout",value:function(e){var t=e.preview,r=g(e,ra),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:t});return this.client.get(o,n({},r))}},{key:"updateFormLayout",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(t,e)}},{key:"getViews",value:function(e){var t=e.preview,r=g(e,na),n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:t});return this.client.get(n,r)}},{key:"updateViews",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(t,e)}},{key:"getApp",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(t,e)}},{key:"getApps",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(t,e)}},{key:"addApp",value:(t=a(regeneratorRuntime.mark((function e(t){var r,o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,o=t.space,i=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!o){e.next=9;break}return a=this.buildPathWithGuestSpaceId({endpointName:"space"}),e.next=6,this.client.get(a,{id:o});case 6:return u=e.sent,c=u.defaultThread,e.abrupt("return",this.client.post(i,n(n({},t),{},{thread:c})));case 9:return e.abrupt("return",this.client.post(i,{name:r}));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getAppSettings",value:function(e){var t=e.preview,r=g(e,oa),n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:t});return this.client.get(n,r)}},{key:"updateAppSettings",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(t,e)}},{key:"getProcessManagement",value:function(e){var t=e.preview,r=g(e,ia),n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:t});return this.client.get(n,r)}},{key:"updateProcessManagement",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(t,e)}},{key:"getDeployStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(t,e)}},{key:"deployApp",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(t,e)}},{key:"getFieldAcl",value:function(e){var t=e.preview,r=g(e,aa),o=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateFieldAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(t,e)}},{key:"getAppAcl",value:function(e){var t=e.preview,r=g(e,ua),o=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateAppAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(t,e)}},{key:"evaluateRecordsAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(t,e)}},{key:"getRecordAcl",value:function(e){var t=e.preview,r=g(e,ca),o=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateRecordAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(t,e)}},{key:"getAppCustomize",value:function(e){var t=e.preview,r=g(e,sa),o=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:t});return this.client.get(o,n({},r))}},{key:"updateAppCustomize",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(t,e)}},{key:"getGeneralNotifications",value:function(e){var t=e.preview,r=g(e,pa),o=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:t});return this.client.get(o,n({},r))}},{key:"updateGeneralNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(t,e)}},{key:"getPerRecordNotifications",value:function(e){var t=e.preview,r=g(e,la),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:t});return this.client.get(n,r)}},{key:"updatePerRecordNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(t,e)}},{key:"getReminderNotifications",value:function(e){var t=e.preview,r=g(e,fa),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:t});return this.client.get(n,r)}},{key:"updateReminderNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(t,e)}},{key:"getReports",value:function(e){var t=e.preview,r=g(e,da),n=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:t});return this.client.get(n,r)}},{key:"updateReports",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(t,e)}},{key:"getAppActions",value:function(e){var t=e.preview,r=g(e,ya),n=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:t});return this.client.get(n,r)}},{key:"updateAppActions",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Yi(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),va=Un,ga=Wn,ma=Object.keys||function(e){return va(e,ga)},ba=I,wa=J,Sa=C,Aa=j,xa=ma,Ra=Gn,Pa=_,Ea=tt,Oa=ne,ka=Object.assign,ja=Object.defineProperty,Ia=wa([].concat),Na=!ka||Aa((function(){if(ba&&1!==ka({b:1},ka(ja({},"a",{enumerable:!0,get:function(){ja(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=ka({},e)[r]||xa(ka({},t)).join("")!=n}))?function(e,t){for(var r=Ea(e),n=arguments.length,o=1,i=Ra.f,a=Pa.f;n>o;)for(var u,c=Oa(arguments[o++]),s=i?Ia(xa(c),i(c)):xa(c),p=s.length,l=0;p>l;)u=s[l++],ba&&!Sa(a,c,u)||(r[u]=c[u]);return r}:ka;yo({target:"Object",stat:!0,forced:Object.assign!==Na},{assign:Na});var Ta=Io,Fa=O.String,Ca=function(e){if("Symbol"===Ta(e))throw TypeError("Cannot convert a Symbol value to a string");return Fa(e)},_a=er,Ua=function(){var e=_a(this),t="";return e.hasIndices&&(t+="d"),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},Wa=j,Da=O.RegExp,Ba=Wa((function(){var e=Da("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ga=Ba||Wa((function(){return!Da("a","y").sticky})),Ma={BROKEN_CARET:Ba||Wa((function(){var e=Da("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Ga,UNSUPPORTED_Y:Ba},La={},qa=I,Va=Kt,za=$t,Ha=er,Ja=ce,$a=ma;La.f=qa&&!Va?Object.defineProperties:function(e,t){Ha(e);for(var r,n=Ja(t),o=$a(t),i=o.length,a=0;i>a;)za.f(e,r=o[a++],n[r]);return e};var Ka,Qa=he("document","documentElement"),Xa=er,Ya=La,Za=Wn,eu=Nr,tu=Qa,ru=Ut,nu=Ir("IE_PROTO"),ou=function(){},iu=function(e){return"<script>"+e+"</"+"script>"},au=function(e){e.write(iu("")),e.close();var t=e.parentWindow.Object;return e=null,t},uu=function(){try{Ka=new ActiveXObject("htmlfile")}catch(e){}var e,t;uu="undefined"!=typeof document?document.domain&&Ka?au(Ka):((t=ru("iframe")).style.display="none",tu.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(iu("document.F=Object")),e.close(),e.F):au(Ka);for(var r=Za.length;r--;)delete uu.prototype[Za[r]];return uu()};eu[nu]=!0;var cu,su,pu=Object.create||function(e,t){var r;return null!==e?(ou.prototype=Xa(e),r=new ou,ou.prototype=null,r[nu]=e):r=uu(),void 0===t?r:Ya.f(r,t)},lu=j,fu=O.RegExp,du=lu((function(){var e=fu(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),yu=j,hu=O.RegExp,vu=yu((function(){var e=hu("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),gu=C,mu=J,bu=Ca,wu=Ua,Su=Ma,Au=ze.exports,xu=pu,Ru=Kr.get,Pu=du,Eu=vu,Ou=Au("native-string-replace",String.prototype.replace),ku=RegExp.prototype.exec,ju=ku,Iu=mu("".charAt),Nu=mu("".indexOf),Tu=mu("".replace),Fu=mu("".slice),Cu=(su=/b*/g,gu(ku,cu=/a/,"a"),gu(ku,su,"a"),0!==cu.lastIndex||0!==su.lastIndex),_u=Su.BROKEN_CARET,Uu=void 0!==/()??/.exec("")[1];(Cu||Uu||_u||Pu||Eu)&&(ju=function(e){var t,r,n,o,i,a,u,c=this,s=Ru(c),p=bu(e),l=s.raw;if(l)return l.lastIndex=c.lastIndex,t=gu(ju,l,p),c.lastIndex=l.lastIndex,t;var f=s.groups,d=_u&&c.sticky,y=gu(wu,c),h=c.source,v=0,g=p;if(d&&(y=Tu(y,"y",""),-1===Nu(y,"g")&&(y+="g"),g=Fu(p,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Iu(p,c.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,v++),r=new RegExp("^(?:"+h+")",y)),Uu&&(r=new RegExp("^"+h+"$(?!\\s)",y)),Cu&&(n=c.lastIndex),o=gu(ku,d?r:c,g),d?o?(o.input=Fu(o.input,v),o[0]=Fu(o[0],v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Cu&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Uu&&o&&o.length>1&&gu(Ou,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=xu(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var Wu=ju;yo({target:"RegExp",proto:!0,forced:/./.exec!==Wu},{exec:Wu});var Du=J,Bu=hr.exports,Gu=Wu,Mu=j,Lu=wt,qu=yr,Vu=Lu("species"),zu=RegExp.prototype,Hu=J,Ju=vn,$u=Ca,Ku=ie,Qu=Hu("".charAt),Xu=Hu("".charCodeAt),Yu=Hu("".slice),Zu=function(e){return function(t,r){var n,o,i=$u(Ku(t)),a=Ju(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=Xu(i,a))<55296||n>56319||a+1===u||(o=Xu(i,a+1))<56320||o>57343?e?Qu(i,a):n:e?Yu(i,a,a+2):o-56320+(n-55296<<10)+65536}},ec={codeAt:Zu(!1),charAt:Zu(!0)}.charAt,tc=C,rc=er,nc=se,oc=X,ic=Wu,ac=O.TypeError,uc=C,cc=er,sc=xn,pc=Ca,lc=ie,fc=Ge,dc=function(e,t,r){return t+(r?ec(e,t).length:1)},yc=function(e,t){var r=e.exec;if(nc(r)){var n=tc(r,e,t);return null!==n&&rc(n),n}if("RegExp"===oc(e))return tc(ic,e,t);throw ac("RegExp#exec called on incompatible receiver")};(function(e,t,r,n){var o=Lu(e),i=!Mu((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Mu((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Vu]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var u=Du(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=Du(e),c=t.exec;return c===Gu||c===zu.exec?i&&!o?{done:!0,value:u(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));Bu(String.prototype,e,c[0]),Bu(zu,o,c[1])}n&&qu(zu[o],"sham",!0)})("match",(function(e,t,r){return[function(t){var r=lc(this),n=null==t?void 0:fc(t,e);return n?uc(n,t,r):new RegExp(t)[e](pc(r))},function(e){var n=cc(this),o=pc(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return yc(n,o);var a=n.unicode;n.lastIndex=0;for(var u,c=[],s=0;null!==(u=yc(n,o));){var p=pc(u[0]);c[s]=p,""===p&&(n.lastIndex=dc(o,sc(n.lastIndex),a)),s++}return 0===s?null:c}]}));var hc=se,vc=le,gc=Ui,mc=J(1..valueOf),bc=ie,wc=Ca,Sc=J("".replace),Ac="[\t\n\v\f\r \u2028\u2029\ufeff]",xc=RegExp("^"+Ac+Ac+"*"),Rc=RegExp(Ac+Ac+"*$"),Pc=function(e){return function(t){var r=wc(bc(t));return 1&e&&(r=Sc(r,xc,"")),2&e&&(r=Sc(r,Rc,"")),r}},Ec={start:Pc(1),end:Pc(2),trim:Pc(3)},Oc=I,kc=O,jc=J,Ic=io,Nc=hr.exports,Tc=ot,Fc=function(e,t,r){var n,o;return gc&&hc(n=t.constructor)&&n!==r&&vc(o=n.prototype)&&o!==r.prototype&&gc(e,o),e},Cc=ve,_c=Fe,Uc=jt,Wc=j,Dc=dn.f,Bc=k.f,Gc=$t.f,Mc=mc,Lc=Ec.trim,qc="Number",Vc=kc.Number,zc=Vc.prototype,Hc=kc.TypeError,Jc=jc("".slice),$c=jc("".charCodeAt),Kc=function(e){var t=Uc(e,"number");return"bigint"==typeof t?t:Qc(t)},Qc=function(e){var t,r,n,o,i,a,u,c,s=Uc(e,"number");if(_c(s))throw Hc("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=Lc(s),43===(t=$c(s,0))||45===t){if(88===(r=$c(s,2))||120===r)return NaN}else if(48===t){switch($c(s,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=Jc(s,2)).length,u=0;u<a;u++)if((c=$c(i,u))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(Ic(qc,!Vc(" 0o1")||!Vc("0b1")||Vc("+0x1"))){for(var Xc,Yc=function(e){var t=arguments.length<1?0:Vc(Kc(e)),r=this;return Cc(zc,r)&&Wc((function(){Mc(r)}))?Fc(Object(t),r,Yc):t},Zc=Oc?Dc(Vc):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),es=0;Zc.length>es;es++)Tc(Vc,Xc=Zc[es])&&!Tc(Yc,Xc)&&Gc(Yc,Xc,Bc(Vc,Xc));Yc.prototype=zc,zc.constructor=Yc,Nc(kc,qc,Yc)}var ts=j,rs=function(e,t){var r=[][e];return!!r&&ts((function(){r.call(null,t||function(){return 1},1)}))},ns=yo,os=In.indexOf,is=rs,as=J([].indexOf),us=!!as&&1/as([1],1,-0)<0,cs=is("indexOf");ns({target:"Array",proto:!0,forced:us||!cs},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return us?as(this,e,t)||0:os(this,e,t)}});var ss=Qi.every;yo({target:"Array",proto:!0,forced:!rs("every")},{every:function(e){return ss(this,e,arguments.length>1?arguments[1]:void 0)}});var ps=Io,ls=Ao?{}.toString:function(){return"[object "+ps(this)+"]"},fs=Ao,ds=hr.exports,ys=ls;fs||ds(Object.prototype,"toString",ys,{unsafe:!0}),yo({target:"Array",stat:!0},{isArray:vo});var hs=J([].slice),vs=yo,gs=O,ms=vo,bs=Vo,ws=le,Ss=wn,As=Pn,xs=ce,Rs=wo,Ps=wt,Es=hs,Os=ri("slice"),ks=Ps("species"),js=gs.Array,Is=Math.max;vs({target:"Array",proto:!0,forced:!Os},{slice:function(e,t){var r,n,o,i=xs(this),a=As(i),u=Ss(e,a),c=Ss(void 0===t?a:t,a);if(ms(i)&&(r=i.constructor,(bs(r)&&(r===js||ms(r.prototype))||ws(r)&&null===(r=r[ks]))&&(r=void 0),r===js||void 0===r))return Es(i,u,c);for(n=new(void 0===r?js:r)(Is(c-u,0)),o=0;u<c;u++,o++)u in i&&Rs(n,o,i[u]);return n.length=o,n}});var Ns=De,Ts=tt,Fs=ne,Cs=Pn,_s=O.TypeError,Us=function(e){return function(t,r,n,o){Ns(r);var i=Ts(t),a=Fs(i),u=Cs(i),c=e?u-1:0,s=e?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=s;break}if(c+=s,e?c<0:u<=c)throw _s("Reduce of empty array with no initial value")}for(;e?c>=0:u>c;c+=s)c in a&&(o=r(o,a[c],c,i));return o}},Ws={left:Us(!1),right:Us(!0)},Ds="process"==X(O.process),Bs=Ws.left,Gs=xe,Ms=Ds;yo({target:"Array",proto:!0,forced:!rs("reduce")||!Ms&&Gs>79&&Gs<83},{reduce:function(e){var t=arguments.length;return Bs(this,e,t,t>1?arguments[1]:void 0)}});var Ls=tt,qs=ma;yo({target:"Object",stat:!0,forced:j((function(){qs(1)}))},{keys:function(e){return qs(Ls(e))}});var Vs=function(e){l(r,e);var t=w(r);function r(e,n,o,i,a){var c;u(this,r);var s=o-n.length,p=r.extractErrorIndex(s,i,a),l=r.buildErrorMessage(s,o,p);return(c=t.call(this,l)).name="KintoneAllRecordsError",c.processedRecordsResult=e,c.unprocessedRecords=n,c.error=i,c.errorIndex=p,c.message=l,Object.setPrototypeOf(m(c),r.prototype),c}return s(r,null,[{key:"parseErrorIndex",value:function(e){var t=Object.keys(e)[0].match(/records\[(\d+)\]/);return t?Number(t[1]):null}},{key:"extractErrorIndex",value:function(e,t,n){if(void 0!==t.bulkRequestIndex&&t.errors){var o=r.parseErrorIndex(t.errors);if(null!==o)return e+t.bulkRequestIndex*n+o}}},{key:"buildErrorMessage",value:function(e,t,r){var n="";return void 0!==r&&(n="An error occurred at records[".concat(r,"]. ")),n+="".concat(e,"/").concat(t," records are processed successfully")}}]),r}(v(Error)),zs=["condition","orderBy","withCursor"],Hs=["fields"],Js=["condition"],$s=["condition","orderBy"],Ks=function(){function e(t,r,n){u(this,e),this.client=t,this.bulkRequestClient=r,this.guestSpaceId=n,this.didWarnMaximumOffsetValue=!1}var t,r,o,i,c,l,f,d,y,h,v,m,b,w,A,x,R,P;return s(e,[{key:"getRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(t,e)}},{key:"addRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(t,e)}},{key:"updateRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(t,e)}},{key:"upsertRecord",value:(P=a(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.app,n=t.updateKey,o=t.record,e.next=3,this.getRecords({app:r,query:"".concat(n.field,' = "').concat(n.value,'"')});case 3:if(i=e.sent,!((a=i.records).length>0)){e.next=13;break}if("__ID__"!==a[0].$id.type){e.next=12;break}return e.next=9,this.updateRecord(t);case 9:return u=e.sent,c=u.revision,e.abrupt("return",{id:a[0].$id.value,revision:c});case 12:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 13:return e.abrupt("return",this.addRecord({app:r,record:Object.assign({},o,p({},n.field,{value:n.value}))}));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return P.apply(this,arguments)})},{key:"getRecords",value:(R=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.get(r,t);case 3:return n=e.sent,this.warnMaximumOffsetValueIfNeeded(t.query),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return R.apply(this,arguments)})},{key:"warnMaximumOffsetValueIfNeeded",value:function(e){if(e){var t=e.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&t&&Number(t[1])>1e4&&(this.didWarnMaximumOffsetValue=!0,console.warn("Warning: The maximum offset value will be limited to 10,000 in the future. Please use `createCursor()` and `getRecordsByCursor()` instead."))}}},{key:"addRecords",value:(x=a(regeneratorRuntime.mark((function e(t){var r,n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.post(r,t);case 3:return n=e.sent,o=n.ids,i=n.revisions,e.abrupt("return",{ids:o,revisions:i,records:o.map((function(e,t){return{id:e,revision:i[t]}}))});case 7:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"updateRecords",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(t,e)}},{key:"deleteRecords",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(t,e)}},{key:"createCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(t,e)}},{key:"getRecordsByCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(t,e)}},{key:"deleteCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(t,e)}},{key:"getAllRecords",value:(A=a(regeneratorRuntime.mark((function e(t){var r,o,i,a,u,c,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.condition,o=t.orderBy,i=t.withCursor,a=void 0===i||i,u=g(t,zs),o){e.next=3;break}return e.abrupt("return",this.getAllRecordsWithId(n(n({},u),{},{condition:r})));case 3:if(!a){e.next=7;break}return c=r?"".concat(r," "):"",s="".concat(c).concat(o?"order by ".concat(o):""),e.abrupt("return",this.getAllRecordsWithCursor(n(n({},u),{},{query:s})));case 7:return e.abrupt("return",this.getAllRecordsWithOffset(n(n({},u),{},{orderBy:o,condition:r})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(w=a(regeneratorRuntime.mark((function e(t){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.fields,o=g(t,Hs),(i=r)&&i.length>0&&-1===i.indexOf("$id")&&(i=[].concat(S(i),["$id"])),e.abrupt("return",this.getAllRecordsRecursiveWithId(n(n({},o),{},{fields:i}),"0",[]));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return w.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithId",value:(b=a(regeneratorRuntime.mark((function e(t,r,o){var i,a,u,c,s,p,l,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=500,a=t.condition,u=g(t,Js),c=a?"(".concat(a,") and "):"",s="".concat(c,"$id > ").concat(r," order by $id asc limit ").concat(i),e.next=6,this.getRecords(n(n({},u),{},{query:s}));case 6:if(p=e.sent,l=o.concat(p.records),!(p.records.length<i)){e.next=10;break}return e.abrupt("return",l);case 10:if("__ID__"!==(f=p.records[p.records.length-1]).$id.type){e.next=14;break}return d=f.$id.value,e.abrupt("return",this.getAllRecordsRecursiveWithId(t,d,l));case 14:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 15:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return b.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(m=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(t,0,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithOffset",value:(v=a(regeneratorRuntime.mark((function e(t,r,o){var i,a,u,c,s,p,l,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=500,a=t.condition,u=t.orderBy,c=g(t,$s),s=a?"".concat(a," "):"",p="".concat(s).concat(u?"order by ".concat(u," "):"","limit ").concat(i," offset ").concat(r),e.next=6,this.getRecords(n(n({},c),{},{query:p}));case 6:if(l=e.sent,f=o.concat(l.records),!(l.records.length<i)){e.next=10;break}return e.abrupt("return",f);case 10:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(t,r+i,f));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return v.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(h=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createCursor(t);case 2:return r=e.sent,n=r.id,e.prev=4,e.next=7,this.getAllRecordsRecursiveByCursor(n,[]);case 7:return e.abrupt("return",e.sent);case 10:return e.prev=10,e.t0=e.catch(4),e.next=14,this.deleteCursor({id:n});case 14:throw e.t0;case 15:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(e){return h.apply(this,arguments)})},{key:"getAllRecordsRecursiveByCursor",value:(y=a(regeneratorRuntime.mark((function e(t,r){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRecordsByCursor({id:t});case 2:if(n=e.sent,o=r.concat(n.records),!n.next){e.next=6;break}return e.abrupt("return",this.getAllRecordsRecursiveByCursor(t,o));case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return y.apply(this,arguments)})},{key:"addAllRecords",value:(d=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.records.every((function(e){return!Array.isArray(e)&&e instanceof Object}))){e.next=2;break}throw new Error("the `records` parameter must be an array of object.");case 2:return e.abrupt("return",this.addAllRecordsRecursive(t,t.records.length,[]));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(f=a(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=t.app,a=t.records,0!==(u=a.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:n});case 5:return e.prev=5,e.next=8,this.addAllRecordsWithBulkRequest({app:i,records:u});case 8:c=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new Vs({records:n},a,r,e.t0,100);case 14:return e.abrupt("return",this.addAllRecordsRecursive({app:i,records:a.slice(o)},r,n.concat(c)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,t,r){return f.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(l=a(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"POST",endpointName:"records",payload:{app:t.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){var t=e.ids,r=e.revisions;return t.map((function(e,t){return{id:e,revision:r[t]}}))})).reduce((function(e,t){return e.concat(t)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"updateAllRecords",value:(c=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateAllRecordsRecursive(t,t.records.length,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(i=a(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=t.app,a=t.records,0!==(u=a.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:n});case 5:return e.prev=5,e.next=8,this.updateAllRecordsWithBulkRequest({app:i,records:u});case 8:c=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new Vs({records:n},a,r,e.t0,100);case 14:return e.abrupt("return",this.updateAllRecordsRecursive({app:i,records:a.slice(o)},r,n.concat(c)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,t,r){return i.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(o=a(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"PUT",endpointName:"records",payload:{app:t.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){return e.records})).reduce((function(e,t){return e.concat(t)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"deleteAllRecords",value:function(e){return this.deleteAllRecordsRecursive(e,e.records.length)}},{key:"deleteAllRecordsRecursive",value:(r=a(regeneratorRuntime.mark((function e(t,r){var n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,o=t.app,i=t.records,0!==(a=i.slice(0,n)).length){e.next=5;break}return e.abrupt("return",{});case 5:return e.prev=5,e.next=8,this.deleteAllRecordsWithBulkRequest({app:o,records:a});case 8:e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(5),new Vs({},i,r,e.t0,100);case 13:return e.abrupt("return",this.deleteAllRecordsRecursive({app:o,records:i.slice(n)},r));case 14:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(e,t){return r.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(t=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"DELETE",endpointName:"records",payload:{app:t.app,ids:e.map((function(e){return e.id})),revisions:e.map((function(e){return e.revision}))}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"separateArrayRecursive",value:function(e,t,r){var n=r.slice(0,e);return 0===n.length?t:this.separateArrayRecursive(e,[].concat(S(t),[n]),r.slice(e))}},{key:"addRecordComment",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(t,e)}},{key:"deleteRecordComment",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(t,e)}},{key:"getRecordComments",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(t,e)}},{key:"updateRecordAssignees",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(t,e)}},{key:"updateRecordStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(t,e)}},{key:"updateRecordsStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Yi(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Qs="object"==("undefined"==typeof self?"undefined":o(self))?self.FormData:window.FormData,Xs=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r}var r;return s(e,[{key:"uploadFile",value:(r=a(regeneratorRuntime.mark((function e(r){var n,o,i,a,u,c,s,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.buildPathWithGuestSpaceId({endpointName:"file"}),o=new Qs,!("path"in r.file)){e.next=19;break}return e.prev=3,e.next=6,t.readFileFromPath(r.file.path);case 6:i=e.sent,a=i.name,u=i.data,o.append("file",u,a),e.next=17;break;case 12:if(e.prev=12,e.t0=e.catch(3),!(e.t0 instanceof Wi)){e.next=16;break}throw new Error("uploadFile doesn't allow to accept a file path in ".concat(e.t0.platform," environment."));case 16:throw e.t0;case 17:e.next=21;break;case 19:c=r.file,s=c.name,p=c.data,o.append("file",t.buildFormDataValue(p),s);case 21:return e.abrupt("return",this.client.postData(n,o));case 22:case"end":return e.stop()}}),e,this,[[3,12]])}))),function(e){return r.apply(this,arguments)})},{key:"downloadFile",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Yi(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Ys={exports:{}},Zs={exports:{}},ep=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},tp=ep,rp=Object.prototype.toString;function np(e){return Array.isArray(e)}function op(e){return void 0===e}function ip(e){return"[object ArrayBuffer]"===rp.call(e)}function ap(e){return null!==e&&"object"===o(e)}function up(e){if("[object Object]"!==rp.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function cp(e){return"[object Function]"===rp.call(e)}function sp(e,t){if(null!=e)if("object"!==o(e)&&(e=[e]),np(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var pp={isArray:np,isArrayBuffer:ip,isBuffer:function(e){return null!==e&&!op(e)&&null!==e.constructor&&!op(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===rp.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ip(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:ap,isPlainObject:up,isUndefined:op,isDate:function(e){return"[object Date]"===rp.call(e)},isFile:function(e){return"[object File]"===rp.call(e)},isBlob:function(e){return"[object Blob]"===rp.call(e)},isFunction:cp,isStream:function(e){return ap(e)&&cp(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===rp.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:sp,merge:function e(){var t={};function r(r,n){up(t[n])&&up(r)?t[n]=e(t[n],r):up(r)?t[n]=e({},r):np(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)sp(arguments[n],r);return t},extend:function(e,t,r){return sp(t,(function(t,n){e[n]=r&&"function"==typeof t?tp(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},lp=pp;function fp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var dp=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(lp.isURLSearchParams(t))n=t.toString();else{var o=[];lp.forEach(t,(function(e,t){null!=e&&(lp.isArray(e)?t+="[]":e=[e],lp.forEach(e,(function(e){lp.isDate(e)?e=e.toISOString():lp.isObject(e)&&(e=JSON.stringify(e)),o.push(fp(t)+"="+fp(e))})))})),n=o.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},yp=pp;function hp(){this.handlers=[]}hp.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},hp.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},hp.prototype.forEach=function(e){yp.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var vp=hp,gp="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function mp(){throw new Error("setTimeout has not been defined")}function bp(){throw new Error("clearTimeout has not been defined")}var wp=mp,Sp=bp;function Ap(e){if(wp===setTimeout)return setTimeout(e,0);if((wp===mp||!wp)&&setTimeout)return wp=setTimeout,setTimeout(e,0);try{return wp(e,0)}catch(t){try{return wp.call(null,e,0)}catch(t){return wp.call(this,e,0)}}}"function"==typeof gp.setTimeout&&(wp=setTimeout),"function"==typeof gp.clearTimeout&&(Sp=clearTimeout);var xp,Rp=[],Pp=!1,Ep=-1;function Op(){Pp&&xp&&(Pp=!1,xp.length?Rp=xp.concat(Rp):Ep=-1,Rp.length&&kp())}function kp(){if(!Pp){var e=Ap(Op);Pp=!0;for(var t=Rp.length;t;){for(xp=Rp,Rp=[];++Ep<t;)xp&&xp[Ep].run();Ep=-1,t=Rp.length}xp=null,Pp=!1,function(e){if(Sp===clearTimeout)return clearTimeout(e);if((Sp===bp||!Sp)&&clearTimeout)return Sp=clearTimeout,clearTimeout(e);try{Sp(e)}catch(t){try{return Sp.call(null,e)}catch(t){return Sp.call(this,e)}}}(e)}}function jp(e,t){this.fun=e,this.array=t}jp.prototype.run=function(){this.fun.apply(null,this.array)};function Ip(){}var Np=Ip,Tp=Ip,Fp=Ip,Cp=Ip,_p=Ip,Up=Ip,Wp=Ip;var Dp=gp.performance||{},Bp=Dp.now||Dp.mozNow||Dp.msNow||Dp.oNow||Dp.webkitNow||function(){return(new Date).getTime()};var Gp=new Date;var Mp,Lp,qp,Vp,zp,Hp,Jp,$p,Kp,Qp,Xp,Yp,Zp,el,tl,rl,nl,ol,il,al,ul={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Rp.push(new jp(e,t)),1!==Rp.length||Pp||Ap(kp)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Np,addListener:Tp,once:Fp,off:Cp,removeListener:_p,removeAllListeners:Up,emit:Wp,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Bp.call(Dp),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Gp)/1e3}},cl=pp,sl=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},pl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};function ll(){if(Lp)return Mp;Lp=1;var e=sl;return Mp=function(t,r,n,o,i){var a=new Error(t);return e(a,r,n,o,i)}}function fl(){if(Vp)return qp;Vp=1;var e=ll();return qp=function(t,r,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?r(e("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}}function dl(){if(Hp)return zp;Hp=1;var e=pp;return zp=e.isStandardBrowserEnv()?{write:function(t,r,n,o,i,a){var u=[];u.push(t+"="+encodeURIComponent(r)),e.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),e.isString(o)&&u.push("path="+o),e.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}}function yl(){return $p?Jp:($p=1,Jp=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)})}function hl(){return Qp?Kp:(Qp=1,Kp=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e})}function vl(){if(Yp)return Xp;Yp=1;var e=yl(),t=hl();return Xp=function(r,n){return r&&!e(n)?t(r,n):n}}function gl(){if(el)return Zp;el=1;var e=pp,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Zp=function(r){var n,o,i,a={};return r?(e.forEach(r.split("\n"),(function(r){if(i=r.indexOf(":"),n=e.trim(r.substr(0,i)).toLowerCase(),o=e.trim(r.substr(i+1)),n){if(a[n]&&t.indexOf(n)>=0)return;a[n]="set-cookie"===n?(a[n]?a[n]:[]).concat([o]):a[n]?a[n]+", "+o:o}})),a):a}}function ml(){if(rl)return tl;rl=1;var e=pp;return tl=e.isStandardBrowserEnv()?function(){var t,r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var t=e;return r&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(r){var n=e.isString(r)?o(r):r;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}}function bl(){if(ol)return nl;function e(e){this.message=e}return ol=1,e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,nl=e}function wl(){if(al)return il;al=1;var e=pp,t=fl(),r=dl(),n=dp,o=vl(),i=gl(),a=ml(),u=ll(),c=pl,s=bl();return il=function(p){return new Promise((function(l,f){var d,y=p.data,h=p.headers,v=p.responseType;function g(){p.cancelToken&&p.cancelToken.unsubscribe(d),p.signal&&p.signal.removeEventListener("abort",d)}e.isFormData(y)&&delete h["Content-Type"];var m=new XMLHttpRequest;if(p.auth){var b=p.auth.username||"",w=p.auth.password?unescape(encodeURIComponent(p.auth.password)):"";h.Authorization="Basic "+btoa(b+":"+w)}var S=o(p.baseURL,p.url);function A(){if(m){var e="getAllResponseHeaders"in m?i(m.getAllResponseHeaders()):null,r={data:v&&"text"!==v&&"json"!==v?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:e,config:p,request:m};t((function(e){l(e),g()}),(function(e){f(e),g()}),r),m=null}}if(m.open(p.method.toUpperCase(),n(S,p.params,p.paramsSerializer),!0),m.timeout=p.timeout,"onloadend"in m?m.onloadend=A:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(A)},m.onabort=function(){m&&(f(u("Request aborted",p,"ECONNABORTED",m)),m=null)},m.onerror=function(){f(u("Network Error",p,null,m)),m=null},m.ontimeout=function(){var e=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded",t=p.transitional||c;p.timeoutErrorMessage&&(e=p.timeoutErrorMessage),f(u(e,p,t.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},e.isStandardBrowserEnv()){var x=(p.withCredentials||a(S))&&p.xsrfCookieName?r.read(p.xsrfCookieName):void 0;x&&(h[p.xsrfHeaderName]=x)}"setRequestHeader"in m&&e.forEach(h,(function(e,t){void 0===y&&"content-type"===t.toLowerCase()?delete h[t]:m.setRequestHeader(t,e)})),e.isUndefined(p.withCredentials)||(m.withCredentials=!!p.withCredentials),v&&"json"!==v&&(m.responseType=p.responseType),"function"==typeof p.onDownloadProgress&&m.addEventListener("progress",p.onDownloadProgress),"function"==typeof p.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",p.onUploadProgress),(p.cancelToken||p.signal)&&(d=function(e){m&&(f(!e||e&&e.type?new s("canceled"):e),m.abort(),m=null)},p.cancelToken&&p.cancelToken.subscribe(d),p.signal&&(p.signal.aborted?d():p.signal.addEventListener("abort",d))),y||(y=null),m.send(y)}))}}var Sl=pp,Al=function(e,t){cl.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},xl=sl,Rl={"Content-Type":"application/x-www-form-urlencoded"};function Pl(e,t){!Sl.isUndefined(e)&&Sl.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var El,Ol={transitional:pl,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==ul&&"[object process]"===Object.prototype.toString.call(ul))&&(El=wl()),El),transformRequest:[function(e,t){return Al(t,"Accept"),Al(t,"Content-Type"),Sl.isFormData(e)||Sl.isArrayBuffer(e)||Sl.isBuffer(e)||Sl.isStream(e)||Sl.isFile(e)||Sl.isBlob(e)?e:Sl.isArrayBufferView(e)?e.buffer:Sl.isURLSearchParams(e)?(Pl(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Sl.isObject(e)||t&&"application/json"===t["Content-Type"]?(Pl(t,"application/json"),function(e,t,r){if(Sl.isString(e))try{return(t||JSON.parse)(e),Sl.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Ol.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&Sl.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw xl(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Sl.forEach(["delete","get","head"],(function(e){Ol.headers[e]={}})),Sl.forEach(["post","put","patch"],(function(e){Ol.headers[e]=Sl.merge(Rl)}));var kl,jl,Il=Ol,Nl=pp,Tl=Il;function Fl(){return jl?kl:(jl=1,kl=function(e){return!(!e||!e.__CANCEL__)})}var Cl=pp,_l=function(e,t,r){var n=this||Tl;return Nl.forEach(r,(function(r){e=r.call(n,e,t)})),e},Ul=Fl(),Wl=Il,Dl=bl();function Bl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dl("canceled")}var Gl,Ml,Ll=pp,ql=function(e,t){t=t||{};var r={};function n(e,t){return Ll.isPlainObject(e)&&Ll.isPlainObject(t)?Ll.merge(e,t):Ll.isPlainObject(t)?Ll.merge({},t):Ll.isArray(t)?t.slice():t}function o(r){return Ll.isUndefined(t[r])?Ll.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!Ll.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return Ll.isUndefined(t[r])?Ll.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function u(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return Ll.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,n=t(e);Ll.isUndefined(n)&&t!==u||(r[e]=n)})),r};function Vl(){return Ml?Gl:(Ml=1,Gl={version:"0.26.1"})}var zl=Vl().version,Hl={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Hl[e]=function(r){return o(r)===e||"a"+(t<1?"n ":" ")+e}}));var Jl={};Hl.transitional=function(e,t,r){function n(e,t){return"[Axios v"+zl+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new Error(n(o," has been removed"+(t?" in "+t:"")));return t&&!Jl[o]&&(Jl[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var $l,Kl,Ql,Xl,Yl,Zl,ef=pp,tf=dp,rf=vp,nf=function(e){return Bl(e),e.headers=e.headers||{},e.data=_l.call(e,e.data,e.headers,e.transformRequest),e.headers=Cl.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Cl.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Wl.adapter)(e).then((function(t){return Bl(e),t.data=_l.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Ul(t)||(Bl(e),t&&t.response&&(t.response.data=_l.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},of=ql,af={assertOptions:function(e,t,r){if("object"!==o(e))throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],u=t[a];if(u){var c=e[a],s=void 0===c||u(c,a,e);if(!0!==s)throw new TypeError("option "+a+" must be "+s)}else if(!0!==r)throw Error("Unknown option "+a)}},validators:Hl},uf=af.validators;function cf(e){this.defaults=e,this.interceptors={request:new rf,response:new rf}}cf.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=of(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&af.assertOptions(r,{silentJSONParsing:uf.transitional(uf.boolean),forcedJSONParsing:uf.transitional(uf.boolean),clarifyTimeoutError:uf.transitional(uf.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!o){var u=[nf,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(a),i=Promise.resolve(t);u.length;)i=i.then(u.shift(),u.shift());return i}for(var c=t;n.length;){var s=n.shift(),p=n.shift();try{c=s(c)}catch(e){p(e);break}}try{i=nf(c)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},cf.prototype.getUri=function(e){return e=of(this.defaults,e),tf(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},ef.forEach(["delete","get","head","options"],(function(e){cf.prototype[e]=function(t,r){return this.request(of(r||{},{method:e,url:t,data:(r||{}).data}))}})),ef.forEach(["post","put","patch"],(function(e){cf.prototype[e]=function(t,r,n){return this.request(of(n||{},{method:e,url:t,data:r}))}}));var sf=pp,pf=ep,lf=cf,ff=ql;var df=function e(t){var r=new lf(t),n=pf(lf.prototype.request,r);return sf.extend(n,lf.prototype,r),sf.extend(n,r),n.create=function(r){return e(ff(t,r))},n}(Il);df.Axios=lf,df.Cancel=bl(),df.CancelToken=function(){if(Kl)return $l;Kl=1;var e=bl();function t(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(e){r=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},t((function(t){n.reason||(n.reason=new e(t),r(n.reason))}))}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},t.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},t.source=function(){var e;return{token:new t((function(t){e=t})),cancel:e}},$l=t}(),df.isCancel=Fl(),df.VERSION=Vl().version,df.all=function(e){return Promise.all(e)},df.spread=Xl?Ql:(Xl=1,Ql=function(e){return function(t){return e.apply(null,t)}}),df.isAxiosError=function(){if(Zl)return Yl;Zl=1;var e=pp;return Yl=function(t){return e.isObject(t)&&!0===t.isAxiosError}}(),Zs.exports=df,Zs.exports.default=df,function(e){e.exports=Zs.exports}(Ys);var yf=R(Ys.exports),hf=function(){function e(t){var r=t.responseHandler,n=t.requestConfigBuilder;u(this,e),this.responseHandler=r,this.requestConfigBuilder=n}var t,r,o,i,c,p;return s(e,[{key:"get",value:(p=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"getData",value:(c=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",t,r,{responseType:"arraybuffer"});case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"post",value:(i=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"postData",value:(o=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"put",value:(r=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("put",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"delete",value:(t=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("delete",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"sendRequest",value:function(e){return this.responseHandler.handle(yf(n(n({},e),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),e}(),vf=yo,gf=ne,mf=ce,bf=rs,wf=J([].join),Sf=gf!=Object,Af=bf("join",",");vf({target:"Array",proto:!0,forced:Sf||!Af},{join:function(e){return wf(mf(this),void 0===e?",":e)}});var xf,Rf=x.Symbol,Pf=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===o(Symbol.iterator))return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},Ef=function(){return"function"==typeof Rf&&("function"==typeof Symbol&&("symbol"===o(Rf("foo"))&&("symbol"===o(Symbol("bar"))&&Pf())))},Of="Function.prototype.bind called on incompatible ",kf=Array.prototype.slice,jf=Object.prototype.toString,If="[object Function]",Nf=function(e){var t=this;if("function"!=typeof t||jf.call(t)!==If)throw new TypeError(Of+t);for(var r,n=kf.call(arguments,1),o=function(){if(this instanceof r){var o=t.apply(this,n.concat(kf.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(kf.call(arguments)))},i=Math.max(0,t.length-n.length),a=[],u=0;u<i;u++)a.push("$"+u);if(r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var c=function(){};c.prototype=t.prototype,r.prototype=new c,c.prototype=null}return r},Tf=Function.prototype.bind||Nf,Ff=Tf.call(Function.call,Object.prototype.hasOwnProperty),Cf=SyntaxError,_f=Function,Uf=TypeError,Wf=function(e){try{return _f('"use strict"; return ('+e+").constructor;")()}catch(e){}},Df=Object.getOwnPropertyDescriptor;if(Df)try{Df({},"")}catch(e){Df=null}var Bf,Gf=function(){throw new Uf},Mf=Df?function(){try{return Gf}catch(e){try{return Df(arguments,"callee").get}catch(e){return Gf}}}():Gf,Lf=Ef(),qf=Object.getPrototypeOf||function(e){return e.__proto__},Vf={},zf="undefined"==typeof Uint8Array?xf:qf(Uint8Array),Hf={"%AggregateError%":"undefined"==typeof AggregateError?xf:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?xf:ArrayBuffer,"%ArrayIteratorPrototype%":Lf?qf([][Symbol.iterator]()):xf,"%AsyncFromSyncIteratorPrototype%":xf,"%AsyncFunction%":Vf,"%AsyncGenerator%":Vf,"%AsyncGeneratorFunction%":Vf,"%AsyncIteratorPrototype%":Vf,"%Atomics%":"undefined"==typeof Atomics?xf:Atomics,"%BigInt%":"undefined"==typeof BigInt?xf:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?xf:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?xf:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?xf:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?xf:FinalizationRegistry,"%Function%":_f,"%GeneratorFunction%":Vf,"%Int8Array%":"undefined"==typeof Int8Array?xf:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?xf:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?xf:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Lf?qf(qf([][Symbol.iterator]())):xf,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":o(JSON))?JSON:xf,"%Map%":"undefined"==typeof Map?xf:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Lf?qf((new Map)[Symbol.iterator]()):xf,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?xf:Promise,"%Proxy%":"undefined"==typeof Proxy?xf:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?xf:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?xf:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Lf?qf((new Set)[Symbol.iterator]()):xf,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?xf:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Lf?qf(""[Symbol.iterator]()):xf,"%Symbol%":Lf?Symbol:xf,"%SyntaxError%":Cf,"%ThrowTypeError%":Mf,"%TypedArray%":zf,"%TypeError%":Uf,"%Uint8Array%":"undefined"==typeof Uint8Array?xf:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?xf:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?xf:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?xf:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?xf:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?xf:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?xf:WeakSet},Jf=function e(t){var r;if("%AsyncFunction%"===t)r=Wf("async function () {}");else if("%GeneratorFunction%"===t)r=Wf("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Wf("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=qf(o.prototype))}return Hf[t]=r,r},$f={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Kf=Tf,Qf=Ff,Xf=Kf.call(Function.call,Array.prototype.concat),Yf=Kf.call(Function.apply,Array.prototype.splice),Zf=Kf.call(Function.call,String.prototype.replace),ed=Kf.call(Function.call,String.prototype.slice),td=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rd=/\\(\\)?/g,nd=function(e){var t=ed(e,0,1),r=ed(e,-1);if("%"===t&&"%"!==r)throw new Cf("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Cf("invalid intrinsic syntax, expected opening `%`");var n=[];return Zf(e,td,(function(e,t,r,o){n[n.length]=r?Zf(o,rd,"$1"):t||e})),n},od=function(e,t){var r,n=e;if(Qf($f,n)&&(n="%"+(r=$f[n])[0]+"%"),Qf(Hf,n)){var o=Hf[n];if(o===Vf&&(o=Jf(n)),void 0===o&&!t)throw new Uf("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Cf("intrinsic "+e+" does not exist!")},id=SyntaxError,ad=Function,ud=TypeError,cd=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},sd=Object.getOwnPropertyDescriptor;if(sd)try{sd({},"")}catch(e){sd=null}var pd=function(){throw new ud},ld=sd?function(){try{return pd}catch(e){try{return sd(arguments,"callee").get}catch(e){return pd}}}():pd,fd=Ef(),dd=Object.getPrototypeOf||function(e){return e.__proto__},yd=cd("async function* () {}"),hd=yd?yd.prototype:Bf,vd=hd?hd.prototype:Bf,gd="undefined"==typeof Uint8Array?Bf:dd(Uint8Array),md={"%AggregateError%":"undefined"==typeof AggregateError?Bf:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Bf:ArrayBuffer,"%ArrayIteratorPrototype%":fd?dd([][Symbol.iterator]()):Bf,"%AsyncFromSyncIteratorPrototype%":Bf,"%AsyncFunction%":cd("async function () {}"),"%AsyncGenerator%":hd,"%AsyncGeneratorFunction%":yd,"%AsyncIteratorPrototype%":vd?dd(vd):Bf,"%Atomics%":"undefined"==typeof Atomics?Bf:Atomics,"%BigInt%":"undefined"==typeof BigInt?Bf:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Bf:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Bf:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Bf:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Bf:FinalizationRegistry,"%Function%":ad,"%GeneratorFunction%":cd("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?Bf:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Bf:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Bf:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fd?dd(dd([][Symbol.iterator]())):Bf,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":o(JSON))?JSON:Bf,"%Map%":"undefined"==typeof Map?Bf:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&fd?dd((new Map)[Symbol.iterator]()):Bf,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Bf:Promise,"%Proxy%":"undefined"==typeof Proxy?Bf:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Bf:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Bf:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&fd?dd((new Set)[Symbol.iterator]()):Bf,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Bf:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fd?dd(""[Symbol.iterator]()):Bf,"%Symbol%":fd?Symbol:Bf,"%SyntaxError%":id,"%ThrowTypeError%":ld,"%TypedArray%":gd,"%TypeError%":ud,"%Uint8Array%":"undefined"==typeof Uint8Array?Bf:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Bf:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Bf:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Bf:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Bf:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Bf:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Bf:WeakSet},bd={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},wd=Tf,Sd=Ff,Ad=wd.call(Function.call,Array.prototype.concat),xd=wd.call(Function.apply,Array.prototype.splice),Rd=wd.call(Function.call,String.prototype.replace),Pd=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ed=/\\(\\)?/g,Od=function(e){var t=[];return Rd(e,Pd,(function(e,r,n,o){t[t.length]=n?Rd(o,Ed,"$1"):r||e})),t},kd=function(e,t){var r,n=e;if(Sd(bd,n)&&(n="%"+(r=bd[n])[0]+"%"),Sd(md,n)){var o=md[n];if(void 0===o&&!t)throw new ud("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new id("intrinsic "+e+" does not exist!")},jd=function(e,t){if("string"!=typeof e||0===e.length)throw new ud("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new ud('"allowMissing" argument must be a boolean');var r=Od(e),n=r.length>0?r[0]:"",o=kd("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],xd(r,Ad([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s];if("constructor"!==l&&p||(u=!0),Sd(md,i="%"+(n+="."+l)+"%"))a=md[i];else if(null!=a){if(sd&&s+1>=r.length){var f=sd(a,l);if(p=!!f,!t&&!(l in a))throw new ud("base intrinsic for "+e+" exists, but the property is not available.");a=p&&"get"in f&&!("originalValue"in f.get)?f.get:a[l]}else p=Sd(a,l),a=a[l];p&&!u&&(md[i]=a)}}return a},Id={exports:{}};!function(e){var t=Tf,r=jd,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(o,n),a=r("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch(e){a=null}e.exports=function(){return i(t,o,arguments)};var u=function(){return i(t,n,arguments)};a?a(e.exports,"apply",{value:u}):e.exports.apply=u}(Id);var Nd=jd,Td=Id.exports,Fd=Td(Nd("String.prototype.indexOf")),Cd=P(Object.freeze({__proto__:null,default:{}})),_d="function"==typeof Map&&Map.prototype,Ud=Object.getOwnPropertyDescriptor&&_d?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Wd=_d&&Ud&&"function"==typeof Ud.get?Ud.get:null,Dd=_d&&Map.prototype.forEach,Bd="function"==typeof Set&&Set.prototype,Gd=Object.getOwnPropertyDescriptor&&Bd?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Md=Bd&&Gd&&"function"==typeof Gd.get?Gd.get:null,Ld=Bd&&Set.prototype.forEach,qd="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Vd="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,zd=Boolean.prototype.valueOf,Hd=Object.prototype.toString,Jd=Function.prototype.toString,$d=String.prototype.match,Kd="function"==typeof BigInt?BigInt.prototype.valueOf:null,Qd=Object.getOwnPropertySymbols,Xd="function"==typeof Symbol?Symbol.prototype.toString:null,Yd=Object.prototype.propertyIsEnumerable,Zd=Cd.custom,ey=Zd&&oy(Zd)?Zd:null;function ty(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function ry(e){return String(e).replace(/"/g,""")}function ny(e){return"[object Array]"===uy(e)}function oy(e){return"[object Symbol]"===uy(e)}var iy=Object.prototype.hasOwnProperty||function(e){return e in this};function ay(e,t){return iy.call(e,t)}function uy(e){return Hd.call(e)}function cy(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function sy(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return sy(e.slice(0,t.maxStringLength),t)+n}return ty(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,py),"single",t)}function py(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function ly(e){return"Object("+e+")"}function fy(e){return e+" { ? }"}function dy(e,t,r,n){return e+" ("+t+") {"+(n?yy(r,n):r.join(", "))+"}"}function yy(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function hy(e,t){var r=ny(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=ay(e,o)?t(e[o],e):""}for(var i in e)ay(e,i)&&(r&&String(Number(i))===i&&i<e.length||(/[^\w$]/.test(i)?n.push(t(i,e)+": "+t(e[i],e)):n.push(i+": "+t(e[i],e))));if("function"==typeof Qd)for(var a=Qd(e),u=0;u<a.length;u++)Yd.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var vy,gy=function(e,t){if("string"!=typeof e||0===e.length)throw new Uf("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Uf('"allowMissing" argument must be a boolean');var r=nd(e),n=r.length>0?r[0]:"",o=od("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],Yf(r,Xf([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s],f=ed(l,0,1),d=ed(l,-1);if(('"'===f||"'"===f||"`"===f||'"'===d||"'"===d||"`"===d)&&f!==d)throw new Cf("property names with quotes must have matching quotes");if("constructor"!==l&&p||(u=!0),Qf(Hf,i="%"+(n+="."+l)+"%"))a=Hf[i];else if(null!=a){if(!(l in a)){if(!t)throw new Uf("base intrinsic for "+e+" exists, but the property is not available.");return}if(Df&&s+1>=r.length){var y=Df(a,l);a=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[l]}else p=Qf(a,l),a=a[l];p&&!u&&(Hf[i]=a)}}return a},my=function(e,t){var r=Nd(e,!!t);return"function"==typeof r&&Fd(e,".prototype.")>-1?Td(r):r},by=function e(t,r,n,i){var a=r||{};if(ay(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ay(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!ay(a,"customInspect")||a.customInspect;if("boolean"!=typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(ay(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return sy(t,a);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var c=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=c&&c>0&&"object"===o(t))return ny(t)?"[Array]":"[Object]";var s=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(a,n);if(void 0===i)i=[];else if(cy(i,t)>=0)return"[Circular]";function p(t,r,o){if(r&&(i=i.slice()).push(r),o){var u={depth:a.depth};return ay(a,"quoteStyle")&&(u.quoteStyle=a.quoteStyle),e(t,u,n+1,i)}return e(t,a,n+1,i)}if("function"==typeof t){var l=function(e){if(e.name)return e.name;var t=$d.call(Jd.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),f=hy(t,p);return"[Function"+(l?": "+l:" (anonymous)")+"]"+(f.length>0?" { "+f.join(", ")+" }":"")}if(oy(t)){var d=Xd.call(t);return"object"===o(t)?ly(d):d}if(function(e){if(!e||"object"!==o(e))return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var y="<"+String(t.nodeName).toLowerCase(),h=t.attributes||[],v=0;v<h.length;v++)y+=" "+h[v].name+"="+ty(ry(h[v].value),"double",a);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+="</"+String(t.nodeName).toLowerCase()+">"}if(ny(t)){if(0===t.length)return"[]";var g=hy(t,p);return s&&!function(e){for(var t=0;t<e.length;t++)if(cy(e[t],"\n")>=0)return!1;return!0}(g)?"["+yy(g,s)+"]":"[ "+g.join(", ")+" ]"}if(function(e){return"[object Error]"===uy(e)}(t)){var m=hy(t,p);return 0===m.length?"["+String(t)+"]":"{ ["+String(t)+"] "+m.join(", ")+" }"}if("object"===o(t)&&u){if(ey&&"function"==typeof t[ey])return t[ey]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Wd||!e||"object"!==o(e))return!1;try{Wd.call(e);try{Md.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var b=[];return Dd.call(t,(function(e,r){b.push(p(r,t,!0)+" => "+p(e,t))})),dy("Map",Wd.call(t),b,s)}if(function(e){if(!Md||!e||"object"!==o(e))return!1;try{Md.call(e);try{Wd.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Ld.call(t,(function(e){w.push(p(e,t))})),dy("Set",Md.call(t),w,s)}if(function(e){if(!qd||!e||"object"!==o(e))return!1;try{qd.call(e,qd);try{Vd.call(e,Vd)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return fy("WeakMap");if(function(e){if(!Vd||!e||"object"!==o(e))return!1;try{Vd.call(e,Vd);try{qd.call(e,qd)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return fy("WeakSet");if(function(e){return"[object Number]"===uy(e)}(t))return ly(p(Number(t)));if(function(e){return"[object BigInt]"===uy(e)}(t))return ly(p(Kd.call(t)));if(function(e){return"[object Boolean]"===uy(e)}(t))return ly(zd.call(t));if(function(e){return"[object String]"===uy(e)}(t))return ly(p(String(t)));if(!function(e){return"[object Date]"===uy(e)}(t)&&!function(e){return"[object RegExp]"===uy(e)}(t)){var S=hy(t,p);return 0===S.length?"{}":s?"{"+yy(S,s)+"}":"{ "+S.join(", ")+" }"}return String(t)},wy=gy("%TypeError%"),Sy=gy("%WeakMap%",!0),Ay=gy("%Map%",!0),xy=my("WeakMap.prototype.get",!0),Ry=my("WeakMap.prototype.set",!0),Py=my("WeakMap.prototype.has",!0),Ey=my("Map.prototype.get",!0),Oy=my("Map.prototype.set",!0),ky=my("Map.prototype.has",!0),jy=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Iy=String.prototype.replace,Ny=/%20/g,Ty="RFC3986",Fy={default:Ty,formatters:{RFC1738:function(e){return Iy.call(e,Ny,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Ty},Cy=Fy,_y=Object.prototype.hasOwnProperty,Uy=Array.isArray,Wy=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Dy=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},By={arrayToObject:Dy,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],u=Object.keys(a),c=0;c<u.length;++c){var s=u[c],p=a[s];"object"===o(p)&&null!==p&&-1===r.indexOf(p)&&(t.push({obj:a,prop:s}),r.push(p))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(Uy(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,i){if(0===e.length)return e;var a=e;if("symbol"===o(e)?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",c=0;c<a.length;++c){var s=a.charCodeAt(c);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||i===Cy.RFC1738&&(40===s||41===s)?u+=a.charAt(c):s<128?u+=Wy[s]:s<2048?u+=Wy[192|s>>6]+Wy[128|63&s]:s<55296||s>=57344?u+=Wy[224|s>>12]+Wy[128|s>>6&63]+Wy[128|63&s]:(c+=1,s=65536+((1023&s)<<10|1023&a.charCodeAt(c)),u+=Wy[240|s>>18]+Wy[128|s>>12&63]+Wy[128|s>>6&63]+Wy[128|63&s])}return u},isBuffer:function(e){return!(!e||"object"!==o(e))&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Uy(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!==o(r)){if(Uy(t))t.push(r);else{if(!t||"object"!==o(t))return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!_y.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==o(t))return[t].concat(r);var i=t;return Uy(t)&&!Uy(r)&&(i=Dy(t,n)),Uy(t)&&Uy(r)?(r.forEach((function(r,i){if(_y.call(t,i)){var a=t[i];a&&"object"===o(a)&&r&&"object"===o(r)?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return _y.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),i)}},Gy=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new wy("Side channel does not contain "+by(e))},get:function(n){if(Sy&&n&&("object"===o(n)||"function"==typeof n)){if(e)return xy(e,n)}else if(Ay){if(t)return Ey(t,n)}else if(r)return function(e,t){var r=jy(e,t);return r&&r.value}(r,n)},has:function(n){if(Sy&&n&&("object"===o(n)||"function"==typeof n)){if(e)return Py(e,n)}else if(Ay){if(t)return ky(t,n)}else if(r)return function(e,t){return!!jy(e,t)}(r,n);return!1},set:function(n,i){Sy&&n&&("object"===o(n)||"function"==typeof n)?(e||(e=new Sy),Ry(e,n,i)):Ay?(t||(t=new Ay),Oy(t,n,i)):(r||(r={key:{},next:null}),function(e,t,r){var n=jy(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,i))}};return n},My=By,Ly=Fy,qy=Object.prototype.hasOwnProperty,Vy={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},zy=Array.isArray,Hy=String.prototype.split,Jy=Array.prototype.push,$y=function(e,t){Jy.apply(e,zy(t)?t:[t])},Ky=Date.prototype.toISOString,Qy=Ly.default,Xy={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:My.encode,encodeValuesOnly:!1,format:Qy,formatter:Ly.formatters[Qy],indices:!1,serializeDate:function(e){return Ky.call(e)},skipNulls:!1,strictNullHandling:!1},Yy={},Zy=function e(t,r,n,i,a,u,c,s,p,l,f,d,y,h,v){for(var g,m=t,b=v,w=0,S=!1;void 0!==(b=b.get(Yy))&&!S;){var A=b.get(t);if(w+=1,void 0!==A){if(A===w)throw new RangeError("Cyclic object value");S=!0}void 0===b.get(Yy)&&(w=0)}if("function"==typeof c?m=c(r,m):m instanceof Date?m=l(m):"comma"===n&&zy(m)&&(m=My.maybeMap(m,(function(e){return e instanceof Date?l(e):e}))),null===m){if(i)return u&&!y?u(r,Xy.encoder,h,"key",f):r;m=""}if("string"==typeof(g=m)||"number"==typeof g||"boolean"==typeof g||"symbol"===o(g)||"bigint"==typeof g||My.isBuffer(m)){if(u){var x=y?r:u(r,Xy.encoder,h,"key",f);if("comma"===n&&y){for(var R=Hy.call(String(m),","),P="",E=0;E<R.length;++E)P+=(0===E?"":",")+d(u(R[E],Xy.encoder,h,"value",f));return[d(x)+"="+P]}return[d(x)+"="+d(u(m,Xy.encoder,h,"value",f))]}return[d(r)+"="+d(String(m))]}var O,k=[];if(void 0===m)return k;if("comma"===n&&zy(m))O=[{value:m.length>0?m.join(",")||null:void 0}];else if(zy(c))O=c;else{var j=Object.keys(m);O=s?j.sort(s):j}for(var I=0;I<O.length;++I){var N=O[I],T="object"===o(N)&&void 0!==N.value?N.value:m[N];if(!a||null!==T){var F=zy(m)?"function"==typeof n?n(r,N):r:r+(p?"."+N:"["+N+"]");v.set(t,w);var C=Gy();C.set(Yy,v),$y(k,e(T,F,n,i,a,u,c,s,p,l,f,d,y,h,C))}}return k},eh=By,th=Object.prototype.hasOwnProperty,rh=Array.isArray,nh={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:eh.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},oh=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},ih=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},ah=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,c=[];if(u){if(!r.plainObjects&&th.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var s=0;r.depth>0&&null!==(a=i.exec(o))&&s<r.depth;){if(s+=1,!r.plainObjects&&th.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),function(e,t,r,n){for(var o=n?t:ih(t,r),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,s=parseInt(c,10);r.parseArrays||""!==c?!isNaN(s)&&u!==c&&String(s)===c&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(a=[])[s]=o:"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o}(c,t,r,n)}},uh={formats:Fy,parse:function(e,t){var r=function(e){if(!e)return nh;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?nh.charset:e.charset;return{allowDots:void 0===e.allowDots?nh.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:nh.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:nh.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:nh.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:nh.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:nh.comma,decoder:"function"==typeof e.decoder?e.decoder:nh.decoder,delimiter:"string"==typeof e.delimiter||eh.isRegExp(e.delimiter)?e.delimiter:nh.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:nh.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:nh.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:nh.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:nh.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:nh.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,i),u=-1,c=t.charset;if(t.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?c="utf-8":"utf8=%26%2310003%3B"===a[r]&&(c="iso-8859-1"),u=r,r=a.length);for(r=0;r<a.length;++r)if(r!==u){var s,p,l=a[r],f=l.indexOf("]="),d=-1===f?l.indexOf("="):f+1;-1===d?(s=t.decoder(l,nh.decoder,c,"key"),p=t.strictNullHandling?null:""):(s=t.decoder(l.slice(0,d),nh.decoder,c,"key"),p=eh.maybeMap(ih(l.slice(d+1),t),(function(e){return t.decoder(e,nh.decoder,c,"value")}))),p&&t.interpretNumericEntities&&"iso-8859-1"===c&&(p=oh(p)),l.indexOf("[]=")>-1&&(p=rh(p)?[p]:p),th.call(n,s)?n[s]=eh.combine(n[s],p):n[s]=p}return n}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var u=i[a],c=ah(u,n[u],r,"string"==typeof e);o=eh.merge(o,c,r)}return!0===r.allowSparse?o:eh.compact(o)},stringify:function(e,t){var r,n=e,i=function(e){if(!e)return Xy;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Xy.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Ly.default;if(void 0!==e.format){if(!qy.call(Ly.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=Ly.formatters[r],o=Xy.filter;return("function"==typeof e.filter||zy(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Xy.addQueryPrefix,allowDots:void 0===e.allowDots?Xy.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Xy.charsetSentinel,delimiter:void 0===e.delimiter?Xy.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Xy.encode,encoder:"function"==typeof e.encoder?e.encoder:Xy.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Xy.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Xy.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Xy.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Xy.strictNullHandling}}(t);"function"==typeof i.filter?n=(0,i.filter)("",n):zy(i.filter)&&(r=i.filter);var a,u=[];if("object"!==o(n)||null===n)return"";a=t&&t.arrayFormat in Vy?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var c=Vy[a];r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var s=Gy(),p=0;p<r.length;++p){var l=r[p];i.skipNulls&&null===n[l]||$y(u,Zy(n[l],l,c,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,s))}var f=u.join(i.delimiter),d=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),f.length>0?d+f:""}},ch="function"==typeof btoa,sh="function"==typeof Buffer,ph=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),lh=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),fh=(vy={},lh.forEach((function(e,t){return vy[e]=t})),String.fromCharCode.bind(String)),dh=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))}),yh=function(e){for(var t,r,n,o,i="",a=e.length%3,u=0;u<e.length;){if((r=e.charCodeAt(u++))>255||(n=e.charCodeAt(u++))>255||(o=e.charCodeAt(u++))>255)throw new TypeError("invalid character found");i+=lh[(t=r<<16|n<<8|o)>>18&63]+lh[t>>12&63]+lh[t>>6&63]+lh[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},hh=ch?function(e){return btoa(e)}:sh?function(e){return Buffer.from(e,"binary").toString("base64")}:yh,vh=sh?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=[],r=0,n=e.length;r<n;r+=4096)t.push(fh.apply(null,e.subarray(r,r+4096)));return hh(t.join(""))},gh=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?fh(192|t>>>6)+fh(128|63&t):fh(224|t>>>12&15)+fh(128|t>>>6&63)+fh(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fh(240|t>>>18&7)+fh(128|t>>>12&63)+fh(128|t>>>6&63)+fh(128|63&t)},mh=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,bh=function(e){return e.replace(mh,gh)},wh=sh?function(e){return Buffer.from(e,"utf8").toString("base64")}:ph?function(e){return vh(ph.encode(e))}:function(e){return hh(bh(e))},Sh=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?dh(wh(e)):wh(e)},Ah=Sh,xh=function(){function e(t){var r=t.baseUrl,n=t.auth,o=t.basicAuth,i=t.clientCertAuth,a=t.proxy,c=t.userAgent;u(this,e),this.baseUrl=r,this.auth=n,this.headers=this.buildHeaders({basicAuth:o,userAgent:c}),this.clientCertAuth=i,this.proxy=a,this.requestToken=null}var r,o,i;return s(e,[{key:"build",value:(i=a(regeneratorRuntime.mark((function e(r,o,i,a){var u,c,s,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=n(n(n({method:r,headers:this.headers,url:"".concat(this.baseUrl).concat(o)},a||{}),t.buildPlatformDependentConfig({clientCertAuth:this.clientCertAuth})),{},{proxy:this.proxy}),e.t0=r,e.next="get"===e.t0?4:"post"===e.t0?16:"put"===e.t0?29:"delete"===e.t0?37:44;break;case 4:if(!((c=this.buildRequestUrl(o,i)).length>4096)){e.next=15;break}return e.t1=n,e.t2=n({},u),e.t3={},e.t4=n(n({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),e.next=12,this.buildData(i);case 12:return e.t5=e.sent,e.t6={method:"post",headers:e.t4,data:e.t5},e.abrupt("return",(0,e.t1)(e.t2,e.t3,e.t6));case 15:return e.abrupt("return",n(n({},u),{},{url:c}));case 16:if(!(i instanceof Qs)){e.next=21;break}return e.next=19,this.buildData(i);case 19:return s=e.sent,e.abrupt("return",n(n({},u),{},{headers:"function"==typeof s.getHeaders?n(n({},this.headers),s.getHeaders()):this.headers,data:s}));case 21:return e.t7=n,e.t8=n({},u),e.t9={},e.next=26,this.buildData(i);case 26:return e.t10=e.sent,e.t11={data:e.t10},e.abrupt("return",(0,e.t7)(e.t8,e.t9,e.t11));case 29:return e.t12=n,e.t13=n({},u),e.t14={},e.next=34,this.buildData(i);case 34:return e.t15=e.sent,e.t16={data:e.t15},e.abrupt("return",(0,e.t12)(e.t13,e.t14,e.t16));case 37:return e.t17=this,e.t18=o,e.next=41,this.buildData(i);case 41:return e.t19=e.sent,p=e.t17.buildRequestUrl.call(e.t17,e.t18,e.t19),e.abrupt("return",n(n({},u),{},{url:p}));case 44:throw new Error("".concat(r," method is not supported"));case 45:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return i.apply(this,arguments)})},{key:"buildRequestUrl",value:function(e,t){return"".concat(this.baseUrl).concat(e,"?").concat(uh.stringify(t))}},{key:"buildData",value:(o=a(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("session"!==this.auth.type){e.next=8;break}return e.next=3,this.getRequestToken();case 3:if(r=e.sent,!(t instanceof Qs)){e.next=7;break}return t.append("__REQUEST_TOKEN__",r),e.abrupt("return",t);case 7:return e.abrupt("return",n({__REQUEST_TOKEN__:r},t));case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"buildHeaders",value:function(e){var r=e.basicAuth,o=e.userAgent,i=r?{Authorization:"Basic ".concat(Ah("".concat(r.username,":").concat(r.password)))}:{},a=n(n({},t.buildHeaders({userAgent:o})),i);switch(this.auth.type){case"password":return n(n({},a),{},{"X-Cybozu-Authorization":Ah("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":var u=this.auth.apiToken;return Array.isArray(u)?n(n({},a),{},{"X-Cybozu-API-Token":u.join(",")}):n(n({},a),{},{"X-Cybozu-API-Token":u});case"oAuthToken":return n(n({},a),{},{Authorization:"Bearer ".concat(this.auth.oAuthToken)});default:return n(n({},a),{},{"X-Requested-With":"XMLHttpRequest"})}}},{key:"getRequestToken",value:(r=a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this.requestToken){e.next=4;break}return e.next=3,t.getRequestToken();case 3:this.requestToken=e.sent;case 4:return e.abrupt("return",this.requestToken);case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]),e}(),Rh=J,Ph=hr.exports,Eh=Date.prototype,Oh="Invalid Date",kh="toString",jh=Rh(Eh.toString),Ih=Rh(Eh.getTime);String(new Date(NaN))!=Oh&&Ph(Eh,kh,(function(){var e=Ih(this);return e==e?jh(this):Oh}));var Nh=C,Th=ot,Fh=ve,Ch=Ua,_h=RegExp.prototype,Uh=tn.PROPER,Wh=hr.exports,Dh=er,Bh=Ca,Gh=j,Mh=function(e){var t=e.flags;return void 0!==t||"flags"in _h||Th(e,"flags")||!Fh(_h,e)?t:Nh(Ch,e)},Lh="toString",qh=RegExp.prototype.toString,Vh=Gh((function(){return"/a/b"!=qh.call({source:"a",flags:"b"})})),zh=Uh&&qh.name!=Lh;(Vh||zh)&&Wh(RegExp.prototype,Lh,(function(){var e=Dh(this);return"/"+Bh(e.source)+"/"+Bh(Mh(e))}),{unsafe:!0});var Hh,Jh=function(e){l(r,e);var t=w(r);function r(e){var n;return u(this,r),(n=t.call(this,e)).name="KintoneAbortSearchError",n.message=e,Object.setPrototypeOf(m(n),r.prototype),n}return s(r)}(v(Error)),$h=function(e){l(r,e);var t=w(r);function r(e){var n;u(this,r);var o=r.buildErrorResponseDateWithIndex(e),i=o.data,a=o.bulkRequestIndex;return(n=t.call(this,i.message)).name="KintoneRestAPIError",n.id=i.id,n.code=i.code,n.errors=i.errors,n.status=e.status,n.bulkRequestIndex=a,n.headers=e.headers,n.message="[".concat(e.status,"] [").concat(n.code,"] ").concat(n.message," (").concat(n.id,")"),Error.captureStackTrace&&Error.captureStackTrace(m(n),r),Object.setPrototypeOf(m(n),r.prototype),n}return s(r,null,[{key:"findErrorResponseDataWithIndex",value:function(e){for(var t=0;t<e.length;t++){if(0!==Object.keys(e[t]).length)return{data:e[t],bulkRequestIndex:t}}throw Error("Missing response data in `results`. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.")}},{key:"buildErrorResponseDateWithIndex",value:function(e){return"results"in e.data?r.findErrorResponseDataWithIndex(e.data.results):{data:e.data}}}]),r}(v(Error)),Kh=["data"],Qh=function(){function e(t){var r=t.enableAbortSearchError;u(this,e),this.enableAbortSearchError=r}return s(e,[{key:"handle",value:function(e){var t=this;return e.then((function(e){return t.handleSuccessResponse(e)}),(function(e){return t.handleErrorResponse(e)}))}},{key:"handleSuccessResponse",value:function(e){if(this.enableAbortSearchError&&/Filter aborted because of too many search results/.test(e.headers["x-cybozu-warning"]))throw new Jh(e.headers["x-cybozu-warning"]);return e.data}},{key:"handleErrorResponse",value:function(e){if(!e.response){if(/mac verify failure/.test(e.toString()))throw new Error("invalid clientCertAuth setting");throw e}var t=e.response,r=t.data,o=g(t,Kh);if("string"==typeof r)throw new Error("".concat(o.status,": ").concat(o.statusText));throw new $h(n({data:r},o))}}]),e}(),Xh=function(e){if("username"in e)return n({type:"password"},e);if("apiToken"in e)return n({type:"apiToken"},e);if("oAuthToken"in e)return n({type:"oAuthToken"},e);try{return t.getDefaultAuth()}catch(e){if(e instanceof Wi)throw new Error("session authentication is not supported in ".concat(e.platform," environment."));throw e}},Yh=function(){function e(){var r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),Zh(a),this.baseUrl=t.buildBaseUrl(a.baseUrl);var c=Xh(null!==(r=a.auth)&&void 0!==r?r:{}),s=new xh(n(n({},a),{},{baseUrl:this.baseUrl,auth:c})),p=new Qh({enableAbortSearchError:null!==(o=null===(i=a.featureFlags)||void 0===i?void 0:i.enableAbortSearchError)&&void 0!==o&&o}),l=new hf({responseHandler:p,requestConfigBuilder:s}),f=a.guestSpaceId;this.bulkRequest_=new ea(l,f),this.record=new Ks(l,this.bulkRequest_,f),this.app=new ha(l,f),this.file=new Xs(l,f)}return s(e,[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(e){return this.bulkRequest_.send(e)}}],[{key:"version",get:function(){return t.getVersion()}}]),e}(),Zh=function(e){ev(e.guestSpaceId)},ev=function(e){if(""===e||null===e)throw new Error("invalid guestSpaceId: got [".concat(e,"]"))};(Hh=Bi).readFileFromPath&&(t.readFileFromPath=Hh.readFileFromPath),Hh.getRequestToken&&(t.getRequestToken=Hh.getRequestToken),Hh.getDefaultAuth&&(t.getDefaultAuth=Hh.getDefaultAuth),Hh.buildPlatformDependentConfig&&(t.buildPlatformDependentConfig=Hh.buildPlatformDependentConfig),Hh.buildHeaders&&(t.buildHeaders=Hh.buildHeaders),Hh.buildFormDataValue&&(t.buildFormDataValue=Hh.buildFormDataValue),Hh.buildBaseUrl&&(t.buildBaseUrl=Hh.buildBaseUrl),Hh.getVersion&&(t.getVersion=Hh.getVersion),e.KintoneAbortSearchError=Jh,e.KintoneAllRecordsError=Vs,e.KintoneRestAPIClient=Yh,e.KintoneRestAPIError=$h,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).window=t.window||{})}(this,(function(t){"use strict";var e={readFileFromPath:function(){throw new Error("not implemented")},getRequestToken:function(){throw new Error("not implemented")},getDefaultAuth:function(){throw new Error("not implemented")},buildPlatformDependentConfig:function(){throw new Error("not implemented")},buildHeaders:function(){throw new Error("not implemented")},buildFormDataValue:function(){throw new Error("not implemented")},buildBaseUrl:function(){throw new Error("not implemented")},getVersion:function(){throw new Error("not implemented")}};function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(){
|
|
2
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
3
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
4
|
+
o=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",u=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),a=new R(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var p={};function l(){}function h(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(P([])));g&&g!==e&&r.call(g,i)&&(y=g);var b=d.prototype=l.prototype=Object.create(y);function m(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,i,a,u){var s=f(t[o],t,i);if("throw"!==s.type){var c=s.arg,p=c.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(p).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function A(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,s(b,"constructor",d),s(d,"constructor",h),h.displayName=s(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},m(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(b),s(b,u,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=P,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){a(i,n,o,u,s,"next",t)}function s(t){a(i,n,o,u,s,"throw",t)}u(void 0)}))}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function v(t,e,r){return(v=y()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&d(o,r.prototype),o}).apply(null,arguments)}function g(t){var e="function"==typeof Map?new Map:void 0;return(g=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return v(t,arguments,h(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,t)})(t)}function b(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}function A(t){var e=y();return function(){var r,n=h(t);if(e){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return w(this,r)}}function S(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function P(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function O(t){var e=t.default;if("function"==typeof e){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}var x=function(t){return t&&t.Math==Math&&t},k=x("object"==("undefined"==typeof globalThis?"undefined":i(globalThis))&&globalThis)||x("object"==("undefined"==typeof window?"undefined":i(window))&&window)||x("object"==("undefined"==typeof self?"undefined":i(self))&&self)||x("object"==i(R)&&R)||function(){return this}()||Function("return this")(),I={},j=function(t){try{return!!t()}catch(t){return!0}},T=!j((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),N=!j((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),_=N,C=Function.prototype.call,U=_?C.bind(C):function(){return C.apply(C,arguments)},F={},B={}.propertyIsEnumerable,D=Object.getOwnPropertyDescriptor,L=D&&!B.call({1:2},1);F.f=L?function(t){var e=D(this,t);return!!e&&e.enumerable}:B;var M,W,G=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},q=N,z=Function.prototype,V=z.bind,Y=z.call,H=q&&V.bind(Y,Y),$=q?function(t){return t&&H(t)}:function(t){return t&&function(){return Y.apply(t,arguments)}},J=$,K=J({}.toString),Q=J("".slice),X=function(t){return Q(K(t),8,-1)},Z=$,tt=j,et=X,rt=k.Object,nt=Z("".split),ot=tt((function(){return!rt("z").propertyIsEnumerable(0)}))?function(t){return"String"==et(t)?nt(t,""):rt(t)}:rt,it=k.TypeError,at=function(t){if(null==t)throw it("Can't call method on "+t);return t},ut=ot,st=at,ct=function(t){return ut(st(t))},ft=function(t){return"function"==typeof t},pt=ft,lt=function(t){return"object"==i(t)?null!==t:pt(t)},ht=k,dt=ft,yt=function(t){return dt(t)?t:void 0},vt=function(t,e){return arguments.length<2?yt(ht[t]):ht[t]&&ht[t][e]},gt=$({}.isPrototypeOf),bt=k,mt=vt("navigator","userAgent")||"",wt=bt.process,At=bt.Deno,St=wt&&wt.versions||At&&At.version,Et=St&&St.v8;Et&&(W=(M=Et.split("."))[0]>0&&M[0]<4?1:+(M[0]+M[1])),!W&&mt&&(!(M=mt.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=mt.match(/Chrome\/(\d+)/))&&(W=+M[1]);var Rt=W,Pt=Rt,Ot=j,xt=!!Object.getOwnPropertySymbols&&!Ot((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Pt&&Pt<41})),kt=xt&&!Symbol.sham&&"symbol"==i(Symbol.iterator),It=vt,jt=ft,Tt=gt,Nt=kt,_t=k.Object,Ct=Nt?function(t){return"symbol"==i(t)}:function(t){var e=It("Symbol");return jt(e)&&Tt(e.prototype,_t(t))},Ut=k.String,Ft=ft,Bt=function(t){try{return Ut(t)}catch(t){return"Object"}},Dt=k.TypeError,Lt=function(t){if(Ft(t))return t;throw Dt(Bt(t)+" is not a function")},Mt=Lt,Wt=function(t,e){var r=t[e];return null==r?void 0:Mt(r)},Gt=U,qt=ft,zt=lt,Vt=k.TypeError,Yt={exports:{}},Ht=k,$t=Object.defineProperty,Jt=function(t,e){try{$t(Ht,t,{value:e,configurable:!0,writable:!0})}catch(r){Ht[t]=e}return e},Kt=Jt,Qt="__core-js_shared__",Xt=k[Qt]||Kt(Qt,{}),Zt=Xt;(Yt.exports=function(t,e){return Zt[t]||(Zt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.7",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.7/LICENSE",source:"https://github.com/zloirock/core-js"});var te=at,ee=k.Object,re=function(t){return ee(te(t))},ne=re,oe=$({}.hasOwnProperty),ie=Object.hasOwn||function(t,e){return oe(ne(t),e)},ae=$,ue=0,se=Math.random(),ce=ae(1..toString),fe=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ce(++ue+se,36)},pe=k,le=Yt.exports,he=ie,de=fe,ye=xt,ve=kt,ge=le("wks"),be=pe.Symbol,me=be&&be.for,we=ve?be:be&&be.withoutSetter||de,Ae=function(t){if(!he(ge,t)||!ye&&"string"!=typeof ge[t]){var e="Symbol."+t;ye&&he(be,t)?ge[t]=be[t]:ge[t]=ve&&me?me(e):we(e)}return ge[t]},Se=U,Ee=lt,Re=Ct,Pe=Wt,Oe=function(t,e){var r,n;if("string"===e&&qt(r=t.toString)&&!zt(n=Gt(r,t)))return n;if(qt(r=t.valueOf)&&!zt(n=Gt(r,t)))return n;if("string"!==e&&qt(r=t.toString)&&!zt(n=Gt(r,t)))return n;throw Vt("Can't convert object to primitive value")},xe=Ae,ke=k.TypeError,Ie=xe("toPrimitive"),je=function(t,e){if(!Ee(t)||Re(t))return t;var r,n=Pe(t,Ie);if(n){if(void 0===e&&(e="default"),r=Se(n,t,e),!Ee(r)||Re(r))return r;throw ke("Can't convert object to primitive value")}return void 0===e&&(e="number"),Oe(t,e)},Te=je,Ne=Ct,_e=function(t){var e=Te(t,"string");return Ne(e)?e:e+""},Ce=lt,Ue=k.document,Fe=Ce(Ue)&&Ce(Ue.createElement),Be=function(t){return Fe?Ue.createElement(t):{}},De=Be,Le=!T&&!j((function(){return 7!=Object.defineProperty(De("div"),"a",{get:function(){return 7}}).a})),Me=T,We=U,Ge=F,qe=G,ze=ct,Ve=_e,Ye=ie,He=Le,$e=Object.getOwnPropertyDescriptor;I.f=Me?$e:function(t,e){if(t=ze(t),e=Ve(e),He)try{return $e(t,e)}catch(t){}if(Ye(t,e))return qe(!We(Ge.f,t,e),t[e])};var Je={},Ke=T&&j((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qe=k,Xe=lt,Ze=Qe.String,tr=Qe.TypeError,er=function(t){if(Xe(t))return t;throw tr(Ze(t)+" is not an object")},rr=T,nr=Le,or=Ke,ir=er,ar=_e,ur=k.TypeError,sr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,fr="enumerable",pr="configurable",lr="writable";Je.f=rr?or?function(t,e,r){if(ir(t),e=ar(e),ir(r),"function"==typeof t&&"prototype"===e&&"value"in r&&lr in r&&!r.writable){var n=cr(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:pr in r?r.configurable:n.configurable,enumerable:fr in r?r.enumerable:n.enumerable,writable:!1})}return sr(t,e,r)}:sr:function(t,e,r){if(ir(t),e=ar(e),ir(r),nr)try{return sr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw ur("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var hr=Je,dr=G,yr=T?function(t,e,r){return hr.f(t,e,dr(1,r))}:function(t,e,r){return t[e]=r,t},vr={exports:{}},gr=T,br=ie,mr=Function.prototype,wr=gr&&Object.getOwnPropertyDescriptor,Ar=br(mr,"name"),Sr={EXISTS:Ar,PROPER:Ar&&"something"===function(){}.name,CONFIGURABLE:Ar&&(!gr||gr&&wr(mr,"name").configurable)},Er=ft,Rr=Xt,Pr=$(Function.toString);Er(Rr.inspectSource)||(Rr.inspectSource=function(t){return Pr(t)});var Or,xr,kr,Ir=Rr.inspectSource,jr=ft,Tr=Ir,Nr=k.WeakMap,_r=jr(Nr)&&/native code/.test(Tr(Nr)),Cr=Yt.exports,Ur=fe,Fr=Cr("keys"),Br=function(t){return Fr[t]||(Fr[t]=Ur(t))},Dr={},Lr=_r,Mr=k,Wr=$,Gr=lt,qr=yr,zr=ie,Vr=Xt,Yr=Br,Hr=Dr,$r="Object already initialized",Jr=Mr.TypeError,Kr=Mr.WeakMap;if(Lr||Vr.state){var Qr=Vr.state||(Vr.state=new Kr),Xr=Wr(Qr.get),Zr=Wr(Qr.has),tn=Wr(Qr.set);Or=function(t,e){if(Zr(Qr,t))throw new Jr($r);return e.facade=t,tn(Qr,t,e),e},xr=function(t){return Xr(Qr,t)||{}},kr=function(t){return Zr(Qr,t)}}else{var en=Yr("state");Hr[en]=!0,Or=function(t,e){if(zr(t,en))throw new Jr($r);return e.facade=t,qr(t,en,e),e},xr=function(t){return zr(t,en)?t[en]:{}},kr=function(t){return zr(t,en)}}var rn={set:Or,get:xr,has:kr,enforce:function(t){return kr(t)?xr(t):Or(t,{})},getterFor:function(t){return function(e){var r;if(!Gr(e)||(r=xr(e)).type!==t)throw Jr("Incompatible receiver, "+t+" required");return r}}},nn=j,on=ft,an=ie,un=T,sn=Sr.CONFIGURABLE,cn=Ir,fn=rn.enforce,pn=rn.get,ln=Object.defineProperty,hn=un&&!nn((function(){return 8!==ln((function(){}),"length",{value:8}).length})),dn=String(String).split("String"),yn=vr.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!an(t,"name")||sn&&t.name!==e)&&ln(t,"name",{value:e,configurable:!0}),hn&&r&&an(r,"arity")&&t.length!==r.arity&&ln(t,"length",{value:r.arity});try{r&&an(r,"constructor")&&r.constructor?un&&ln(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=fn(t);return an(n,"source")||(n.source=dn.join("string"==typeof e?e:"")),t};Function.prototype.toString=yn((function(){return on(this)&&pn(this).source||cn(this)}),"toString");var vn=ft,gn=yr,bn=vr.exports,mn=Jt,wn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;return vn(r)&&bn(r,i,n),n.global?o?t[e]=r:mn(e,r):(n.unsafe?t[e]&&(o=!0):delete t[e],o?t[e]=r:gn(t,e,r)),t},An={},Sn=Math.ceil,En=Math.floor,Rn=Math.trunc||function(t){var e=+t;return(e>0?En:Sn)(e)},Pn=function(t){var e=+t;return e!=e||0===e?0:Rn(e)},On=Pn,xn=Math.max,kn=Math.min,In=function(t,e){var r=On(t);return r<0?xn(r+e,0):kn(r,e)},jn=Pn,Tn=Math.min,Nn=function(t){return t>0?Tn(jn(t),9007199254740991):0},_n=Nn,Cn=function(t){return _n(t.length)},Un=ct,Fn=In,Bn=Cn,Dn=function(t){return function(e,r,n){var o,i=Un(e),a=Bn(i),u=Fn(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Ln={includes:Dn(!0),indexOf:Dn(!1)},Mn=ie,Wn=ct,Gn=Ln.indexOf,qn=Dr,zn=$([].push),Vn=function(t,e){var r,n=Wn(t),o=0,i=[];for(r in n)!Mn(qn,r)&&Mn(n,r)&&zn(i,r);for(;e.length>o;)Mn(n,r=e[o++])&&(~Gn(i,r)||zn(i,r));return i},Yn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Hn=Vn,$n=Yn.concat("length","prototype");An.f=Object.getOwnPropertyNames||function(t){return Hn(t,$n)};var Jn={};Jn.f=Object.getOwnPropertySymbols;var Kn=vt,Qn=An,Xn=Jn,Zn=er,to=$([].concat),eo=Kn("Reflect","ownKeys")||function(t){var e=Qn.f(Zn(t)),r=Xn.f;return r?to(e,r(t)):e},ro=ie,no=eo,oo=I,io=Je,ao=j,uo=ft,so=/#|\.prototype\./,co=function(t,e){var r=po[fo(t)];return r==ho||r!=lo&&(uo(e)?ao(e):!!e)},fo=co.normalize=function(t){return String(t).replace(so,".").toLowerCase()},po=co.data={},lo=co.NATIVE="N",ho=co.POLYFILL="P",yo=co,vo=k,go=I.f,bo=yr,mo=wn,wo=Jt,Ao=function(t,e,r){for(var n=no(e),o=io.f,i=oo.f,a=0;a<n.length;a++){var u=n[a];ro(t,u)||r&&ro(r,u)||o(t,u,i(e,u))}},So=yo,Eo=function(t,e){var r,n,o,a,u,s=t.target,c=t.global,f=t.stat;if(r=c?vo:f?vo[s]||wo(s,{}):(vo[s]||{}).prototype)for(n in e){if(a=e[n],o=t.dontCallGetSet?(u=go(r,n))&&u.value:r[n],!So(c?n:s+(f?".":"#")+n,t.forced)&&void 0!==o){if(i(a)==i(o))continue;Ao(a,o)}(t.sham||o&&o.sham)&&bo(a,"sham",!0),mo(r,n,a,t)}},Ro=X,Po=Array.isArray||function(t){return"Array"==Ro(t)},Oo=_e,xo=Je,ko=G,Io=function(t,e,r){var n=Oo(e);n in t?xo.f(t,n,ko(0,r)):t[n]=r},jo={};jo[Ae("toStringTag")]="z";var To="[object z]"===String(jo),No=k,_o=To,Co=ft,Uo=X,Fo=Ae("toStringTag"),Bo=No.Object,Do="Arguments"==Uo(function(){return arguments}()),Lo=_o?Uo:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Bo(t),Fo))?r:Do?Uo(e):"Object"==(n=Uo(e))&&Co(e.callee)?"Arguments":n},Mo=$,Wo=j,Go=ft,qo=Lo,zo=Ir,Vo=function(){},Yo=[],Ho=vt("Reflect","construct"),$o=/^\s*(?:class|function)\b/,Jo=Mo($o.exec),Ko=!$o.exec(Vo),Qo=function(t){if(!Go(t))return!1;try{return Ho(Vo,Yo,t),!0}catch(t){return!1}},Xo=function(t){if(!Go(t))return!1;switch(qo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ko||!!Jo($o,zo(t))}catch(t){return!0}};Xo.sham=!0;var Zo=!Ho||Wo((function(){var t;return Qo(Qo.call)||!Qo(Object)||!Qo((function(){t=!0}))||t}))?Xo:Qo,ti=k,ei=Po,ri=Zo,ni=lt,oi=Ae("species"),ii=ti.Array,ai=function(t){var e;return ei(t)&&(e=t.constructor,(ri(e)&&(e===ii||ei(e.prototype))||ni(e)&&null===(e=e[oi]))&&(e=void 0)),void 0===e?ii:e},ui=function(t,e){return new(ai(t))(0===e?0:e)},si=j,ci=Rt,fi=Ae("species"),pi=function(t){return ci>=51||!si((function(){var e=[];return(e.constructor={})[fi]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},li=Eo,hi=k,di=j,yi=Po,vi=lt,gi=re,bi=Cn,mi=Io,wi=ui,Ai=pi,Si=Rt,Ei=Ae("isConcatSpreadable"),Ri=9007199254740991,Pi="Maximum allowed index exceeded",Oi=hi.TypeError,xi=Si>=51||!di((function(){var t=[];return t[Ei]=!1,t.concat()[0]!==t})),ki=Ai("concat"),Ii=function(t){if(!vi(t))return!1;var e=t[Ei];return void 0!==e?!!e:yi(t)};li({target:"Array",proto:!0,arity:1,forced:!xi||!ki},{concat:function(t){var e,r,n,o,i,a=gi(this),u=wi(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(Ii(i=-1===e?a:arguments[e])){if(s+(o=bi(i))>Ri)throw Oi(Pi);for(r=0;r<o;r++,s++)r in i&&mi(u,s,i[r])}else{if(s>=Ri)throw Oi(Pi);mi(u,s++,i)}return u.length=s,u}});var ji=T,Ti=Sr.EXISTS,Ni=$,_i=Je.f,Ci=Function.prototype,Ui=Ni(Ci.toString),Fi=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Bi=Ni(Fi.exec);ji&&!Ti&&_i(Ci,"name",{configurable:!0,get:function(){try{return Bi(Fi,Ui(this))[1]}catch(t){return""}}});var Di=k,Li=ft,Mi=Di.String,Wi=Di.TypeError,Gi=$,qi=er,zi=function(t){if("object"==i(t)||Li(t))return t;throw Wi("Can't set "+Mi(t)+" as a prototype")},Vi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Gi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return qi(r),zi(n),e?t(r,n):r.__proto__=n,r}}():void 0);Eo({target:"Object",stat:!0},{setPrototypeOf:Vi});var Yi=function(t){l(r,t);var e=A(r);function r(t){var n;s(this,r);var o="This function is not supported in ".concat(t," environment");return n=e.call(this,o),Error.captureStackTrace&&Error.captureStackTrace(m(n),r),n.name="UnsupportedPlatformError",n.platform=t,Object.setPrototypeOf(m(n),r.prototype),n}return f(r)}(g(Error)),Hi=function(){var t=u(o().mark((function t(){var e,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("object"!==("undefined"==typeof kintone?"undefined":i(kintone))||null===kintone||"function"!=typeof kintone.getRequestToken){t.next=2;break}return t.abrupt("return",kintone.getRequestToken());case 2:if("object"!==("undefined"==typeof garoon?"undefined":i(garoon))||null===garoon||"function"!=typeof(null===(e=garoon.connect)||void 0===e||null===(r=e.kintone)||void 0===r?void 0:r.getRequestToken)){t.next=4;break}return t.abrupt("return",garoon.connect.kintone.getRequestToken());case 4:throw new Error("session authentication must specify a request token");case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),$i=Object.freeze({__proto__:null,readFileFromPath:function(t){throw new Yi("Browser")},getRequestToken:Hi,getDefaultAuth:function(){return{type:"session"}},buildPlatformDependentConfig:function(){return{}},buildHeaders:function(){return{}},buildFormDataValue:function(t){return new Blob([t])},buildBaseUrl:function(t){if(t)return t;var e=location,r=e.host,n=e.protocol;return"".concat(n,"//").concat(r)},getVersion:function(){return"3.1.1"}}),Ji=Lo,Ki=k.String,Qi=function(t){if("Symbol"===Ji(t))throw TypeError("Cannot convert a Symbol value to a string");return Ki(t)},Xi=er,Zi=function(){var t=Xi(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ta=j,ea=k.RegExp,ra=ta((function(){var t=ea("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),na=ra||ta((function(){return!ea("a","y").sticky})),oa={BROKEN_CARET:ra||ta((function(){var t=ea("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:na,UNSUPPORTED_Y:ra},ia={},aa=Vn,ua=Yn,sa=Object.keys||function(t){return aa(t,ua)},ca=T,fa=Ke,pa=Je,la=er,ha=ct,da=sa;ia.f=ca&&!fa?Object.defineProperties:function(t,e){la(t);for(var r,n=ha(e),o=da(e),i=o.length,a=0;i>a;)pa.f(t,r=o[a++],n[r]);return t};var ya,va=vt("document","documentElement"),ga=er,ba=ia,ma=Yn,wa=Dr,Aa=va,Sa=Be,Ea=Br("IE_PROTO"),Ra=function(){},Pa=function(t){return"<script>"+t+"</"+"script>"},Oa=function(t){t.write(Pa("")),t.close();var e=t.parentWindow.Object;return t=null,e},xa=function(){try{ya=new ActiveXObject("htmlfile")}catch(t){}var t,e;xa="undefined"!=typeof document?document.domain&&ya?Oa(ya):((e=Sa("iframe")).style.display="none",Aa.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Pa("document.F=Object")),t.close(),t.F):Oa(ya);for(var r=ma.length;r--;)delete xa.prototype[ma[r]];return xa()};wa[Ea]=!0;var ka,Ia,ja=Object.create||function(t,e){var r;return null!==t?(Ra.prototype=ga(t),r=new Ra,Ra.prototype=null,r[Ea]=t):r=xa(),void 0===e?r:ba.f(r,e)},Ta=j,Na=k.RegExp,_a=Ta((function(){var t=Na(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Ca=j,Ua=k.RegExp,Fa=Ca((function(){var t=Ua("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Ba=U,Da=$,La=Qi,Ma=Zi,Wa=oa,Ga=Yt.exports,qa=ja,za=rn.get,Va=_a,Ya=Fa,Ha=Ga("native-string-replace",String.prototype.replace),$a=RegExp.prototype.exec,Ja=$a,Ka=Da("".charAt),Qa=Da("".indexOf),Xa=Da("".replace),Za=Da("".slice),tu=(Ia=/b*/g,Ba($a,ka=/a/,"a"),Ba($a,Ia,"a"),0!==ka.lastIndex||0!==Ia.lastIndex),eu=Wa.BROKEN_CARET,ru=void 0!==/()??/.exec("")[1];(tu||ru||eu||Va||Ya)&&(Ja=function(t){var e,r,n,o,i,a,u,s=this,c=za(s),f=La(t),p=c.raw;if(p)return p.lastIndex=s.lastIndex,e=Ba(Ja,p,f),s.lastIndex=p.lastIndex,e;var l=c.groups,h=eu&&s.sticky,d=Ba(Ma,s),y=s.source,v=0,g=f;if(h&&(d=Xa(d,"y",""),-1===Qa(d,"g")&&(d+="g"),g=Za(f,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Ka(f,s.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,v++),r=new RegExp("^(?:"+y+")",d)),ru&&(r=new RegExp("^"+y+"$(?!\\s)",d)),tu&&(n=s.lastIndex),o=Ba($a,h?r:s,g),h?o?(o.input=Za(o.input,v),o[0]=Za(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:tu&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),ru&&o&&o.length>1&&Ba(Ha,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&l)for(o.groups=a=qa(null),i=0;i<l.length;i++)a[(u=l[i])[0]]=o[u[1]];return o});var nu=Ja;Eo({target:"RegExp",proto:!0,forced:/./.exec!==nu},{exec:nu});var ou=N,iu=Function.prototype,au=iu.apply,uu=iu.call,su="object"==("undefined"==typeof Reflect?"undefined":i(Reflect))&&Reflect.apply||(ou?uu.bind(au):function(){return uu.apply(au,arguments)}),cu=$,fu=wn,pu=nu,lu=j,hu=Ae,du=yr,yu=hu("species"),vu=RegExp.prototype,gu=function(t,e,r,n){var o=hu(t),i=!lu((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!lu((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[yu]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=cu(/./[o]),s=e(o,""[t],(function(t,e,r,n,o){var a=cu(t),s=e.exec;return s===pu||s===vu.exec?i&&!o?{done:!0,value:u(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));fu(String.prototype,t,s[0]),fu(vu,o,s[1])}n&&du(vu[o],"sham",!0)},bu=$,mu=Pn,wu=Qi,Au=at,Su=bu("".charAt),Eu=bu("".charCodeAt),Ru=bu("".slice),Pu=function(t){return function(e,r){var n,o,i=wu(Au(e)),a=mu(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Eu(i,a))<55296||n>56319||a+1===u||(o=Eu(i,a+1))<56320||o>57343?t?Su(i,a):n:t?Ru(i,a,a+2):o-56320+(n-55296<<10)+65536}},Ou={codeAt:Pu(!1),charAt:Pu(!0)}.charAt,xu=function(t,e,r){return e+(r?Ou(t,e).length:1)},ku=$,Iu=re,ju=Math.floor,Tu=ku("".charAt),Nu=ku("".replace),_u=ku("".slice),Cu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Uu=/\$([$&'`]|\d{1,2})/g,Fu=U,Bu=er,Du=ft,Lu=X,Mu=nu,Wu=k.TypeError,Gu=function(t,e){var r=t.exec;if(Du(r)){var n=Fu(r,t,e);return null!==n&&Bu(n),n}if("RegExp"===Lu(t))return Fu(Mu,t,e);throw Wu("RegExp#exec called on incompatible receiver")},qu=su,zu=U,Vu=$,Yu=gu,Hu=j,$u=er,Ju=ft,Ku=Pn,Qu=Nn,Xu=Qi,Zu=at,ts=xu,es=Wt,rs=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Uu;return void 0!==o&&(o=Iu(o),s=Cu),Nu(i,s,(function(i,s){var c;switch(Tu(s,0)){case"$":return"$";case"&":return t;case"`":return _u(e,0,r);case"'":return _u(e,a);case"<":c=o[_u(s,1,-1)];break;default:var f=+s;if(0===f)return i;if(f>u){var p=ju(f/10);return 0===p?i:p<=u?void 0===n[p-1]?Tu(s,1):n[p-1]+Tu(s,1):i}c=n[f-1]}return void 0===c?"":c}))},ns=Gu,os=Ae("replace"),is=Math.max,as=Math.min,us=Vu([].concat),ss=Vu([].push),cs=Vu("".indexOf),fs=Vu("".slice),ps="$0"==="a".replace(/./,"$0"),ls=!!/./[os]&&""===/./[os]("a","$0");Yu("replace",(function(t,e,r){var n=ls?"$":"$0";return[function(t,r){var n=Zu(this),o=null==t?void 0:es(t,os);return o?zu(o,t,n,r):zu(e,Xu(n),t,r)},function(t,o){var i=$u(this),a=Xu(t);if("string"==typeof o&&-1===cs(o,n)&&-1===cs(o,"$<")){var u=r(e,i,a,o);if(u.done)return u.value}var s=Ju(o);s||(o=Xu(o));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var p=[];;){var l=ns(i,a);if(null===l)break;if(ss(p,l),!c)break;""===Xu(l[0])&&(i.lastIndex=ts(a,Qu(i.lastIndex),f))}for(var h,d="",y=0,v=0;v<p.length;v++){for(var g=Xu((l=p[v])[0]),b=is(as(Ku(l.index),a.length),0),m=[],w=1;w<l.length;w++)ss(m,void 0===(h=l[w])?h:String(h));var A=l.groups;if(s){var S=us([g],m,b,a);void 0!==A&&ss(S,A);var E=Xu(qu(o,void 0,S))}else E=rs(g,a,b,m,A,o);b>=y&&(d+=fs(a,y,b)+E,y=b+g.length)}return d+fs(a,y)}]}),!!Hu((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!ps||ls);var hs=Lt,ds=N,ys=$($.bind),vs=function(t,e){return hs(t),void 0===e?t:ds?ys(t,e):function(){return t.apply(e,arguments)}},gs=ot,bs=re,ms=Cn,ws=ui,As=$([].push),Ss=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(s,c,f,p){for(var l,h,d=bs(s),y=gs(d),v=vs(c,f),g=ms(y),b=0,m=p||ws,w=e?m(s,g):r||a?m(s,0):void 0;g>b;b++)if((u||b in y)&&(h=v(l=y[b],b,d),t))if(e)w[b]=h;else if(h)switch(t){case 3:return!0;case 5:return l;case 6:return b;case 2:As(w,l)}else switch(t){case 4:return!1;case 7:As(w,l)}return i?-1:n||o?o:w}},Es={forEach:Ss(0),map:Ss(1),filter:Ss(2),some:Ss(3),every:Ss(4),find:Ss(5),findIndex:Ss(6),filterReject:Ss(7)},Rs=Es.map;Eo({target:"Array",proto:!0,forced:!pi("map")},{map:function(t){return Rs(this,t,arguments.length>1?arguments[1]:void 0)}});var Ps=function(t){var e=t.endpointName,r=t.guestSpaceId,n=t.preview,o=void 0!==r?"/guest/".concat(r):"",i=n?"/preview":"";return"/k".concat(o,"/v1").concat(i,"/").concat(e,".json")},Os=["endpointName"],xs=function(){function t(e,r){s(this,t),this.client=e,this.guestSpaceId=r,this.REQUESTS_LENGTH_LIMIT=20}return f(t,[{key:"send",value:function(t){var e=this,r=t.requests.map((function(t){if("endpointName"in t){var r=t.endpointName,o=b(t,Os);return n({api:e.buildPathWithGuestSpaceId({endpointName:r})},o)}return t})),o=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(o,{requests:r})}},{key:"buildPathWithGuestSpaceId",value:function(t){return Ps(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),ks=["preview"],Is=["preview"],js=["preview"],Ts=["preview"],Ns=["preview"],_s=["preview"],Cs=["preview"],Us=["preview"],Fs=["preview"],Bs=["preview"],Ds=["preview"],Ls=["preview"],Ms=["preview"],Ws=["preview"],Gs=function(){function t(e,r){s(this,t),this.client=e,this.guestSpaceId=r}var e;return f(t,[{key:"getFormFields",value:function(t){var e=t.preview,r=b(t,ks),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:e});return this.client.get(o,n({},r))}},{key:"addFormFields",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(e,t)}},{key:"updateFormFields",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(e,t)}},{key:"deleteFormFields",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(e,t)}},{key:"getFormLayout",value:function(t){var e=t.preview,r=b(t,Is),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:e});return this.client.get(o,n({},r))}},{key:"updateFormLayout",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(e,t)}},{key:"getViews",value:function(t){var e=t.preview,r=b(t,js),n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:e});return this.client.get(n,r)}},{key:"updateViews",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(e,t)}},{key:"getApp",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(e,t)}},{key:"getApps",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(e,t)}},{key:"addApp",value:(e=u(o().mark((function t(e){var r,i,a,u,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.name,i=e.space,a=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!i){t.next=9;break}return u=this.buildPathWithGuestSpaceId({endpointName:"space"}),t.next=6,this.client.get(u,{id:i});case 6:return s=t.sent,c=s.defaultThread,t.abrupt("return",this.client.post(a,n(n({},e),{},{thread:c})));case 9:return t.abrupt("return",this.client.post(a,{name:r}));case 10:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"getAppSettings",value:function(t){var e=t.preview,r=b(t,Ts),n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:e});return this.client.get(n,r)}},{key:"updateAppSettings",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(e,t)}},{key:"getProcessManagement",value:function(t){var e=t.preview,r=b(t,Ns),n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:e});return this.client.get(n,r)}},{key:"updateProcessManagement",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(e,t)}},{key:"getDeployStatus",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(e,t)}},{key:"deployApp",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(e,t)}},{key:"getFieldAcl",value:function(t){var e=t.preview,r=b(t,_s),o=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:e});return this.client.get(o,n({},r))}},{key:"updateFieldAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(e,t)}},{key:"getAppAcl",value:function(t){var e=t.preview,r=b(t,Cs),o=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:e});return this.client.get(o,n({},r))}},{key:"updateAppAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(e,t)}},{key:"evaluateRecordsAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(e,t)}},{key:"getRecordAcl",value:function(t){var e=t.preview,r=b(t,Us),o=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:e});return this.client.get(o,n({},r))}},{key:"updateRecordAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(e,t)}},{key:"getAppCustomize",value:function(t){var e=t.preview,r=b(t,Fs),o=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:e});return this.client.get(o,n({},r))}},{key:"updateAppCustomize",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(e,t)}},{key:"getGeneralNotifications",value:function(t){var e=t.preview,r=b(t,Bs),o=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:e});return this.client.get(o,n({},r))}},{key:"updateGeneralNotifications",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(e,t)}},{key:"getPerRecordNotifications",value:function(t){var e=t.preview,r=b(t,Ds),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:e});return this.client.get(n,r)}},{key:"updatePerRecordNotifications",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(e,t)}},{key:"getReminderNotifications",value:function(t){var e=t.preview,r=b(t,Ls),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:e});return this.client.get(n,r)}},{key:"updateReminderNotifications",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(e,t)}},{key:"getReports",value:function(t){var e=t.preview,r=b(t,Ms),n=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:e});return this.client.get(n,r)}},{key:"updateReports",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(e,t)}},{key:"getAppActions",value:function(t){var e=t.preview,r=b(t,Ws),n=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:e});return this.client.get(n,r)}},{key:"updateAppActions",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(e,t)}},{key:"buildPathWithGuestSpaceId",value:function(t){return Ps(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),qs=T,zs=$,Vs=U,Ys=j,Hs=sa,$s=Jn,Js=F,Ks=re,Qs=ot,Xs=Object.assign,Zs=Object.defineProperty,tc=zs([].concat),ec=!Xs||Ys((function(){if(qs&&1!==Xs({b:1},Xs(Zs({},"a",{enumerable:!0,get:function(){Zs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=Xs({},t)[r]||Hs(Xs({},e)).join("")!=n}))?function(t,e){for(var r=Ks(t),n=arguments.length,o=1,i=$s.f,a=Js.f;n>o;)for(var u,s=Qs(arguments[o++]),c=i?tc(Hs(s),i(s)):Hs(s),f=c.length,p=0;f>p;)u=c[p++],qs&&!Vs(a,s,u)||(r[u]=s[u]);return r}:Xs;Eo({target:"Object",stat:!0,arity:2,forced:Object.assign!==ec},{assign:ec});var rc=U,nc=er,oc=Nn,ic=Qi,ac=at,uc=Wt,sc=xu,cc=Gu;gu("match",(function(t,e,r){return[function(e){var r=ac(this),n=null==e?void 0:uc(e,t);return n?rc(n,e,r):new RegExp(e)[t](ic(r))},function(t){var n=nc(this),o=ic(t),i=r(e,n,o);if(i.done)return i.value;if(!n.global)return cc(n,o);var a=n.unicode;n.lastIndex=0;for(var u,s=[],c=0;null!==(u=cc(n,o));){var f=ic(u[0]);s[c]=f,""===f&&(n.lastIndex=sc(o,oc(n.lastIndex),a)),c++}return 0===c?null:s}]}));var fc=ft,pc=lt,lc=Vi,hc=$(1..valueOf),dc=at,yc=Qi,vc=$("".replace),gc="[\t\n\v\f\r \u2028\u2029\ufeff]",bc=RegExp("^"+gc+gc+"*"),mc=RegExp(gc+gc+"*$"),wc=function(t){return function(e){var r=yc(dc(e));return 1&t&&(r=vc(r,bc,"")),2&t&&(r=vc(r,mc,"")),r}},Ac={start:wc(1),end:wc(2),trim:wc(3)},Sc=T,Ec=k,Rc=$,Pc=yo,Oc=wn,xc=ie,kc=function(t,e,r){var n,o;return lc&&fc(n=e.constructor)&&n!==r&&pc(o=n.prototype)&&o!==r.prototype&&lc(t,o),t},Ic=gt,jc=Ct,Tc=je,Nc=j,_c=An.f,Cc=I.f,Uc=Je.f,Fc=hc,Bc=Ac.trim,Dc="Number",Lc=Ec.Number,Mc=Lc.prototype,Wc=Ec.TypeError,Gc=Rc("".slice),qc=Rc("".charCodeAt),zc=function(t){var e=Tc(t,"number");return"bigint"==typeof e?e:Vc(e)},Vc=function(t){var e,r,n,o,i,a,u,s,c=Tc(t,"number");if(jc(c))throw Wc("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Bc(c),43===(e=qc(c,0))||45===e){if(88===(r=qc(c,2))||120===r)return NaN}else if(48===e){switch(qc(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=Gc(c,2)).length,u=0;u<a;u++)if((s=qc(i,u))<48||s>o)return NaN;return parseInt(i,n)}return+c};if(Pc(Dc,!Lc(" 0o1")||!Lc("0b1")||Lc("+0x1"))){for(var Yc,Hc=function(t){var e=arguments.length<1?0:Lc(zc(t)),r=this;return Ic(Mc,r)&&Nc((function(){Fc(r)}))?kc(Object(e),r,Hc):e},$c=Sc?_c(Lc):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Jc=0;$c.length>Jc;Jc++)xc(Lc,Yc=$c[Jc])&&!xc(Hc,Yc)&&Uc(Hc,Yc,Cc(Lc,Yc));Hc.prototype=Mc,Mc.constructor=Hc,Oc(Ec,Dc,Hc,{constructor:!0})}var Kc=j,Qc=function(t,e){var r=[][t];return!!r&&Kc((function(){r.call(null,e||function(){return 1},1)}))},Xc=Eo,Zc=Ln.indexOf,tf=Qc,ef=$([].indexOf),rf=!!ef&&1/ef([1],1,-0)<0,nf=tf("indexOf");Xc({target:"Array",proto:!0,forced:rf||!nf},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return rf?ef(this,t,e)||0:Zc(this,t,e)}});var of=Es.every;Eo({target:"Array",proto:!0,forced:!Qc("every")},{every:function(t){return of(this,t,arguments.length>1?arguments[1]:void 0)}});var af=Lo,uf=To?{}.toString:function(){return"[object "+af(this)+"]"};To||wn(Object.prototype,"toString",uf,{unsafe:!0}),Eo({target:"Array",stat:!0},{isArray:Po});var sf=$([].slice),cf=Eo,ff=k,pf=Po,lf=Zo,hf=lt,df=In,yf=Cn,vf=ct,gf=Io,bf=Ae,mf=sf,wf=pi("slice"),Af=bf("species"),Sf=ff.Array,Ef=Math.max;cf({target:"Array",proto:!0,forced:!wf},{slice:function(t,e){var r,n,o,i=vf(this),a=yf(i),u=df(t,a),s=df(void 0===e?a:e,a);if(pf(i)&&(r=i.constructor,(lf(r)&&(r===Sf||pf(r.prototype))||hf(r)&&null===(r=r[Af]))&&(r=void 0),r===Sf||void 0===r))return mf(i,u,s);for(n=new(void 0===r?Sf:r)(Ef(s-u,0)),o=0;u<s;u++,o++)u in i&&gf(n,o,i[u]);return n.length=o,n}});var Rf=Lt,Pf=re,Of=ot,xf=Cn,kf=k.TypeError,If=function(t){return function(e,r,n,o){Rf(r);var i=Pf(e),a=Of(i),u=xf(i),s=t?u-1:0,c=t?-1:1;if(n<2)for(;;){if(s in a){o=a[s],s+=c;break}if(s+=c,t?s<0:u<=s)throw kf("Reduce of empty array with no initial value")}for(;t?s>=0:u>s;s+=c)s in a&&(o=r(o,a[s],s,i));return o}},jf={left:If(!1),right:If(!0)},Tf="process"==X(k.process),Nf=jf.left,_f=Rt,Cf=Tf;Eo({target:"Array",proto:!0,forced:!Qc("reduce")||!Cf&&_f>79&&_f<83},{reduce:function(t){var e=arguments.length;return Nf(this,t,e,e>1?arguments[1]:void 0)}});var Uf=re,Ff=sa;Eo({target:"Object",stat:!0,forced:j((function(){Ff(1)}))},{keys:function(t){return Ff(Uf(t))}});var Bf,Df=function(t){l(r,t);var e=A(r);function r(t,n,o,i,a){var u;s(this,r);var c=o-n.length,f=r.extractErrorIndex(c,i,a),p=r.buildErrorMessage(c,o,f);return(u=e.call(this,p)).name="KintoneAllRecordsError",u.processedRecordsResult=t,u.unprocessedRecords=n,u.error=i,u.errorIndex=f,u.message=p,Object.setPrototypeOf(m(u),r.prototype),u}return f(r,null,[{key:"parseErrorIndex",value:function(t){var e=Object.keys(t)[0].match(/records\[(\d+)\]/);return e?Number(e[1]):null}},{key:"extractErrorIndex",value:function(t,e,n){if(void 0!==e.bulkRequestIndex&&e.errors){var o=r.parseErrorIndex(e.errors);if(null!==o)return t+e.bulkRequestIndex*n+o}}},{key:"buildErrorMessage",value:function(t,e,r){var n="";return void 0!==r&&(n="An error occurred at records[".concat(r,"]. ")),n+="".concat(t,"/").concat(e," records are processed successfully")}}]),r}(g(Error)),Lf=["condition","orderBy","withCursor"],Mf=["fields"],Wf=["condition"],Gf=["condition","orderBy"],qf=function(){function t(e,r,n){s(this,t),this.client=e,this.bulkRequestClient=r,this.guestSpaceId=n,this.didWarnMaximumOffsetValue=!1}var e,r,i,a,c,l,h,d,y,v,g,m,w,A,E,R,P,O;return f(t,[{key:"getRecord",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(e,t)}},{key:"addRecord",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(e,t)}},{key:"updateRecord",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(e,t)}},{key:"upsertRecord",value:(O=u(o().mark((function t(e){var r,n,i,a,u,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.app,n=e.updateKey,i=e.record,t.next=3,this.getRecords({app:r,query:"".concat(n.field,' = "').concat(n.value,'"')});case 3:if(a=t.sent,!((u=a.records).length>0)){t.next=13;break}if("__ID__"!==u[0].$id.type){t.next=12;break}return t.next=9,this.updateRecord(e);case 9:return s=t.sent,c=s.revision,t.abrupt("return",{id:u[0].$id.value,revision:c});case 12:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 13:return t.abrupt("return",this.addRecord({app:r,record:Object.assign({},i,p({},n.field,{value:n.value}))}));case 14:case"end":return t.stop()}}),t,this)}))),function(t){return O.apply(this,arguments)})},{key:"getRecords",value:(P=u(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),t.next=3,this.client.get(r,e);case 3:return n=t.sent,this.warnMaximumOffsetValueIfNeeded(e.query),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return P.apply(this,arguments)})},{key:"warnMaximumOffsetValueIfNeeded",value:function(t){if(t){var e=t.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&e&&Number(e[1])>1e4&&(this.didWarnMaximumOffsetValue=!0,console.warn("Warning: The maximum offset value will be limited to 10,000 in the future. Please use `createCursor()` and `getRecordsByCursor()` instead."))}}},{key:"addRecords",value:(R=u(o().mark((function t(e){var r,n,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),t.next=3,this.client.post(r,e);case 3:return n=t.sent,i=n.ids,a=n.revisions,t.abrupt("return",{ids:i,revisions:a,records:i.map((function(t,e){return{id:t,revision:a[e]}}))});case 7:case"end":return t.stop()}}),t,this)}))),function(t){return R.apply(this,arguments)})},{key:"updateRecords",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(e,t)}},{key:"deleteRecords",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(e,t)}},{key:"createCursor",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(e,t)}},{key:"getRecordsByCursor",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(e,t)}},{key:"deleteCursor",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(e,t)}},{key:"getAllRecords",value:(E=u(o().mark((function t(e){var r,i,a,u,s,c,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.condition,i=e.orderBy,a=e.withCursor,u=void 0===a||a,s=b(e,Lf),i){t.next=3;break}return t.abrupt("return",this.getAllRecordsWithId(n(n({},s),{},{condition:r})));case 3:if(!u){t.next=7;break}return c=r?"".concat(r," "):"",f="".concat(c).concat(i?"order by ".concat(i):""),t.abrupt("return",this.getAllRecordsWithCursor(n(n({},s),{},{query:f})));case 7:return t.abrupt("return",this.getAllRecordsWithOffset(n(n({},s),{},{orderBy:i,condition:r})));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return E.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(A=u(o().mark((function t(e){var r,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.fields,i=b(e,Mf),(a=r)&&a.length>0&&-1===a.indexOf("$id")&&(a=[].concat(S(a),["$id"])),t.abrupt("return",this.getAllRecordsRecursiveWithId(n(n({},i),{},{fields:a}),"0",[]));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return A.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithId",value:(w=u(o().mark((function t(e,r,i){var a,u,s,c,f,p,l,h,d;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=500,u=e.condition,s=b(e,Wf),c=u?"(".concat(u,") and "):"",f="".concat(c,"$id > ").concat(r," order by $id asc limit ").concat(a),t.next=6,this.getRecords(n(n({},s),{},{query:f}));case 6:if(p=t.sent,l=i.concat(p.records),!(p.records.length<a)){t.next=10;break}return t.abrupt("return",l);case 10:if("__ID__"!==(h=p.records[p.records.length-1]).$id.type){t.next=14;break}return d=h.$id.value,t.abrupt("return",this.getAllRecordsRecursiveWithId(e,d,l));case 14:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 15:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return w.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(m=u(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getAllRecordsRecursiveWithOffset(e,0,[]));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return m.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithOffset",value:(g=u(o().mark((function t(e,r,i){var a,u,s,c,f,p,l,h;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=500,u=e.condition,s=e.orderBy,c=b(e,Gf),f=u?"".concat(u," "):"",p="".concat(f).concat(s?"order by ".concat(s," "):"","limit ").concat(a," offset ").concat(r),t.next=6,this.getRecords(n(n({},c),{},{query:p}));case 6:if(l=t.sent,h=i.concat(l.records),!(l.records.length<a)){t.next=10;break}return t.abrupt("return",h);case 10:return t.abrupt("return",this.getAllRecordsRecursiveWithOffset(e,r+a,h));case 11:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return g.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(v=u(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.createCursor(e);case 2:return r=t.sent,n=r.id,t.prev=4,t.next=7,this.getAllRecordsRecursiveByCursor(n,[]);case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(4),t.next=14,this.deleteCursor({id:n});case 14:throw t.t0;case 15:case"end":return t.stop()}}),t,this,[[4,10]])}))),function(t){return v.apply(this,arguments)})},{key:"getAllRecordsRecursiveByCursor",value:(y=u(o().mark((function t(e,r){var n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getRecordsByCursor({id:e});case 2:if(n=t.sent,i=r.concat(n.records),!n.next){t.next=6;break}return t.abrupt("return",this.getAllRecordsRecursiveByCursor(e,i));case 6:return t.abrupt("return",i);case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return y.apply(this,arguments)})},{key:"addAllRecords",value:(d=u(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.records.every((function(t){return!Array.isArray(t)&&t instanceof Object}))){t.next=2;break}throw new Error("the `records` parameter must be an array of object.");case 2:return t.abrupt("return",this.addAllRecordsRecursive(e,e.records.length,[]));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return d.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(h=u(o().mark((function t(e,r,n){var i,a,u,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,a=e.app,u=e.records,0!==(s=u.slice(0,i)).length){t.next=5;break}return t.abrupt("return",{records:n});case 5:return t.prev=5,t.next=8,this.addAllRecordsWithBulkRequest({app:a,records:s});case 8:c=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new Df({records:n},u,r,t.t0,100);case 14:return t.abrupt("return",this.addAllRecordsRecursive({app:a,records:u.slice(i)},r,n.concat(c)));case 15:case"end":return t.stop()}}),t,this,[[5,11]])}))),function(t,e,r){return h.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(l=u(o().mark((function t(e){var r,n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.separateArrayRecursive(100,[],e.records),n=r.map((function(t){return{method:"POST",endpointName:"records",payload:{app:e.app,records:t}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:return i=t.sent.results,t.abrupt("return",i.map((function(t){var e=t.ids,r=t.revisions;return e.map((function(t,e){return{id:t,revision:r[e]}}))})).reduce((function(t,e){return t.concat(e)}),[]));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"updateAllRecords",value:(c=u(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.updateAllRecordsRecursive(e,e.records.length,[]));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(a=u(o().mark((function t(e,r,n){var i,a,u,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,a=e.app,u=e.records,0!==(s=u.slice(0,i)).length){t.next=5;break}return t.abrupt("return",{records:n});case 5:return t.prev=5,t.next=8,this.updateAllRecordsWithBulkRequest({app:a,records:s});case 8:c=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new Df({records:n},u,r,t.t0,100);case 14:return t.abrupt("return",this.updateAllRecordsRecursive({app:a,records:u.slice(i)},r,n.concat(c)));case 15:case"end":return t.stop()}}),t,this,[[5,11]])}))),function(t,e,r){return a.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(i=u(o().mark((function t(e){var r,n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.separateArrayRecursive(100,[],e.records),n=r.map((function(t){return{method:"PUT",endpointName:"records",payload:{app:e.app,records:t}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:return i=t.sent.results,t.abrupt("return",i.map((function(t){return t.records})).reduce((function(t,e){return t.concat(e)}),[]));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"deleteAllRecords",value:function(t){return this.deleteAllRecordsRecursive(t,t.records.length)}},{key:"deleteAllRecordsRecursive",value:(r=u(o().mark((function t(e,r){var n,i,a,u;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=e.app,a=e.records,0!==(u=a.slice(0,n)).length){t.next=5;break}return t.abrupt("return",{});case 5:return t.prev=5,t.next=8,this.deleteAllRecordsWithBulkRequest({app:i,records:u});case 8:t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(5),new Df({},a,r,t.t0,100);case 13:return t.abrupt("return",this.deleteAllRecordsRecursive({app:i,records:a.slice(n)},r));case 14:case"end":return t.stop()}}),t,this,[[5,10]])}))),function(t,e){return r.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(e=u(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.separateArrayRecursive(100,[],e.records),n=r.map((function(t){return{method:"DELETE",endpointName:"records",payload:{app:e.app,ids:t.map((function(t){return t.id})),revisions:t.map((function(t){return t.revision}))}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"separateArrayRecursive",value:function(t,e,r){var n=r.slice(0,t);return 0===n.length?e:this.separateArrayRecursive(t,[].concat(S(e),[n]),r.slice(t))}},{key:"addRecordComment",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(e,t)}},{key:"deleteRecordComment",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(e,t)}},{key:"getRecordComments",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(e,t)}},{key:"updateRecordAssignees",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(e,t)}},{key:"updateRecordStatus",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(e,t)}},{key:"updateRecordsStatus",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(e,t)}},{key:"buildPathWithGuestSpaceId",value:function(t){return Ps(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),zf="object"==("undefined"==typeof self?"undefined":i(self))?self.FormData:window.FormData,Vf=function(){function t(e,r){s(this,t),this.client=e,this.guestSpaceId=r}var r;return f(t,[{key:"uploadFile",value:(r=u(o().mark((function t(r){var n,i,a,u,s,c,f,p;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.buildPathWithGuestSpaceId({endpointName:"file"}),i=new zf,!("path"in r.file)){t.next=19;break}return t.prev=3,t.next=6,e.readFileFromPath(r.file.path);case 6:a=t.sent,u=a.name,s=a.data,i.append("file",s,u),t.next=17;break;case 12:if(t.prev=12,t.t0=t.catch(3),!(t.t0 instanceof Yi)){t.next=16;break}throw new Error("uploadFile doesn't allow to accept a file path in ".concat(t.t0.platform," environment."));case 16:throw t.t0;case 17:t.next=21;break;case 19:c=r.file,f=c.name,p=c.data,i.append("file",e.buildFormDataValue(p),f);case 21:return t.abrupt("return",this.client.postData(n,i));case 22:case"end":return t.stop()}}),t,this,[[3,12]])}))),function(t){return r.apply(this,arguments)})},{key:"downloadFile",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(e,t)}},{key:"buildPathWithGuestSpaceId",value:function(t){return Ps(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),Yf={exports:{}},Hf={exports:{}},$f=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},Jf=$f,Kf=Object.prototype.toString,Qf=(Bf=Object.create(null),function(t){var e=Kf.call(t);return Bf[e]||(Bf[e]=e.slice(8,-1).toLowerCase())});function Xf(t){return t=t.toLowerCase(),function(e){return Qf(e)===t}}function Zf(t){return Array.isArray(t)}function tp(t){return void 0===t}var ep=Xf("ArrayBuffer");function rp(t){return null!==t&&"object"===i(t)}function np(t){if("object"!==Qf(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var op=Xf("Date"),ip=Xf("File"),ap=Xf("Blob"),up=Xf("FileList");function sp(t){return"[object Function]"===Kf.call(t)}var cp=Xf("URLSearchParams");function fp(t,e){if(null!=t)if("object"!==i(t)&&(t=[t]),Zf(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var pp=function(t){return function(e){return t&&e instanceof t}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),lp={isArray:Zf,isArrayBuffer:ep,isBuffer:function(t){return null!==t&&!tp(t)&&null!==t.constructor&&!tp(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||Kf.call(t)===e||sp(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&ep(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:rp,isPlainObject:np,isUndefined:tp,isDate:op,isFile:ip,isBlob:ap,isFunction:sp,isStream:function(t){return rp(t)&&sp(t.pipe)},isURLSearchParams:cp,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:fp,merge:function t(){var e={};function r(r,n){np(e[n])&&np(r)?e[n]=t(e[n],r):np(r)?e[n]=t({},r):Zf(r)?e[n]=r.slice():e[n]=r}for(var n=0,o=arguments.length;n<o;n++)fp(arguments[n],r);return e},extend:function(t,e,r){return fp(e,(function(e,n){t[n]=r&&"function"==typeof e?Jf(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,r,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,r&&Object.assign(t.prototype,r)},toFlatObject:function(t,e,r){var n,o,i,a={};e=e||{};do{for(o=(n=Object.getOwnPropertyNames(t)).length;o-- >0;)a[i=n[o]]||(e[i]=t[i],a[i]=!0);t=Object.getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:Qf,kindOfTest:Xf,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;var n=t.indexOf(e,r);return-1!==n&&n===r},toArray:function(t){if(!t)return null;var e=t.length;if(tp(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:pp,isFileList:up},hp=lp;function dp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var yp=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(hp.isURLSearchParams(e))n=e.toString();else{var o=[];hp.forEach(e,(function(t,e){null!=t&&(hp.isArray(t)?e+="[]":t=[t],hp.forEach(t,(function(t){hp.isDate(t)?t=t.toISOString():hp.isObject(t)&&(t=JSON.stringify(t)),o.push(dp(e)+"="+dp(t))})))})),n=o.join("&")}if(n){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t},vp=lp;function gp(){this.handlers=[]}gp.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},gp.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},gp.prototype.forEach=function(t){vp.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var bp=gp,mp="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function wp(){throw new Error("setTimeout has not been defined")}function Ap(){throw new Error("clearTimeout has not been defined")}var Sp=wp,Ep=Ap;function Rp(t){if(Sp===setTimeout)return setTimeout(t,0);if((Sp===wp||!Sp)&&setTimeout)return Sp=setTimeout,setTimeout(t,0);try{return Sp(t,0)}catch(e){try{return Sp.call(null,t,0)}catch(e){return Sp.call(this,t,0)}}}"function"==typeof mp.setTimeout&&(Sp=setTimeout),"function"==typeof mp.clearTimeout&&(Ep=clearTimeout);var Pp,Op=[],xp=!1,kp=-1;function Ip(){xp&&Pp&&(xp=!1,Pp.length?Op=Pp.concat(Op):kp=-1,Op.length&&jp())}function jp(){if(!xp){var t=Rp(Ip);xp=!0;for(var e=Op.length;e;){for(Pp=Op,Op=[];++kp<e;)Pp&&Pp[kp].run();kp=-1,e=Op.length}Pp=null,xp=!1,function(t){if(Ep===clearTimeout)return clearTimeout(t);if((Ep===Ap||!Ep)&&clearTimeout)return Ep=clearTimeout,clearTimeout(t);try{Ep(t)}catch(e){try{return Ep.call(null,t)}catch(e){return Ep.call(this,t)}}}(t)}}function Tp(t,e){this.fun=t,this.array=e}Tp.prototype.run=function(){this.fun.apply(null,this.array)};function Np(){}var _p=Np,Cp=Np,Up=Np,Fp=Np,Bp=Np,Dp=Np,Lp=Np;var Mp=mp.performance||{},Wp=Mp.now||Mp.mozNow||Mp.msNow||Mp.oNow||Mp.webkitNow||function(){return(new Date).getTime()};var Gp=new Date;var qp,zp,Vp={nextTick:function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Op.push(new Tp(t,e)),1!==Op.length||xp||Rp(jp)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:_p,addListener:Cp,once:Up,off:Fp,removeListener:Bp,removeAllListeners:Dp,emit:Lp,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*Wp.call(Mp),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Gp)/1e3}},Yp=lp;function Hp(){if(zp)return qp;zp=1;var t=lp;function e(t,e,r,n,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}t.inherits(e,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var r=e.prototype,n={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){n[t]={value:t}})),Object.defineProperties(e,n),Object.defineProperty(r,"isAxiosError",{value:!0}),e.from=function(n,o,i,a,u,s){var c=Object.create(r);return t.toFlatObject(n,c,(function(t){return t!==Error.prototype})),e.call(c,n.message,o,i,a,u),c.name=n.name,s&&Object.assign(c,s),c},qp=e}var $p={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jp=[],Kp=[],Qp="undefined"!=typeof Uint8Array?Uint8Array:Array,Xp=!1;function Zp(){Xp=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)Jp[e]=t[e],Kp[t.charCodeAt(e)]=e;Kp["-".charCodeAt(0)]=62,Kp["_".charCodeAt(0)]=63}function tl(t,e,r){for(var n,o,i=[],a=e;a<r;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(Jp[(o=n)>>18&63]+Jp[o>>12&63]+Jp[o>>6&63]+Jp[63&o]);return i.join("")}function el(t){var e;Xp||Zp();for(var r=t.length,n=r%3,o="",i=[],a=16383,u=0,s=r-n;u<s;u+=a)i.push(tl(t,u,u+a>s?s:u+a));return 1===n?(e=t[r-1],o+=Jp[e>>2],o+=Jp[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=Jp[e>>10],o+=Jp[e>>4&63],o+=Jp[e<<2&63],o+="="),i.push(o),i.join("")}function rl(t,e,r,n,o){var i,a,u=8*o-n-1,s=(1<<u)-1,c=s>>1,f=-7,p=r?o-1:0,l=r?-1:1,h=t[e+p];for(p+=l,i=h&(1<<-f)-1,h>>=-f,f+=u;f>0;i=256*i+t[e+p],p+=l,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+t[e+p],p+=l,f-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)}function nl(t,e,r,n,o,i){var a,u,s,c=8*i-o-1,f=(1<<c)-1,p=f>>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+p>=1?l/s:l*Math.pow(2,1-p))*s>=2&&(a++,s/=2),a+p>=f?(u=0,a=f):a+p>=1?(u=(e*s-1)*Math.pow(2,o),a+=p):(u=e*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;t[r+h]=255&u,h+=d,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;t[r+h]=255&a,h+=d,a/=256,c-=8);t[r+h-d]|=128*y}var ol={}.toString,il=Array.isArray||function(t){return"[object Array]"==ol.call(t)};function al(){return sl.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ul(t,e){if(al()<e)throw new RangeError("Invalid typed array length");return sl.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=sl.prototype:(null===t&&(t=new sl(e)),t.length=e),t}function sl(t,e,r){if(!(sl.TYPED_ARRAY_SUPPORT||this instanceof sl))return new sl(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return pl(this,t)}return cl(this,t,e,r)}function cl(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);sl.TYPED_ARRAY_SUPPORT?(t=e).__proto__=sl.prototype:t=ll(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!sl.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|yl(e,r),o=(t=ul(t,n)).write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(dl(e)){var r=0|hl(e.length);return 0===(t=ul(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?ul(t,0):ll(t,e);if("Buffer"===e.type&&il(e.data))return ll(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function fl(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function pl(t,e){if(fl(e),t=ul(t,e<0?0:0|hl(e)),!sl.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function ll(t,e){var r=e.length<0?0:0|hl(e.length);t=ul(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function hl(t){if(t>=al())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+al().toString(16)+" bytes");return 0|t}function dl(t){return!(null==t||!t._isBuffer)}function yl(t,e){if(dl(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return $l(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Jl(t).length;default:if(n)return $l(t).length;e=(""+e).toLowerCase(),n=!0}}function vl(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Tl(this,e,r);case"utf8":case"utf-8":return xl(this,e,r);case"ascii":return Il(this,e,r);case"latin1":case"binary":return jl(this,e,r);case"base64":return Ol(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nl(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function gl(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function bl(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=sl.from(e,n)),dl(e))return 0===e.length?-1:ml(t,e,r,n,o);if("number"==typeof e)return e&=255,sl.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):ml(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function ml(t,e,r,n,o){var i,a=1,u=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,u/=2,s/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var f=-1;for(i=r;i<u;i++)if(c(t,i)===c(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===s)return f*a}else-1!==f&&(i-=i-f),f=-1}else for(r+s>u&&(r=u-s),i=r;i>=0;i--){for(var p=!0,l=0;l<s;l++)if(c(t,i+l)!==c(e,l)){p=!1;break}if(p)return i}return-1}function wl(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var u=parseInt(e.substr(2*a,2),16);if(isNaN(u))return a;t[r+a]=u}return a}function Al(t,e,r,n){return Kl($l(e,t.length-r),t,r,n)}function Sl(t,e,r,n){return Kl(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function El(t,e,r,n){return Sl(t,e,r,n)}function Rl(t,e,r,n){return Kl(Jl(e),t,r,n)}function Pl(t,e,r,n){return Kl(function(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function Ol(t,e,r){return 0===e&&r===t.length?el(t):el(t.slice(e,r))}function xl(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,u,s,c=t[o],f=null,p=c>239?4:c>223?3:c>191?2:1;if(o+p<=r)switch(p){case 1:c<128&&(f=c);break;case 2:128==(192&(i=t[o+1]))&&(s=(31&c)<<6|63&i)>127&&(f=s);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(f=s);break;case 4:i=t[o+1],a=t[o+2],u=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&u)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(f=s)}null===f?(f=65533,p=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),o+=p}return function(t){var e=t.length;if(e<=kl)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=kl));return r}(n)}sl.TYPED_ARRAY_SUPPORT=void 0===mp.TYPED_ARRAY_SUPPORT||mp.TYPED_ARRAY_SUPPORT,al(),sl.poolSize=8192,sl._augment=function(t){return t.__proto__=sl.prototype,t},sl.from=function(t,e,r){return cl(null,t,e,r)},sl.TYPED_ARRAY_SUPPORT&&(sl.prototype.__proto__=Uint8Array.prototype,sl.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&sl[Symbol.species]),sl.alloc=function(t,e,r){return function(t,e,r,n){return fl(e),e<=0?ul(t,e):void 0!==r?"string"==typeof n?ul(t,e).fill(r,n):ul(t,e).fill(r):ul(t,e)}(null,t,e,r)},sl.allocUnsafe=function(t){return pl(null,t)},sl.allocUnsafeSlow=function(t){return pl(null,t)},sl.isBuffer=function(t){return null!=t&&(!!t._isBuffer||Ql(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Ql(t.slice(0,0))}(t))},sl.compare=function(t,e){if(!dl(t)||!dl(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},sl.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},sl.concat=function(t,e){if(!il(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return sl.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=sl.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(!dl(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},sl.byteLength=yl,sl.prototype._isBuffer=!0,sl.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)gl(this,e,e+1);return this},sl.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)gl(this,e,e+3),gl(this,e+1,e+2);return this},sl.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)gl(this,e,e+7),gl(this,e+1,e+6),gl(this,e+2,e+5),gl(this,e+3,e+4);return this},sl.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?xl(this,0,t):vl.apply(this,arguments)},sl.prototype.equals=function(t){if(!dl(t))throw new TypeError("Argument must be a Buffer");return this===t||0===sl.compare(this,t)},sl.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},sl.prototype.compare=function(t,e,r,n,o){if(!dl(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),u=Math.min(i,a),s=this.slice(n,o),c=t.slice(e,r),f=0;f<u;++f)if(s[f]!==c[f]){i=s[f],a=c[f];break}return i<a?-1:a<i?1:0},sl.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},sl.prototype.indexOf=function(t,e,r){return bl(this,t,e,r,!0)},sl.prototype.lastIndexOf=function(t,e,r){return bl(this,t,e,r,!1)},sl.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return wl(this,t,e,r);case"utf8":case"utf-8":return Al(this,t,e,r);case"ascii":return Sl(this,t,e,r);case"latin1":case"binary":return El(this,t,e,r);case"base64":return Rl(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pl(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},sl.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var kl=4096;function Il(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function jl(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function Tl(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=Hl(t[i]);return o}function Nl(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function _l(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function Cl(t,e,r,n,o,i){if(!dl(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function Ul(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function Fl(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function Bl(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Dl(t,e,r,n,o){return o||Bl(t,0,r,4),nl(t,e,r,n,23,4),r+4}function Ll(t,e,r,n,o){return o||Bl(t,0,r,8),nl(t,e,r,n,52,8),r+8}sl.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),sl.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=sl.prototype;else{var o=e-t;r=new sl(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},sl.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||_l(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},sl.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||_l(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},sl.prototype.readUInt8=function(t,e){return e||_l(t,1,this.length),this[t]},sl.prototype.readUInt16LE=function(t,e){return e||_l(t,2,this.length),this[t]|this[t+1]<<8},sl.prototype.readUInt16BE=function(t,e){return e||_l(t,2,this.length),this[t]<<8|this[t+1]},sl.prototype.readUInt32LE=function(t,e){return e||_l(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},sl.prototype.readUInt32BE=function(t,e){return e||_l(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},sl.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||_l(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},sl.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||_l(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},sl.prototype.readInt8=function(t,e){return e||_l(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},sl.prototype.readInt16LE=function(t,e){e||_l(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},sl.prototype.readInt16BE=function(t,e){e||_l(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},sl.prototype.readInt32LE=function(t,e){return e||_l(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},sl.prototype.readInt32BE=function(t,e){return e||_l(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},sl.prototype.readFloatLE=function(t,e){return e||_l(t,4,this.length),rl(this,t,!0,23,4)},sl.prototype.readFloatBE=function(t,e){return e||_l(t,4,this.length),rl(this,t,!1,23,4)},sl.prototype.readDoubleLE=function(t,e){return e||_l(t,8,this.length),rl(this,t,!0,52,8)},sl.prototype.readDoubleBE=function(t,e){return e||_l(t,8,this.length),rl(this,t,!1,52,8)},sl.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Cl(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},sl.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Cl(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},sl.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||Cl(this,t,e,1,255,0),sl.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},sl.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||Cl(this,t,e,2,65535,0),sl.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Ul(this,t,e,!0),e+2},sl.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||Cl(this,t,e,2,65535,0),sl.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Ul(this,t,e,!1),e+2},sl.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||Cl(this,t,e,4,4294967295,0),sl.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Fl(this,t,e,!0),e+4},sl.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||Cl(this,t,e,4,4294967295,0),sl.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Fl(this,t,e,!1),e+4},sl.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);Cl(this,t,e,r,o-1,-o)}var i=0,a=1,u=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===u&&0!==this[e+i-1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+r},sl.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);Cl(this,t,e,r,o-1,-o)}var i=r-1,a=1,u=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===u&&0!==this[e+i+1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+r},sl.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||Cl(this,t,e,1,127,-128),sl.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},sl.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||Cl(this,t,e,2,32767,-32768),sl.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Ul(this,t,e,!0),e+2},sl.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||Cl(this,t,e,2,32767,-32768),sl.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Ul(this,t,e,!1),e+2},sl.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||Cl(this,t,e,4,2147483647,-2147483648),sl.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Fl(this,t,e,!0),e+4},sl.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||Cl(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),sl.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Fl(this,t,e,!1),e+4},sl.prototype.writeFloatLE=function(t,e,r){return Dl(this,t,e,!0,r)},sl.prototype.writeFloatBE=function(t,e,r){return Dl(this,t,e,!1,r)},sl.prototype.writeDoubleLE=function(t,e,r){return Ll(this,t,e,!0,r)},sl.prototype.writeDoubleBE=function(t,e,r){return Ll(this,t,e,!1,r)},sl.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,i=n-r;if(this===t&&r<e&&e<n)for(o=i-1;o>=0;--o)t[o+e]=this[o+r];else if(i<1e3||!sl.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},sl.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!sl.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=dl(t)?t:$l(new sl(t,n).toString()),u=a.length;for(i=0;i<r-e;++i)this[i+e]=a[i%u]}return this};var Ml,Wl,Gl,ql,zl,Vl,Yl=/[^+\/0-9A-Za-z-_]/g;function Hl(t){return t<16?"0"+t.toString(16):t.toString(16)}function $l(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Jl(t){return function(t){var e,r,n,o,i,a;Xp||Zp();var u=t.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===t[u-2]?2:"="===t[u-1]?1:0,a=new Qp(3*u/4-i),n=i>0?u-4:u;var s=0;for(e=0,r=0;e<n;e+=4,r+=3)o=Kp[t.charCodeAt(e)]<<18|Kp[t.charCodeAt(e+1)]<<12|Kp[t.charCodeAt(e+2)]<<6|Kp[t.charCodeAt(e+3)],a[s++]=o>>16&255,a[s++]=o>>8&255,a[s++]=255&o;return 2===i?(o=Kp[t.charCodeAt(e)]<<2|Kp[t.charCodeAt(e+1)]>>4,a[s++]=255&o):1===i&&(o=Kp[t.charCodeAt(e)]<<10|Kp[t.charCodeAt(e+1)]<<4|Kp[t.charCodeAt(e+2)]>>2,a[s++]=o>>8&255,a[s++]=255&o),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(Yl,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Kl(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function Ql(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function Xl(){if(Wl)return Ml;Wl=1;var t=lp;return Ml=function(e,r){r=r||new FormData;var n=[];function o(e){return null===e?"":t.isDate(e)?e.toISOString():t.isArrayBuffer(e)||t.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):sl.from(e):e}return function e(a,u){if(t.isPlainObject(a)||t.isArray(a)){if(-1!==n.indexOf(a))throw Error("Circular reference detected in "+u);n.push(a),t.forEach(a,(function(n,a){if(!t.isUndefined(n)){var s,c=u?u+"."+a:a;if(n&&!u&&"object"===i(n))if(t.endsWith(a,"{}"))n=JSON.stringify(n);else if(t.endsWith(a,"[]")&&(s=t.toArray(n)))return void s.forEach((function(e){!t.isUndefined(e)&&r.append(c,o(e))}));e(n,c)}})),n.pop()}else r.append(u,o(a))}(e),r}}function Zl(){if(ql)return Gl;ql=1;var t=Hp();return Gl=function(e,r,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?r(new t("Request failed with status code "+n.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}}function th(){if(Vl)return zl;Vl=1;var t=lp;return zl=t.isStandardBrowserEnv()?{write:function(e,r,n,o,i,a){var u=[];u.push(e+"="+encodeURIComponent(r)),t.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),t.isString(o)&&u.push("path="+o),t.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}}var eh,rh,nh,oh,ih,ah,uh,sh,ch,fh,ph,lh,hh=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},dh=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t},yh=function(t,e){return t&&!hh(e)?dh(t,e):e};function vh(){if(rh)return eh;rh=1;var t=lp,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return eh=function(r){var n,o,i,a={};return r?(t.forEach(r.split("\n"),(function(r){if(i=r.indexOf(":"),n=t.trim(r.substr(0,i)).toLowerCase(),o=t.trim(r.substr(i+1)),n){if(a[n]&&e.indexOf(n)>=0)return;a[n]="set-cookie"===n?(a[n]?a[n]:[]).concat([o]):a[n]?a[n]+", "+o:o}})),a):a}}function gh(){if(oh)return nh;oh=1;var t=lp;return nh=t.isStandardBrowserEnv()?function(){var e,r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var e=t;return r&&(n.setAttribute("href",e),e=n.href),n.setAttribute("href",e),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(r){var n=t.isString(r)?o(r):r;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}}function bh(){if(ah)return ih;ah=1;var t=Hp();function e(e){t.call(this,null==e?"canceled":e,t.ERR_CANCELED),this.name="CanceledError"}return lp.inherits(e,t,{__CANCEL__:!0}),ih=e}function mh(){return sh?uh:(sh=1,uh=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""})}function wh(){if(fh)return ch;fh=1;var t=lp,e=Zl(),r=th(),n=yp,o=yh,i=vh(),a=gh(),u=$p,s=Hp(),c=bh(),f=mh();return ch=function(p){return new Promise((function(l,h){var d,y=p.data,v=p.headers,g=p.responseType;function b(){p.cancelToken&&p.cancelToken.unsubscribe(d),p.signal&&p.signal.removeEventListener("abort",d)}t.isFormData(y)&&t.isStandardBrowserEnv()&&delete v["Content-Type"];var m=new XMLHttpRequest;if(p.auth){var w=p.auth.username||"",A=p.auth.password?unescape(encodeURIComponent(p.auth.password)):"";v.Authorization="Basic "+btoa(w+":"+A)}var S=o(p.baseURL,p.url);function E(){if(m){var t="getAllResponseHeaders"in m?i(m.getAllResponseHeaders()):null,r={data:g&&"text"!==g&&"json"!==g?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:t,config:p,request:m};e((function(t){l(t),b()}),(function(t){h(t),b()}),r),m=null}}if(m.open(p.method.toUpperCase(),n(S,p.params,p.paramsSerializer),!0),m.timeout=p.timeout,"onloadend"in m?m.onloadend=E:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(E)},m.onabort=function(){m&&(h(new s("Request aborted",s.ECONNABORTED,p,m)),m=null)},m.onerror=function(){h(new s("Network Error",s.ERR_NETWORK,p,m,m)),m=null},m.ontimeout=function(){var t=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded",e=p.transitional||u;p.timeoutErrorMessage&&(t=p.timeoutErrorMessage),h(new s(t,e.clarifyTimeoutError?s.ETIMEDOUT:s.ECONNABORTED,p,m)),m=null},t.isStandardBrowserEnv()){var R=(p.withCredentials||a(S))&&p.xsrfCookieName?r.read(p.xsrfCookieName):void 0;R&&(v[p.xsrfHeaderName]=R)}"setRequestHeader"in m&&t.forEach(v,(function(t,e){void 0===y&&"content-type"===e.toLowerCase()?delete v[e]:m.setRequestHeader(e,t)})),t.isUndefined(p.withCredentials)||(m.withCredentials=!!p.withCredentials),g&&"json"!==g&&(m.responseType=p.responseType),"function"==typeof p.onDownloadProgress&&m.addEventListener("progress",p.onDownloadProgress),"function"==typeof p.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",p.onUploadProgress),(p.cancelToken||p.signal)&&(d=function(t){m&&(h(!t||t&&t.type?new c:t),m.abort(),m=null)},p.cancelToken&&p.cancelToken.subscribe(d),p.signal&&(p.signal.aborted?d():p.signal.addEventListener("abort",d))),y||(y=null);var P=f(S);P&&-1===["http","https","file"].indexOf(P)?h(new s("Unsupported protocol "+P+":",s.ERR_BAD_REQUEST,p)):m.send(y)}))}}var Ah=lp,Sh=function(t,e){Yp.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))},Eh=Hp(),Rh=$p,Ph=Xl(),Oh={"Content-Type":"application/x-www-form-urlencoded"};function xh(t,e){!Ah.isUndefined(t)&&Ah.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var kh,Ih={transitional:Rh,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==Vp&&"[object process]"===Object.prototype.toString.call(Vp))&&(kh=wh()),kh),transformRequest:[function(t,e){if(Sh(e,"Accept"),Sh(e,"Content-Type"),Ah.isFormData(t)||Ah.isArrayBuffer(t)||Ah.isBuffer(t)||Ah.isStream(t)||Ah.isFile(t)||Ah.isBlob(t))return t;if(Ah.isArrayBufferView(t))return t.buffer;if(Ah.isURLSearchParams(t))return xh(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r,n=Ah.isObject(t),o=e&&e["Content-Type"];if((r=Ah.isFileList(t))||n&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return Ph(r?{"files[]":t}:t,i&&new i)}return n||"application/json"===o?(xh(e,"application/json"),function(t,e,r){if(Ah.isString(t))try{return(e||JSON.parse)(t),Ah.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||Ih.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&Ah.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw Eh.from(t,Eh.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lh?ph:(lh=1,ph=null)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ah.forEach(["delete","get","head"],(function(t){Ih.headers[t]={}})),Ah.forEach(["post","put","patch"],(function(t){Ih.headers[t]=Ah.merge(Oh)}));var jh,Th,Nh=Ih,_h=lp,Ch=Nh;function Uh(){return Th?jh:(Th=1,jh=function(t){return!(!t||!t.__CANCEL__)})}var Fh=lp,Bh=function(t,e,r){var n=this||Ch;return _h.forEach(r,(function(r){t=r.call(n,t,e)})),t},Dh=Uh(),Lh=Nh,Mh=bh();function Wh(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Mh}var Gh,qh,zh=lp,Vh=function(t,e){e=e||{};var r={};function n(t,e){return zh.isPlainObject(t)&&zh.isPlainObject(e)?zh.merge(t,e):zh.isPlainObject(e)?zh.merge({},e):zh.isArray(e)?e.slice():e}function o(r){return zh.isUndefined(e[r])?zh.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function i(t){if(!zh.isUndefined(e[t]))return n(void 0,e[t])}function a(r){return zh.isUndefined(e[r])?zh.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function u(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):void 0}var s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return zh.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=s[t]||o,n=e(t);zh.isUndefined(n)&&e!==u||(r[t]=n)})),r};function Yh(){return qh?Gh:(qh=1,Gh={version:"0.27.2"})}var Hh=Yh().version,$h=Hp(),Jh={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){Jh[t]=function(r){return i(r)===t||"a"+(e<1?"n ":" ")+t}}));var Kh={};Jh.transitional=function(t,e,r){function n(t,e){return"[Axios v"+Hh+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,i){if(!1===t)throw new $h(n(o," has been removed"+(e?" in "+e:"")),$h.ERR_DEPRECATED);return e&&!Kh[o]&&(Kh[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var Qh,Xh,Zh,td,ed,rd,nd=lp,od=yp,id=bp,ad=function(t){return Wh(t),t.headers=t.headers||{},t.data=Bh.call(t,t.data,t.headers,t.transformRequest),t.headers=Fh.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Fh.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||Lh.adapter)(t).then((function(e){return Wh(t),e.data=Bh.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return Dh(e)||(Wh(t),e&&e.response&&(e.response.data=Bh.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},ud=Vh,sd=yh,cd={assertOptions:function(t,e,r){if("object"!==i(t))throw new $h("options must be an object",$h.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),o=n.length;o-- >0;){var a=n[o],u=e[a];if(u){var s=t[a],c=void 0===s||u(s,a,t);if(!0!==c)throw new $h("option "+a+" must be "+c,$h.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new $h("Unknown option "+a,$h.ERR_BAD_OPTION)}},validators:Jh},fd=cd.validators;function pd(t){this.defaults=t,this.interceptors={request:new id,response:new id}}pd.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=ud(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;void 0!==r&&cd.assertOptions(r,{silentJSONParsing:fd.transitional(fd.boolean),forcedJSONParsing:fd.transitional(fd.boolean),clarifyTimeoutError:fd.transitional(fd.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)})),!o){var u=[ad,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(a),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var s=e;n.length;){var c=n.shift(),f=n.shift();try{s=c(s)}catch(t){f(t);break}}try{i=ad(s)}catch(t){return Promise.reject(t)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},pd.prototype.getUri=function(t){t=ud(this.defaults,t);var e=sd(t.baseURL,t.url);return od(e,t.params,t.paramsSerializer)},nd.forEach(["delete","get","head","options"],(function(t){pd.prototype[t]=function(e,r){return this.request(ud(r||{},{method:t,url:e,data:(r||{}).data}))}})),nd.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(ud(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}pd.prototype[t]=e(),pd.prototype[t+"Form"]=e(!0)}));var ld=lp,hd=$f,dd=pd,yd=Vh;var vd=function t(e){var r=new dd(e),n=hd(dd.prototype.request,r);return ld.extend(n,dd.prototype,r),ld.extend(n,r),n.create=function(r){return t(yd(e,r))},n}(Nh);vd.Axios=dd,vd.CanceledError=bh(),vd.CancelToken=function(){if(Xh)return Qh;Xh=1;var t=bh();function e(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(t){r=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},e((function(e){n.reason||(n.reason=new t(e),r(n.reason))}))}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},e.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},e.source=function(){var t;return{token:new e((function(e){t=e})),cancel:t}},Qh=e}(),vd.isCancel=Uh(),vd.VERSION=Yh().version,vd.toFormData=Xl(),vd.AxiosError=Hp(),vd.Cancel=vd.CanceledError,vd.all=function(t){return Promise.all(t)},vd.spread=td?Zh:(td=1,Zh=function(t){return function(e){return t.apply(null,e)}}),vd.isAxiosError=function(){if(rd)return ed;rd=1;var t=lp;return ed=function(e){return t.isObject(e)&&!0===e.isAxiosError}}(),Hf.exports=vd,Hf.exports.default=vd,function(t){t.exports=Hf.exports}(Yf);var gd=P(Yf.exports),bd=function(){function t(e){var r=e.responseHandler,n=e.requestConfigBuilder;s(this,t),this.responseHandler=r,this.requestConfigBuilder=n}var e,r,i,a,c,p;return f(t,[{key:"get",value:(p=u(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("get",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return p.apply(this,arguments)})},{key:"getData",value:(c=u(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("get",e,r,{responseType:"arraybuffer"});case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:"post",value:(a=u(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("post",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return a.apply(this,arguments)})},{key:"postData",value:(i=u(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("post",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"put",value:(r=u(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("put",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"delete",value:(e=u(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("delete",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})},{key:"sendRequest",value:function(t){return this.responseHandler.handle(gd(n(n({},t),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),t}(),md=Eo,wd=ot,Ad=ct,Sd=Qc,Ed=$([].join),Rd=wd!=Object,Pd=Sd("join",",");md({target:"Array",proto:!0,forced:Rd||!Pd},{join:function(t){return Ed(Ad(this),void 0===t?",":t)}});var Od,xd=R.Symbol,kd=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===i(Symbol.iterator))return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0},Id=function(){return"function"==typeof xd&&("function"==typeof Symbol&&("symbol"===i(xd("foo"))&&("symbol"===i(Symbol("bar"))&&kd())))},jd="Function.prototype.bind called on incompatible ",Td=Array.prototype.slice,Nd=Object.prototype.toString,_d="[object Function]",Cd=function(t){var e=this;if("function"!=typeof e||Nd.call(e)!==_d)throw new TypeError(jd+e);for(var r,n=Td.call(arguments,1),o=function(){if(this instanceof r){var o=e.apply(this,n.concat(Td.call(arguments)));return Object(o)===o?o:this}return e.apply(t,n.concat(Td.call(arguments)))},i=Math.max(0,e.length-n.length),a=[],u=0;u<i;u++)a.push("$"+u);if(r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(o),e.prototype){var s=function(){};s.prototype=e.prototype,r.prototype=new s,s.prototype=null}return r},Ud=Function.prototype.bind||Cd,Fd=Ud.call(Function.call,Object.prototype.hasOwnProperty),Bd=SyntaxError,Dd=Function,Ld=TypeError,Md=function(t){try{return Dd('"use strict"; return ('+t+").constructor;")()}catch(t){}},Wd=Object.getOwnPropertyDescriptor;if(Wd)try{Wd({},"")}catch(t){Wd=null}var Gd,qd=function(){throw new Ld},zd=Wd?function(){try{return qd}catch(t){try{return Wd(arguments,"callee").get}catch(t){return qd}}}():qd,Vd=Id(),Yd=Object.getPrototypeOf||function(t){return t.__proto__},Hd={},$d="undefined"==typeof Uint8Array?Od:Yd(Uint8Array),Jd={"%AggregateError%":"undefined"==typeof AggregateError?Od:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Od:ArrayBuffer,"%ArrayIteratorPrototype%":Vd?Yd([][Symbol.iterator]()):Od,"%AsyncFromSyncIteratorPrototype%":Od,"%AsyncFunction%":Hd,"%AsyncGenerator%":Hd,"%AsyncGeneratorFunction%":Hd,"%AsyncIteratorPrototype%":Hd,"%Atomics%":"undefined"==typeof Atomics?Od:Atomics,"%BigInt%":"undefined"==typeof BigInt?Od:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Od:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Od:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Od:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Od:FinalizationRegistry,"%Function%":Dd,"%GeneratorFunction%":Hd,"%Int8Array%":"undefined"==typeof Int8Array?Od:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Od:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Od:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Vd?Yd(Yd([][Symbol.iterator]())):Od,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":i(JSON))?JSON:Od,"%Map%":"undefined"==typeof Map?Od:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Vd?Yd((new Map)[Symbol.iterator]()):Od,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Od:Promise,"%Proxy%":"undefined"==typeof Proxy?Od:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Od:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Od:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Vd?Yd((new Set)[Symbol.iterator]()):Od,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Od:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Vd?Yd(""[Symbol.iterator]()):Od,"%Symbol%":Vd?Symbol:Od,"%SyntaxError%":Bd,"%ThrowTypeError%":zd,"%TypedArray%":$d,"%TypeError%":Ld,"%Uint8Array%":"undefined"==typeof Uint8Array?Od:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Od:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Od:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Od:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Od:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Od:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Od:WeakSet},Kd=function t(e){var r;if("%AsyncFunction%"===e)r=Md("async function () {}");else if("%GeneratorFunction%"===e)r=Md("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=Md("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=Yd(o.prototype))}return Jd[e]=r,r},Qd={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Xd=Ud,Zd=Fd,ty=Xd.call(Function.call,Array.prototype.concat),ey=Xd.call(Function.apply,Array.prototype.splice),ry=Xd.call(Function.call,String.prototype.replace),ny=Xd.call(Function.call,String.prototype.slice),oy=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,iy=/\\(\\)?/g,ay=function(t){var e=ny(t,0,1),r=ny(t,-1);if("%"===e&&"%"!==r)throw new Bd("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new Bd("invalid intrinsic syntax, expected opening `%`");var n=[];return ry(t,oy,(function(t,e,r,o){n[n.length]=r?ry(o,iy,"$1"):e||t})),n},uy=function(t,e){var r,n=t;if(Zd(Qd,n)&&(n="%"+(r=Qd[n])[0]+"%"),Zd(Jd,n)){var o=Jd[n];if(o===Hd&&(o=Kd(n)),void 0===o&&!e)throw new Ld("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Bd("intrinsic "+t+" does not exist!")},sy=SyntaxError,cy=Function,fy=TypeError,py=function(t){try{return Function('"use strict"; return ('+t+").constructor;")()}catch(t){}},ly=Object.getOwnPropertyDescriptor;if(ly)try{ly({},"")}catch(t){ly=null}var hy=function(){throw new fy},dy=ly?function(){try{return hy}catch(t){try{return ly(arguments,"callee").get}catch(t){return hy}}}():hy,yy=Id(),vy=Object.getPrototypeOf||function(t){return t.__proto__},gy=py("async function* () {}"),by=gy?gy.prototype:Gd,my=by?by.prototype:Gd,wy="undefined"==typeof Uint8Array?Gd:vy(Uint8Array),Ay={"%AggregateError%":"undefined"==typeof AggregateError?Gd:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Gd:ArrayBuffer,"%ArrayIteratorPrototype%":yy?vy([][Symbol.iterator]()):Gd,"%AsyncFromSyncIteratorPrototype%":Gd,"%AsyncFunction%":py("async function () {}"),"%AsyncGenerator%":by,"%AsyncGeneratorFunction%":gy,"%AsyncIteratorPrototype%":my?vy(my):Gd,"%Atomics%":"undefined"==typeof Atomics?Gd:Atomics,"%BigInt%":"undefined"==typeof BigInt?Gd:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Gd:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Gd:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Gd:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Gd:FinalizationRegistry,"%Function%":cy,"%GeneratorFunction%":py("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?Gd:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Gd:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Gd:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":yy?vy(vy([][Symbol.iterator]())):Gd,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":i(JSON))?JSON:Gd,"%Map%":"undefined"==typeof Map?Gd:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&yy?vy((new Map)[Symbol.iterator]()):Gd,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Gd:Promise,"%Proxy%":"undefined"==typeof Proxy?Gd:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Gd:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Gd:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&yy?vy((new Set)[Symbol.iterator]()):Gd,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Gd:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":yy?vy(""[Symbol.iterator]()):Gd,"%Symbol%":yy?Symbol:Gd,"%SyntaxError%":sy,"%ThrowTypeError%":dy,"%TypedArray%":wy,"%TypeError%":fy,"%Uint8Array%":"undefined"==typeof Uint8Array?Gd:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Gd:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Gd:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Gd:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Gd:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Gd:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Gd:WeakSet},Sy={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ey=Ud,Ry=Fd,Py=Ey.call(Function.call,Array.prototype.concat),Oy=Ey.call(Function.apply,Array.prototype.splice),xy=Ey.call(Function.call,String.prototype.replace),ky=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Iy=/\\(\\)?/g,jy=function(t){var e=[];return xy(t,ky,(function(t,r,n,o){e[e.length]=n?xy(o,Iy,"$1"):r||t})),e},Ty=function(t,e){var r,n=t;if(Ry(Sy,n)&&(n="%"+(r=Sy[n])[0]+"%"),Ry(Ay,n)){var o=Ay[n];if(void 0===o&&!e)throw new fy("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new sy("intrinsic "+t+" does not exist!")},Ny=function(t,e){if("string"!=typeof t||0===t.length)throw new fy("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new fy('"allowMissing" argument must be a boolean');var r=jy(t),n=r.length>0?r[0]:"",o=Ty("%"+n+"%",e),i=o.name,a=o.value,u=!1,s=o.alias;s&&(n=s[0],Oy(r,Py([0,1],s)));for(var c=1,f=!0;c<r.length;c+=1){var p=r[c];if("constructor"!==p&&f||(u=!0),Ry(Ay,i="%"+(n+="."+p)+"%"))a=Ay[i];else if(null!=a){if(ly&&c+1>=r.length){var l=ly(a,p);if(f=!!l,!e&&!(p in a))throw new fy("base intrinsic for "+t+" exists, but the property is not available.");a=f&&"get"in l&&!("originalValue"in l.get)?l.get:a[p]}else f=Ry(a,p),a=a[p];f&&!u&&(Ay[i]=a)}}return a},_y={exports:{}};!function(t){var e=Ud,r=Ny,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,n),a=r("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch(t){a=null}t.exports=function(){return i(e,o,arguments)};var u=function(){return i(e,n,arguments)};a?a(t.exports,"apply",{value:u}):t.exports.apply=u}(_y);var Cy=Ny,Uy=_y.exports,Fy=Uy(Cy("String.prototype.indexOf")),By=O(Object.freeze({__proto__:null,default:{}})),Dy="function"==typeof Map&&Map.prototype,Ly=Object.getOwnPropertyDescriptor&&Dy?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,My=Dy&&Ly&&"function"==typeof Ly.get?Ly.get:null,Wy=Dy&&Map.prototype.forEach,Gy="function"==typeof Set&&Set.prototype,qy=Object.getOwnPropertyDescriptor&&Gy?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,zy=Gy&&qy&&"function"==typeof qy.get?qy.get:null,Vy=Gy&&Set.prototype.forEach,Yy="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Hy="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,$y=Boolean.prototype.valueOf,Jy=Object.prototype.toString,Ky=Function.prototype.toString,Qy=String.prototype.match,Xy="function"==typeof BigInt?BigInt.prototype.valueOf:null,Zy=Object.getOwnPropertySymbols,tv="function"==typeof Symbol?Symbol.prototype.toString:null,ev=Object.prototype.propertyIsEnumerable,rv=By.custom,nv=rv&&uv(rv)?rv:null;function ov(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function iv(t){return String(t).replace(/"/g,""")}function av(t){return"[object Array]"===fv(t)}function uv(t){return"[object Symbol]"===fv(t)}var sv=Object.prototype.hasOwnProperty||function(t){return t in this};function cv(t,e){return sv.call(t,e)}function fv(t){return Jy.call(t)}function pv(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function lv(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return lv(t.slice(0,e.maxStringLength),e)+n}return ov(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,hv),"single",e)}function hv(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function dv(t){return"Object("+t+")"}function yv(t){return t+" { ? }"}function vv(t,e,r,n){return t+" ("+e+") {"+(n?gv(r,n):r.join(", "))+"}"}function gv(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+t.join(","+r)+"\n"+e.prev}function bv(t,e){var r=av(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=cv(t,o)?e(t[o],t):""}for(var i in t)cv(t,i)&&(r&&String(Number(i))===i&&i<t.length||(/[^\w$]/.test(i)?n.push(e(i,t)+": "+e(t[i],t)):n.push(i+": "+e(t[i],t))));if("function"==typeof Zy)for(var a=Zy(t),u=0;u<a.length;u++)ev.call(t,a[u])&&n.push("["+e(a[u])+"]: "+e(t[a[u]],t));return n}var mv,wv=function(t,e){if("string"!=typeof t||0===t.length)throw new Ld("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new Ld('"allowMissing" argument must be a boolean');var r=ay(t),n=r.length>0?r[0]:"",o=uy("%"+n+"%",e),i=o.name,a=o.value,u=!1,s=o.alias;s&&(n=s[0],ey(r,ty([0,1],s)));for(var c=1,f=!0;c<r.length;c+=1){var p=r[c],l=ny(p,0,1),h=ny(p,-1);if(('"'===l||"'"===l||"`"===l||'"'===h||"'"===h||"`"===h)&&l!==h)throw new Bd("property names with quotes must have matching quotes");if("constructor"!==p&&f||(u=!0),Zd(Jd,i="%"+(n+="."+p)+"%"))a=Jd[i];else if(null!=a){if(!(p in a)){if(!e)throw new Ld("base intrinsic for "+t+" exists, but the property is not available.");return}if(Wd&&c+1>=r.length){var d=Wd(a,p);a=(f=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[p]}else f=Zd(a,p),a=a[p];f&&!u&&(Jd[i]=a)}}return a},Av=function(t,e){var r=Cy(t,!!e);return"function"==typeof r&&Fy(t,".prototype.")>-1?Uy(r):r},Sv=function t(e,r,n,o){var a=r||{};if(cv(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(cv(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!cv(a,"customInspect")||a.customInspect;if("boolean"!=typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(cv(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return lv(e,a);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var s=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=s&&s>0&&"object"===i(e))return av(e)?"[Array]":"[Object]";var c=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(a,n);if(void 0===o)o=[];else if(pv(o,e)>=0)return"[Circular]";function f(e,r,i){if(r&&(o=o.slice()).push(r),i){var u={depth:a.depth};return cv(a,"quoteStyle")&&(u.quoteStyle=a.quoteStyle),t(e,u,n+1,o)}return t(e,a,n+1,o)}if("function"==typeof e){var p=function(t){if(t.name)return t.name;var e=Qy.call(Ky.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),l=bv(e,f);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(l.length>0?" { "+l.join(", ")+" }":"")}if(uv(e)){var h=tv.call(e);return"object"===i(e)?dv(h):h}if(function(t){if(!t||"object"!==i(t))return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var d="<"+String(e.nodeName).toLowerCase(),y=e.attributes||[],v=0;v<y.length;v++)d+=" "+y[v].name+"="+ov(iv(y[v].value),"double",a);return d+=">",e.childNodes&&e.childNodes.length&&(d+="..."),d+="</"+String(e.nodeName).toLowerCase()+">"}if(av(e)){if(0===e.length)return"[]";var g=bv(e,f);return c&&!function(t){for(var e=0;e<t.length;e++)if(pv(t[e],"\n")>=0)return!1;return!0}(g)?"["+gv(g,c)+"]":"[ "+g.join(", ")+" ]"}if(function(t){return"[object Error]"===fv(t)}(e)){var b=bv(e,f);return 0===b.length?"["+String(e)+"]":"{ ["+String(e)+"] "+b.join(", ")+" }"}if("object"===i(e)&&u){if(nv&&"function"==typeof e[nv])return e[nv]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!My||!t||"object"!==i(t))return!1;try{My.call(t);try{zy.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var m=[];return Wy.call(e,(function(t,r){m.push(f(r,e,!0)+" => "+f(t,e))})),vv("Map",My.call(e),m,c)}if(function(t){if(!zy||!t||"object"!==i(t))return!1;try{zy.call(t);try{My.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var w=[];return Vy.call(e,(function(t){w.push(f(t,e))})),vv("Set",zy.call(e),w,c)}if(function(t){if(!Yy||!t||"object"!==i(t))return!1;try{Yy.call(t,Yy);try{Hy.call(t,Hy)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return yv("WeakMap");if(function(t){if(!Hy||!t||"object"!==i(t))return!1;try{Hy.call(t,Hy);try{Yy.call(t,Yy)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return yv("WeakSet");if(function(t){return"[object Number]"===fv(t)}(e))return dv(f(Number(e)));if(function(t){return"[object BigInt]"===fv(t)}(e))return dv(f(Xy.call(e)));if(function(t){return"[object Boolean]"===fv(t)}(e))return dv($y.call(e));if(function(t){return"[object String]"===fv(t)}(e))return dv(f(String(e)));if(!function(t){return"[object Date]"===fv(t)}(e)&&!function(t){return"[object RegExp]"===fv(t)}(e)){var A=bv(e,f);return 0===A.length?"{}":c?"{"+gv(A,c)+"}":"{ "+A.join(", ")+" }"}return String(e)},Ev=wv("%TypeError%"),Rv=wv("%WeakMap%",!0),Pv=wv("%Map%",!0),Ov=Av("WeakMap.prototype.get",!0),xv=Av("WeakMap.prototype.set",!0),kv=Av("WeakMap.prototype.has",!0),Iv=Av("Map.prototype.get",!0),jv=Av("Map.prototype.set",!0),Tv=Av("Map.prototype.has",!0),Nv=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},_v=String.prototype.replace,Cv=/%20/g,Uv="RFC3986",Fv={default:Uv,formatters:{RFC1738:function(t){return _v.call(t,Cv,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:Uv},Bv=Fv,Dv=Object.prototype.hasOwnProperty,Lv=Array.isArray,Mv=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Wv=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},Gv={arrayToObject:Wv,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],a=o.obj[o.prop],u=Object.keys(a),s=0;s<u.length;++s){var c=u[s],f=a[c];"object"===i(f)&&null!==f&&-1===r.indexOf(f)&&(e.push({obj:a,prop:c}),r.push(f))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(Lv(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,n,o){if(0===t.length)return t;var a=t;if("symbol"===i(t)?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",s=0;s<a.length;++s){var c=a.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===Bv.RFC1738&&(40===c||41===c)?u+=a.charAt(s):c<128?u+=Mv[c]:c<2048?u+=Mv[192|c>>6]+Mv[128|63&c]:c<55296||c>=57344?u+=Mv[224|c>>12]+Mv[128|c>>6&63]+Mv[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(s)),u+=Mv[240|c>>18]+Mv[128|c>>12&63]+Mv[128|c>>6&63]+Mv[128|63&c])}return u},isBuffer:function(t){return!(!t||"object"!==i(t))&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(Lv(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!==i(r)){if(Lv(e))e.push(r);else{if(!e||"object"!==i(e))return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!Dv.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!==i(e))return[e].concat(r);var o=e;return Lv(e)&&!Lv(r)&&(o=Wv(e,n)),Lv(e)&&Lv(r)?(r.forEach((function(r,o){if(Dv.call(e,o)){var a=e[o];a&&"object"===i(a)&&r&&"object"===i(r)?e[o]=t(a,r,n):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var i=r[o];return Dv.call(e,o)?e[o]=t(e[o],i,n):e[o]=i,e}),o)}},qv=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new Ev("Side channel does not contain "+Sv(t))},get:function(n){if(Rv&&n&&("object"===i(n)||"function"==typeof n)){if(t)return Ov(t,n)}else if(Pv){if(e)return Iv(e,n)}else if(r)return function(t,e){var r=Nv(t,e);return r&&r.value}(r,n)},has:function(n){if(Rv&&n&&("object"===i(n)||"function"==typeof n)){if(t)return kv(t,n)}else if(Pv){if(e)return Tv(e,n)}else if(r)return function(t,e){return!!Nv(t,e)}(r,n);return!1},set:function(n,o){Rv&&n&&("object"===i(n)||"function"==typeof n)?(t||(t=new Rv),xv(t,n,o)):Pv?(e||(e=new Pv),jv(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=Nv(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n},zv=Gv,Vv=Fv,Yv=Object.prototype.hasOwnProperty,Hv={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},$v=Array.isArray,Jv=String.prototype.split,Kv=Array.prototype.push,Qv=function(t,e){Kv.apply(t,$v(e)?e:[e])},Xv=Date.prototype.toISOString,Zv=Vv.default,tg={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:zv.encode,encodeValuesOnly:!1,format:Zv,formatter:Vv.formatters[Zv],indices:!1,serializeDate:function(t){return Xv.call(t)},skipNulls:!1,strictNullHandling:!1},eg={},rg=function t(e,r,n,o,a,u,s,c,f,p,l,h,d,y,v){for(var g,b=e,m=v,w=0,A=!1;void 0!==(m=m.get(eg))&&!A;){var S=m.get(e);if(w+=1,void 0!==S){if(S===w)throw new RangeError("Cyclic object value");A=!0}void 0===m.get(eg)&&(w=0)}if("function"==typeof s?b=s(r,b):b instanceof Date?b=p(b):"comma"===n&&$v(b)&&(b=zv.maybeMap(b,(function(t){return t instanceof Date?p(t):t}))),null===b){if(o)return u&&!d?u(r,tg.encoder,y,"key",l):r;b=""}if("string"==typeof(g=b)||"number"==typeof g||"boolean"==typeof g||"symbol"===i(g)||"bigint"==typeof g||zv.isBuffer(b)){if(u){var E=d?r:u(r,tg.encoder,y,"key",l);if("comma"===n&&d){for(var R=Jv.call(String(b),","),P="",O=0;O<R.length;++O)P+=(0===O?"":",")+h(u(R[O],tg.encoder,y,"value",l));return[h(E)+"="+P]}return[h(E)+"="+h(u(b,tg.encoder,y,"value",l))]}return[h(r)+"="+h(String(b))]}var x,k=[];if(void 0===b)return k;if("comma"===n&&$v(b))x=[{value:b.length>0?b.join(",")||null:void 0}];else if($v(s))x=s;else{var I=Object.keys(b);x=c?I.sort(c):I}for(var j=0;j<x.length;++j){var T=x[j],N="object"===i(T)&&void 0!==T.value?T.value:b[T];if(!a||null!==N){var _=$v(b)?"function"==typeof n?n(r,T):r:r+(f?"."+T:"["+T+"]");v.set(e,w);var C=qv();C.set(eg,v),Qv(k,t(N,_,n,o,a,u,s,c,f,p,l,h,d,y,C))}}return k},ng=Gv,og=Object.prototype.hasOwnProperty,ig=Array.isArray,ag={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ng.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ug=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},sg=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},cg=function(t,e,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,s=[];if(u){if(!r.plainObjects&&og.call(Object.prototype,u)&&!r.allowPrototypes)return;s.push(u)}for(var c=0;r.depth>0&&null!==(a=i.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&og.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(a[1])}return a&&s.push("["+o.slice(a.index)+"]"),function(t,e,r,n){for(var o=n?e:sg(e,r),i=t.length-1;i>=0;--i){var a,u=t[i];if("[]"===u&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var s="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(s,10);r.parseArrays||""!==s?!isNaN(c)&&u!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=o:"__proto__"!==s&&(a[s]=o):a={0:o}}o=a}return o}(s,e,r,n)}},fg={formats:Fv,parse:function(t,e){var r=function(t){if(!t)return ag;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?ag.charset:t.charset;return{allowDots:void 0===t.allowDots?ag.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:ag.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:ag.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:ag.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:ag.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:ag.comma,decoder:"function"==typeof t.decoder?t.decoder:ag.decoder,delimiter:"string"==typeof t.delimiter||ng.isRegExp(t.delimiter)?t.delimiter:ag.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:ag.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:ag.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:ag.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:ag.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:ag.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof t?function(t,e){var r,n={},o=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=e.parameterLimit===1/0?void 0:e.parameterLimit,a=o.split(e.delimiter,i),u=-1,s=e.charset;if(e.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?s="utf-8":"utf8=%26%2310003%3B"===a[r]&&(s="iso-8859-1"),u=r,r=a.length);for(r=0;r<a.length;++r)if(r!==u){var c,f,p=a[r],l=p.indexOf("]="),h=-1===l?p.indexOf("="):l+1;-1===h?(c=e.decoder(p,ag.decoder,s,"key"),f=e.strictNullHandling?null:""):(c=e.decoder(p.slice(0,h),ag.decoder,s,"key"),f=ng.maybeMap(sg(p.slice(h+1),e),(function(t){return e.decoder(t,ag.decoder,s,"value")}))),f&&e.interpretNumericEntities&&"iso-8859-1"===s&&(f=ug(f)),p.indexOf("[]=")>-1&&(f=ig(f)?[f]:f),og.call(n,c)?n[c]=ng.combine(n[c],f):n[c]=f}return n}(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var u=i[a],s=cg(u,n[u],r,"string"==typeof t);o=ng.merge(o,s,r)}return!0===r.allowSparse?o:ng.compact(o)},stringify:function(t,e){var r,n=t,o=function(t){if(!t)return tg;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||tg.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Vv.default;if(void 0!==t.format){if(!Yv.call(Vv.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=Vv.formatters[r],o=tg.filter;return("function"==typeof t.filter||$v(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:tg.addQueryPrefix,allowDots:void 0===t.allowDots?tg.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:tg.charsetSentinel,delimiter:void 0===t.delimiter?tg.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:tg.encode,encoder:"function"==typeof t.encoder?t.encoder:tg.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:tg.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:tg.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:tg.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:tg.strictNullHandling}}(e);"function"==typeof o.filter?n=(0,o.filter)("",n):$v(o.filter)&&(r=o.filter);var a,u=[];if("object"!==i(n)||null===n)return"";a=e&&e.arrayFormat in Hv?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var s=Hv[a];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=qv(),f=0;f<r.length;++f){var p=r[f];o.skipNulls&&null===n[p]||Qv(u,rg(n[p],p,s,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var l=u.join(o.delimiter),h=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),l.length>0?h+l:""}},pg="function"==typeof btoa,lg="function"==typeof Buffer,hg=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),dg=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),yg=(mv={},dg.forEach((function(t,e){return mv[t]=e})),String.fromCharCode.bind(String)),vg=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))}),gg=function(t){for(var e,r,n,o,i="",a=t.length%3,u=0;u<t.length;){if((r=t.charCodeAt(u++))>255||(n=t.charCodeAt(u++))>255||(o=t.charCodeAt(u++))>255)throw new TypeError("invalid character found");i+=dg[(e=r<<16|n<<8|o)>>18&63]+dg[e>>12&63]+dg[e>>6&63]+dg[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},bg=pg?function(t){return btoa(t)}:lg?function(t){return Buffer.from(t,"binary").toString("base64")}:gg,mg=lg?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var e=[],r=0,n=t.length;r<n;r+=4096)e.push(yg.apply(null,t.subarray(r,r+4096)));return bg(e.join(""))},wg=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?yg(192|e>>>6)+yg(128|63&e):yg(224|e>>>12&15)+yg(128|e>>>6&63)+yg(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return yg(240|e>>>18&7)+yg(128|e>>>12&63)+yg(128|e>>>6&63)+yg(128|63&e)},Ag=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Sg=function(t){return t.replace(Ag,wg)},Eg=lg?function(t){return Buffer.from(t,"utf8").toString("base64")}:hg?function(t){return mg(hg.encode(t))}:function(t){return bg(Sg(t))},Rg=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?vg(Eg(t)):Eg(t)},Pg=Rg,Og=function(){function t(e){if(s(this,t),this.baseUrl=e.baseUrl,this.auth=e.auth,this.headers=this.buildHeaders({basicAuth:e.basicAuth,userAgent:e.userAgent}),"httpsAgent"in e){if("clientCertAuth"in e)throw new Error("Cannot specify clientCertAuth along with httpsAgent.");this.httpsAgent=e.httpsAgent}else"clientCertAuth"in e&&(this.clientCertAuth=e.clientCertAuth);this.proxy=e.proxy,this.requestToken=null}var r,i,a;return f(t,[{key:"build",value:(a=u(o().mark((function t(r,i,a,u){var s,c,f,p;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s=n(n(n({method:r,headers:this.headers,url:"".concat(this.baseUrl).concat(i)},u||{}),e.buildPlatformDependentConfig({httpsAgent:this.httpsAgent,clientCertAuth:this.clientCertAuth})),{},{proxy:this.proxy}),t.t0=r,t.next="get"===t.t0?4:"post"===t.t0?16:"put"===t.t0?29:"delete"===t.t0?37:44;break;case 4:if(!((c=this.buildRequestUrl(i,a)).length>4096)){t.next=15;break}return t.t1=n,t.t2=n({},s),t.t3={},t.t4=n(n({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),t.next=12,this.buildData(a);case 12:return t.t5=t.sent,t.t6={method:"post",headers:t.t4,data:t.t5},t.abrupt("return",(0,t.t1)(t.t2,t.t3,t.t6));case 15:return t.abrupt("return",n(n({},s),{},{url:c}));case 16:if(!(a instanceof zf)){t.next=21;break}return t.next=19,this.buildData(a);case 19:return f=t.sent,t.abrupt("return",n(n({},s),{},{headers:"function"==typeof f.getHeaders?n(n({},this.headers),f.getHeaders()):this.headers,data:f}));case 21:return t.t7=n,t.t8=n({},s),t.t9={},t.next=26,this.buildData(a);case 26:return t.t10=t.sent,t.t11={data:t.t10},t.abrupt("return",(0,t.t7)(t.t8,t.t9,t.t11));case 29:return t.t12=n,t.t13=n({},s),t.t14={},t.next=34,this.buildData(a);case 34:return t.t15=t.sent,t.t16={data:t.t15},t.abrupt("return",(0,t.t12)(t.t13,t.t14,t.t16));case 37:return t.t17=this,t.t18=i,t.next=41,this.buildData(a);case 41:return t.t19=t.sent,p=t.t17.buildRequestUrl.call(t.t17,t.t18,t.t19),t.abrupt("return",n(n({},s),{},{url:p}));case 44:throw new Error("".concat(r," method is not supported"));case 45:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return a.apply(this,arguments)})},{key:"buildRequestUrl",value:function(t,e){return"".concat(this.baseUrl).concat(t,"?").concat(fg.stringify(e))}},{key:"buildData",value:(i=u(o().mark((function t(e){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("session"!==this.auth.type){t.next=8;break}return t.next=3,this.getRequestToken();case 3:if(r=t.sent,!(e instanceof zf)){t.next=7;break}return e.append("__REQUEST_TOKEN__",r),t.abrupt("return",e);case 7:return t.abrupt("return",n({__REQUEST_TOKEN__:r},e));case 8:return t.abrupt("return",e);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"buildHeaders",value:function(t){var r=t.basicAuth,o=t.userAgent,i=r?{Authorization:"Basic ".concat(Pg("".concat(r.username,":").concat(r.password)))}:{},a=n(n({},e.buildHeaders({userAgent:o})),i);switch(this.auth.type){case"password":return n(n({},a),{},{"X-Cybozu-Authorization":Pg("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":var u=this.auth.apiToken;return Array.isArray(u)?n(n({},a),{},{"X-Cybozu-API-Token":u.join(",")}):n(n({},a),{},{"X-Cybozu-API-Token":u});case"oAuthToken":return n(n({},a),{},{Authorization:"Bearer ".concat(this.auth.oAuthToken)});default:return n(n({},a),{},{"X-Requested-With":"XMLHttpRequest"})}}},{key:"getRequestToken",value:(r=u(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==this.requestToken){t.next=4;break}return t.next=3,e.getRequestToken();case 3:this.requestToken=t.sent;case 4:return t.abrupt("return",this.requestToken);case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})}]),t}(),xg=$,kg=wn,Ig=Date.prototype,jg="Invalid Date",Tg="toString",Ng=xg(Ig.toString),_g=xg(Ig.getTime);String(new Date(NaN))!=jg&&kg(Ig,Tg,(function(){var t=_g(this);return t==t?Ng(this):jg}));var Cg=U,Ug=ie,Fg=gt,Bg=Zi,Dg=RegExp.prototype,Lg=Sr.PROPER,Mg=wn,Wg=er,Gg=Qi,qg=j,zg=function(t){var e=t.flags;return void 0!==e||"flags"in Dg||Ug(t,"flags")||!Fg(Dg,t)?e:Cg(Bg,t)},Vg="toString",Yg=RegExp.prototype.toString,Hg=qg((function(){return"/a/b"!=Yg.call({source:"a",flags:"b"})})),$g=Lg&&Yg.name!=Vg;(Hg||$g)&&Mg(RegExp.prototype,Vg,(function(){var t=Wg(this);return"/"+Gg(t.source)+"/"+Gg(zg(t))}),{unsafe:!0});var Jg,Kg=function(t){l(r,t);var e=A(r);function r(t){var n;return s(this,r),(n=e.call(this,t)).name="KintoneAbortSearchError",n.message=t,Object.setPrototypeOf(m(n),r.prototype),n}return f(r)}(g(Error)),Qg=function(t){l(r,t);var e=A(r);function r(t){var n;s(this,r);var o=r.buildErrorResponseDateWithIndex(t),i=o.data,a=o.bulkRequestIndex;return(n=e.call(this,i.message)).name="KintoneRestAPIError",n.id=i.id,n.code=i.code,n.errors=i.errors,n.status=t.status,n.bulkRequestIndex=a,n.headers=t.headers,n.message="[".concat(t.status,"] [").concat(n.code,"] ").concat(n.message," (").concat(n.id,")"),Error.captureStackTrace&&Error.captureStackTrace(m(n),r),Object.setPrototypeOf(m(n),r.prototype),n}return f(r,null,[{key:"findErrorResponseDataWithIndex",value:function(t){for(var e=0;e<t.length;e++){if(0!==Object.keys(t[e]).length)return{data:t[e],bulkRequestIndex:e}}throw Error("Missing response data in `results`. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.")}},{key:"buildErrorResponseDateWithIndex",value:function(t){return"results"in t.data?r.findErrorResponseDataWithIndex(t.data.results):{data:t.data}}}]),r}(g(Error)),Xg=["data"],Zg=function(){function t(e){var r=e.enableAbortSearchError;s(this,t),this.enableAbortSearchError=r}return f(t,[{key:"handle",value:function(t){var e=this;return t.then((function(t){return e.handleSuccessResponse(t)}),(function(t){return e.handleErrorResponse(t)}))}},{key:"handleSuccessResponse",value:function(t){if(this.enableAbortSearchError&&/Filter aborted because of too many search results/.test(t.headers["x-cybozu-warning"]))throw new Kg(t.headers["x-cybozu-warning"]);return t.data}},{key:"handleErrorResponse",value:function(t){if(!t.response){if(/mac verify failure/.test(t.toString()))throw new Error("invalid clientCertAuth setting");throw t}var e=t.response,r=e.data,o=b(e,Xg);if("string"==typeof r)throw new Error("".concat(o.status,": ").concat(o.statusText));throw new Qg(n({data:r},o))}}]),t}(),tb=function(t){if("username"in t)return n({type:"password"},t);if("apiToken"in t)return n({type:"apiToken"},t);if("oAuthToken"in t)return n({type:"oAuthToken"},t);try{return e.getDefaultAuth()}catch(t){if(t instanceof Yi)throw new Error("session authentication is not supported in ".concat(t.platform," environment."));throw t}},eb=function(){function t(){var r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t),rb(a),this.baseUrl=e.buildBaseUrl(a.baseUrl).replace(/\/+$/,"");var u=tb(null!==(r=a.auth)&&void 0!==r?r:{}),c=new Og(n(n({},a),{},{baseUrl:this.baseUrl,auth:u})),f=new Zg({enableAbortSearchError:null!==(o=null===(i=a.featureFlags)||void 0===i?void 0:i.enableAbortSearchError)&&void 0!==o&&o}),p=new bd({responseHandler:f,requestConfigBuilder:c}),l=a.guestSpaceId;this.bulkRequest_=new xs(p,l),this.record=new qf(p,this.bulkRequest_,l),this.app=new Gs(p,l),this.file=new Vf(p,l)}return f(t,[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(t){return this.bulkRequest_.send(t)}}],[{key:"version",get:function(){return e.getVersion()}}]),t}(),rb=function(t){nb(t.guestSpaceId)},nb=function(t){if(""===t||null===t)throw new Error("invalid guestSpaceId: got [".concat(t,"]"))};(Jg=$i).readFileFromPath&&(e.readFileFromPath=Jg.readFileFromPath),Jg.getRequestToken&&(e.getRequestToken=Jg.getRequestToken),Jg.getDefaultAuth&&(e.getDefaultAuth=Jg.getDefaultAuth),Jg.buildPlatformDependentConfig&&(e.buildPlatformDependentConfig=Jg.buildPlatformDependentConfig),Jg.buildHeaders&&(e.buildHeaders=Jg.buildHeaders),Jg.buildFormDataValue&&(e.buildFormDataValue=Jg.buildFormDataValue),Jg.buildBaseUrl&&(e.buildBaseUrl=Jg.buildBaseUrl),Jg.getVersion&&(e.getVersion=Jg.getVersion),t.KintoneAbortSearchError=Kg,t.KintoneAllRecordsError=Df,t.KintoneRestAPIClient=eb,t.KintoneRestAPIError=Qg,Object.defineProperty(t,"__esModule",{value:!0})}));
|