@kintone/rest-api-client 2.0.25 → 2.0.26
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
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.26](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client@2.0.25...@kintone/rest-api-client@2.0.26) (2021-11-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @kintone/rest-api-client
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.0.25](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client@2.0.24...@kintone/rest-api-client@2.0.25) (2021-11-17)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kintone/rest-api-client",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.26",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
},
|
|
90
90
|
"./package.json": "./package.json"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "876fc7d6058684140e5089dc054bece5e2769b17"
|
|
93
93
|
}
|
|
@@ -1 +1 @@
|
|
|
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),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}}),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){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var P=function(e){return e&&e.Math==Math&&e},E=P("object"==typeof globalThis&&globalThis)||P("object"==typeof window&&window)||P("object"==typeof self&&self)||P("object"==typeof x&&x)||function(){return this}()||Function("return this")(),k={},O=function(e){try{return!!e()}catch(e){return!0}},j=!O((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I={},N={}.propertyIsEnumerable,T=Object.getOwnPropertyDescriptor,F=T&&!N.call({1:2},1);I.f=F?function(e){var t=T(this,e);return!!t&&t.enumerable}:N;var C,U,_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B={}.toString,W=function(e){return B.call(e).slice(8,-1)},D=W,G="".split,M=O((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==D(e)?G.call(e,""):Object(e)}:Object,L=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},q=M,V=L,z=function(e){return q(V(e))},H=function(e){return"function"==typeof e},$=H,J=function(e){return"object"==typeof e?null!==e:$(e)},K=E,Q=H,X=function(e){return Q(e)?e:void 0},Y=function(e,t){return arguments.length<2?X(K[e]):K[e]&&K[e][t]},Z=E,ee=Y("navigator","userAgent")||"",te=Z.process,re=Z.Deno,ne=te&&te.versions||re&&re.version,oe=ne&&ne.v8;oe?U=(C=oe.split("."))[0]<4?1:C[0]+C[1]:ee&&(!(C=ee.match(/Edge\/(\d+)/))||C[1]>=74)&&(C=ee.match(/Chrome\/(\d+)/))&&(U=C[1]);var ie=U&&+U,ae=ie,ue=O,ce=!!Object.getOwnPropertySymbols&&!ue((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ae&&ae<41})),se=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,pe=H,le=Y,fe=se?function(e){return"symbol"==typeof e}:function(e){var t=le("Symbol");return pe(t)&&Object(e)instanceof t},de=H,ye=function(e){try{return String(e)}catch(e){return"Object"}},he=function(e){if(de(e))return e;throw TypeError(ye(e)+" is not a function")},ve=he,ge=function(e,t){var r=e[t];return null==r?void 0:ve(r)},me=H,be=J,we={exports:{}},Se=E,Ae=function(e,t){try{Object.defineProperty(Se,e,{value:t,configurable:!0,writable:!0})}catch(r){Se[e]=t}return t},xe=Ae,Re="__core-js_shared__",Pe=E[Re]||xe(Re,{}),Ee=Pe;(we.exports=function(e,t){return Ee[e]||(Ee[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var ke=L,Oe=function(e){return Object(ke(e))},je=Oe,Ie={}.hasOwnProperty,Ne=Object.hasOwn||function(e,t){return Ie.call(je(e),t)},Te=0,Fe=Math.random(),Ce=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Te+Fe).toString(36)},Ue=E,_e=we.exports,Be=Ne,We=Ce,De=ce,Ge=se,Me=_e("wks"),Le=Ue.Symbol,qe=Ge?Le:Le&&Le.withoutSetter||We,Ve=function(e){return Be(Me,e)&&(De||"string"==typeof Me[e])||(De&&Be(Le,e)?Me[e]=Le[e]:Me[e]=qe("Symbol."+e)),Me[e]},ze=J,He=fe,$e=ge,Je=function(e,t){var r,n;if("string"===t&&me(r=e.toString)&&!be(n=r.call(e)))return n;if(me(r=e.valueOf)&&!be(n=r.call(e)))return n;if("string"!==t&&me(r=e.toString)&&!be(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},Ke=Ve("toPrimitive"),Qe=function(e,t){if(!ze(e)||He(e))return e;var r,n=$e(e,Ke);if(n){if(void 0===t&&(t="default"),r=n.call(e,t),!ze(r)||He(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),Je(e,t)},Xe=Qe,Ye=fe,Ze=function(e){var t=Xe(e,"string");return Ye(t)?t:String(t)},et=J,tt=E.document,rt=et(tt)&&et(tt.createElement),nt=function(e){return rt?tt.createElement(e):{}},ot=nt,it=!j&&!O((function(){return 7!=Object.defineProperty(ot("div"),"a",{get:function(){return 7}}).a})),at=j,ut=I,ct=_,st=z,pt=Ze,lt=Ne,ft=it,dt=Object.getOwnPropertyDescriptor;k.f=at?dt:function(e,t){if(e=st(e),t=pt(t),ft)try{return dt(e,t)}catch(e){}if(lt(e,t))return ct(!ut.f.call(e,t),e[t])};var yt={},ht=J,vt=function(e){if(ht(e))return e;throw TypeError(String(e)+" is not an object")},gt=j,mt=it,bt=vt,wt=Ze,St=Object.defineProperty;yt.f=gt?St:function(e,t,r){if(bt(e),t=wt(t),bt(r),mt)try{return St(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var At=yt,xt=_,Rt=j?function(e,t,r){return At.f(e,t,xt(1,r))}:function(e,t,r){return e[t]=r,e},Pt={exports:{}},Et=H,kt=Pe,Ot=Function.toString;Et(kt.inspectSource)||(kt.inspectSource=function(e){return Ot.call(e)});var jt,It,Nt,Tt=kt.inspectSource,Ft=H,Ct=Tt,Ut=E.WeakMap,_t=Ft(Ut)&&/native code/.test(Ct(Ut)),Bt=we.exports,Wt=Ce,Dt=Bt("keys"),Gt=function(e){return Dt[e]||(Dt[e]=Wt(e))},Mt={},Lt=_t,qt=J,Vt=Rt,zt=Ne,Ht=Pe,$t=Gt,Jt=Mt,Kt="Object already initialized",Qt=E.WeakMap;if(Lt||Ht.state){var Xt=Ht.state||(Ht.state=new Qt),Yt=Xt.get,Zt=Xt.has,er=Xt.set;jt=function(e,t){if(Zt.call(Xt,e))throw new TypeError(Kt);return t.facade=e,er.call(Xt,e,t),t},It=function(e){return Yt.call(Xt,e)||{}},Nt=function(e){return Zt.call(Xt,e)}}else{var tr=$t("state");Jt[tr]=!0,jt=function(e,t){if(zt(e,tr))throw new TypeError(Kt);return t.facade=e,Vt(e,tr,t),t},It=function(e){return zt(e,tr)?e[tr]:{}},Nt=function(e){return zt(e,tr)}}var rr={set:jt,get:It,has:Nt,enforce:function(e){return Nt(e)?It(e):jt(e,{})},getterFor:function(e){return function(t){var r;if(!qt(t)||(r=It(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},nr=j,or=Ne,ir=Function.prototype,ar=nr&&Object.getOwnPropertyDescriptor,ur=or(ir,"name"),cr={EXISTS:ur,PROPER:ur&&"something"===function(){}.name,CONFIGURABLE:ur&&(!nr||nr&&ar(ir,"name").configurable)},sr=E,pr=H,lr=Ne,fr=Rt,dr=Ae,yr=Tt,hr=cr.CONFIGURABLE,vr=rr.get,gr=rr.enforce,mr=String(String).split("String");(Pt.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;pr(r)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!lr(r,"name")||hr&&r.name!==c)&&fr(r,"name",c),(o=gr(r)).source||(o.source=mr.join("string"==typeof c?c:""))),e!==sr?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=r:fr(e,t,r)):a?e[t]=r:dr(t,r)})(Function.prototype,"toString",(function(){return pr(this)&&vr(this).source||yr(this)}));var br={},wr=Math.ceil,Sr=Math.floor,Ar=function(e){var t=+e;return t!=t||0===t?0:(t>0?Sr:wr)(t)},xr=Ar,Rr=Math.max,Pr=Math.min,Er=function(e,t){var r=xr(e);return r<0?Rr(r+t,0):Pr(r,t)},kr=Ar,Or=Math.min,jr=function(e){return e>0?Or(kr(e),9007199254740991):0},Ir=jr,Nr=function(e){return Ir(e.length)},Tr=z,Fr=Er,Cr=Nr,Ur=function(e){return function(t,r,n){var o,i=Tr(t),a=Cr(i),u=Fr(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}},_r={includes:Ur(!0),indexOf:Ur(!1)},Br=Ne,Wr=z,Dr=_r.indexOf,Gr=Mt,Mr=function(e,t){var r,n=Wr(e),o=0,i=[];for(r in n)!Br(Gr,r)&&Br(n,r)&&i.push(r);for(;t.length>o;)Br(n,r=t[o++])&&(~Dr(i,r)||i.push(r));return i},Lr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qr=Mr,Vr=Lr.concat("length","prototype");br.f=Object.getOwnPropertyNames||function(e){return qr(e,Vr)};var zr={};zr.f=Object.getOwnPropertySymbols;var Hr=br,$r=zr,Jr=vt,Kr=Y("Reflect","ownKeys")||function(e){var t=Hr.f(Jr(e)),r=$r.f;return r?t.concat(r(e)):t},Qr=Ne,Xr=Kr,Yr=k,Zr=yt,en=O,tn=H,rn=/#|\.prototype\./,nn=function(e,t){var r=an[on(e)];return r==cn||r!=un&&(tn(t)?en(t):!!t)},on=nn.normalize=function(e){return String(e).replace(rn,".").toLowerCase()},an=nn.data={},un=nn.NATIVE="N",cn=nn.POLYFILL="P",sn=nn,pn=E,ln=k.f,fn=Rt,dn=Pt.exports,yn=Ae,hn=function(e,t){for(var r=Xr(t),n=Zr.f,o=Yr.f,i=0;i<r.length;i++){var a=r[i];Qr(e,a)||n(e,a,o(t,a))}},vn=sn,gn=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?pn:s?pn[u]||yn(u,{}):(pn[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=ln(r,n))&&a.value:r[n],!vn(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;hn(i,o)}(e.sham||o&&o.sham)&&fn(i,"sham",!0),dn(r,n,i,e)}},mn=W,bn=Array.isArray||function(e){return"Array"==mn(e)},wn=Ze,Sn=yt,An=_,xn=function(e,t,r){var n=wn(t);n in e?Sn.f(e,n,An(0,r)):e[n]=r},Rn={};Rn[Ve("toStringTag")]="z";var Pn="[object z]"===String(Rn),En=Pn,kn=H,On=W,jn=Ve("toStringTag"),In="Arguments"==On(function(){return arguments}()),Nn=En?On:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),jn))?r:In?On(t):"Object"==(n=On(t))&&kn(t.callee)?"Arguments":n},Tn=O,Fn=H,Cn=Nn,Un=Tt,_n=[],Bn=Y("Reflect","construct"),Wn=/^\s*(?:class|function)\b/,Dn=Wn.exec,Gn=!Wn.exec((function(){})),Mn=function(e){if(!Fn(e))return!1;try{return Bn(Object,_n,e),!0}catch(e){return!1}},Ln=!Bn||Tn((function(){var e;return Mn(Mn.call)||!Mn(Object)||!Mn((function(){e=!0}))||e}))?function(e){if(!Fn(e))return!1;switch(Cn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Gn||!!Dn.call(Wn,Un(e))}:Mn,qn=bn,Vn=Ln,zn=J,Hn=Ve("species"),$n=function(e){var t;return qn(e)&&(t=e.constructor,(Vn(t)&&(t===Array||qn(t.prototype))||zn(t)&&null===(t=t[Hn]))&&(t=void 0)),void 0===t?Array:t},Jn=function(e,t){return new($n(e))(0===t?0:t)},Kn=O,Qn=ie,Xn=Ve("species"),Yn=function(e){return Qn>=51||!Kn((function(){var t=[];return(t.constructor={})[Xn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Zn=gn,eo=O,to=bn,ro=J,no=Oe,oo=Nr,io=xn,ao=Jn,uo=Yn,co=ie,so=Ve("isConcatSpreadable"),po=9007199254740991,lo="Maximum allowed index exceeded",fo=co>=51||!eo((function(){var e=[];return e[so]=!1,e.concat()[0]!==e})),yo=uo("concat"),ho=function(e){if(!ro(e))return!1;var t=e[so];return void 0!==t?!!t:to(e)};Zn({target:"Array",proto:!0,forced:!fo||!yo},{concat:function(e){var t,r,n,o,i,a=no(this),u=ao(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(ho(i=-1===t?a:arguments[t])){if(c+(o=oo(i))>po)throw TypeError(lo);for(r=0;r<o;r++,c++)r in i&&io(u,c,i[r])}else{if(c>=po)throw TypeError(lo);io(u,c++,i)}return u.length=c,u}});!function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new O(n||[]);return i._invoke=function(e,t,r){var n=l;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=P(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=p(e,t,r);if("normal"===c.type){if(n=r.done?y:f,c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=y,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l="suspendedStart",f="suspendedYield",d="executing",y="completed",h={};function v(){}function g(){}function m(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,S=w&&w(w(j([])));S&&S!==r&&n.call(S,i)&&(b=S);var A=m.prototype=v.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(o,i,a,u){var c=p(e[o],e,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function P(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=p(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;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,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function E(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 O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=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 a.next=a}}return{next:I}}function I(){return{value:t,done:!0}}return g.prototype=A.constructor=m,m.constructor=g,g.displayName=c(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,u,"GeneratorFunction")),e.prototype=Object.create(A),e},e.awrap=function(e){return{__await:e}},x(R.prototype),R.prototype[a]=function(){return this},e.AsyncIterator=R,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new R(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(A),c(A,u,"Generator"),A[i]=function(){return this},A.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=j,O.prototype={constructor:O,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,h):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),h},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),h}},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:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var vo=j,go=cr.EXISTS,mo=yt.f,bo=Function.prototype,wo=bo.toString,So=/^\s*function ([^ (]*)/;vo&&!go&&mo(bo,"name",{configurable:!0,get:function(){try{return wo.call(this).match(So)[1]}catch(e){return""}}});var Ao=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 r}(v(Error)),xo=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)}}(),Ro=Object.freeze({__proto__:null,readFileFromPath:function(e){throw new Ao("Browser")},getRequestToken:xo,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.25"}}),Po=he,Eo=function(e,t,r){if(Po(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}},ko=M,Oo=Oe,jo=Nr,Io=Jn,No=[].push,To=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=Oo(c),h=ko(y),v=Eo(s,p,3),g=jo(h),m=0,b=l||Io,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:No.call(w,f)}else switch(e){case 4:return!1;case 7:No.call(w,f)}return i?-1:n||o?o:w}},Fo={forEach:To(0),map:To(1),filter:To(2),some:To(3),every:To(4),find:To(5),findIndex:To(6),filterReject:To(7)}.map;gn({target:"Array",proto:!0,forced:!Yn("map")},{map:function(e){return Fo(this,e,arguments.length>1?arguments[1]:void 0)}});var Co=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")},Uo=["endpointName"],_o=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,Uo);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 Co(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Bo=["preview"],Wo=["preview"],Do=["preview"],Go=["preview"],Mo=["preview"],Lo=["preview"],qo=["preview"],Vo=["preview"],zo=["preview"],Ho=["preview"],$o=["preview"],Jo=["preview"],Ko=["preview"],Qo=["preview"],Xo=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,Bo),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,Wo),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,Do),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,Go),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,Mo),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,Lo),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,qo),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,Vo),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,zo),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,Ho),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,$o),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,Jo),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,Ko),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,Qo),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 Co(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Yo=Mr,Zo=Lr,ei=Object.keys||function(e){return Yo(e,Zo)},ti=j,ri=O,ni=ei,oi=zr,ii=I,ai=Oe,ui=M,ci=Object.assign,si=Object.defineProperty,pi=!ci||ri((function(){if(ti&&1!==ci({b:1},ci(si({},"a",{enumerable:!0,get:function(){si(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!=ci({},e)[r]||ni(ci({},t)).join("")!=n}))?function(e,t){for(var r=ai(e),n=arguments.length,o=1,i=oi.f,a=ii.f;n>o;)for(var u,c=ui(arguments[o++]),s=i?ni(c).concat(i(c)):ni(c),p=s.length,l=0;p>l;)u=s[l++],ti&&!a.call(c,u)||(r[u]=c[u]);return r}:ci;gn({target:"Object",stat:!0,forced:Object.assign!==pi},{assign:pi});var li=Nn,fi=function(e){if("Symbol"===li(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},di=vt,yi=function(){var e=di(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},hi={},vi=O,gi=E.RegExp;hi.UNSUPPORTED_Y=vi((function(){var e=gi("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),hi.BROKEN_CARET=vi((function(){var e=gi("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));var mi,bi=yt,wi=vt,Si=ei,Ai=j?Object.defineProperties:function(e,t){wi(e);for(var r,n=Si(t),o=n.length,i=0;o>i;)bi.f(e,r=n[i++],t[r]);return e},xi=Y("document","documentElement"),Ri=vt,Pi=Ai,Ei=Lr,ki=Mt,Oi=xi,ji=nt,Ii=Gt("IE_PROTO"),Ni=function(){},Ti=function(e){return"<script>"+e+"</"+"script>"},Fi=function(e){e.write(Ti("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ci=function(){try{mi=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ci="undefined"!=typeof document?document.domain&&mi?Fi(mi):((t=ji("iframe")).style.display="none",Oi.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ti("document.F=Object")),e.close(),e.F):Fi(mi);for(var r=Ei.length;r--;)delete Ci.prototype[Ei[r]];return Ci()};ki[Ii]=!0;var Ui,_i,Bi=Object.create||function(e,t){var r;return null!==e?(Ni.prototype=Ri(e),r=new Ni,Ni.prototype=null,r[Ii]=e):r=Ci(),void 0===t?r:Pi(r,t)},Wi=O,Di=E.RegExp,Gi=Wi((function(){var e=Di(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Mi=O,Li=E.RegExp,qi=Mi((function(){var e=Li("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Vi=fi,zi=yi,Hi=hi,$i=we.exports,Ji=Bi,Ki=rr.get,Qi=Gi,Xi=qi,Yi=RegExp.prototype.exec,Zi=$i("native-string-replace",String.prototype.replace),ea=Yi,ta=(Ui=/a/,_i=/b*/g,Yi.call(Ui,"a"),Yi.call(_i,"a"),0!==Ui.lastIndex||0!==_i.lastIndex),ra=Hi.UNSUPPORTED_Y||Hi.BROKEN_CARET,na=void 0!==/()??/.exec("")[1];(ta||na||ra||Qi||Xi)&&(ea=function(e){var t,r,n,o,i,a,u,c=this,s=Ki(c),p=Vi(e),l=s.raw;if(l)return l.lastIndex=c.lastIndex,t=ea.call(l,p),c.lastIndex=l.lastIndex,t;var f=s.groups,d=ra&&c.sticky,y=zi.call(c),h=c.source,v=0,g=p;if(d&&(-1===(y=y.replace("y","")).indexOf("g")&&(y+="g"),g=p.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==p.charAt(c.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,v++),r=new RegExp("^(?:"+h+")",y)),na&&(r=new RegExp("^"+h+"$(?!\\s)",y)),ta&&(n=c.lastIndex),o=Yi.call(d?r:c,g),d?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:ta&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),na&&o&&o.length>1&&Zi.call(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=Ji(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var oa=ea;gn({target:"RegExp",proto:!0,forced:/./.exec!==oa},{exec:oa});var ia=Pt.exports,aa=oa,ua=O,ca=Ve,sa=Rt,pa=ca("species"),la=RegExp.prototype,fa=Ar,da=fi,ya=L,ha=function(e){return function(t,r){var n,o,i=da(ya(t)),a=fa(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):n:e?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},va={codeAt:ha(!1),charAt:ha(!0)}.charAt,ga=vt,ma=H,ba=W,wa=oa,Sa=vt,Aa=jr,xa=fi,Ra=L,Pa=ge,Ea=function(e,t,r){return t+(r?va(e,t).length:1)},ka=function(e,t){var r=e.exec;if(ma(r)){var n=r.call(e,t);return null!==n&&ga(n),n}if("RegExp"===ba(e))return wa.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")};(function(e,t,r,n){var o=ca(e),i=!ua((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!ua((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[pa]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var u=/./[o],c=t(o,""[e],(function(e,t,r,n,o){var a=t.exec;return a===aa||a===la.exec?i&&!o?{done:!0,value:u.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}));ia(String.prototype,e,c[0]),ia(la,o,c[1])}n&&sa(la[o],"sham",!0)})("match",(function(e,t,r){return[function(t){var r=Ra(this),n=null==t?void 0:Pa(t,e);return n?n.call(t,r):new RegExp(t)[e](xa(r))},function(e){var n=Sa(this),o=xa(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return ka(n,o);var a=n.unicode;n.lastIndex=0;for(var u,c=[],s=0;null!==(u=ka(n,o));){var p=xa(u[0]);c[s]=p,""===p&&(n.lastIndex=Ea(o,Aa(n.lastIndex),a)),s++}return 0===s?null:c}]}));var Oa=H,ja=vt,Ia=function(e){if("object"==typeof e||Oa(e))return e;throw TypeError("Can't set "+String(e)+" as a prototype")},Na=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return ja(r),Ia(n),t?e.call(r,n):r.__proto__=n,r}}():void 0),Ta=H,Fa=J,Ca=Na,Ua=1..valueOf,_a=L,Ba=fi,Wa="[\t\n\v\f\r \u2028\u2029\ufeff]",Da=RegExp("^"+Wa+Wa+"*"),Ga=RegExp(Wa+Wa+"*$"),Ma=function(e){return function(t){var r=Ba(_a(t));return 1&e&&(r=r.replace(Da,"")),2&e&&(r=r.replace(Ga,"")),r}},La={start:Ma(1),end:Ma(2),trim:Ma(3)},qa=j,Va=E,za=sn,Ha=Pt.exports,$a=Ne,Ja=function(e,t,r){var n,o;return Ca&&Ta(n=t.constructor)&&n!==r&&Fa(o=n.prototype)&&o!==r.prototype&&Ca(e,o),e},Ka=fe,Qa=Qe,Xa=O,Ya=br.f,Za=k.f,eu=yt.f,tu=function(e){return Ua.call(e)},ru=La.trim,nu="Number",ou=Va.Number,iu=ou.prototype,au=function(e){var t=Qa(e,"number");return"bigint"==typeof t?t:uu(t)},uu=function(e){var t,r,n,o,i,a,u,c,s=Qa(e,"number");if(Ka(s))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(43===(t=(s=ru(s)).charCodeAt(0))||45===t){if(88===(r=s.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(s.charCodeAt(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=s.slice(2)).length,u=0;u<a;u++)if((c=i.charCodeAt(u))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(za(nu,!ou(" 0o1")||!ou("0b1")||ou("+0x1"))){for(var cu,su=function(e){var t=arguments.length<1?0:ou(au(e)),r=this;return r instanceof su&&Xa((function(){tu(r)}))?Ja(Object(t),r,su):t},pu=qa?Ya(ou):"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(","),lu=0;pu.length>lu;lu++)$a(ou,cu=pu[lu])&&!$a(su,cu)&&eu(su,cu,Za(ou,cu));su.prototype=iu,iu.constructor=su,Ha(Va,nu,su)}var fu=Nn,du=Pn?{}.toString:function(){return"[object "+fu(this)+"]"},yu=Pn,hu=Pt.exports,vu=du;yu||hu(Object.prototype,"toString",vu,{unsafe:!0});var gu=gn,mu=bn,bu=Ln,wu=J,Su=Er,Au=Nr,xu=z,Ru=xn,Pu=Ve,Eu=Yn("slice"),ku=Pu("species"),Ou=[].slice,ju=Math.max;gu({target:"Array",proto:!0,forced:!Eu},{slice:function(e,t){var r,n,o,i=xu(this),a=Au(i),u=Su(e,a),c=Su(void 0===t?a:t,a);if(mu(i)&&(r=i.constructor,(bu(r)&&(r===Array||mu(r.prototype))||wu(r)&&null===(r=r[ku]))&&(r=void 0),r===Array||void 0===r))return Ou.call(i,u,c);for(n=new(void 0===r?Array:r)(ju(c-u,0)),o=0;u<c;u++,o++)u in i&&Ru(n,o,i[u]);return n.length=o,n}});var Iu=Oe,Nu=ei;gn({target:"Object",stat:!0,forced:O((function(){Nu(1)}))},{keys:function(e){return Nu(Iu(e))}});var Tu=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)),Fu=["condition","orderBy","withCursor"],Cu=["fields"],Uu=["condition"],_u=["condition","orderBy"],Bu=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,Fu),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,Cu),(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,Uu),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,_u),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 Tu({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 Tu({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 Tu({},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 Co(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Wu="object"==typeof self?self.FormData:window.FormData,Du=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 Wu,!("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 Ao)){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 Co(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Gu={exports:{}},Mu=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)}},Lu=Mu,qu=Object.prototype.toString;function Vu(e){return"[object Array]"===qu.call(e)}function zu(e){return void 0===e}function Hu(e){return null!==e&&"object"==typeof e}function $u(e){if("[object Object]"!==qu.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function Ju(e){return"[object Function]"===qu.call(e)}function Ku(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Vu(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var Qu={isArray:Vu,isArrayBuffer:function(e){return"[object ArrayBuffer]"===qu.call(e)},isBuffer:function(e){return null!==e&&!zu(e)&&null!==e.constructor&&!zu(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Hu,isPlainObject:$u,isUndefined:zu,isDate:function(e){return"[object Date]"===qu.call(e)},isFile:function(e){return"[object File]"===qu.call(e)},isBlob:function(e){return"[object Blob]"===qu.call(e)},isFunction:Ju,isStream:function(e){return Hu(e)&&Ju(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:Ku,merge:function e(){var t={};function r(r,n){$u(t[n])&&$u(r)?t[n]=e(t[n],r):$u(r)?t[n]=e({},r):Vu(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)Ku(arguments[n],r);return t},extend:function(e,t,r){return Ku(t,(function(t,n){e[n]=r&&"function"==typeof t?Lu(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}},Xu=Qu;function Yu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Zu=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Xu.isURLSearchParams(t))n=t.toString();else{var o=[];Xu.forEach(t,(function(e,t){null!=e&&(Xu.isArray(e)?t+="[]":e=[e],Xu.forEach(e,(function(e){Xu.isDate(e)?e=e.toISOString():Xu.isObject(e)&&(e=JSON.stringify(e)),o.push(Yu(t)+"="+Yu(e))})))})),n=o.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},ec=Qu;function tc(){this.handlers=[]}tc.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},tc.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},tc.prototype.forEach=function(e){ec.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var rc=tc,nc="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function oc(){throw new Error("setTimeout has not been defined")}function ic(){throw new Error("clearTimeout has not been defined")}var ac=oc,uc=ic;function cc(e){if(ac===setTimeout)return setTimeout(e,0);if((ac===oc||!ac)&&setTimeout)return ac=setTimeout,setTimeout(e,0);try{return ac(e,0)}catch(t){try{return ac.call(null,e,0)}catch(t){return ac.call(this,e,0)}}}"function"==typeof nc.setTimeout&&(ac=setTimeout),"function"==typeof nc.clearTimeout&&(uc=clearTimeout);var sc,pc=[],lc=!1,fc=-1;function dc(){lc&&sc&&(lc=!1,sc.length?pc=sc.concat(pc):fc=-1,pc.length&&yc())}function yc(){if(!lc){var e=cc(dc);lc=!0;for(var t=pc.length;t;){for(sc=pc,pc=[];++fc<t;)sc&&sc[fc].run();fc=-1,t=pc.length}sc=null,lc=!1,function(e){if(uc===clearTimeout)return clearTimeout(e);if((uc===ic||!uc)&&clearTimeout)return uc=clearTimeout,clearTimeout(e);try{uc(e)}catch(t){try{return uc.call(null,e)}catch(t){return uc.call(this,e)}}}(e)}}function hc(e,t){this.fun=e,this.array=t}hc.prototype.run=function(){this.fun.apply(null,this.array)};function vc(){}var gc=vc,mc=vc,bc=vc,wc=vc,Sc=vc,Ac=vc,xc=vc;var Rc=nc.performance||{},Pc=Rc.now||Rc.mozNow||Rc.msNow||Rc.oNow||Rc.webkitNow||function(){return(new Date).getTime()};var Ec=new Date;var kc={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];pc.push(new hc(e,t)),1!==pc.length||lc||cc(yc)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:gc,addListener:mc,once:bc,off:wc,removeListener:Sc,removeAllListeners:Ac,emit:xc,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*Pc.call(Rc),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-Ec)/1e3}},Oc=Qu,jc=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},Ic=jc,Nc=function(e,t,r,n,o){var i=new Error(e);return Ic(i,t,r,n,o)},Tc=Nc,Fc=Qu,Cc=Fc.isStandardBrowserEnv()?{write:function(e,t,r,n,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),Fc.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Fc.isString(n)&&a.push("path="+n),Fc.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.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(){}},Uc=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},_c=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Bc=Qu,Wc=["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"],Dc=Qu,Gc=Dc.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=Dc.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function Mc(e){this.message=e}Mc.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Mc.prototype.__CANCEL__=!0;var Lc=Mc,qc=Qu,Vc=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(Tc("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},zc=Cc,Hc=Zu,$c=function(e,t){return e&&!Uc(t)?_c(e,t):t},Jc=function(e){var t,r,n,o={};return e?(Bc.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=Bc.trim(e.substr(0,n)).toLowerCase(),r=Bc.trim(e.substr(n+1)),t){if(o[t]&&Wc.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o},Kc=Gc,Qc=Nc,Xc=us,Yc=Lc,Zc=function(e){return new Promise((function(t,r){var n,o=e.data,i=e.headers,a=e.responseType;function u(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}qc.isFormData(o)&&delete i["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var s=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(s+":"+p)}var l=$c(e.baseURL,e.url);function f(){if(c){var n="getAllResponseHeaders"in c?Jc(c.getAllResponseHeaders()):null,o={data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};Vc((function(e){t(e),u()}),(function(e){r(e),u()}),o),c=null}}if(c.open(e.method.toUpperCase(),Hc(l,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(f)},c.onabort=function(){c&&(r(Qc("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(Qc("Network Error",e,null,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||Xc.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(Qc(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},qc.isStandardBrowserEnv()){var d=(e.withCredentials||Kc(l))&&e.xsrfCookieName?zc.read(e.xsrfCookieName):void 0;d&&(i[e.xsrfHeaderName]=d)}"setRequestHeader"in c&&qc.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:c.setRequestHeader(t,e)})),qc.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){c&&(r(!e||e&&e.type?new Yc("canceled"):e),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),o||(o=null),c.send(o)}))},es=Qu,ts=function(e,t){Oc.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},rs=jc,ns={"Content-Type":"application/x-www-form-urlencoded"};function os(e,t){!es.isUndefined(e)&&es.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var is,as={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==kc&&"[object process]"===Object.prototype.toString.call(kc))&&(is=Zc),is),transformRequest:[function(e,t){return ts(t,"Accept"),ts(t,"Content-Type"),es.isFormData(e)||es.isArrayBuffer(e)||es.isBuffer(e)||es.isStream(e)||es.isFile(e)||es.isBlob(e)?e:es.isArrayBufferView(e)?e.buffer:es.isURLSearchParams(e)?(os(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):es.isObject(e)||t&&"application/json"===t["Content-Type"]?(os(t,"application/json"),function(e,t,r){if(es.isString(e))try{return(t||JSON.parse)(e),es.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||as.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&es.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw rs(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, */*"}}};es.forEach(["delete","get","head"],(function(e){as.headers[e]={}})),es.forEach(["post","put","patch"],(function(e){as.headers[e]=es.merge(ns)}));var us=as,cs=Qu,ss=us,ps=function(e){return!(!e||!e.__CANCEL__)},ls=Qu,fs=function(e,t,r){var n=this||ss;return cs.forEach(r,(function(r){e=r.call(n,e,t)})),e},ds=ps,ys=us,hs=Lc;function vs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hs("canceled")}var gs=Qu,ms=function(e,t){t=t||{};var r={};function n(e,t){return gs.isPlainObject(e)&&gs.isPlainObject(t)?gs.merge(e,t):gs.isPlainObject(t)?gs.merge({},t):gs.isArray(t)?t.slice():t}function o(r){return gs.isUndefined(t[r])?gs.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!gs.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return gs.isUndefined(t[r])?gs.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 gs.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,n=t(e);gs.isUndefined(n)&&t!==u||(r[e]=n)})),r},bs="0.24.0",ws=bs,Ss={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Ss[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var As={};Ss.transitional=function(e,t,r){function n(e,t){return"[Axios v"+ws+"] 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&&!As[o]&&(As[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 xs=Qu,Rs=Zu,Ps=rc,Es=function(e){return vs(e),e.headers=e.headers||{},e.data=fs.call(e,e.data,e.headers,e.transformRequest),e.headers=ls.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),ls.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||ys.adapter)(e).then((function(t){return vs(e),t.data=fs.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return ds(t)||(vs(e),t&&t.response&&(t.response.data=fs.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},ks=ms,Os={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var u=e[i],c=void 0===u||a(u,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:Ss},js=Os.validators;function Is(e){this.defaults=e,this.interceptors={request:new Ps,response:new Ps}}Is.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=ks(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&Os.assertOptions(t,{silentJSONParsing:js.transitional(js.boolean),forcedJSONParsing:js.transitional(js.boolean),clarifyTimeoutError:js.transitional(js.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!n){var a=[Es,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(i),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;r.length;){var c=r.shift(),s=r.shift();try{u=c(u)}catch(e){s(e);break}}try{o=Es(u)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},Is.prototype.getUri=function(e){return e=ks(this.defaults,e),Rs(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},xs.forEach(["delete","get","head","options"],(function(e){Is.prototype[e]=function(t,r){return this.request(ks(r||{},{method:e,url:t,data:(r||{}).data}))}})),xs.forEach(["post","put","patch"],(function(e){Is.prototype[e]=function(t,r,n){return this.request(ks(n||{},{method:e,url:t,data:r}))}}));var Ns=Is,Ts=Lc;function Fs(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new Ts(e),t(r.reason))}))}Fs.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Fs.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Fs.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Fs.source=function(){var e;return{token:new Fs((function(t){e=t})),cancel:e}};var Cs=Fs,Us=Qu,_s=Mu,Bs=Ns,Ws=ms;var Ds=function e(t){var r=new Bs(t),n=_s(Bs.prototype.request,r);return Us.extend(n,Bs.prototype,r),Us.extend(n,r),n.create=function(r){return e(Ws(t,r))},n}(us);Ds.Axios=Bs,Ds.Cancel=Lc,Ds.CancelToken=Cs,Ds.isCancel=ps,Ds.VERSION=bs,Ds.all=function(e){return Promise.all(e)},Ds.spread=function(e){return function(t){return e.apply(null,t)}},Ds.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},Gu.exports=Ds,Gu.exports.default=Ds;var Gs=Gu.exports,Ms=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(Gs(n(n({},e),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),e}(),Ls=O,qs=gn,Vs=z,zs=[].join,Hs=M!=Object,$s=function(e,t){var r=[][e];return!!r&&Ls((function(){r.call(null,t||function(){throw 1},1)}))}("join",",");qs({target:"Array",proto:!0,forced:Hs||!$s},{join:function(e){return zs.call(Vs(this),void 0===e?",":e)}});var Js,Ks=x.Symbol,Qs=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof 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 o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},Xs=function(){return"function"==typeof Ks&&("function"==typeof Symbol&&("symbol"==typeof Ks("foo")&&("symbol"==typeof Symbol("bar")&&Qs())))},Ys="Function.prototype.bind called on incompatible ",Zs=Array.prototype.slice,ep=Object.prototype.toString,tp="[object Function]",rp=function(e){var t=this;if("function"!=typeof t||ep.call(t)!==tp)throw new TypeError(Ys+t);for(var r,n=Zs.call(arguments,1),o=function(){if(this instanceof r){var o=t.apply(this,n.concat(Zs.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(Zs.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},np=Function.prototype.bind||rp,op=np.call(Function.call,Object.prototype.hasOwnProperty),ip=SyntaxError,ap=Function,up=TypeError,cp=function(e){try{return ap('"use strict"; return ('+e+").constructor;")()}catch(e){}},sp=Object.getOwnPropertyDescriptor;if(sp)try{sp({},"")}catch(e){sp=null}var pp,lp=function(){throw new up},fp=sp?function(){try{return lp}catch(e){try{return sp(arguments,"callee").get}catch(e){return lp}}}():lp,dp=Xs(),yp=Object.getPrototypeOf||function(e){return e.__proto__},hp={},vp="undefined"==typeof Uint8Array?Js:yp(Uint8Array),gp={"%AggregateError%":"undefined"==typeof AggregateError?Js:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Js:ArrayBuffer,"%ArrayIteratorPrototype%":dp?yp([][Symbol.iterator]()):Js,"%AsyncFromSyncIteratorPrototype%":Js,"%AsyncFunction%":hp,"%AsyncGenerator%":hp,"%AsyncGeneratorFunction%":hp,"%AsyncIteratorPrototype%":hp,"%Atomics%":"undefined"==typeof Atomics?Js:Atomics,"%BigInt%":"undefined"==typeof BigInt?Js:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Js:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Js:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Js:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Js:FinalizationRegistry,"%Function%":ap,"%GeneratorFunction%":hp,"%Int8Array%":"undefined"==typeof Int8Array?Js:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Js:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Js:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":dp?yp(yp([][Symbol.iterator]())):Js,"%JSON%":"object"==typeof JSON?JSON:Js,"%Map%":"undefined"==typeof Map?Js:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&dp?yp((new Map)[Symbol.iterator]()):Js,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Js:Promise,"%Proxy%":"undefined"==typeof Proxy?Js:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Js:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Js:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&dp?yp((new Set)[Symbol.iterator]()):Js,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Js:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":dp?yp(""[Symbol.iterator]()):Js,"%Symbol%":dp?Symbol:Js,"%SyntaxError%":ip,"%ThrowTypeError%":fp,"%TypedArray%":vp,"%TypeError%":up,"%Uint8Array%":"undefined"==typeof Uint8Array?Js:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Js:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Js:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Js:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Js:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Js:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Js:WeakSet},mp=function e(t){var r;if("%AsyncFunction%"===t)r=cp("async function () {}");else if("%GeneratorFunction%"===t)r=cp("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=cp("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=yp(o.prototype))}return gp[t]=r,r},bp={"%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"]},wp=np,Sp=op,Ap=wp.call(Function.call,Array.prototype.concat),xp=wp.call(Function.apply,Array.prototype.splice),Rp=wp.call(Function.call,String.prototype.replace),Pp=wp.call(Function.call,String.prototype.slice),Ep=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kp=/\\(\\)?/g,Op=function(e){var t=Pp(e,0,1),r=Pp(e,-1);if("%"===t&&"%"!==r)throw new ip("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new ip("invalid intrinsic syntax, expected opening `%`");var n=[];return Rp(e,Ep,(function(e,t,r,o){n[n.length]=r?Rp(o,kp,"$1"):t||e})),n},jp=function(e,t){var r,n=e;if(Sp(bp,n)&&(n="%"+(r=bp[n])[0]+"%"),Sp(gp,n)){var o=gp[n];if(o===hp&&(o=mp(n)),void 0===o&&!t)throw new up("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new ip("intrinsic "+e+" does not exist!")},Ip=SyntaxError,Np=Function,Tp=TypeError,Fp=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},Cp=Object.getOwnPropertyDescriptor;if(Cp)try{Cp({},"")}catch(e){Cp=null}var Up=function(){throw new Tp},_p=Cp?function(){try{return Up}catch(e){try{return Cp(arguments,"callee").get}catch(e){return Up}}}():Up,Bp=Xs(),Wp=Object.getPrototypeOf||function(e){return e.__proto__},Dp=Fp("async function* () {}"),Gp=Dp?Dp.prototype:pp,Mp=Gp?Gp.prototype:pp,Lp="undefined"==typeof Uint8Array?pp:Wp(Uint8Array),qp={"%AggregateError%":"undefined"==typeof AggregateError?pp:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?pp:ArrayBuffer,"%ArrayIteratorPrototype%":Bp?Wp([][Symbol.iterator]()):pp,"%AsyncFromSyncIteratorPrototype%":pp,"%AsyncFunction%":Fp("async function () {}"),"%AsyncGenerator%":Gp,"%AsyncGeneratorFunction%":Dp,"%AsyncIteratorPrototype%":Mp?Wp(Mp):pp,"%Atomics%":"undefined"==typeof Atomics?pp:Atomics,"%BigInt%":"undefined"==typeof BigInt?pp:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?pp:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?pp:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?pp:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?pp:FinalizationRegistry,"%Function%":Np,"%GeneratorFunction%":Fp("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?pp:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?pp:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?pp:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Bp?Wp(Wp([][Symbol.iterator]())):pp,"%JSON%":"object"==typeof JSON?JSON:pp,"%Map%":"undefined"==typeof Map?pp:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Bp?Wp((new Map)[Symbol.iterator]()):pp,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?pp:Promise,"%Proxy%":"undefined"==typeof Proxy?pp:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?pp:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?pp:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Bp?Wp((new Set)[Symbol.iterator]()):pp,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?pp:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Bp?Wp(""[Symbol.iterator]()):pp,"%Symbol%":Bp?Symbol:pp,"%SyntaxError%":Ip,"%ThrowTypeError%":_p,"%TypedArray%":Lp,"%TypeError%":Tp,"%Uint8Array%":"undefined"==typeof Uint8Array?pp:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?pp:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?pp:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?pp:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?pp:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?pp:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?pp:WeakSet},Vp={"%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"]},zp=np,Hp=op,$p=zp.call(Function.call,Array.prototype.concat),Jp=zp.call(Function.apply,Array.prototype.splice),Kp=zp.call(Function.call,String.prototype.replace),Qp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Xp=/\\(\\)?/g,Yp=function(e){var t=[];return Kp(e,Qp,(function(e,r,n,o){t[t.length]=n?Kp(o,Xp,"$1"):r||e})),t},Zp=function(e,t){var r,n=e;if(Hp(Vp,n)&&(n="%"+(r=Vp[n])[0]+"%"),Hp(qp,n)){var o=qp[n];if(void 0===o&&!t)throw new Tp("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Ip("intrinsic "+e+" does not exist!")},el=function(e,t){if("string"!=typeof e||0===e.length)throw new Tp("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Tp('"allowMissing" argument must be a boolean');var r=Yp(e),n=r.length>0?r[0]:"",o=Zp("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],Jp(r,$p([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s];if("constructor"!==l&&p||(u=!0),Hp(qp,i="%"+(n+="."+l)+"%"))a=qp[i];else if(null!=a){if(Cp&&s+1>=r.length){var f=Cp(a,l);if(p=!!f,!t&&!(l in a))throw new Tp("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=Hp(a,l),a=a[l];p&&!u&&(qp[i]=a)}}return a},tl={exports:{}};!function(e){var t=np,r=el,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}(tl);var rl=el,nl=tl.exports,ol=nl(rl("String.prototype.indexOf")),il=R(Object.freeze({__proto__:null,default:{}})),al="function"==typeof Map&&Map.prototype,ul=Object.getOwnPropertyDescriptor&&al?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,cl=al&&ul&&"function"==typeof ul.get?ul.get:null,sl=al&&Map.prototype.forEach,pl="function"==typeof Set&&Set.prototype,ll=Object.getOwnPropertyDescriptor&&pl?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,fl=pl&&ll&&"function"==typeof ll.get?ll.get:null,dl=pl&&Set.prototype.forEach,yl="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,hl="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,vl=Boolean.prototype.valueOf,gl=Object.prototype.toString,ml=Function.prototype.toString,bl=String.prototype.match,wl="function"==typeof BigInt?BigInt.prototype.valueOf:null,Sl=Object.getOwnPropertySymbols,Al="function"==typeof Symbol?Symbol.prototype.toString:null,xl=Object.prototype.propertyIsEnumerable,Rl=il.custom,Pl=Rl&&jl(Rl)?Rl:null;function El(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function kl(e){return String(e).replace(/"/g,""")}function Ol(e){return"[object Array]"===Tl(e)}function jl(e){return"[object Symbol]"===Tl(e)}var Il=Object.prototype.hasOwnProperty||function(e){return e in this};function Nl(e,t){return Il.call(e,t)}function Tl(e){return gl.call(e)}function Fl(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 Cl(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Cl(e.slice(0,t.maxStringLength),t)+n}return El(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Ul),"single",t)}function Ul(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 _l(e){return"Object("+e+")"}function Bl(e){return e+" { ? }"}function Wl(e,t,r,n){return e+" ("+t+") {"+(n?Dl(r,n):r.join(", "))+"}"}function Dl(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function Gl(e,t){var r=Ol(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Nl(e,o)?t(e[o],e):""}for(var i in e)Nl(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 Sl)for(var a=Sl(e),u=0;u<a.length;u++)xl.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var Ml=function(e,t){if("string"!=typeof e||0===e.length)throw new up("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new up('"allowMissing" argument must be a boolean');var r=Op(e),n=r.length>0?r[0]:"",o=jp("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],xp(r,Ap([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s],f=Pp(l,0,1),d=Pp(l,-1);if(('"'===f||"'"===f||"`"===f||'"'===d||"'"===d||"`"===d)&&f!==d)throw new ip("property names with quotes must have matching quotes");if("constructor"!==l&&p||(u=!0),Sp(gp,i="%"+(n+="."+l)+"%"))a=gp[i];else if(null!=a){if(!(l in a)){if(!t)throw new up("base intrinsic for "+e+" exists, but the property is not available.");return}if(sp&&s+1>=r.length){var y=sp(a,l);a=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[l]}else p=Sp(a,l),a=a[l];p&&!u&&(gp[i]=a)}}return a},Ll=function(e,t){var r=rl(e,!!t);return"function"==typeof r&&ol(e,".prototype.")>-1?nl(r):r},ql=function e(t,r,n,o){var i=r||{};if(Nl(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Nl(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!Nl(i,"customInspect")||i.customInspect;if("boolean"!=typeof a)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(Nl(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.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 Cl(t,i);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var u=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=u&&u>0&&"object"==typeof t)return Ol(t)?"[Array]":"[Object]";var c=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)}}(i,n);if(void 0===o)o=[];else if(Fl(o,t)>=0)return"[Circular]";function s(t,r,a){if(r&&(o=o.slice()).push(r),a){var u={depth:i.depth};return Nl(i,"quoteStyle")&&(u.quoteStyle=i.quoteStyle),e(t,u,n+1,o)}return e(t,i,n+1,o)}if("function"==typeof t){var p=function(e){if(e.name)return e.name;var t=bl.call(ml.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),l=Gl(t,s);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(l.length>0?" { "+l.join(", ")+" }":"")}if(jl(t)){var f=Al.call(t);return"object"==typeof t?_l(f):f}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var d="<"+String(t.nodeName).toLowerCase(),y=t.attributes||[],h=0;h<y.length;h++)d+=" "+y[h].name+"="+El(kl(y[h].value),"double",i);return d+=">",t.childNodes&&t.childNodes.length&&(d+="..."),d+="</"+String(t.nodeName).toLowerCase()+">"}if(Ol(t)){if(0===t.length)return"[]";var v=Gl(t,s);return c&&!function(e){for(var t=0;t<e.length;t++)if(Fl(e[t],"\n")>=0)return!1;return!0}(v)?"["+Dl(v,c)+"]":"[ "+v.join(", ")+" ]"}if(function(e){return"[object Error]"===Tl(e)}(t)){var g=Gl(t,s);return 0===g.length?"["+String(t)+"]":"{ ["+String(t)+"] "+g.join(", ")+" }"}if("object"==typeof t&&a){if(Pl&&"function"==typeof t[Pl])return t[Pl]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!cl||!e||"object"!=typeof e)return!1;try{cl.call(e);try{fl.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var m=[];return sl.call(t,(function(e,r){m.push(s(r,t,!0)+" => "+s(e,t))})),Wl("Map",cl.call(t),m,c)}if(function(e){if(!fl||!e||"object"!=typeof e)return!1;try{fl.call(e);try{cl.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var b=[];return dl.call(t,(function(e){b.push(s(e,t))})),Wl("Set",fl.call(t),b,c)}if(function(e){if(!yl||!e||"object"!=typeof e)return!1;try{yl.call(e,yl);try{hl.call(e,hl)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Bl("WeakMap");if(function(e){if(!hl||!e||"object"!=typeof e)return!1;try{hl.call(e,hl);try{yl.call(e,yl)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Bl("WeakSet");if(function(e){return"[object Number]"===Tl(e)}(t))return _l(s(Number(t)));if(function(e){return"[object BigInt]"===Tl(e)}(t))return _l(s(wl.call(t)));if(function(e){return"[object Boolean]"===Tl(e)}(t))return _l(vl.call(t));if(function(e){return"[object String]"===Tl(e)}(t))return _l(s(String(t)));if(!function(e){return"[object Date]"===Tl(e)}(t)&&!function(e){return"[object RegExp]"===Tl(e)}(t)){var w=Gl(t,s);return 0===w.length?"{}":c?"{"+Dl(w,c)+"}":"{ "+w.join(", ")+" }"}return String(t)},Vl=Ml("%TypeError%"),zl=Ml("%WeakMap%",!0),Hl=Ml("%Map%",!0),$l=Ll("WeakMap.prototype.get",!0),Jl=Ll("WeakMap.prototype.set",!0),Kl=Ll("WeakMap.prototype.has",!0),Ql=Ll("Map.prototype.get",!0),Xl=Ll("Map.prototype.set",!0),Yl=Ll("Map.prototype.has",!0),Zl=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},ef=String.prototype.replace,tf=/%20/g,rf="RFC3986",nf={default:rf,formatters:{RFC1738:function(e){return ef.call(e,tf,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:rf},of=nf,af=Object.prototype.hasOwnProperty,uf=Array.isArray,cf=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),sf=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},pf={arrayToObject:sf,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 o=t[n],i=o.obj[o.prop],a=Object.keys(i),u=0;u<a.length;++u){var c=a[u],s=i[c];"object"==typeof s&&null!==s&&-1===r.indexOf(s)&&(t.push({obj:i,prop:c}),r.push(s))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(uf(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,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",u=0;u<i.length;++u){var c=i.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===of.RFC1738&&(40===c||41===c)?a+=i.charAt(u):c<128?a+=cf[c]:c<2048?a+=cf[192|c>>6]+cf[128|63&c]:c<55296||c>=57344?a+=cf[224|c>>12]+cf[128|c>>6&63]+cf[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(u)),a+=cf[240|c>>18]+cf[128|c>>12&63]+cf[128|c>>6&63]+cf[128|63&c])}return a},isBuffer:function(e){return!(!e||"object"!=typeof 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(uf(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"!=typeof r){if(uf(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!af.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return uf(t)&&!uf(r)&&(o=sf(t,n)),uf(t)&&uf(r)?(r.forEach((function(r,o){if(af.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return af.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),o)}},lf=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new Vl("Side channel does not contain "+ql(e))},get:function(n){if(zl&&n&&("object"==typeof n||"function"==typeof n)){if(e)return $l(e,n)}else if(Hl){if(t)return Ql(t,n)}else if(r)return function(e,t){var r=Zl(e,t);return r&&r.value}(r,n)},has:function(n){if(zl&&n&&("object"==typeof n||"function"==typeof n)){if(e)return Kl(e,n)}else if(Hl){if(t)return Yl(t,n)}else if(r)return function(e,t){return!!Zl(e,t)}(r,n);return!1},set:function(n,o){zl&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new zl),Jl(e,n,o)):Hl?(t||(t=new Hl),Xl(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=Zl(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n},ff=pf,df=nf,yf=Object.prototype.hasOwnProperty,hf={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},vf=Array.isArray,gf=Array.prototype.push,mf=function(e,t){gf.apply(e,vf(t)?t:[t])},bf=Date.prototype.toISOString,wf=df.default,Sf={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:ff.encode,encodeValuesOnly:!1,format:wf,formatter:df.formatters[wf],indices:!1,serializeDate:function(e){return bf.call(e)},skipNulls:!1,strictNullHandling:!1},Af=function e(t,r,n,o,i,a,u,c,s,p,l,f,d,y,h){var v,g=t;if(h.has(t))throw new RangeError("Cyclic object value");if("function"==typeof u?g=u(r,g):g instanceof Date?g=p(g):"comma"===n&&vf(g)&&(g=ff.maybeMap(g,(function(e){return e instanceof Date?p(e):e}))),null===g){if(o)return a&&!d?a(r,Sf.encoder,y,"key",l):r;g=""}if("string"==typeof(v=g)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||ff.isBuffer(g))return a?[f(d?r:a(r,Sf.encoder,y,"key",l))+"="+f(a(g,Sf.encoder,y,"value",l))]:[f(r)+"="+f(String(g))];var m,b=[];if(void 0===g)return b;if("comma"===n&&vf(g))m=[{value:g.length>0?g.join(",")||null:void 0}];else if(vf(u))m=u;else{var w=Object.keys(g);m=c?w.sort(c):w}for(var S=0;S<m.length;++S){var A=m[S],x="object"==typeof A&&void 0!==A.value?A.value:g[A];if(!i||null!==x){var R=vf(g)?"function"==typeof n?n(r,A):r:r+(s?"."+A:"["+A+"]");h.set(t,!0);var P=lf();mf(b,e(x,R,n,o,i,a,u,c,s,p,l,f,d,y,P))}}return b},xf=pf,Rf=Object.prototype.hasOwnProperty,Pf=Array.isArray,Ef={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:xf.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},kf=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Of=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},jf=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&&Rf.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&&Rf.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:Of(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:a[c]=o:a={0:o}}o=a}return o}(c,t,r,n)}},If={formats:nf,parse:function(e,t){var r=function(e){if(!e)return Ef;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?Ef.charset:e.charset;return{allowDots:void 0===e.allowDots?Ef.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Ef.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Ef.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Ef.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ef.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Ef.comma,decoder:"function"==typeof e.decoder?e.decoder:Ef.decoder,delimiter:"string"==typeof e.delimiter||xf.isRegExp(e.delimiter)?e.delimiter:Ef.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Ef.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Ef.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Ef.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Ef.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ef.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,Ef.decoder,c,"key"),p=t.strictNullHandling?null:""):(s=t.decoder(l.slice(0,d),Ef.decoder,c,"key"),p=xf.maybeMap(Of(l.slice(d+1),t),(function(e){return t.decoder(e,Ef.decoder,c,"value")}))),p&&t.interpretNumericEntities&&"iso-8859-1"===c&&(p=kf(p)),l.indexOf("[]=")>-1&&(p=Pf(p)?[p]:p),Rf.call(n,s)?n[s]=xf.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=jf(u,n[u],r,"string"==typeof e);o=xf.merge(o,c,r)}return!0===r.allowSparse?o:xf.compact(o)},stringify:function(e,t){var r,n=e,o=function(e){if(!e)return Sf;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||Sf.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=df.default;if(void 0!==e.format){if(!yf.call(df.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=df.formatters[r],o=Sf.filter;return("function"==typeof e.filter||vf(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Sf.addQueryPrefix,allowDots:void 0===e.allowDots?Sf.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Sf.charsetSentinel,delimiter:void 0===e.delimiter?Sf.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Sf.encode,encoder:"function"==typeof e.encoder?e.encoder:Sf.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Sf.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Sf.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Sf.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Sf.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):vf(o.filter)&&(r=o.filter);var i,a=[];if("object"!=typeof n||null===n)return"";i=t&&t.arrayFormat in hf?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var u=hf[i];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=lf(),s=0;s<r.length;++s){var p=r[s];o.skipNulls&&null===n[p]||mf(a,Af(n[p],p,u,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=a.join(o.delimiter),f=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),l.length>0?f+l:""}},Nf={exports:{}};!function(e,t){!function(t,r){e.exports=function(t){var r,n=(t=t||{}).Base64,o="2.6.4",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(i),u=String.fromCharCode,c=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},s=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,p=function(e){return e.replace(s,c)},l=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[i.charAt(r>>>18),i.charAt(r>>>12&63),t>=2?"=":i.charAt(r>>>6&63),t>=1?"=":i.charAt(63&r)].join("")},f=t.btoa&&"function"==typeof t.btoa?function(e){return t.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,l)},d=function(e){return f(p(String(e)))},y=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},h=function(e,t){return t?y(d(e)):d(e)},v=function(e){return h(e,!0)};t.Uint8Array&&(r=function(e,t){for(var r="",n=0,o=e.length;n<o;n+=3){var a=e[n],u=e[n+1],c=e[n+2],s=a<<16|u<<8|c;r+=i.charAt(s>>>18)+i.charAt(s>>>12&63)+(void 0!==u?i.charAt(s>>>6&63):"=")+(void 0!==c?i.charAt(63&s):"=")}return t?y(r):r});var g,m=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u(55296+(t>>>10))+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w=function(e){return e.replace(m,b)},S=function(e){var t=e.length,r=t%4,n=(t>0?a[e.charAt(0)]<<18:0)|(t>1?a[e.charAt(1)]<<12:0)|(t>2?a[e.charAt(2)]<<6:0)|(t>3?a[e.charAt(3)]:0),o=[u(n>>>16),u(n>>>8&255),u(255&n)];return o.length-=[0,0,2,1][r],o.join("")},A=t.atob&&"function"==typeof t.atob?function(e){return t.atob(e)}:function(e){return e.replace(/\S{1,4}/g,S)},x=function(e){return A(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},R=function(e){return w(A(e))},P=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},E=function(e){return R(P(e))};t.Uint8Array&&(g=function(e){return Uint8Array.from(x(P(e)),(function(e){return e.charCodeAt(0)}))});var k=function(){var e=t.Base64;return t.Base64=n,e};if(t.Base64={VERSION:o,atob:x,btoa:f,fromBase64:E,toBase64:h,utob:p,encode:h,encodeURI:v,btou:w,decode:E,noConflict:k,fromUint8Array:r,toUint8Array:g},"function"==typeof Object.defineProperty){var O=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",O((function(){return E(this)}))),Object.defineProperty(String.prototype,"toBase64",O((function(e){return h(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",O((function(){return h(this,!0)})))}}t.Meteor&&(Base64=t.Base64);e.exports&&(e.exports.Base64=t.Base64);return{Base64:t.Base64}}(t)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:x)}(Nf);var Tf=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 Wu)){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(If.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 Wu)){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(Nf.exports.Base64.encode("".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":Nf.exports.Base64.encode("".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}(),Ff=cr.PROPER,Cf=Pt.exports,Uf=vt,_f=fi,Bf=O,Wf=yi,Df="toString",Gf=RegExp.prototype,Mf=Gf.toString,Lf=Bf((function(){return"/a/b"!=Mf.call({source:"a",flags:"b"})})),qf=Ff&&Mf.name!=Df;(Lf||qf)&&Cf(RegExp.prototype,Df,(function(){var e=Uf(this),t=_f(e.source),r=e.flags;return"/"+t+"/"+_f(void 0===r&&e instanceof RegExp&&!("flags"in Gf)?Wf.call(e):r)}),{unsafe:!0});var Vf,zf=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 r}(v(Error)),Hf=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)),$f=["data"],Jf=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 zf(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,$f);if("string"==typeof r)throw new Error("".concat(o.status,": ").concat(o.statusText));throw new Hf(n({data:r},o))}}]),e}(),Kf=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 Ao)throw new Error("session authentication is not supported in ".concat(e.platform," environment."));throw e}},Qf=function(){function e(){var r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),Xf(a),this.baseUrl=t.buildBaseUrl(a.baseUrl);var c=Kf(null!==(r=a.auth)&&void 0!==r?r:{}),s=new Tf(n(n({},a),{},{baseUrl:this.baseUrl,auth:c})),p=new Jf({enableAbortSearchError:null!==(o=null===(i=a.featureFlags)||void 0===i?void 0:i.enableAbortSearchError)&&void 0!==o&&o}),l=new Ms({responseHandler:p,requestConfigBuilder:s}),f=a.guestSpaceId;this.bulkRequest_=new _o(l,f),this.record=new Bu(l,this.bulkRequest_,f),this.app=new Xo(l,f),this.file=new Du(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}(),Xf=function(e){Yf(e.guestSpaceId)},Yf=function(e){if(""===e||null===e)throw new Error("invalid guestSpaceId: got [".concat(e,"]"))};Vf=Ro,t.readFileFromPath=Vf.readFileFromPath,t.getRequestToken=Vf.getRequestToken,t.getDefaultAuth=Vf.getDefaultAuth,t.buildPlatformDependentConfig=Vf.buildPlatformDependentConfig,t.buildHeaders=Vf.buildHeaders,t.buildFormDataValue=Vf.buildFormDataValue,t.buildBaseUrl=Vf.buildBaseUrl,t.getVersion=Vf.getVersion,e.KintoneAbortSearchError=zf,e.KintoneAllRecordsError=Tu,e.KintoneRestAPIClient=Qf,e.KintoneRestAPIError=Hf,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
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),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}}),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){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var P=function(e){return e&&e.Math==Math&&e},E=P("object"==typeof globalThis&&globalThis)||P("object"==typeof window&&window)||P("object"==typeof self&&self)||P("object"==typeof x&&x)||function(){return this}()||Function("return this")(),k={},O=function(e){try{return!!e()}catch(e){return!0}},j=!O((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I={},N={}.propertyIsEnumerable,T=Object.getOwnPropertyDescriptor,F=T&&!N.call({1:2},1);I.f=F?function(e){var t=T(this,e);return!!t&&t.enumerable}:N;var C,U,_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B={}.toString,W=function(e){return B.call(e).slice(8,-1)},D=W,G="".split,M=O((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==D(e)?G.call(e,""):Object(e)}:Object,L=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},q=M,V=L,z=function(e){return q(V(e))},H=function(e){return"function"==typeof e},$=H,J=function(e){return"object"==typeof e?null!==e:$(e)},K=E,Q=H,X=function(e){return Q(e)?e:void 0},Y=function(e,t){return arguments.length<2?X(K[e]):K[e]&&K[e][t]},Z=E,ee=Y("navigator","userAgent")||"",te=Z.process,re=Z.Deno,ne=te&&te.versions||re&&re.version,oe=ne&&ne.v8;oe?U=(C=oe.split("."))[0]<4?1:C[0]+C[1]:ee&&(!(C=ee.match(/Edge\/(\d+)/))||C[1]>=74)&&(C=ee.match(/Chrome\/(\d+)/))&&(U=C[1]);var ie=U&&+U,ae=ie,ue=O,ce=!!Object.getOwnPropertySymbols&&!ue((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ae&&ae<41})),se=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,pe=H,le=Y,fe=se?function(e){return"symbol"==typeof e}:function(e){var t=le("Symbol");return pe(t)&&Object(e)instanceof t},de=H,ye=function(e){try{return String(e)}catch(e){return"Object"}},he=function(e){if(de(e))return e;throw TypeError(ye(e)+" is not a function")},ve=he,ge=function(e,t){var r=e[t];return null==r?void 0:ve(r)},me=H,be=J,we={exports:{}},Se=E,Ae=function(e,t){try{Object.defineProperty(Se,e,{value:t,configurable:!0,writable:!0})}catch(r){Se[e]=t}return t},xe=Ae,Re="__core-js_shared__",Pe=E[Re]||xe(Re,{}),Ee=Pe;(we.exports=function(e,t){return Ee[e]||(Ee[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var ke=L,Oe=function(e){return Object(ke(e))},je=Oe,Ie={}.hasOwnProperty,Ne=Object.hasOwn||function(e,t){return Ie.call(je(e),t)},Te=0,Fe=Math.random(),Ce=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Te+Fe).toString(36)},Ue=E,_e=we.exports,Be=Ne,We=Ce,De=ce,Ge=se,Me=_e("wks"),Le=Ue.Symbol,qe=Ge?Le:Le&&Le.withoutSetter||We,Ve=function(e){return Be(Me,e)&&(De||"string"==typeof Me[e])||(De&&Be(Le,e)?Me[e]=Le[e]:Me[e]=qe("Symbol."+e)),Me[e]},ze=J,He=fe,$e=ge,Je=function(e,t){var r,n;if("string"===t&&me(r=e.toString)&&!be(n=r.call(e)))return n;if(me(r=e.valueOf)&&!be(n=r.call(e)))return n;if("string"!==t&&me(r=e.toString)&&!be(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},Ke=Ve("toPrimitive"),Qe=function(e,t){if(!ze(e)||He(e))return e;var r,n=$e(e,Ke);if(n){if(void 0===t&&(t="default"),r=n.call(e,t),!ze(r)||He(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),Je(e,t)},Xe=Qe,Ye=fe,Ze=function(e){var t=Xe(e,"string");return Ye(t)?t:String(t)},et=J,tt=E.document,rt=et(tt)&&et(tt.createElement),nt=function(e){return rt?tt.createElement(e):{}},ot=nt,it=!j&&!O((function(){return 7!=Object.defineProperty(ot("div"),"a",{get:function(){return 7}}).a})),at=j,ut=I,ct=_,st=z,pt=Ze,lt=Ne,ft=it,dt=Object.getOwnPropertyDescriptor;k.f=at?dt:function(e,t){if(e=st(e),t=pt(t),ft)try{return dt(e,t)}catch(e){}if(lt(e,t))return ct(!ut.f.call(e,t),e[t])};var yt={},ht=J,vt=function(e){if(ht(e))return e;throw TypeError(String(e)+" is not an object")},gt=j,mt=it,bt=vt,wt=Ze,St=Object.defineProperty;yt.f=gt?St:function(e,t,r){if(bt(e),t=wt(t),bt(r),mt)try{return St(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var At=yt,xt=_,Rt=j?function(e,t,r){return At.f(e,t,xt(1,r))}:function(e,t,r){return e[t]=r,e},Pt={exports:{}},Et=H,kt=Pe,Ot=Function.toString;Et(kt.inspectSource)||(kt.inspectSource=function(e){return Ot.call(e)});var jt,It,Nt,Tt=kt.inspectSource,Ft=H,Ct=Tt,Ut=E.WeakMap,_t=Ft(Ut)&&/native code/.test(Ct(Ut)),Bt=we.exports,Wt=Ce,Dt=Bt("keys"),Gt=function(e){return Dt[e]||(Dt[e]=Wt(e))},Mt={},Lt=_t,qt=J,Vt=Rt,zt=Ne,Ht=Pe,$t=Gt,Jt=Mt,Kt="Object already initialized",Qt=E.WeakMap;if(Lt||Ht.state){var Xt=Ht.state||(Ht.state=new Qt),Yt=Xt.get,Zt=Xt.has,er=Xt.set;jt=function(e,t){if(Zt.call(Xt,e))throw new TypeError(Kt);return t.facade=e,er.call(Xt,e,t),t},It=function(e){return Yt.call(Xt,e)||{}},Nt=function(e){return Zt.call(Xt,e)}}else{var tr=$t("state");Jt[tr]=!0,jt=function(e,t){if(zt(e,tr))throw new TypeError(Kt);return t.facade=e,Vt(e,tr,t),t},It=function(e){return zt(e,tr)?e[tr]:{}},Nt=function(e){return zt(e,tr)}}var rr={set:jt,get:It,has:Nt,enforce:function(e){return Nt(e)?It(e):jt(e,{})},getterFor:function(e){return function(t){var r;if(!qt(t)||(r=It(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},nr=j,or=Ne,ir=Function.prototype,ar=nr&&Object.getOwnPropertyDescriptor,ur=or(ir,"name"),cr={EXISTS:ur,PROPER:ur&&"something"===function(){}.name,CONFIGURABLE:ur&&(!nr||nr&&ar(ir,"name").configurable)},sr=E,pr=H,lr=Ne,fr=Rt,dr=Ae,yr=Tt,hr=cr.CONFIGURABLE,vr=rr.get,gr=rr.enforce,mr=String(String).split("String");(Pt.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;pr(r)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!lr(r,"name")||hr&&r.name!==c)&&fr(r,"name",c),(o=gr(r)).source||(o.source=mr.join("string"==typeof c?c:""))),e!==sr?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=r:fr(e,t,r)):a?e[t]=r:dr(t,r)})(Function.prototype,"toString",(function(){return pr(this)&&vr(this).source||yr(this)}));var br={},wr=Math.ceil,Sr=Math.floor,Ar=function(e){var t=+e;return t!=t||0===t?0:(t>0?Sr:wr)(t)},xr=Ar,Rr=Math.max,Pr=Math.min,Er=function(e,t){var r=xr(e);return r<0?Rr(r+t,0):Pr(r,t)},kr=Ar,Or=Math.min,jr=function(e){return e>0?Or(kr(e),9007199254740991):0},Ir=jr,Nr=function(e){return Ir(e.length)},Tr=z,Fr=Er,Cr=Nr,Ur=function(e){return function(t,r,n){var o,i=Tr(t),a=Cr(i),u=Fr(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}},_r={includes:Ur(!0),indexOf:Ur(!1)},Br=Ne,Wr=z,Dr=_r.indexOf,Gr=Mt,Mr=function(e,t){var r,n=Wr(e),o=0,i=[];for(r in n)!Br(Gr,r)&&Br(n,r)&&i.push(r);for(;t.length>o;)Br(n,r=t[o++])&&(~Dr(i,r)||i.push(r));return i},Lr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qr=Mr,Vr=Lr.concat("length","prototype");br.f=Object.getOwnPropertyNames||function(e){return qr(e,Vr)};var zr={};zr.f=Object.getOwnPropertySymbols;var Hr=br,$r=zr,Jr=vt,Kr=Y("Reflect","ownKeys")||function(e){var t=Hr.f(Jr(e)),r=$r.f;return r?t.concat(r(e)):t},Qr=Ne,Xr=Kr,Yr=k,Zr=yt,en=O,tn=H,rn=/#|\.prototype\./,nn=function(e,t){var r=an[on(e)];return r==cn||r!=un&&(tn(t)?en(t):!!t)},on=nn.normalize=function(e){return String(e).replace(rn,".").toLowerCase()},an=nn.data={},un=nn.NATIVE="N",cn=nn.POLYFILL="P",sn=nn,pn=E,ln=k.f,fn=Rt,dn=Pt.exports,yn=Ae,hn=function(e,t){for(var r=Xr(t),n=Zr.f,o=Yr.f,i=0;i<r.length;i++){var a=r[i];Qr(e,a)||n(e,a,o(t,a))}},vn=sn,gn=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?pn:s?pn[u]||yn(u,{}):(pn[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=ln(r,n))&&a.value:r[n],!vn(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;hn(i,o)}(e.sham||o&&o.sham)&&fn(i,"sham",!0),dn(r,n,i,e)}},mn=W,bn=Array.isArray||function(e){return"Array"==mn(e)},wn=Ze,Sn=yt,An=_,xn=function(e,t,r){var n=wn(t);n in e?Sn.f(e,n,An(0,r)):e[n]=r},Rn={};Rn[Ve("toStringTag")]="z";var Pn="[object z]"===String(Rn),En=Pn,kn=H,On=W,jn=Ve("toStringTag"),In="Arguments"==On(function(){return arguments}()),Nn=En?On:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),jn))?r:In?On(t):"Object"==(n=On(t))&&kn(t.callee)?"Arguments":n},Tn=O,Fn=H,Cn=Nn,Un=Tt,_n=[],Bn=Y("Reflect","construct"),Wn=/^\s*(?:class|function)\b/,Dn=Wn.exec,Gn=!Wn.exec((function(){})),Mn=function(e){if(!Fn(e))return!1;try{return Bn(Object,_n,e),!0}catch(e){return!1}},Ln=!Bn||Tn((function(){var e;return Mn(Mn.call)||!Mn(Object)||!Mn((function(){e=!0}))||e}))?function(e){if(!Fn(e))return!1;switch(Cn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Gn||!!Dn.call(Wn,Un(e))}:Mn,qn=bn,Vn=Ln,zn=J,Hn=Ve("species"),$n=function(e){var t;return qn(e)&&(t=e.constructor,(Vn(t)&&(t===Array||qn(t.prototype))||zn(t)&&null===(t=t[Hn]))&&(t=void 0)),void 0===t?Array:t},Jn=function(e,t){return new($n(e))(0===t?0:t)},Kn=O,Qn=ie,Xn=Ve("species"),Yn=function(e){return Qn>=51||!Kn((function(){var t=[];return(t.constructor={})[Xn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Zn=gn,eo=O,to=bn,ro=J,no=Oe,oo=Nr,io=xn,ao=Jn,uo=Yn,co=ie,so=Ve("isConcatSpreadable"),po=9007199254740991,lo="Maximum allowed index exceeded",fo=co>=51||!eo((function(){var e=[];return e[so]=!1,e.concat()[0]!==e})),yo=uo("concat"),ho=function(e){if(!ro(e))return!1;var t=e[so];return void 0!==t?!!t:to(e)};Zn({target:"Array",proto:!0,forced:!fo||!yo},{concat:function(e){var t,r,n,o,i,a=no(this),u=ao(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(ho(i=-1===t?a:arguments[t])){if(c+(o=oo(i))>po)throw TypeError(lo);for(r=0;r<o;r++,c++)r in i&&io(u,c,i[r])}else{if(c>=po)throw TypeError(lo);io(u,c++,i)}return u.length=c,u}});!function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new O(n||[]);return i._invoke=function(e,t,r){var n=l;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=P(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=p(e,t,r);if("normal"===c.type){if(n=r.done?y:f,c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=y,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l="suspendedStart",f="suspendedYield",d="executing",y="completed",h={};function v(){}function g(){}function m(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,S=w&&w(w(j([])));S&&S!==r&&n.call(S,i)&&(b=S);var A=m.prototype=v.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(o,i,a,u){var c=p(e[o],e,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function P(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=p(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;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,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function E(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 O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=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 a.next=a}}return{next:I}}function I(){return{value:t,done:!0}}return g.prototype=A.constructor=m,m.constructor=g,g.displayName=c(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,u,"GeneratorFunction")),e.prototype=Object.create(A),e},e.awrap=function(e){return{__await:e}},x(R.prototype),R.prototype[a]=function(){return this},e.AsyncIterator=R,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new R(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(A),c(A,u,"Generator"),A[i]=function(){return this},A.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=j,O.prototype={constructor:O,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,h):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),h},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),h}},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:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var vo=j,go=cr.EXISTS,mo=yt.f,bo=Function.prototype,wo=bo.toString,So=/^\s*function ([^ (]*)/;vo&&!go&&mo(bo,"name",{configurable:!0,get:function(){try{return wo.call(this).match(So)[1]}catch(e){return""}}});var Ao=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 r}(v(Error)),xo=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)}}(),Ro=Object.freeze({__proto__:null,readFileFromPath:function(e){throw new Ao("Browser")},getRequestToken:xo,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.26"}}),Po=he,Eo=function(e,t,r){if(Po(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}},ko=M,Oo=Oe,jo=Nr,Io=Jn,No=[].push,To=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=Oo(c),h=ko(y),v=Eo(s,p,3),g=jo(h),m=0,b=l||Io,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:No.call(w,f)}else switch(e){case 4:return!1;case 7:No.call(w,f)}return i?-1:n||o?o:w}},Fo={forEach:To(0),map:To(1),filter:To(2),some:To(3),every:To(4),find:To(5),findIndex:To(6),filterReject:To(7)}.map;gn({target:"Array",proto:!0,forced:!Yn("map")},{map:function(e){return Fo(this,e,arguments.length>1?arguments[1]:void 0)}});var Co=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")},Uo=["endpointName"],_o=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,Uo);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 Co(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Bo=["preview"],Wo=["preview"],Do=["preview"],Go=["preview"],Mo=["preview"],Lo=["preview"],qo=["preview"],Vo=["preview"],zo=["preview"],Ho=["preview"],$o=["preview"],Jo=["preview"],Ko=["preview"],Qo=["preview"],Xo=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,Bo),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,Wo),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,Do),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,Go),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,Mo),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,Lo),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,qo),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,Vo),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,zo),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,Ho),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,$o),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,Jo),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,Ko),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,Qo),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 Co(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Yo=Mr,Zo=Lr,ei=Object.keys||function(e){return Yo(e,Zo)},ti=j,ri=O,ni=ei,oi=zr,ii=I,ai=Oe,ui=M,ci=Object.assign,si=Object.defineProperty,pi=!ci||ri((function(){if(ti&&1!==ci({b:1},ci(si({},"a",{enumerable:!0,get:function(){si(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!=ci({},e)[r]||ni(ci({},t)).join("")!=n}))?function(e,t){for(var r=ai(e),n=arguments.length,o=1,i=oi.f,a=ii.f;n>o;)for(var u,c=ui(arguments[o++]),s=i?ni(c).concat(i(c)):ni(c),p=s.length,l=0;p>l;)u=s[l++],ti&&!a.call(c,u)||(r[u]=c[u]);return r}:ci;gn({target:"Object",stat:!0,forced:Object.assign!==pi},{assign:pi});var li=Nn,fi=function(e){if("Symbol"===li(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},di=vt,yi=function(){var e=di(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},hi={},vi=O,gi=E.RegExp;hi.UNSUPPORTED_Y=vi((function(){var e=gi("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),hi.BROKEN_CARET=vi((function(){var e=gi("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));var mi,bi=yt,wi=vt,Si=ei,Ai=j?Object.defineProperties:function(e,t){wi(e);for(var r,n=Si(t),o=n.length,i=0;o>i;)bi.f(e,r=n[i++],t[r]);return e},xi=Y("document","documentElement"),Ri=vt,Pi=Ai,Ei=Lr,ki=Mt,Oi=xi,ji=nt,Ii=Gt("IE_PROTO"),Ni=function(){},Ti=function(e){return"<script>"+e+"</"+"script>"},Fi=function(e){e.write(Ti("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ci=function(){try{mi=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ci="undefined"!=typeof document?document.domain&&mi?Fi(mi):((t=ji("iframe")).style.display="none",Oi.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ti("document.F=Object")),e.close(),e.F):Fi(mi);for(var r=Ei.length;r--;)delete Ci.prototype[Ei[r]];return Ci()};ki[Ii]=!0;var Ui,_i,Bi=Object.create||function(e,t){var r;return null!==e?(Ni.prototype=Ri(e),r=new Ni,Ni.prototype=null,r[Ii]=e):r=Ci(),void 0===t?r:Pi(r,t)},Wi=O,Di=E.RegExp,Gi=Wi((function(){var e=Di(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Mi=O,Li=E.RegExp,qi=Mi((function(){var e=Li("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Vi=fi,zi=yi,Hi=hi,$i=we.exports,Ji=Bi,Ki=rr.get,Qi=Gi,Xi=qi,Yi=RegExp.prototype.exec,Zi=$i("native-string-replace",String.prototype.replace),ea=Yi,ta=(Ui=/a/,_i=/b*/g,Yi.call(Ui,"a"),Yi.call(_i,"a"),0!==Ui.lastIndex||0!==_i.lastIndex),ra=Hi.UNSUPPORTED_Y||Hi.BROKEN_CARET,na=void 0!==/()??/.exec("")[1];(ta||na||ra||Qi||Xi)&&(ea=function(e){var t,r,n,o,i,a,u,c=this,s=Ki(c),p=Vi(e),l=s.raw;if(l)return l.lastIndex=c.lastIndex,t=ea.call(l,p),c.lastIndex=l.lastIndex,t;var f=s.groups,d=ra&&c.sticky,y=zi.call(c),h=c.source,v=0,g=p;if(d&&(-1===(y=y.replace("y","")).indexOf("g")&&(y+="g"),g=p.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==p.charAt(c.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,v++),r=new RegExp("^(?:"+h+")",y)),na&&(r=new RegExp("^"+h+"$(?!\\s)",y)),ta&&(n=c.lastIndex),o=Yi.call(d?r:c,g),d?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:ta&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),na&&o&&o.length>1&&Zi.call(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=Ji(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var oa=ea;gn({target:"RegExp",proto:!0,forced:/./.exec!==oa},{exec:oa});var ia=Pt.exports,aa=oa,ua=O,ca=Ve,sa=Rt,pa=ca("species"),la=RegExp.prototype,fa=Ar,da=fi,ya=L,ha=function(e){return function(t,r){var n,o,i=da(ya(t)),a=fa(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):n:e?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},va={codeAt:ha(!1),charAt:ha(!0)}.charAt,ga=vt,ma=H,ba=W,wa=oa,Sa=vt,Aa=jr,xa=fi,Ra=L,Pa=ge,Ea=function(e,t,r){return t+(r?va(e,t).length:1)},ka=function(e,t){var r=e.exec;if(ma(r)){var n=r.call(e,t);return null!==n&&ga(n),n}if("RegExp"===ba(e))return wa.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")};(function(e,t,r,n){var o=ca(e),i=!ua((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!ua((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[pa]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var u=/./[o],c=t(o,""[e],(function(e,t,r,n,o){var a=t.exec;return a===aa||a===la.exec?i&&!o?{done:!0,value:u.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}));ia(String.prototype,e,c[0]),ia(la,o,c[1])}n&&sa(la[o],"sham",!0)})("match",(function(e,t,r){return[function(t){var r=Ra(this),n=null==t?void 0:Pa(t,e);return n?n.call(t,r):new RegExp(t)[e](xa(r))},function(e){var n=Sa(this),o=xa(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return ka(n,o);var a=n.unicode;n.lastIndex=0;for(var u,c=[],s=0;null!==(u=ka(n,o));){var p=xa(u[0]);c[s]=p,""===p&&(n.lastIndex=Ea(o,Aa(n.lastIndex),a)),s++}return 0===s?null:c}]}));var Oa=H,ja=vt,Ia=function(e){if("object"==typeof e||Oa(e))return e;throw TypeError("Can't set "+String(e)+" as a prototype")},Na=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return ja(r),Ia(n),t?e.call(r,n):r.__proto__=n,r}}():void 0),Ta=H,Fa=J,Ca=Na,Ua=1..valueOf,_a=L,Ba=fi,Wa="[\t\n\v\f\r \u2028\u2029\ufeff]",Da=RegExp("^"+Wa+Wa+"*"),Ga=RegExp(Wa+Wa+"*$"),Ma=function(e){return function(t){var r=Ba(_a(t));return 1&e&&(r=r.replace(Da,"")),2&e&&(r=r.replace(Ga,"")),r}},La={start:Ma(1),end:Ma(2),trim:Ma(3)},qa=j,Va=E,za=sn,Ha=Pt.exports,$a=Ne,Ja=function(e,t,r){var n,o;return Ca&&Ta(n=t.constructor)&&n!==r&&Fa(o=n.prototype)&&o!==r.prototype&&Ca(e,o),e},Ka=fe,Qa=Qe,Xa=O,Ya=br.f,Za=k.f,eu=yt.f,tu=function(e){return Ua.call(e)},ru=La.trim,nu="Number",ou=Va.Number,iu=ou.prototype,au=function(e){var t=Qa(e,"number");return"bigint"==typeof t?t:uu(t)},uu=function(e){var t,r,n,o,i,a,u,c,s=Qa(e,"number");if(Ka(s))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(43===(t=(s=ru(s)).charCodeAt(0))||45===t){if(88===(r=s.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(s.charCodeAt(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=s.slice(2)).length,u=0;u<a;u++)if((c=i.charCodeAt(u))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(za(nu,!ou(" 0o1")||!ou("0b1")||ou("+0x1"))){for(var cu,su=function(e){var t=arguments.length<1?0:ou(au(e)),r=this;return r instanceof su&&Xa((function(){tu(r)}))?Ja(Object(t),r,su):t},pu=qa?Ya(ou):"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(","),lu=0;pu.length>lu;lu++)$a(ou,cu=pu[lu])&&!$a(su,cu)&&eu(su,cu,Za(ou,cu));su.prototype=iu,iu.constructor=su,Ha(Va,nu,su)}var fu=Nn,du=Pn?{}.toString:function(){return"[object "+fu(this)+"]"},yu=Pn,hu=Pt.exports,vu=du;yu||hu(Object.prototype,"toString",vu,{unsafe:!0});var gu=gn,mu=bn,bu=Ln,wu=J,Su=Er,Au=Nr,xu=z,Ru=xn,Pu=Ve,Eu=Yn("slice"),ku=Pu("species"),Ou=[].slice,ju=Math.max;gu({target:"Array",proto:!0,forced:!Eu},{slice:function(e,t){var r,n,o,i=xu(this),a=Au(i),u=Su(e,a),c=Su(void 0===t?a:t,a);if(mu(i)&&(r=i.constructor,(bu(r)&&(r===Array||mu(r.prototype))||wu(r)&&null===(r=r[ku]))&&(r=void 0),r===Array||void 0===r))return Ou.call(i,u,c);for(n=new(void 0===r?Array:r)(ju(c-u,0)),o=0;u<c;u++,o++)u in i&&Ru(n,o,i[u]);return n.length=o,n}});var Iu=Oe,Nu=ei;gn({target:"Object",stat:!0,forced:O((function(){Nu(1)}))},{keys:function(e){return Nu(Iu(e))}});var Tu=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)),Fu=["condition","orderBy","withCursor"],Cu=["fields"],Uu=["condition"],_u=["condition","orderBy"],Bu=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,Fu),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,Cu),(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,Uu),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,_u),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 Tu({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 Tu({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 Tu({},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 Co(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Wu="object"==typeof self?self.FormData:window.FormData,Du=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 Wu,!("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 Ao)){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 Co(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Gu={exports:{}},Mu=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)}},Lu=Mu,qu=Object.prototype.toString;function Vu(e){return"[object Array]"===qu.call(e)}function zu(e){return void 0===e}function Hu(e){return null!==e&&"object"==typeof e}function $u(e){if("[object Object]"!==qu.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function Ju(e){return"[object Function]"===qu.call(e)}function Ku(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Vu(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var Qu={isArray:Vu,isArrayBuffer:function(e){return"[object ArrayBuffer]"===qu.call(e)},isBuffer:function(e){return null!==e&&!zu(e)&&null!==e.constructor&&!zu(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Hu,isPlainObject:$u,isUndefined:zu,isDate:function(e){return"[object Date]"===qu.call(e)},isFile:function(e){return"[object File]"===qu.call(e)},isBlob:function(e){return"[object Blob]"===qu.call(e)},isFunction:Ju,isStream:function(e){return Hu(e)&&Ju(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:Ku,merge:function e(){var t={};function r(r,n){$u(t[n])&&$u(r)?t[n]=e(t[n],r):$u(r)?t[n]=e({},r):Vu(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)Ku(arguments[n],r);return t},extend:function(e,t,r){return Ku(t,(function(t,n){e[n]=r&&"function"==typeof t?Lu(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}},Xu=Qu;function Yu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Zu=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Xu.isURLSearchParams(t))n=t.toString();else{var o=[];Xu.forEach(t,(function(e,t){null!=e&&(Xu.isArray(e)?t+="[]":e=[e],Xu.forEach(e,(function(e){Xu.isDate(e)?e=e.toISOString():Xu.isObject(e)&&(e=JSON.stringify(e)),o.push(Yu(t)+"="+Yu(e))})))})),n=o.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},ec=Qu;function tc(){this.handlers=[]}tc.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},tc.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},tc.prototype.forEach=function(e){ec.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var rc=tc,nc="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function oc(){throw new Error("setTimeout has not been defined")}function ic(){throw new Error("clearTimeout has not been defined")}var ac=oc,uc=ic;function cc(e){if(ac===setTimeout)return setTimeout(e,0);if((ac===oc||!ac)&&setTimeout)return ac=setTimeout,setTimeout(e,0);try{return ac(e,0)}catch(t){try{return ac.call(null,e,0)}catch(t){return ac.call(this,e,0)}}}"function"==typeof nc.setTimeout&&(ac=setTimeout),"function"==typeof nc.clearTimeout&&(uc=clearTimeout);var sc,pc=[],lc=!1,fc=-1;function dc(){lc&&sc&&(lc=!1,sc.length?pc=sc.concat(pc):fc=-1,pc.length&&yc())}function yc(){if(!lc){var e=cc(dc);lc=!0;for(var t=pc.length;t;){for(sc=pc,pc=[];++fc<t;)sc&&sc[fc].run();fc=-1,t=pc.length}sc=null,lc=!1,function(e){if(uc===clearTimeout)return clearTimeout(e);if((uc===ic||!uc)&&clearTimeout)return uc=clearTimeout,clearTimeout(e);try{uc(e)}catch(t){try{return uc.call(null,e)}catch(t){return uc.call(this,e)}}}(e)}}function hc(e,t){this.fun=e,this.array=t}hc.prototype.run=function(){this.fun.apply(null,this.array)};function vc(){}var gc=vc,mc=vc,bc=vc,wc=vc,Sc=vc,Ac=vc,xc=vc;var Rc=nc.performance||{},Pc=Rc.now||Rc.mozNow||Rc.msNow||Rc.oNow||Rc.webkitNow||function(){return(new Date).getTime()};var Ec=new Date;var kc={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];pc.push(new hc(e,t)),1!==pc.length||lc||cc(yc)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:gc,addListener:mc,once:bc,off:wc,removeListener:Sc,removeAllListeners:Ac,emit:xc,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*Pc.call(Rc),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-Ec)/1e3}},Oc=Qu,jc=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},Ic=jc,Nc=function(e,t,r,n,o){var i=new Error(e);return Ic(i,t,r,n,o)},Tc=Nc,Fc=Qu,Cc=Fc.isStandardBrowserEnv()?{write:function(e,t,r,n,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),Fc.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Fc.isString(n)&&a.push("path="+n),Fc.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.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(){}},Uc=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},_c=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Bc=Qu,Wc=["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"],Dc=Qu,Gc=Dc.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=Dc.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function Mc(e){this.message=e}Mc.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Mc.prototype.__CANCEL__=!0;var Lc=Mc,qc=Qu,Vc=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(Tc("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},zc=Cc,Hc=Zu,$c=function(e,t){return e&&!Uc(t)?_c(e,t):t},Jc=function(e){var t,r,n,o={};return e?(Bc.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=Bc.trim(e.substr(0,n)).toLowerCase(),r=Bc.trim(e.substr(n+1)),t){if(o[t]&&Wc.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o},Kc=Gc,Qc=Nc,Xc=us,Yc=Lc,Zc=function(e){return new Promise((function(t,r){var n,o=e.data,i=e.headers,a=e.responseType;function u(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}qc.isFormData(o)&&delete i["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var s=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(s+":"+p)}var l=$c(e.baseURL,e.url);function f(){if(c){var n="getAllResponseHeaders"in c?Jc(c.getAllResponseHeaders()):null,o={data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};Vc((function(e){t(e),u()}),(function(e){r(e),u()}),o),c=null}}if(c.open(e.method.toUpperCase(),Hc(l,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(f)},c.onabort=function(){c&&(r(Qc("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(Qc("Network Error",e,null,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||Xc.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(Qc(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},qc.isStandardBrowserEnv()){var d=(e.withCredentials||Kc(l))&&e.xsrfCookieName?zc.read(e.xsrfCookieName):void 0;d&&(i[e.xsrfHeaderName]=d)}"setRequestHeader"in c&&qc.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:c.setRequestHeader(t,e)})),qc.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){c&&(r(!e||e&&e.type?new Yc("canceled"):e),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),o||(o=null),c.send(o)}))},es=Qu,ts=function(e,t){Oc.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},rs=jc,ns={"Content-Type":"application/x-www-form-urlencoded"};function os(e,t){!es.isUndefined(e)&&es.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var is,as={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==kc&&"[object process]"===Object.prototype.toString.call(kc))&&(is=Zc),is),transformRequest:[function(e,t){return ts(t,"Accept"),ts(t,"Content-Type"),es.isFormData(e)||es.isArrayBuffer(e)||es.isBuffer(e)||es.isStream(e)||es.isFile(e)||es.isBlob(e)?e:es.isArrayBufferView(e)?e.buffer:es.isURLSearchParams(e)?(os(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):es.isObject(e)||t&&"application/json"===t["Content-Type"]?(os(t,"application/json"),function(e,t,r){if(es.isString(e))try{return(t||JSON.parse)(e),es.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||as.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&es.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw rs(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, */*"}}};es.forEach(["delete","get","head"],(function(e){as.headers[e]={}})),es.forEach(["post","put","patch"],(function(e){as.headers[e]=es.merge(ns)}));var us=as,cs=Qu,ss=us,ps=function(e){return!(!e||!e.__CANCEL__)},ls=Qu,fs=function(e,t,r){var n=this||ss;return cs.forEach(r,(function(r){e=r.call(n,e,t)})),e},ds=ps,ys=us,hs=Lc;function vs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hs("canceled")}var gs=Qu,ms=function(e,t){t=t||{};var r={};function n(e,t){return gs.isPlainObject(e)&&gs.isPlainObject(t)?gs.merge(e,t):gs.isPlainObject(t)?gs.merge({},t):gs.isArray(t)?t.slice():t}function o(r){return gs.isUndefined(t[r])?gs.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!gs.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return gs.isUndefined(t[r])?gs.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 gs.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,n=t(e);gs.isUndefined(n)&&t!==u||(r[e]=n)})),r},bs="0.24.0",ws=bs,Ss={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Ss[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var As={};Ss.transitional=function(e,t,r){function n(e,t){return"[Axios v"+ws+"] 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&&!As[o]&&(As[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 xs=Qu,Rs=Zu,Ps=rc,Es=function(e){return vs(e),e.headers=e.headers||{},e.data=fs.call(e,e.data,e.headers,e.transformRequest),e.headers=ls.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),ls.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||ys.adapter)(e).then((function(t){return vs(e),t.data=fs.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return ds(t)||(vs(e),t&&t.response&&(t.response.data=fs.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},ks=ms,Os={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var u=e[i],c=void 0===u||a(u,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:Ss},js=Os.validators;function Is(e){this.defaults=e,this.interceptors={request:new Ps,response:new Ps}}Is.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=ks(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&Os.assertOptions(t,{silentJSONParsing:js.transitional(js.boolean),forcedJSONParsing:js.transitional(js.boolean),clarifyTimeoutError:js.transitional(js.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!n){var a=[Es,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(i),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;r.length;){var c=r.shift(),s=r.shift();try{u=c(u)}catch(e){s(e);break}}try{o=Es(u)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},Is.prototype.getUri=function(e){return e=ks(this.defaults,e),Rs(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},xs.forEach(["delete","get","head","options"],(function(e){Is.prototype[e]=function(t,r){return this.request(ks(r||{},{method:e,url:t,data:(r||{}).data}))}})),xs.forEach(["post","put","patch"],(function(e){Is.prototype[e]=function(t,r,n){return this.request(ks(n||{},{method:e,url:t,data:r}))}}));var Ns=Is,Ts=Lc;function Fs(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new Ts(e),t(r.reason))}))}Fs.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Fs.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Fs.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Fs.source=function(){var e;return{token:new Fs((function(t){e=t})),cancel:e}};var Cs=Fs,Us=Qu,_s=Mu,Bs=Ns,Ws=ms;var Ds=function e(t){var r=new Bs(t),n=_s(Bs.prototype.request,r);return Us.extend(n,Bs.prototype,r),Us.extend(n,r),n.create=function(r){return e(Ws(t,r))},n}(us);Ds.Axios=Bs,Ds.Cancel=Lc,Ds.CancelToken=Cs,Ds.isCancel=ps,Ds.VERSION=bs,Ds.all=function(e){return Promise.all(e)},Ds.spread=function(e){return function(t){return e.apply(null,t)}},Ds.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},Gu.exports=Ds,Gu.exports.default=Ds;var Gs=Gu.exports,Ms=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(Gs(n(n({},e),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),e}(),Ls=O,qs=gn,Vs=z,zs=[].join,Hs=M!=Object,$s=function(e,t){var r=[][e];return!!r&&Ls((function(){r.call(null,t||function(){throw 1},1)}))}("join",",");qs({target:"Array",proto:!0,forced:Hs||!$s},{join:function(e){return zs.call(Vs(this),void 0===e?",":e)}});var Js,Ks=x.Symbol,Qs=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof 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 o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},Xs=function(){return"function"==typeof Ks&&("function"==typeof Symbol&&("symbol"==typeof Ks("foo")&&("symbol"==typeof Symbol("bar")&&Qs())))},Ys="Function.prototype.bind called on incompatible ",Zs=Array.prototype.slice,ep=Object.prototype.toString,tp="[object Function]",rp=function(e){var t=this;if("function"!=typeof t||ep.call(t)!==tp)throw new TypeError(Ys+t);for(var r,n=Zs.call(arguments,1),o=function(){if(this instanceof r){var o=t.apply(this,n.concat(Zs.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(Zs.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},np=Function.prototype.bind||rp,op=np.call(Function.call,Object.prototype.hasOwnProperty),ip=SyntaxError,ap=Function,up=TypeError,cp=function(e){try{return ap('"use strict"; return ('+e+").constructor;")()}catch(e){}},sp=Object.getOwnPropertyDescriptor;if(sp)try{sp({},"")}catch(e){sp=null}var pp,lp=function(){throw new up},fp=sp?function(){try{return lp}catch(e){try{return sp(arguments,"callee").get}catch(e){return lp}}}():lp,dp=Xs(),yp=Object.getPrototypeOf||function(e){return e.__proto__},hp={},vp="undefined"==typeof Uint8Array?Js:yp(Uint8Array),gp={"%AggregateError%":"undefined"==typeof AggregateError?Js:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Js:ArrayBuffer,"%ArrayIteratorPrototype%":dp?yp([][Symbol.iterator]()):Js,"%AsyncFromSyncIteratorPrototype%":Js,"%AsyncFunction%":hp,"%AsyncGenerator%":hp,"%AsyncGeneratorFunction%":hp,"%AsyncIteratorPrototype%":hp,"%Atomics%":"undefined"==typeof Atomics?Js:Atomics,"%BigInt%":"undefined"==typeof BigInt?Js:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Js:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Js:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Js:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Js:FinalizationRegistry,"%Function%":ap,"%GeneratorFunction%":hp,"%Int8Array%":"undefined"==typeof Int8Array?Js:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Js:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Js:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":dp?yp(yp([][Symbol.iterator]())):Js,"%JSON%":"object"==typeof JSON?JSON:Js,"%Map%":"undefined"==typeof Map?Js:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&dp?yp((new Map)[Symbol.iterator]()):Js,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Js:Promise,"%Proxy%":"undefined"==typeof Proxy?Js:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Js:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Js:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&dp?yp((new Set)[Symbol.iterator]()):Js,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Js:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":dp?yp(""[Symbol.iterator]()):Js,"%Symbol%":dp?Symbol:Js,"%SyntaxError%":ip,"%ThrowTypeError%":fp,"%TypedArray%":vp,"%TypeError%":up,"%Uint8Array%":"undefined"==typeof Uint8Array?Js:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Js:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Js:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Js:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Js:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Js:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Js:WeakSet},mp=function e(t){var r;if("%AsyncFunction%"===t)r=cp("async function () {}");else if("%GeneratorFunction%"===t)r=cp("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=cp("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=yp(o.prototype))}return gp[t]=r,r},bp={"%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"]},wp=np,Sp=op,Ap=wp.call(Function.call,Array.prototype.concat),xp=wp.call(Function.apply,Array.prototype.splice),Rp=wp.call(Function.call,String.prototype.replace),Pp=wp.call(Function.call,String.prototype.slice),Ep=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kp=/\\(\\)?/g,Op=function(e){var t=Pp(e,0,1),r=Pp(e,-1);if("%"===t&&"%"!==r)throw new ip("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new ip("invalid intrinsic syntax, expected opening `%`");var n=[];return Rp(e,Ep,(function(e,t,r,o){n[n.length]=r?Rp(o,kp,"$1"):t||e})),n},jp=function(e,t){var r,n=e;if(Sp(bp,n)&&(n="%"+(r=bp[n])[0]+"%"),Sp(gp,n)){var o=gp[n];if(o===hp&&(o=mp(n)),void 0===o&&!t)throw new up("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new ip("intrinsic "+e+" does not exist!")},Ip=SyntaxError,Np=Function,Tp=TypeError,Fp=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},Cp=Object.getOwnPropertyDescriptor;if(Cp)try{Cp({},"")}catch(e){Cp=null}var Up=function(){throw new Tp},_p=Cp?function(){try{return Up}catch(e){try{return Cp(arguments,"callee").get}catch(e){return Up}}}():Up,Bp=Xs(),Wp=Object.getPrototypeOf||function(e){return e.__proto__},Dp=Fp("async function* () {}"),Gp=Dp?Dp.prototype:pp,Mp=Gp?Gp.prototype:pp,Lp="undefined"==typeof Uint8Array?pp:Wp(Uint8Array),qp={"%AggregateError%":"undefined"==typeof AggregateError?pp:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?pp:ArrayBuffer,"%ArrayIteratorPrototype%":Bp?Wp([][Symbol.iterator]()):pp,"%AsyncFromSyncIteratorPrototype%":pp,"%AsyncFunction%":Fp("async function () {}"),"%AsyncGenerator%":Gp,"%AsyncGeneratorFunction%":Dp,"%AsyncIteratorPrototype%":Mp?Wp(Mp):pp,"%Atomics%":"undefined"==typeof Atomics?pp:Atomics,"%BigInt%":"undefined"==typeof BigInt?pp:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?pp:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?pp:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?pp:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?pp:FinalizationRegistry,"%Function%":Np,"%GeneratorFunction%":Fp("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?pp:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?pp:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?pp:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Bp?Wp(Wp([][Symbol.iterator]())):pp,"%JSON%":"object"==typeof JSON?JSON:pp,"%Map%":"undefined"==typeof Map?pp:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Bp?Wp((new Map)[Symbol.iterator]()):pp,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?pp:Promise,"%Proxy%":"undefined"==typeof Proxy?pp:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?pp:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?pp:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Bp?Wp((new Set)[Symbol.iterator]()):pp,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?pp:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Bp?Wp(""[Symbol.iterator]()):pp,"%Symbol%":Bp?Symbol:pp,"%SyntaxError%":Ip,"%ThrowTypeError%":_p,"%TypedArray%":Lp,"%TypeError%":Tp,"%Uint8Array%":"undefined"==typeof Uint8Array?pp:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?pp:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?pp:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?pp:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?pp:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?pp:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?pp:WeakSet},Vp={"%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"]},zp=np,Hp=op,$p=zp.call(Function.call,Array.prototype.concat),Jp=zp.call(Function.apply,Array.prototype.splice),Kp=zp.call(Function.call,String.prototype.replace),Qp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Xp=/\\(\\)?/g,Yp=function(e){var t=[];return Kp(e,Qp,(function(e,r,n,o){t[t.length]=n?Kp(o,Xp,"$1"):r||e})),t},Zp=function(e,t){var r,n=e;if(Hp(Vp,n)&&(n="%"+(r=Vp[n])[0]+"%"),Hp(qp,n)){var o=qp[n];if(void 0===o&&!t)throw new Tp("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Ip("intrinsic "+e+" does not exist!")},el=function(e,t){if("string"!=typeof e||0===e.length)throw new Tp("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Tp('"allowMissing" argument must be a boolean');var r=Yp(e),n=r.length>0?r[0]:"",o=Zp("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],Jp(r,$p([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s];if("constructor"!==l&&p||(u=!0),Hp(qp,i="%"+(n+="."+l)+"%"))a=qp[i];else if(null!=a){if(Cp&&s+1>=r.length){var f=Cp(a,l);if(p=!!f,!t&&!(l in a))throw new Tp("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=Hp(a,l),a=a[l];p&&!u&&(qp[i]=a)}}return a},tl={exports:{}};!function(e){var t=np,r=el,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}(tl);var rl=el,nl=tl.exports,ol=nl(rl("String.prototype.indexOf")),il=R(Object.freeze({__proto__:null,default:{}})),al="function"==typeof Map&&Map.prototype,ul=Object.getOwnPropertyDescriptor&&al?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,cl=al&&ul&&"function"==typeof ul.get?ul.get:null,sl=al&&Map.prototype.forEach,pl="function"==typeof Set&&Set.prototype,ll=Object.getOwnPropertyDescriptor&&pl?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,fl=pl&&ll&&"function"==typeof ll.get?ll.get:null,dl=pl&&Set.prototype.forEach,yl="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,hl="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,vl=Boolean.prototype.valueOf,gl=Object.prototype.toString,ml=Function.prototype.toString,bl=String.prototype.match,wl="function"==typeof BigInt?BigInt.prototype.valueOf:null,Sl=Object.getOwnPropertySymbols,Al="function"==typeof Symbol?Symbol.prototype.toString:null,xl=Object.prototype.propertyIsEnumerable,Rl=il.custom,Pl=Rl&&jl(Rl)?Rl:null;function El(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function kl(e){return String(e).replace(/"/g,""")}function Ol(e){return"[object Array]"===Tl(e)}function jl(e){return"[object Symbol]"===Tl(e)}var Il=Object.prototype.hasOwnProperty||function(e){return e in this};function Nl(e,t){return Il.call(e,t)}function Tl(e){return gl.call(e)}function Fl(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 Cl(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Cl(e.slice(0,t.maxStringLength),t)+n}return El(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Ul),"single",t)}function Ul(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 _l(e){return"Object("+e+")"}function Bl(e){return e+" { ? }"}function Wl(e,t,r,n){return e+" ("+t+") {"+(n?Dl(r,n):r.join(", "))+"}"}function Dl(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function Gl(e,t){var r=Ol(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Nl(e,o)?t(e[o],e):""}for(var i in e)Nl(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 Sl)for(var a=Sl(e),u=0;u<a.length;u++)xl.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var Ml=function(e,t){if("string"!=typeof e||0===e.length)throw new up("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new up('"allowMissing" argument must be a boolean');var r=Op(e),n=r.length>0?r[0]:"",o=jp("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],xp(r,Ap([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s],f=Pp(l,0,1),d=Pp(l,-1);if(('"'===f||"'"===f||"`"===f||'"'===d||"'"===d||"`"===d)&&f!==d)throw new ip("property names with quotes must have matching quotes");if("constructor"!==l&&p||(u=!0),Sp(gp,i="%"+(n+="."+l)+"%"))a=gp[i];else if(null!=a){if(!(l in a)){if(!t)throw new up("base intrinsic for "+e+" exists, but the property is not available.");return}if(sp&&s+1>=r.length){var y=sp(a,l);a=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[l]}else p=Sp(a,l),a=a[l];p&&!u&&(gp[i]=a)}}return a},Ll=function(e,t){var r=rl(e,!!t);return"function"==typeof r&&ol(e,".prototype.")>-1?nl(r):r},ql=function e(t,r,n,o){var i=r||{};if(Nl(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Nl(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!Nl(i,"customInspect")||i.customInspect;if("boolean"!=typeof a)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(Nl(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.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 Cl(t,i);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var u=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=u&&u>0&&"object"==typeof t)return Ol(t)?"[Array]":"[Object]";var c=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)}}(i,n);if(void 0===o)o=[];else if(Fl(o,t)>=0)return"[Circular]";function s(t,r,a){if(r&&(o=o.slice()).push(r),a){var u={depth:i.depth};return Nl(i,"quoteStyle")&&(u.quoteStyle=i.quoteStyle),e(t,u,n+1,o)}return e(t,i,n+1,o)}if("function"==typeof t){var p=function(e){if(e.name)return e.name;var t=bl.call(ml.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),l=Gl(t,s);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(l.length>0?" { "+l.join(", ")+" }":"")}if(jl(t)){var f=Al.call(t);return"object"==typeof t?_l(f):f}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var d="<"+String(t.nodeName).toLowerCase(),y=t.attributes||[],h=0;h<y.length;h++)d+=" "+y[h].name+"="+El(kl(y[h].value),"double",i);return d+=">",t.childNodes&&t.childNodes.length&&(d+="..."),d+="</"+String(t.nodeName).toLowerCase()+">"}if(Ol(t)){if(0===t.length)return"[]";var v=Gl(t,s);return c&&!function(e){for(var t=0;t<e.length;t++)if(Fl(e[t],"\n")>=0)return!1;return!0}(v)?"["+Dl(v,c)+"]":"[ "+v.join(", ")+" ]"}if(function(e){return"[object Error]"===Tl(e)}(t)){var g=Gl(t,s);return 0===g.length?"["+String(t)+"]":"{ ["+String(t)+"] "+g.join(", ")+" }"}if("object"==typeof t&&a){if(Pl&&"function"==typeof t[Pl])return t[Pl]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!cl||!e||"object"!=typeof e)return!1;try{cl.call(e);try{fl.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var m=[];return sl.call(t,(function(e,r){m.push(s(r,t,!0)+" => "+s(e,t))})),Wl("Map",cl.call(t),m,c)}if(function(e){if(!fl||!e||"object"!=typeof e)return!1;try{fl.call(e);try{cl.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var b=[];return dl.call(t,(function(e){b.push(s(e,t))})),Wl("Set",fl.call(t),b,c)}if(function(e){if(!yl||!e||"object"!=typeof e)return!1;try{yl.call(e,yl);try{hl.call(e,hl)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Bl("WeakMap");if(function(e){if(!hl||!e||"object"!=typeof e)return!1;try{hl.call(e,hl);try{yl.call(e,yl)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Bl("WeakSet");if(function(e){return"[object Number]"===Tl(e)}(t))return _l(s(Number(t)));if(function(e){return"[object BigInt]"===Tl(e)}(t))return _l(s(wl.call(t)));if(function(e){return"[object Boolean]"===Tl(e)}(t))return _l(vl.call(t));if(function(e){return"[object String]"===Tl(e)}(t))return _l(s(String(t)));if(!function(e){return"[object Date]"===Tl(e)}(t)&&!function(e){return"[object RegExp]"===Tl(e)}(t)){var w=Gl(t,s);return 0===w.length?"{}":c?"{"+Dl(w,c)+"}":"{ "+w.join(", ")+" }"}return String(t)},Vl=Ml("%TypeError%"),zl=Ml("%WeakMap%",!0),Hl=Ml("%Map%",!0),$l=Ll("WeakMap.prototype.get",!0),Jl=Ll("WeakMap.prototype.set",!0),Kl=Ll("WeakMap.prototype.has",!0),Ql=Ll("Map.prototype.get",!0),Xl=Ll("Map.prototype.set",!0),Yl=Ll("Map.prototype.has",!0),Zl=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},ef=String.prototype.replace,tf=/%20/g,rf="RFC3986",nf={default:rf,formatters:{RFC1738:function(e){return ef.call(e,tf,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:rf},of=nf,af=Object.prototype.hasOwnProperty,uf=Array.isArray,cf=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),sf=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},pf={arrayToObject:sf,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 o=t[n],i=o.obj[o.prop],a=Object.keys(i),u=0;u<a.length;++u){var c=a[u],s=i[c];"object"==typeof s&&null!==s&&-1===r.indexOf(s)&&(t.push({obj:i,prop:c}),r.push(s))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(uf(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,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",u=0;u<i.length;++u){var c=i.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===of.RFC1738&&(40===c||41===c)?a+=i.charAt(u):c<128?a+=cf[c]:c<2048?a+=cf[192|c>>6]+cf[128|63&c]:c<55296||c>=57344?a+=cf[224|c>>12]+cf[128|c>>6&63]+cf[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(u)),a+=cf[240|c>>18]+cf[128|c>>12&63]+cf[128|c>>6&63]+cf[128|63&c])}return a},isBuffer:function(e){return!(!e||"object"!=typeof 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(uf(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"!=typeof r){if(uf(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!af.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return uf(t)&&!uf(r)&&(o=sf(t,n)),uf(t)&&uf(r)?(r.forEach((function(r,o){if(af.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return af.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),o)}},lf=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new Vl("Side channel does not contain "+ql(e))},get:function(n){if(zl&&n&&("object"==typeof n||"function"==typeof n)){if(e)return $l(e,n)}else if(Hl){if(t)return Ql(t,n)}else if(r)return function(e,t){var r=Zl(e,t);return r&&r.value}(r,n)},has:function(n){if(zl&&n&&("object"==typeof n||"function"==typeof n)){if(e)return Kl(e,n)}else if(Hl){if(t)return Yl(t,n)}else if(r)return function(e,t){return!!Zl(e,t)}(r,n);return!1},set:function(n,o){zl&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new zl),Jl(e,n,o)):Hl?(t||(t=new Hl),Xl(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=Zl(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n},ff=pf,df=nf,yf=Object.prototype.hasOwnProperty,hf={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},vf=Array.isArray,gf=Array.prototype.push,mf=function(e,t){gf.apply(e,vf(t)?t:[t])},bf=Date.prototype.toISOString,wf=df.default,Sf={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:ff.encode,encodeValuesOnly:!1,format:wf,formatter:df.formatters[wf],indices:!1,serializeDate:function(e){return bf.call(e)},skipNulls:!1,strictNullHandling:!1},Af=function e(t,r,n,o,i,a,u,c,s,p,l,f,d,y,h){var v,g=t;if(h.has(t))throw new RangeError("Cyclic object value");if("function"==typeof u?g=u(r,g):g instanceof Date?g=p(g):"comma"===n&&vf(g)&&(g=ff.maybeMap(g,(function(e){return e instanceof Date?p(e):e}))),null===g){if(o)return a&&!d?a(r,Sf.encoder,y,"key",l):r;g=""}if("string"==typeof(v=g)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||ff.isBuffer(g))return a?[f(d?r:a(r,Sf.encoder,y,"key",l))+"="+f(a(g,Sf.encoder,y,"value",l))]:[f(r)+"="+f(String(g))];var m,b=[];if(void 0===g)return b;if("comma"===n&&vf(g))m=[{value:g.length>0?g.join(",")||null:void 0}];else if(vf(u))m=u;else{var w=Object.keys(g);m=c?w.sort(c):w}for(var S=0;S<m.length;++S){var A=m[S],x="object"==typeof A&&void 0!==A.value?A.value:g[A];if(!i||null!==x){var R=vf(g)?"function"==typeof n?n(r,A):r:r+(s?"."+A:"["+A+"]");h.set(t,!0);var P=lf();mf(b,e(x,R,n,o,i,a,u,c,s,p,l,f,d,y,P))}}return b},xf=pf,Rf=Object.prototype.hasOwnProperty,Pf=Array.isArray,Ef={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:xf.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},kf=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Of=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},jf=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&&Rf.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&&Rf.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:Of(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:a[c]=o:a={0:o}}o=a}return o}(c,t,r,n)}},If={formats:nf,parse:function(e,t){var r=function(e){if(!e)return Ef;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?Ef.charset:e.charset;return{allowDots:void 0===e.allowDots?Ef.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Ef.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Ef.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Ef.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ef.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Ef.comma,decoder:"function"==typeof e.decoder?e.decoder:Ef.decoder,delimiter:"string"==typeof e.delimiter||xf.isRegExp(e.delimiter)?e.delimiter:Ef.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Ef.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Ef.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Ef.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Ef.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ef.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,Ef.decoder,c,"key"),p=t.strictNullHandling?null:""):(s=t.decoder(l.slice(0,d),Ef.decoder,c,"key"),p=xf.maybeMap(Of(l.slice(d+1),t),(function(e){return t.decoder(e,Ef.decoder,c,"value")}))),p&&t.interpretNumericEntities&&"iso-8859-1"===c&&(p=kf(p)),l.indexOf("[]=")>-1&&(p=Pf(p)?[p]:p),Rf.call(n,s)?n[s]=xf.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=jf(u,n[u],r,"string"==typeof e);o=xf.merge(o,c,r)}return!0===r.allowSparse?o:xf.compact(o)},stringify:function(e,t){var r,n=e,o=function(e){if(!e)return Sf;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||Sf.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=df.default;if(void 0!==e.format){if(!yf.call(df.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=df.formatters[r],o=Sf.filter;return("function"==typeof e.filter||vf(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Sf.addQueryPrefix,allowDots:void 0===e.allowDots?Sf.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Sf.charsetSentinel,delimiter:void 0===e.delimiter?Sf.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Sf.encode,encoder:"function"==typeof e.encoder?e.encoder:Sf.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Sf.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Sf.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Sf.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Sf.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):vf(o.filter)&&(r=o.filter);var i,a=[];if("object"!=typeof n||null===n)return"";i=t&&t.arrayFormat in hf?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var u=hf[i];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=lf(),s=0;s<r.length;++s){var p=r[s];o.skipNulls&&null===n[p]||mf(a,Af(n[p],p,u,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=a.join(o.delimiter),f=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),l.length>0?f+l:""}},Nf={exports:{}};!function(e,t){!function(t,r){e.exports=function(t){var r,n=(t=t||{}).Base64,o="2.6.4",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(i),u=String.fromCharCode,c=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},s=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,p=function(e){return e.replace(s,c)},l=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[i.charAt(r>>>18),i.charAt(r>>>12&63),t>=2?"=":i.charAt(r>>>6&63),t>=1?"=":i.charAt(63&r)].join("")},f=t.btoa&&"function"==typeof t.btoa?function(e){return t.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,l)},d=function(e){return f(p(String(e)))},y=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},h=function(e,t){return t?y(d(e)):d(e)},v=function(e){return h(e,!0)};t.Uint8Array&&(r=function(e,t){for(var r="",n=0,o=e.length;n<o;n+=3){var a=e[n],u=e[n+1],c=e[n+2],s=a<<16|u<<8|c;r+=i.charAt(s>>>18)+i.charAt(s>>>12&63)+(void 0!==u?i.charAt(s>>>6&63):"=")+(void 0!==c?i.charAt(63&s):"=")}return t?y(r):r});var g,m=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u(55296+(t>>>10))+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w=function(e){return e.replace(m,b)},S=function(e){var t=e.length,r=t%4,n=(t>0?a[e.charAt(0)]<<18:0)|(t>1?a[e.charAt(1)]<<12:0)|(t>2?a[e.charAt(2)]<<6:0)|(t>3?a[e.charAt(3)]:0),o=[u(n>>>16),u(n>>>8&255),u(255&n)];return o.length-=[0,0,2,1][r],o.join("")},A=t.atob&&"function"==typeof t.atob?function(e){return t.atob(e)}:function(e){return e.replace(/\S{1,4}/g,S)},x=function(e){return A(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},R=function(e){return w(A(e))},P=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},E=function(e){return R(P(e))};t.Uint8Array&&(g=function(e){return Uint8Array.from(x(P(e)),(function(e){return e.charCodeAt(0)}))});var k=function(){var e=t.Base64;return t.Base64=n,e};if(t.Base64={VERSION:o,atob:x,btoa:f,fromBase64:E,toBase64:h,utob:p,encode:h,encodeURI:v,btou:w,decode:E,noConflict:k,fromUint8Array:r,toUint8Array:g},"function"==typeof Object.defineProperty){var O=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",O((function(){return E(this)}))),Object.defineProperty(String.prototype,"toBase64",O((function(e){return h(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",O((function(){return h(this,!0)})))}}t.Meteor&&(Base64=t.Base64);e.exports&&(e.exports.Base64=t.Base64);return{Base64:t.Base64}}(t)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:x)}(Nf);var Tf=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 Wu)){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(If.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 Wu)){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(Nf.exports.Base64.encode("".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":Nf.exports.Base64.encode("".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}(),Ff=cr.PROPER,Cf=Pt.exports,Uf=vt,_f=fi,Bf=O,Wf=yi,Df="toString",Gf=RegExp.prototype,Mf=Gf.toString,Lf=Bf((function(){return"/a/b"!=Mf.call({source:"a",flags:"b"})})),qf=Ff&&Mf.name!=Df;(Lf||qf)&&Cf(RegExp.prototype,Df,(function(){var e=Uf(this),t=_f(e.source),r=e.flags;return"/"+t+"/"+_f(void 0===r&&e instanceof RegExp&&!("flags"in Gf)?Wf.call(e):r)}),{unsafe:!0});var Vf,zf=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 r}(v(Error)),Hf=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)),$f=["data"],Jf=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 zf(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,$f);if("string"==typeof r)throw new Error("".concat(o.status,": ").concat(o.statusText));throw new Hf(n({data:r},o))}}]),e}(),Kf=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 Ao)throw new Error("session authentication is not supported in ".concat(e.platform," environment."));throw e}},Qf=function(){function e(){var r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),Xf(a),this.baseUrl=t.buildBaseUrl(a.baseUrl);var c=Kf(null!==(r=a.auth)&&void 0!==r?r:{}),s=new Tf(n(n({},a),{},{baseUrl:this.baseUrl,auth:c})),p=new Jf({enableAbortSearchError:null!==(o=null===(i=a.featureFlags)||void 0===i?void 0:i.enableAbortSearchError)&&void 0!==o&&o}),l=new Ms({responseHandler:p,requestConfigBuilder:s}),f=a.guestSpaceId;this.bulkRequest_=new _o(l,f),this.record=new Bu(l,this.bulkRequest_,f),this.app=new Xo(l,f),this.file=new Du(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}(),Xf=function(e){Yf(e.guestSpaceId)},Yf=function(e){if(""===e||null===e)throw new Error("invalid guestSpaceId: got [".concat(e,"]"))};Vf=Ro,t.readFileFromPath=Vf.readFileFromPath,t.getRequestToken=Vf.getRequestToken,t.getDefaultAuth=Vf.getDefaultAuth,t.buildPlatformDependentConfig=Vf.buildPlatformDependentConfig,t.buildHeaders=Vf.buildHeaders,t.buildFormDataValue=Vf.buildFormDataValue,t.buildBaseUrl=Vf.buildBaseUrl,t.getVersion=Vf.getVersion,e.KintoneAbortSearchError=zf,e.KintoneAllRecordsError=Tu,e.KintoneRestAPIClient=Qf,e.KintoneRestAPIError=Hf,Object.defineProperty(e,"__esModule",{value:!0})}));
|