@kintone/rest-api-client 2.0.20 → 2.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +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 A(e){return function(e){if(Array.isArray(e))return S(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 S(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 S(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 S(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 k=function(e){return e&&e.Math==Math&&e},P=k("object"==typeof globalThis&&globalThis)||k("object"==typeof window&&window)||k("object"==typeof self&&self)||k("object"==typeof x&&x)||function(){return this}()||Function("return this")(),E={},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,C=T&&!N.call({1:2},1);I.f=C?function(e){var t=T(this,e);return!!t&&t.enumerable}:N;var F,U,B=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_={}.toString,W=function(e){return _.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,q=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},L=M,V=q,z=function(e){return L(V(e))},H=function(e){return"object"==typeof e?null!==e:"function"==typeof e},J=P,$=function(e){return"function"==typeof e?e:void 0},K=function(e,t){return arguments.length<2?$(J[e]):J[e]&&J[e][t]},Q=P,X=K("navigator","userAgent")||"",Y=Q.process,Z=Q.Deno,ee=Y&&Y.versions||Z&&Z.version,te=ee&&ee.v8;te?U=(F=te.split("."))[0]<4?1:F[0]+F[1]:X&&(!(F=X.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=X.match(/Chrome\/(\d+)/))&&(U=F[1]);var re=U&&+U,ne=re,oe=O,ie=!!Object.getOwnPropertySymbols&&!oe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ne&&ne<41})),ae=ie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ue=K,ce=ae?function(e){return"symbol"==typeof e}:function(e){var t=ue("Symbol");return"function"==typeof t&&Object(e)instanceof t},se=H,pe={exports:{}},le=P,fe=function(e,t){try{Object.defineProperty(le,e,{value:t,configurable:!0,writable:!0})}catch(r){le[e]=t}return t},de=fe,ye="__core-js_shared__",he=P[ye]||de(ye,{}),ve=he;(pe.exports=function(e,t){return ve[e]||(ve[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var ge=q,me=function(e){return Object(ge(e))},be=me,we={}.hasOwnProperty,Ae=Object.hasOwn||function(e,t){return we.call(be(e),t)},Se=0,xe=Math.random(),Re=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Se+xe).toString(36)},ke=P,Pe=pe.exports,Ee=Ae,Oe=Re,je=ie,Ie=ae,Ne=Pe("wks"),Te=ke.Symbol,Ce=Ie?Te:Te&&Te.withoutSetter||Oe,Fe=function(e){return Ee(Ne,e)&&(je||"string"==typeof Ne[e])||(je&&Ee(Te,e)?Ne[e]=Te[e]:Ne[e]=Ce("Symbol."+e)),Ne[e]},Ue=H,Be=ce,_e=function(e,t){var r,n;if("string"===t&&"function"==typeof(r=e.toString)&&!se(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!se(n=r.call(e)))return n;if("string"!==t&&"function"==typeof(r=e.toString)&&!se(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},We=Fe("toPrimitive"),De=function(e,t){if(!Ue(e)||Be(e))return e;var r,n=e[We];if(void 0!==n){if(void 0===t&&(t="default"),r=n.call(e,t),!Ue(r)||Be(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),_e(e,t)},Ge=De,Me=ce,qe=function(e){var t=Ge(e,"string");return Me(t)?t:String(t)},Le=H,Ve=P.document,ze=Le(Ve)&&Le(Ve.createElement),He=function(e){return ze?Ve.createElement(e):{}},Je=He,$e=!j&&!O((function(){return 7!=Object.defineProperty(Je("div"),"a",{get:function(){return 7}}).a})),Ke=j,Qe=I,Xe=B,Ye=z,Ze=qe,et=Ae,tt=$e,rt=Object.getOwnPropertyDescriptor;E.f=Ke?rt:function(e,t){if(e=Ye(e),t=Ze(t),tt)try{return rt(e,t)}catch(e){}if(et(e,t))return Xe(!Qe.f.call(e,t),e[t])};var nt={},ot=H,it=function(e){if(!ot(e))throw TypeError(String(e)+" is not an object");return e},at=j,ut=$e,ct=it,st=qe,pt=Object.defineProperty;nt.f=at?pt:function(e,t,r){if(ct(e),t=st(t),ct(r),ut)try{return pt(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 lt=nt,ft=B,dt=j?function(e,t,r){return lt.f(e,t,ft(1,r))}:function(e,t,r){return e[t]=r,e},yt={exports:{}},ht=he,vt=Function.toString;"function"!=typeof ht.inspectSource&&(ht.inspectSource=function(e){return vt.call(e)});var gt,mt,bt,wt=ht.inspectSource,At=wt,St=P.WeakMap,xt="function"==typeof St&&/native code/.test(At(St)),Rt=pe.exports,kt=Re,Pt=Rt("keys"),Et=function(e){return Pt[e]||(Pt[e]=kt(e))},Ot={},jt=xt,It=H,Nt=dt,Tt=Ae,Ct=he,Ft=Et,Ut=Ot,Bt="Object already initialized",_t=P.WeakMap;if(jt||Ct.state){var Wt=Ct.state||(Ct.state=new _t),Dt=Wt.get,Gt=Wt.has,Mt=Wt.set;gt=function(e,t){if(Gt.call(Wt,e))throw new TypeError(Bt);return t.facade=e,Mt.call(Wt,e,t),t},mt=function(e){return Dt.call(Wt,e)||{}},bt=function(e){return Gt.call(Wt,e)}}else{var qt=Ft("state");Ut[qt]=!0,gt=function(e,t){if(Tt(e,qt))throw new TypeError(Bt);return t.facade=e,Nt(e,qt,t),t},mt=function(e){return Tt(e,qt)?e[qt]:{}},bt=function(e){return Tt(e,qt)}}var Lt={set:gt,get:mt,has:bt,enforce:function(e){return bt(e)?mt(e):gt(e,{})},getterFor:function(e){return function(t){var r;if(!It(t)||(r=mt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Vt=P,zt=dt,Ht=Ae,Jt=fe,$t=wt,Kt=Lt.get,Qt=Lt.enforce,Xt=String(String).split("String");(yt.exports=function(e,t,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof t||Ht(r,"name")||zt(r,"name",t),(o=Qt(r)).source||(o.source=Xt.join("string"==typeof t?t:""))),e!==Vt?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=r:zt(e,t,r)):a?e[t]=r:Jt(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Kt(this).source||$t(this)}));var Yt={},Zt=Math.ceil,er=Math.floor,tr=function(e){return isNaN(e=+e)?0:(e>0?er:Zt)(e)},rr=tr,nr=Math.min,or=function(e){return e>0?nr(rr(e),9007199254740991):0},ir=tr,ar=Math.max,ur=Math.min,cr=function(e,t){var r=ir(e);return r<0?ar(r+t,0):ur(r,t)},sr=z,pr=or,lr=cr,fr=function(e){return function(t,r,n){var o,i=sr(t),a=pr(i.length),u=lr(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}},dr={includes:fr(!0),indexOf:fr(!1)},yr=Ae,hr=z,vr=dr.indexOf,gr=Ot,mr=function(e,t){var r,n=hr(e),o=0,i=[];for(r in n)!yr(gr,r)&&yr(n,r)&&i.push(r);for(;t.length>o;)yr(n,r=t[o++])&&(~vr(i,r)||i.push(r));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wr=mr,Ar=br.concat("length","prototype");Yt.f=Object.getOwnPropertyNames||function(e){return wr(e,Ar)};var Sr={};Sr.f=Object.getOwnPropertySymbols;var xr=Yt,Rr=Sr,kr=it,Pr=K("Reflect","ownKeys")||function(e){var t=xr.f(kr(e)),r=Rr.f;return r?t.concat(r(e)):t},Er=Ae,Or=Pr,jr=E,Ir=nt,Nr=O,Tr=/#|\.prototype\./,Cr=function(e,t){var r=Ur[Fr(e)];return r==_r||r!=Br&&("function"==typeof t?Nr(t):!!t)},Fr=Cr.normalize=function(e){return String(e).replace(Tr,".").toLowerCase()},Ur=Cr.data={},Br=Cr.NATIVE="N",_r=Cr.POLYFILL="P",Wr=Cr,Dr=P,Gr=E.f,Mr=dt,qr=yt.exports,Lr=fe,Vr=function(e,t){for(var r=Or(t),n=Ir.f,o=jr.f,i=0;i<r.length;i++){var a=r[i];Er(e,a)||n(e,a,o(t,a))}},zr=Wr,Hr=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?Dr:s?Dr[u]||Lr(u,{}):(Dr[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Gr(r,n))&&a.value:r[n],!zr(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Vr(i,o)}(e.sham||o&&o.sham)&&Mr(i,"sham",!0),qr(r,n,i,e)}},Jr=W,$r=Array.isArray||function(e){return"Array"==Jr(e)},Kr=qe,Qr=nt,Xr=B,Yr=function(e,t,r){var n=Kr(t);n in e?Qr.f(e,n,Xr(0,r)):e[n]=r},Zr=H,en=$r,tn=Fe("species"),rn=function(e){var t;return en(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!en(t.prototype)?Zr(t)&&null===(t=t[tn])&&(t=void 0):t=void 0),void 0===t?Array:t},nn=function(e,t){return new(rn(e))(0===t?0:t)},on=O,an=re,un=Fe("species"),cn=function(e){return an>=51||!on((function(){var t=[];return(t.constructor={})[un]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},sn=Hr,pn=O,ln=$r,fn=H,dn=me,yn=or,hn=Yr,vn=nn,gn=cn,mn=re,bn=Fe("isConcatSpreadable"),wn=9007199254740991,An="Maximum allowed index exceeded",Sn=mn>=51||!pn((function(){var e=[];return e[bn]=!1,e.concat()[0]!==e})),xn=gn("concat"),Rn=function(e){if(!fn(e))return!1;var t=e[bn];return void 0!==t?!!t:ln(e)};sn({target:"Array",proto:!0,forced:!Sn||!xn},{concat:function(e){var t,r,n,o,i,a=dn(this),u=vn(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(Rn(i=-1===t?a:arguments[t])){if(c+(o=yn(i.length))>wn)throw TypeError(An);for(r=0;r<o;r++,c++)r in i&&hn(u,c,i[r])}else{if(c>=wn)throw TypeError(An);hn(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=k(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,A=w&&w(w(j([])));A&&A!==r&&n.call(A,i)&&(b=A);var S=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 k(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,k(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 P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,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=S.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(S),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(S),c(S,u,"Generator"),S[i]=function(){return this},S.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=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(E),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function 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),E(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;E(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 kn=j,Pn=nt.f,En=Function.prototype,On=En.toString,jn=/^\s*function ([^ (]*)/,In="name";kn&&!(In in En)&&Pn(En,In,{configurable:!0,get:function(){try{return On.call(this).match(jn)[1]}catch(e){return""}}});var Nn=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)),Tn=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)}}(),Cn=Object.freeze({__proto__:null,readFileFromPath:function(e){throw new Nn("Browser")},getRequestToken:Tn,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.20"}}),Fn=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Un=function(e,t,r){if(Fn(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)}},Bn=M,_n=me,Wn=or,Dn=nn,Gn=[].push,Mn=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=_n(c),h=Bn(y),v=Un(s,p,3),g=Wn(h.length),m=0,b=l||Dn,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:Gn.call(w,f)}else switch(e){case 4:return!1;case 7:Gn.call(w,f)}return i?-1:n||o?o:w}},qn={forEach:Mn(0),map:Mn(1),filter:Mn(2),some:Mn(3),every:Mn(4),find:Mn(5),findIndex:Mn(6),filterReject:Mn(7)}.map;Hr({target:"Array",proto:!0,forced:!cn("map")},{map:function(e){return qn(this,e,arguments.length>1?arguments[1]:void 0)}});var Ln=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")},Vn=["endpointName"],zn=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,Vn);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 Ln(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Hn=["preview"],Jn=["preview"],$n=["preview"],Kn=["preview"],Qn=["preview"],Xn=["preview"],Yn=["preview"],Zn=["preview"],eo=["preview"],to=["preview"],ro=["preview"],no=["preview"],oo=["preview"],io=["preview"],ao=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,Hn),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,Jn),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,$n),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,Kn),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,Qn),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,Xn),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,Yn),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,Zn),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,eo),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,to),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,ro),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,no),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,oo),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,io),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 Ln(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),uo=mr,co=br,so=Object.keys||function(e){return uo(e,co)},po=j,lo=O,fo=so,yo=Sr,ho=I,vo=me,go=M,mo=Object.assign,bo=Object.defineProperty,wo=!mo||lo((function(){if(po&&1!==mo({b:1},mo(bo({},"a",{enumerable:!0,get:function(){bo(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!=mo({},e)[r]||fo(mo({},t)).join("")!=n}))?function(e,t){for(var r=vo(e),n=arguments.length,o=1,i=yo.f,a=ho.f;n>o;)for(var u,c=go(arguments[o++]),s=i?fo(c).concat(i(c)):fo(c),p=s.length,l=0;p>l;)u=s[l++],po&&!a.call(c,u)||(r[u]=c[u]);return r}:mo;Hr({target:"Object",stat:!0,forced:Object.assign!==wo},{assign:wo});var Ao=ce,So=function(e){if(Ao(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},xo=it,Ro=function(){var e=xo(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},ko={},Po=O,Eo=P.RegExp;ko.UNSUPPORTED_Y=Po((function(){var e=Eo("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ko.BROKEN_CARET=Po((function(){var e=Eo("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));var Oo,jo=nt,Io=it,No=so,To=j?Object.defineProperties:function(e,t){Io(e);for(var r,n=No(t),o=n.length,i=0;o>i;)jo.f(e,r=n[i++],t[r]);return e},Co=K("document","documentElement"),Fo=it,Uo=To,Bo=br,_o=Ot,Wo=Co,Do=He,Go=Et("IE_PROTO"),Mo=function(){},qo=function(e){return"<script>"+e+"</"+"script>"},Lo=function(e){e.write(qo("")),e.close();var t=e.parentWindow.Object;return e=null,t},Vo=function(){try{Oo=new ActiveXObject("htmlfile")}catch(e){}var e,t;Vo="undefined"!=typeof document?document.domain&&Oo?Lo(Oo):((t=Do("iframe")).style.display="none",Wo.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(qo("document.F=Object")),e.close(),e.F):Lo(Oo);for(var r=Bo.length;r--;)delete Vo.prototype[Bo[r]];return Vo()};_o[Go]=!0;var zo,Ho,Jo=Object.create||function(e,t){var r;return null!==e?(Mo.prototype=Fo(e),r=new Mo,Mo.prototype=null,r[Go]=e):r=Vo(),void 0===t?r:Uo(r,t)},$o=O,Ko=P.RegExp,Qo=$o((function(){var e=Ko(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Xo=O,Yo=P.RegExp,Zo=Xo((function(){var e=Yo("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ei=So,ti=Ro,ri=ko,ni=pe.exports,oi=Jo,ii=Lt.get,ai=Qo,ui=Zo,ci=RegExp.prototype.exec,si=ni("native-string-replace",String.prototype.replace),pi=ci,li=(zo=/a/,Ho=/b*/g,ci.call(zo,"a"),ci.call(Ho,"a"),0!==zo.lastIndex||0!==Ho.lastIndex),fi=ri.UNSUPPORTED_Y||ri.BROKEN_CARET,di=void 0!==/()??/.exec("")[1];(li||di||fi||ai||ui)&&(pi=function(e){var t,r,n,o,i,a,u,c=this,s=ii(c),p=ei(e),l=s.raw;if(l)return l.lastIndex=c.lastIndex,t=pi.call(l,p),c.lastIndex=l.lastIndex,t;var f=s.groups,d=fi&&c.sticky,y=ti.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)),di&&(r=new RegExp("^"+h+"$(?!\\s)",y)),li&&(n=c.lastIndex),o=ci.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:li&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),di&&o&&o.length>1&&si.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=oi(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var yi=pi;Hr({target:"RegExp",proto:!0,forced:/./.exec!==yi},{exec:yi});var hi=yt.exports,vi=yi,gi=O,mi=Fe,bi=dt,wi=mi("species"),Ai=RegExp.prototype,Si=tr,xi=So,Ri=q,ki=function(e){return function(t,r){var n,o,i=xi(Ri(t)),a=Si(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}},Pi={codeAt:ki(!1),charAt:ki(!0)}.charAt,Ei=W,Oi=yi,ji=it,Ii=or,Ni=So,Ti=q,Ci=function(e,t,r){return t+(r?Pi(e,t).length:1)},Fi=function(e,t){var r=e.exec;if("function"==typeof r){var n=r.call(e,t);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==Ei(e))throw TypeError("RegExp#exec called on incompatible receiver");return Oi.call(e,t)};(function(e,t,r,n){var o=mi(e),i=!gi((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!gi((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[wi]=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===vi||a===Ai.exec?i&&!o?{done:!0,value:u.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}));hi(String.prototype,e,c[0]),hi(Ai,o,c[1])}n&&bi(Ai[o],"sham",!0)})("match",(function(e,t,r){return[function(t){var r=Ti(this),n=null==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](Ni(r))},function(e){var n=ji(this),o=Ni(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return Fi(n,o);var a=n.unicode;n.lastIndex=0;for(var u,c=[],s=0;null!==(u=Fi(n,o));){var p=Ni(u[0]);c[s]=p,""===p&&(n.lastIndex=Ci(o,Ii(n.lastIndex),a)),s++}return 0===s?null:c}]}));var Ui=H,Bi=it,_i=function(e){if(!Ui(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e},Wi=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 Bi(r),_i(n),t?e.call(r,n):r.__proto__=n,r}}():void 0),Di=H,Gi=Wi,Mi=q,qi=So,Li="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Vi=RegExp("^"+Li+Li+"*"),zi=RegExp(Li+Li+"*$"),Hi=function(e){return function(t){var r=qi(Mi(t));return 1&e&&(r=r.replace(Vi,"")),2&e&&(r=r.replace(zi,"")),r}},Ji={start:Hi(1),end:Hi(2),trim:Hi(3)},$i=j,Ki=P,Qi=Wr,Xi=yt.exports,Yi=Ae,Zi=W,ea=function(e,t,r){var n,o;return Gi&&"function"==typeof(n=t.constructor)&&n!==r&&Di(o=n.prototype)&&o!==r.prototype&&Gi(e,o),e},ta=ce,ra=De,na=O,oa=Jo,ia=Yt.f,aa=E.f,ua=nt.f,ca=Ji.trim,sa="Number",pa=Ki.Number,la=pa.prototype,fa=Zi(oa(la))==sa,da=function(e){if(ta(e))throw TypeError("Cannot convert a Symbol value to a number");var t,r,n,o,i,a,u,c,s=ra(e,"number");if("string"==typeof s&&s.length>2)if(43===(t=(s=ca(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(Qi(sa,!pa(" 0o1")||!pa("0b1")||pa("+0x1"))){for(var ya,ha=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof ha&&(fa?na((function(){la.valueOf.call(r)})):Zi(r)!=sa)?ea(new pa(da(t)),r,ha):da(t)},va=$i?ia(pa):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),ga=0;va.length>ga;ga++)Yi(pa,ya=va[ga])&&!Yi(ha,ya)&&ua(ha,ya,aa(pa,ya));ha.prototype=la,la.constructor=ha,Xi(Ki,sa,ha)}var ma=Hr,ba=H,wa=$r,Aa=cr,Sa=or,xa=z,Ra=Yr,ka=Fe,Pa=cn("slice"),Ea=ka("species"),Oa=[].slice,ja=Math.max;ma({target:"Array",proto:!0,forced:!Pa},{slice:function(e,t){var r,n,o,i=xa(this),a=Sa(i.length),u=Aa(e,a),c=Aa(void 0===t?a:t,a);if(wa(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!wa(r.prototype)?ba(r)&&null===(r=r[Ea])&&(r=void 0):r=void 0,r===Array||void 0===r))return Oa.call(i,u,c);for(n=new(void 0===r?Array:r)(ja(c-u,0)),o=0;u<c;u++,o++)u in i&&Ra(n,o,i[u]);return n.length=o,n}});var Ia=me,Na=so;Hr({target:"Object",stat:!0,forced:O((function(){Na(1)}))},{keys:function(e){return Na(Ia(e))}});var Ta=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)),Ca=["condition","orderBy","withCursor"],Fa=["fields"],Ua=["condition"],Ba=["condition","orderBy"],_a=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,S,x,R,k;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:(k=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 k.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:(S=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,Ca),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 S.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,Fa),(i=r)&&i.length>0&&-1===i.indexOf("$id")&&(i=[].concat(A(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,Ua),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,Ba),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 Ta({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 Ta({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 Ta({},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(A(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 Ln(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Wa="object"==typeof self?self.FormData:window.FormData,Da=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 Wa,!("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 Nn)){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 Ln(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Ga={exports:{}},Ma=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)}},qa=Ma,La=Object.prototype.toString;function Va(e){return"[object Array]"===La.call(e)}function za(e){return void 0===e}function Ha(e){return null!==e&&"object"==typeof e}function Ja(e){if("[object Object]"!==La.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function $a(e){return"[object Function]"===La.call(e)}function Ka(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Va(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 Qa={isArray:Va,isArrayBuffer:function(e){return"[object ArrayBuffer]"===La.call(e)},isBuffer:function(e){return null!==e&&!za(e)&&null!==e.constructor&&!za(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:Ha,isPlainObject:Ja,isUndefined:za,isDate:function(e){return"[object Date]"===La.call(e)},isFile:function(e){return"[object File]"===La.call(e)},isBlob:function(e){return"[object Blob]"===La.call(e)},isFunction:$a,isStream:function(e){return Ha(e)&&$a(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:Ka,merge:function e(){var t={};function r(r,n){Ja(t[n])&&Ja(r)?t[n]=e(t[n],r):Ja(r)?t[n]=e({},r):Va(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)Ka(arguments[n],r);return t},extend:function(e,t,r){return Ka(t,(function(t,n){e[n]=r&&"function"==typeof t?qa(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}},Xa=Qa;function Ya(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Za=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Xa.isURLSearchParams(t))n=t.toString();else{var o=[];Xa.forEach(t,(function(e,t){null!=e&&(Xa.isArray(e)?t+="[]":e=[e],Xa.forEach(e,(function(e){Xa.isDate(e)?e=e.toISOString():Xa.isObject(e)&&(e=JSON.stringify(e)),o.push(Ya(t)+"="+Ya(e))})))})),n=o.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},eu=Qa;function tu(){this.handlers=[]}tu.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},tu.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},tu.prototype.forEach=function(e){eu.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var ru=tu,nu="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function ou(){throw new Error("setTimeout has not been defined")}function iu(){throw new Error("clearTimeout has not been defined")}var au=ou,uu=iu;function cu(e){if(au===setTimeout)return setTimeout(e,0);if((au===ou||!au)&&setTimeout)return au=setTimeout,setTimeout(e,0);try{return au(e,0)}catch(t){try{return au.call(null,e,0)}catch(t){return au.call(this,e,0)}}}"function"==typeof nu.setTimeout&&(au=setTimeout),"function"==typeof nu.clearTimeout&&(uu=clearTimeout);var su,pu=[],lu=!1,fu=-1;function du(){lu&&su&&(lu=!1,su.length?pu=su.concat(pu):fu=-1,pu.length&&yu())}function yu(){if(!lu){var e=cu(du);lu=!0;for(var t=pu.length;t;){for(su=pu,pu=[];++fu<t;)su&&su[fu].run();fu=-1,t=pu.length}su=null,lu=!1,function(e){if(uu===clearTimeout)return clearTimeout(e);if((uu===iu||!uu)&&clearTimeout)return uu=clearTimeout,clearTimeout(e);try{uu(e)}catch(t){try{return uu.call(null,e)}catch(t){return uu.call(this,e)}}}(e)}}function hu(e,t){this.fun=e,this.array=t}hu.prototype.run=function(){this.fun.apply(null,this.array)};function vu(){}var gu=vu,mu=vu,bu=vu,wu=vu,Au=vu,Su=vu,xu=vu;var Ru=nu.performance||{},ku=Ru.now||Ru.mozNow||Ru.msNow||Ru.oNow||Ru.webkitNow||function(){return(new Date).getTime()};var Pu=new Date;var Eu={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];pu.push(new hu(e,t)),1!==pu.length||lu||cu(yu)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:gu,addListener:mu,once:bu,off:wu,removeListener:Au,removeAllListeners:Su,emit:xu,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*ku.call(Ru),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-Pu)/1e3}},Ou=Qa,ju=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}},e},Iu=ju,Nu=function(e,t,r,n,o){var i=new Error(e);return Iu(i,t,r,n,o)},Tu=Nu,Cu=Qa,Fu=Cu.isStandardBrowserEnv()?{write:function(e,t,r,n,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),Cu.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Cu.isString(n)&&a.push("path="+n),Cu.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(){}},Uu=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},Bu=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},_u=Qa,Wu=["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"],Du=Qa,Gu=Du.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=Du.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},Mu=Qa,qu=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(Tu("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},Lu=Fu,Vu=Za,zu=function(e,t){return e&&!Uu(t)?Bu(e,t):t},Hu=function(e){var t,r,n,o={};return e?(_u.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=_u.trim(e.substr(0,n)).toLowerCase(),r=_u.trim(e.substr(n+1)),t){if(o[t]&&Wu.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o},Ju=Gu,$u=Nu,Ku=function(e){return new Promise((function(t,r){var n=e.data,o=e.headers,i=e.responseType;Mu.isFormData(n)&&delete o["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var u=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(u+":"+c)}var s=zu(e.baseURL,e.url);function p(){if(a){var n="getAllResponseHeaders"in a?Hu(a.getAllResponseHeaders()):null,o={data:i&&"text"!==i&&"json"!==i?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:n,config:e,request:a};qu(t,r,o),a=null}}if(a.open(e.method.toUpperCase(),Vu(s,e.params,e.paramsSerializer),!0),a.timeout=e.timeout,"onloadend"in a?a.onloadend=p:a.onreadystatechange=function(){a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))&&setTimeout(p)},a.onabort=function(){a&&(r($u("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){r($u("Network Error",e,null,a)),a=null},a.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r($u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},Mu.isStandardBrowserEnv()){var l=(e.withCredentials||Ju(s))&&e.xsrfCookieName?Lu.read(e.xsrfCookieName):void 0;l&&(o[e.xsrfHeaderName]=l)}"setRequestHeader"in a&&Mu.forEach(o,(function(e,t){void 0===n&&"content-type"===t.toLowerCase()?delete o[t]:a.setRequestHeader(t,e)})),Mu.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&"json"!==i&&(a.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&a.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){a&&(a.abort(),r(e),a=null)})),n||(n=null),a.send(n)}))},Qu=Qa,Xu=function(e,t){Ou.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},Yu=ju,Zu={"Content-Type":"application/x-www-form-urlencoded"};function ec(e,t){!Qu.isUndefined(e)&&Qu.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var tc,rc={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==Eu&&"[object process]"===Object.prototype.toString.call(Eu))&&(tc=Ku),tc),transformRequest:[function(e,t){return Xu(t,"Accept"),Xu(t,"Content-Type"),Qu.isFormData(e)||Qu.isArrayBuffer(e)||Qu.isBuffer(e)||Qu.isStream(e)||Qu.isFile(e)||Qu.isBlob(e)?e:Qu.isArrayBufferView(e)?e.buffer:Qu.isURLSearchParams(e)?(ec(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Qu.isObject(e)||t&&"application/json"===t["Content-Type"]?(ec(t,"application/json"),function(e,t,r){if(Qu.isString(e))try{return(t||JSON.parse)(e),Qu.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&Qu.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Yu(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}};rc.headers={common:{Accept:"application/json, text/plain, */*"}},Qu.forEach(["delete","get","head"],(function(e){rc.headers[e]={}})),Qu.forEach(["post","put","patch"],(function(e){rc.headers[e]=Qu.merge(Zu)}));var nc=rc,oc=Qa,ic=nc,ac=function(e){return!(!e||!e.__CANCEL__)},uc=Qa,cc=function(e,t,r){var n=this||ic;return oc.forEach(r,(function(r){e=r.call(n,e,t)})),e},sc=ac,pc=nc;function lc(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var fc=Qa,dc=function(e,t){t=t||{};var r={},n=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(e,t){return fc.isPlainObject(e)&&fc.isPlainObject(t)?fc.merge(e,t):fc.isPlainObject(t)?fc.merge({},t):fc.isArray(t)?t.slice():t}function c(n){fc.isUndefined(t[n])?fc.isUndefined(e[n])||(r[n]=u(void 0,e[n])):r[n]=u(e[n],t[n])}fc.forEach(n,(function(e){fc.isUndefined(t[e])||(r[e]=u(void 0,t[e]))})),fc.forEach(o,c),fc.forEach(i,(function(n){fc.isUndefined(t[n])?fc.isUndefined(e[n])||(r[n]=u(void 0,e[n])):r[n]=u(void 0,t[n])})),fc.forEach(a,(function(n){n in t?r[n]=u(e[n],t[n]):n in e&&(r[n]=u(void 0,e[n]))}));var s=n.concat(o).concat(i).concat(a),p=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===s.indexOf(e)}));return fc.forEach(p,c),r},yc={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]},hc={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){hc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var vc={},gc=yc.version.split(".");function mc(e,t){for(var r=t?t.split("."):gc,n=e.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]<n[o])return!1}return!1}hc.transitional=function(e,t,r){var n=t&&mc(t);function o(e,t){return"[Axios v"+yc.version+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,i,a){if(!1===e)throw new Error(o(i," has been removed in "+t));return n&&!vc[i]&&(vc[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}};var bc=Qa,wc=Za,Ac=ru,Sc=function(e){return lc(e),e.headers=e.headers||{},e.data=cc.call(e,e.data,e.headers,e.transformRequest),e.headers=uc.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),uc.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||pc.adapter)(e).then((function(t){return lc(e),t.data=cc.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return sc(t)||(lc(e),t&&t.response&&(t.response.data=cc.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},xc=dc,Rc={isOlderVersion:mc,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:hc},kc=Rc.validators;function Pc(e){this.defaults=e,this.interceptors={request:new Ac,response:new Ac}}Pc.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=xc(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&&Rc.assertOptions(t,{silentJSONParsing:kc.transitional(kc.boolean,"1.0.0"),forcedJSONParsing:kc.transitional(kc.boolean,"1.0.0"),clarifyTimeoutError:kc.transitional(kc.boolean,"1.0.0")},!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=[Sc,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=Sc(u)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},Pc.prototype.getUri=function(e){return e=xc(this.defaults,e),wc(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},bc.forEach(["delete","get","head","options"],(function(e){Pc.prototype[e]=function(t,r){return this.request(xc(r||{},{method:e,url:t,data:(r||{}).data}))}})),bc.forEach(["post","put","patch"],(function(e){Pc.prototype[e]=function(t,r,n){return this.request(xc(n||{},{method:e,url:t,data:r}))}}));var Ec=Pc;function Oc(e){this.message=e}Oc.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Oc.prototype.__CANCEL__=!0;var jc=Oc,Ic=jc;function Nc(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;e((function(e){r.reason||(r.reason=new Ic(e),t(r.reason))}))}Nc.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Nc.source=function(){var e;return{token:new Nc((function(t){e=t})),cancel:e}};var Tc=Nc,Cc=Qa,Fc=Ma,Uc=Ec,Bc=dc;function _c(e){var t=new Uc(e),r=Fc(Uc.prototype.request,t);return Cc.extend(r,Uc.prototype,t),Cc.extend(r,t),r}var Wc=_c(nc);Wc.Axios=Uc,Wc.create=function(e){return _c(Bc(Wc.defaults,e))},Wc.Cancel=jc,Wc.CancelToken=Tc,Wc.isCancel=ac,Wc.all=function(e){return Promise.all(e)},Wc.spread=function(e){return function(t){return e.apply(null,t)}},Wc.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},Ga.exports=Wc,Ga.exports.default=Wc;var Dc=Ga.exports,Gc=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.abrupt("return",this.sendRequest(n));case 4: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.abrupt("return",this.sendRequest(n));case 4: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.abrupt("return",this.sendRequest(n));case 4: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.abrupt("return",this.sendRequest(n));case 4: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.abrupt("return",this.sendRequest(n));case 4: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.abrupt("return",this.sendRequest(n));case 4:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"sendRequest",value:function(e){return this.responseHandler.handle(Dc(n(n({},e),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),e}(),Mc=O,qc=Hr,Lc=z,Vc=[].join,zc=M!=Object,Hc=function(e,t){var r=[][e];return!!r&&Mc((function(){r.call(null,t||function(){throw 1},1)}))}("join",",");qc({target:"Array",proto:!0,forced:zc||!Hc},{join:function(e){return Vc.call(Lc(this),void 0===e?",":e)}});var Jc,$c=x.Symbol,Kc=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},Qc=function(){return"function"==typeof $c&&("function"==typeof Symbol&&("symbol"==typeof $c("foo")&&("symbol"==typeof Symbol("bar")&&Kc())))},Xc="Function.prototype.bind called on incompatible ",Yc=Array.prototype.slice,Zc=Object.prototype.toString,es="[object Function]",ts=function(e){var t=this;if("function"!=typeof t||Zc.call(t)!==es)throw new TypeError(Xc+t);for(var r,n=Yc.call(arguments,1),o=function(){if(this instanceof r){var o=t.apply(this,n.concat(Yc.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(Yc.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},rs=Function.prototype.bind||ts,ns=rs.call(Function.call,Object.prototype.hasOwnProperty),os=SyntaxError,is=Function,as=TypeError,us=function(e){try{return is('"use strict"; return ('+e+").constructor;")()}catch(e){}},cs=Object.getOwnPropertyDescriptor;if(cs)try{cs({},"")}catch(e){cs=null}var ss,ps=function(){throw new as},ls=cs?function(){try{return ps}catch(e){try{return cs(arguments,"callee").get}catch(e){return ps}}}():ps,fs=Qc(),ds=Object.getPrototypeOf||function(e){return e.__proto__},ys={},hs="undefined"==typeof Uint8Array?Jc:ds(Uint8Array),vs={"%AggregateError%":"undefined"==typeof AggregateError?Jc:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Jc:ArrayBuffer,"%ArrayIteratorPrototype%":fs?ds([][Symbol.iterator]()):Jc,"%AsyncFromSyncIteratorPrototype%":Jc,"%AsyncFunction%":ys,"%AsyncGenerator%":ys,"%AsyncGeneratorFunction%":ys,"%AsyncIteratorPrototype%":ys,"%Atomics%":"undefined"==typeof Atomics?Jc:Atomics,"%BigInt%":"undefined"==typeof BigInt?Jc:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Jc:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Jc:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Jc:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Jc:FinalizationRegistry,"%Function%":is,"%GeneratorFunction%":ys,"%Int8Array%":"undefined"==typeof Int8Array?Jc:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Jc:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Jc:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fs?ds(ds([][Symbol.iterator]())):Jc,"%JSON%":"object"==typeof JSON?JSON:Jc,"%Map%":"undefined"==typeof Map?Jc:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&fs?ds((new Map)[Symbol.iterator]()):Jc,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Jc:Promise,"%Proxy%":"undefined"==typeof Proxy?Jc:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Jc:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Jc:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&fs?ds((new Set)[Symbol.iterator]()):Jc,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Jc:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fs?ds(""[Symbol.iterator]()):Jc,"%Symbol%":fs?Symbol:Jc,"%SyntaxError%":os,"%ThrowTypeError%":ls,"%TypedArray%":hs,"%TypeError%":as,"%Uint8Array%":"undefined"==typeof Uint8Array?Jc:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Jc:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Jc:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Jc:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Jc:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Jc:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Jc:WeakSet},gs=function e(t){var r;if("%AsyncFunction%"===t)r=us("async function () {}");else if("%GeneratorFunction%"===t)r=us("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=us("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=ds(o.prototype))}return vs[t]=r,r},ms={"%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"]},bs=rs,ws=ns,As=bs.call(Function.call,Array.prototype.concat),Ss=bs.call(Function.apply,Array.prototype.splice),xs=bs.call(Function.call,String.prototype.replace),Rs=bs.call(Function.call,String.prototype.slice),ks=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ps=/\\(\\)?/g,Es=function(e){var t=Rs(e,0,1),r=Rs(e,-1);if("%"===t&&"%"!==r)throw new os("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new os("invalid intrinsic syntax, expected opening `%`");var n=[];return xs(e,ks,(function(e,t,r,o){n[n.length]=r?xs(o,Ps,"$1"):t||e})),n},Os=function(e,t){var r,n=e;if(ws(ms,n)&&(n="%"+(r=ms[n])[0]+"%"),ws(vs,n)){var o=vs[n];if(o===ys&&(o=gs(n)),void 0===o&&!t)throw new as("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new os("intrinsic "+e+" does not exist!")},js=SyntaxError,Is=Function,Ns=TypeError,Ts=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},Cs=Object.getOwnPropertyDescriptor;if(Cs)try{Cs({},"")}catch(e){Cs=null}var Fs=function(){throw new Ns},Us=Cs?function(){try{return Fs}catch(e){try{return Cs(arguments,"callee").get}catch(e){return Fs}}}():Fs,Bs=Qc(),_s=Object.getPrototypeOf||function(e){return e.__proto__},Ws=Ts("async function* () {}"),Ds=Ws?Ws.prototype:ss,Gs=Ds?Ds.prototype:ss,Ms="undefined"==typeof Uint8Array?ss:_s(Uint8Array),qs={"%AggregateError%":"undefined"==typeof AggregateError?ss:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ss:ArrayBuffer,"%ArrayIteratorPrototype%":Bs?_s([][Symbol.iterator]()):ss,"%AsyncFromSyncIteratorPrototype%":ss,"%AsyncFunction%":Ts("async function () {}"),"%AsyncGenerator%":Ds,"%AsyncGeneratorFunction%":Ws,"%AsyncIteratorPrototype%":Gs?_s(Gs):ss,"%Atomics%":"undefined"==typeof Atomics?ss:Atomics,"%BigInt%":"undefined"==typeof BigInt?ss:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ss:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?ss:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ss:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ss:FinalizationRegistry,"%Function%":Is,"%GeneratorFunction%":Ts("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?ss:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ss:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ss:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Bs?_s(_s([][Symbol.iterator]())):ss,"%JSON%":"object"==typeof JSON?JSON:ss,"%Map%":"undefined"==typeof Map?ss:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Bs?_s((new Map)[Symbol.iterator]()):ss,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ss:Promise,"%Proxy%":"undefined"==typeof Proxy?ss:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?ss:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ss:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Bs?_s((new Set)[Symbol.iterator]()):ss,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ss:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Bs?_s(""[Symbol.iterator]()):ss,"%Symbol%":Bs?Symbol:ss,"%SyntaxError%":js,"%ThrowTypeError%":Us,"%TypedArray%":Ms,"%TypeError%":Ns,"%Uint8Array%":"undefined"==typeof Uint8Array?ss:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ss:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ss:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ss:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?ss:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ss:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ss:WeakSet},Ls={"%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"]},Vs=rs,zs=ns,Hs=Vs.call(Function.call,Array.prototype.concat),Js=Vs.call(Function.apply,Array.prototype.splice),$s=Vs.call(Function.call,String.prototype.replace),Ks=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Qs=/\\(\\)?/g,Xs=function(e){var t=[];return $s(e,Ks,(function(e,r,n,o){t[t.length]=n?$s(o,Qs,"$1"):r||e})),t},Ys=function(e,t){var r,n=e;if(zs(Ls,n)&&(n="%"+(r=Ls[n])[0]+"%"),zs(qs,n)){var o=qs[n];if(void 0===o&&!t)throw new Ns("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new js("intrinsic "+e+" does not exist!")},Zs=function(e,t){if("string"!=typeof e||0===e.length)throw new Ns("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Ns('"allowMissing" argument must be a boolean');var r=Xs(e),n=r.length>0?r[0]:"",o=Ys("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],Js(r,Hs([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s];if("constructor"!==l&&p||(u=!0),zs(qs,i="%"+(n+="."+l)+"%"))a=qs[i];else if(null!=a){if(Cs&&s+1>=r.length){var f=Cs(a,l);if(p=!!f,!t&&!(l in a))throw new Ns("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=zs(a,l),a=a[l];p&&!u&&(qs[i]=a)}}return a},ep={exports:{}};!function(e){var t=rs,r=Zs,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}(ep);var tp=Zs,rp=ep.exports,np=rp(tp("String.prototype.indexOf")),op=R(Object.freeze({__proto__:null,default:{}})),ip="function"==typeof Map&&Map.prototype,ap=Object.getOwnPropertyDescriptor&&ip?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,up=ip&&ap&&"function"==typeof ap.get?ap.get:null,cp=ip&&Map.prototype.forEach,sp="function"==typeof Set&&Set.prototype,pp=Object.getOwnPropertyDescriptor&&sp?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,lp=sp&&pp&&"function"==typeof pp.get?pp.get:null,fp=sp&&Set.prototype.forEach,dp="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,yp="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,hp=Boolean.prototype.valueOf,vp=Object.prototype.toString,gp=Function.prototype.toString,mp=String.prototype.match,bp="function"==typeof BigInt?BigInt.prototype.valueOf:null,wp=Object.getOwnPropertySymbols,Ap="function"==typeof Symbol?Symbol.prototype.toString:null,Sp=Object.prototype.propertyIsEnumerable,xp=op.custom,Rp=xp&&Op(xp)?xp:null;function kp(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function Pp(e){return String(e).replace(/"/g,"&quot;")}function Ep(e){return"[object Array]"===Np(e)}function Op(e){return"[object Symbol]"===Np(e)}var jp=Object.prototype.hasOwnProperty||function(e){return e in this};function Ip(e,t){return jp.call(e,t)}function Np(e){return vp.call(e)}function Tp(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 Cp(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Cp(e.slice(0,t.maxStringLength),t)+n}return kp(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Fp),"single",t)}function Fp(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 Up(e){return"Object("+e+")"}function Bp(e){return e+" { ? }"}function _p(e,t,r,n){return e+" ("+t+") {"+(n?Wp(r,n):r.join(", "))+"}"}function Wp(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function Dp(e,t){var r=Ep(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Ip(e,o)?t(e[o],e):""}for(var i in e)Ip(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 wp)for(var a=wp(e),u=0;u<a.length;u++)Sp.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var Gp=function(e,t){if("string"!=typeof e||0===e.length)throw new as("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new as('"allowMissing" argument must be a boolean');var r=Es(e),n=r.length>0?r[0]:"",o=Os("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],Ss(r,As([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s],f=Rs(l,0,1),d=Rs(l,-1);if(('"'===f||"'"===f||"`"===f||'"'===d||"'"===d||"`"===d)&&f!==d)throw new os("property names with quotes must have matching quotes");if("constructor"!==l&&p||(u=!0),ws(vs,i="%"+(n+="."+l)+"%"))a=vs[i];else if(null!=a){if(!(l in a)){if(!t)throw new as("base intrinsic for "+e+" exists, but the property is not available.");return}if(cs&&s+1>=r.length){var y=cs(a,l);a=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[l]}else p=ws(a,l),a=a[l];p&&!u&&(vs[i]=a)}}return a},Mp=function(e,t){var r=tp(e,!!t);return"function"==typeof r&&np(e,".prototype.")>-1?rp(r):r},qp=function e(t,r,n,o){var i=r||{};if(Ip(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ip(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=!Ip(i,"customInspect")||i.customInspect;if("boolean"!=typeof a)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(Ip(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 Cp(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 Ep(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(Tp(o,t)>=0)return"[Circular]";function s(t,r,a){if(r&&(o=o.slice()).push(r),a){var u={depth:i.depth};return Ip(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=mp.call(gp.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),l=Dp(t,s);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(l.length>0?" { "+l.join(", ")+" }":"")}if(Op(t)){var f=Ap.call(t);return"object"==typeof t?Up(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+"="+kp(Pp(y[h].value),"double",i);return d+=">",t.childNodes&&t.childNodes.length&&(d+="..."),d+="</"+String(t.nodeName).toLowerCase()+">"}if(Ep(t)){if(0===t.length)return"[]";var v=Dp(t,s);return c&&!function(e){for(var t=0;t<e.length;t++)if(Tp(e[t],"\n")>=0)return!1;return!0}(v)?"["+Wp(v,c)+"]":"[ "+v.join(", ")+" ]"}if(function(e){return"[object Error]"===Np(e)}(t)){var g=Dp(t,s);return 0===g.length?"["+String(t)+"]":"{ ["+String(t)+"] "+g.join(", ")+" }"}if("object"==typeof t&&a){if(Rp&&"function"==typeof t[Rp])return t[Rp]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!up||!e||"object"!=typeof e)return!1;try{up.call(e);try{lp.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var m=[];return cp.call(t,(function(e,r){m.push(s(r,t,!0)+" => "+s(e,t))})),_p("Map",up.call(t),m,c)}if(function(e){if(!lp||!e||"object"!=typeof e)return!1;try{lp.call(e);try{up.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var b=[];return fp.call(t,(function(e){b.push(s(e,t))})),_p("Set",lp.call(t),b,c)}if(function(e){if(!dp||!e||"object"!=typeof e)return!1;try{dp.call(e,dp);try{yp.call(e,yp)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Bp("WeakMap");if(function(e){if(!yp||!e||"object"!=typeof e)return!1;try{yp.call(e,yp);try{dp.call(e,dp)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Bp("WeakSet");if(function(e){return"[object Number]"===Np(e)}(t))return Up(s(Number(t)));if(function(e){return"[object BigInt]"===Np(e)}(t))return Up(s(bp.call(t)));if(function(e){return"[object Boolean]"===Np(e)}(t))return Up(hp.call(t));if(function(e){return"[object String]"===Np(e)}(t))return Up(s(String(t)));if(!function(e){return"[object Date]"===Np(e)}(t)&&!function(e){return"[object RegExp]"===Np(e)}(t)){var w=Dp(t,s);return 0===w.length?"{}":c?"{"+Wp(w,c)+"}":"{ "+w.join(", ")+" }"}return String(t)},Lp=Gp("%TypeError%"),Vp=Gp("%WeakMap%",!0),zp=Gp("%Map%",!0),Hp=Mp("WeakMap.prototype.get",!0),Jp=Mp("WeakMap.prototype.set",!0),$p=Mp("WeakMap.prototype.has",!0),Kp=Mp("Map.prototype.get",!0),Qp=Mp("Map.prototype.set",!0),Xp=Mp("Map.prototype.has",!0),Yp=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},Zp=String.prototype.replace,el=/%20/g,tl="RFC3986",rl={default:tl,formatters:{RFC1738:function(e){return Zp.call(e,el,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:tl},nl=rl,ol=Object.prototype.hasOwnProperty,il=Array.isArray,al=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),ul=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},cl={arrayToObject:ul,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(il(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===nl.RFC1738&&(40===c||41===c)?a+=i.charAt(u):c<128?a+=al[c]:c<2048?a+=al[192|c>>6]+al[128|63&c]:c<55296||c>=57344?a+=al[224|c>>12]+al[128|c>>6&63]+al[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(u)),a+=al[240|c>>18]+al[128|c>>12&63]+al[128|c>>6&63]+al[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(il(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(il(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!ol.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return il(t)&&!il(r)&&(o=ul(t,n)),il(t)&&il(r)?(r.forEach((function(r,o){if(ol.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 ol.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),o)}},sl=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new Lp("Side channel does not contain "+qp(e))},get:function(n){if(Vp&&n&&("object"==typeof n||"function"==typeof n)){if(e)return Hp(e,n)}else if(zp){if(t)return Kp(t,n)}else if(r)return function(e,t){var r=Yp(e,t);return r&&r.value}(r,n)},has:function(n){if(Vp&&n&&("object"==typeof n||"function"==typeof n)){if(e)return $p(e,n)}else if(zp){if(t)return Xp(t,n)}else if(r)return function(e,t){return!!Yp(e,t)}(r,n);return!1},set:function(n,o){Vp&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new Vp),Jp(e,n,o)):zp?(t||(t=new zp),Qp(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=Yp(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n},pl=cl,ll=rl,fl=Object.prototype.hasOwnProperty,dl={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},yl=Array.isArray,hl=Array.prototype.push,vl=function(e,t){hl.apply(e,yl(t)?t:[t])},gl=Date.prototype.toISOString,ml=ll.default,bl={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:pl.encode,encodeValuesOnly:!1,format:ml,formatter:ll.formatters[ml],indices:!1,serializeDate:function(e){return gl.call(e)},skipNulls:!1,strictNullHandling:!1},wl=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&&yl(g)&&(g=pl.maybeMap(g,(function(e){return e instanceof Date?p(e):e}))),null===g){if(o)return a&&!d?a(r,bl.encoder,y,"key",l):r;g=""}if("string"==typeof(v=g)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||pl.isBuffer(g))return a?[f(d?r:a(r,bl.encoder,y,"key",l))+"="+f(a(g,bl.encoder,y,"value",l))]:[f(r)+"="+f(String(g))];var m,b=[];if(void 0===g)return b;if("comma"===n&&yl(g))m=[{value:g.length>0?g.join(",")||null:void 0}];else if(yl(u))m=u;else{var w=Object.keys(g);m=c?w.sort(c):w}for(var A=0;A<m.length;++A){var S=m[A],x="object"==typeof S&&void 0!==S.value?S.value:g[S];if(!i||null!==x){var R=yl(g)?"function"==typeof n?n(r,S):r:r+(s?"."+S:"["+S+"]");h.set(t,!0);var k=sl();vl(b,e(x,R,n,o,i,a,u,c,s,p,l,f,d,y,k))}}return b},Al=cl,Sl=Object.prototype.hasOwnProperty,xl=Array.isArray,Rl={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Al.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},kl=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Pl=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},El=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&&Sl.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&&Sl.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:Pl(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)}},Ol={formats:rl,parse:function(e,t){var r=function(e){if(!e)return Rl;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?Rl.charset:e.charset;return{allowDots:void 0===e.allowDots?Rl.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Rl.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Rl.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Rl.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Rl.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Rl.comma,decoder:"function"==typeof e.decoder?e.decoder:Rl.decoder,delimiter:"string"==typeof e.delimiter||Al.isRegExp(e.delimiter)?e.delimiter:Rl.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Rl.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Rl.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Rl.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Rl.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Rl.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,Rl.decoder,c,"key"),p=t.strictNullHandling?null:""):(s=t.decoder(l.slice(0,d),Rl.decoder,c,"key"),p=Al.maybeMap(Pl(l.slice(d+1),t),(function(e){return t.decoder(e,Rl.decoder,c,"value")}))),p&&t.interpretNumericEntities&&"iso-8859-1"===c&&(p=kl(p)),l.indexOf("[]=")>-1&&(p=xl(p)?[p]:p),Sl.call(n,s)?n[s]=Al.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=El(u,n[u],r,"string"==typeof e);o=Al.merge(o,c,r)}return!0===r.allowSparse?o:Al.compact(o)},stringify:function(e,t){var r,n=e,o=function(e){if(!e)return bl;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||bl.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=ll.default;if(void 0!==e.format){if(!fl.call(ll.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=ll.formatters[r],o=bl.filter;return("function"==typeof e.filter||yl(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:bl.addQueryPrefix,allowDots:void 0===e.allowDots?bl.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:bl.charsetSentinel,delimiter:void 0===e.delimiter?bl.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:bl.encode,encoder:"function"==typeof e.encoder?e.encoder:bl.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:bl.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:bl.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:bl.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:bl.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):yl(o.filter)&&(r=o.filter);var i,a=[];if("object"!=typeof n||null===n)return"";i=t&&t.arrayFormat in dl?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var u=dl[i];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=sl(),s=0;s<r.length;++s){var p=r[s];o.skipNulls&&null===n[p]||vl(a,wl(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:""}},jl={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)},A=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("")},S=t.atob&&"function"==typeof t.atob?function(e){return t.atob(e)}:function(e){return e.replace(/\S{1,4}/g,A)},x=function(e){return S(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},R=function(e){return w(S(e))},k=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},P=function(e){return R(k(e))};t.Uint8Array&&(g=function(e){return Uint8Array.from(x(k(e)),(function(e){return e.charCodeAt(0)}))});var E=function(){var e=t.Base64;return t.Base64=n,e};if(t.Base64={VERSION:o,atob:x,btoa:f,fromBase64:P,toBase64:h,utob:p,encode:h,encodeURI:v,btou:w,decode:P,noConflict:E,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 P(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)}(jl);var Il=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 Wa)){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(Ol.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 Wa)){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(jl.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":jl.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}(),Nl={};Nl[Fe("toStringTag")]="z";var Tl="[object z]"===String(Nl),Cl=Tl,Fl=W,Ul=Fe("toStringTag"),Bl="Arguments"==Fl(function(){return arguments}()),_l=Cl?Fl: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),Ul))?r:Bl?Fl(t):"Object"==(n=Fl(t))&&"function"==typeof t.callee?"Arguments":n},Wl=Tl?{}.toString:function(){return"[object "+_l(this)+"]"},Dl=Tl,Gl=yt.exports,Ml=Wl;Dl||Gl(Object.prototype,"toString",Ml,{unsafe:!0});var ql=yt.exports,Ll=it,Vl=So,zl=O,Hl=Ro,Jl="toString",$l=RegExp.prototype,Kl=$l.toString,Ql=zl((function(){return"/a/b"!=Kl.call({source:"a",flags:"b"})})),Xl=Kl.name!=Jl;(Ql||Xl)&&ql(RegExp.prototype,Jl,(function(){var e=Ll(this),t=Vl(e.source),r=e.flags;return"/"+t+"/"+Vl(void 0===r&&e instanceof RegExp&&!("flags"in $l)?Hl.call(e):r)}),{unsafe:!0});var Yl,Zl=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)),ef=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)),tf=["data"],rf=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 Zl(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,tf);if("string"==typeof r)throw new Error("".concat(o.status,": ").concat(o.statusText));throw new ef(n({data:r},o))}}]),e}(),nf=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 Nn)throw new Error("session authentication is not supported in ".concat(e.platform," environment."));throw e}},of=function(){function e(){var r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),af(a),this.baseUrl=t.buildBaseUrl(a.baseUrl);var c=nf(null!==(r=a.auth)&&void 0!==r?r:{}),s=new Il(n(n({},a),{},{baseUrl:this.baseUrl,auth:c})),p=new rf({enableAbortSearchError:null!==(o=null===(i=a.featureFlags)||void 0===i?void 0:i.enableAbortSearchError)&&void 0!==o&&o}),l=new Gc({responseHandler:p,requestConfigBuilder:s}),f=a.guestSpaceId;this.bulkRequest_=new zn(l,f),this.record=new _a(l,this.bulkRequest_,f),this.app=new ao(l,f),this.file=new Da(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}(),af=function(e){uf(e.guestSpaceId)},uf=function(e){if(""===e||null===e)throw new Error("invalid guestSpaceId: got [".concat(e,"]"))};Yl=Cn,t.readFileFromPath=Yl.readFileFromPath,t.getRequestToken=Yl.getRequestToken,t.getDefaultAuth=Yl.getDefaultAuth,t.buildPlatformDependentConfig=Yl.buildPlatformDependentConfig,t.buildHeaders=Yl.buildHeaders,t.buildFormDataValue=Yl.buildFormDataValue,t.buildBaseUrl=Yl.buildBaseUrl,t.getVersion=Yl.getVersion,e.KintoneAbortSearchError=Zl,e.KintoneAllRecordsError=Ta,e.KintoneRestAPIClient=of,e.KintoneRestAPIError=ef,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.24"}}),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=gn,du=bn,yu=Ln,hu=J,vu=Er,gu=Nr,mu=z,bu=xn,wu=Ve,Su=Yn("slice"),Au=wu("species"),xu=[].slice,Ru=Math.max;fu({target:"Array",proto:!0,forced:!Su},{slice:function(e,t){var r,n,o,i=mu(this),a=gu(i),u=vu(e,a),c=vu(void 0===t?a:t,a);if(du(i)&&(r=i.constructor,(yu(r)&&(r===Array||du(r.prototype))||hu(r)&&null===(r=r[Au]))&&(r=void 0),r===Array||void 0===r))return xu.call(i,u,c);for(n=new(void 0===r?Array:r)(Ru(c-u,0)),o=0;u<c;u++,o++)u in i&&bu(n,o,i[u]);return n.length=o,n}});var Pu=Oe,Eu=ei;gn({target:"Object",stat:!0,forced:O((function(){Eu(1)}))},{keys:function(e){return Eu(Pu(e))}});var ku=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)),Ou=["condition","orderBy","withCursor"],ju=["fields"],Iu=["condition"],Nu=["condition","orderBy"],Tu=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,Ou),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,ju),(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,Iu),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,Nu),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 ku({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 ku({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 ku({},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}(),Fu="object"==typeof self?self.FormData:window.FormData,Cu=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 Fu,!("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}(),Uu={exports:{}},_u=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)}},Bu=_u,Wu=Object.prototype.toString;function Du(e){return"[object Array]"===Wu.call(e)}function Gu(e){return void 0===e}function Mu(e){return null!==e&&"object"==typeof e}function Lu(e){if("[object Object]"!==Wu.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function qu(e){return"[object Function]"===Wu.call(e)}function Vu(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Du(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 zu={isArray:Du,isArrayBuffer:function(e){return"[object ArrayBuffer]"===Wu.call(e)},isBuffer:function(e){return null!==e&&!Gu(e)&&null!==e.constructor&&!Gu(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:Mu,isPlainObject:Lu,isUndefined:Gu,isDate:function(e){return"[object Date]"===Wu.call(e)},isFile:function(e){return"[object File]"===Wu.call(e)},isBlob:function(e){return"[object Blob]"===Wu.call(e)},isFunction:qu,isStream:function(e){return Mu(e)&&qu(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:Vu,merge:function e(){var t={};function r(r,n){Lu(t[n])&&Lu(r)?t[n]=e(t[n],r):Lu(r)?t[n]=e({},r):Du(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)Vu(arguments[n],r);return t},extend:function(e,t,r){return Vu(t,(function(t,n){e[n]=r&&"function"==typeof t?Bu(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}},Hu=zu;function $u(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Ju=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Hu.isURLSearchParams(t))n=t.toString();else{var o=[];Hu.forEach(t,(function(e,t){null!=e&&(Hu.isArray(e)?t+="[]":e=[e],Hu.forEach(e,(function(e){Hu.isDate(e)?e=e.toISOString():Hu.isObject(e)&&(e=JSON.stringify(e)),o.push($u(t)+"="+$u(e))})))})),n=o.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},Ku=zu;function Qu(){this.handlers=[]}Qu.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},Qu.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Qu.prototype.forEach=function(e){Ku.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Xu=Qu,Yu="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Zu(){throw new Error("setTimeout has not been defined")}function ec(){throw new Error("clearTimeout has not been defined")}var tc=Zu,rc=ec;function nc(e){if(tc===setTimeout)return setTimeout(e,0);if((tc===Zu||!tc)&&setTimeout)return tc=setTimeout,setTimeout(e,0);try{return tc(e,0)}catch(t){try{return tc.call(null,e,0)}catch(t){return tc.call(this,e,0)}}}"function"==typeof Yu.setTimeout&&(tc=setTimeout),"function"==typeof Yu.clearTimeout&&(rc=clearTimeout);var oc,ic=[],ac=!1,uc=-1;function cc(){ac&&oc&&(ac=!1,oc.length?ic=oc.concat(ic):uc=-1,ic.length&&sc())}function sc(){if(!ac){var e=nc(cc);ac=!0;for(var t=ic.length;t;){for(oc=ic,ic=[];++uc<t;)oc&&oc[uc].run();uc=-1,t=ic.length}oc=null,ac=!1,function(e){if(rc===clearTimeout)return clearTimeout(e);if((rc===ec||!rc)&&clearTimeout)return rc=clearTimeout,clearTimeout(e);try{rc(e)}catch(t){try{return rc.call(null,e)}catch(t){return rc.call(this,e)}}}(e)}}function pc(e,t){this.fun=e,this.array=t}pc.prototype.run=function(){this.fun.apply(null,this.array)};function lc(){}var fc=lc,dc=lc,yc=lc,hc=lc,vc=lc,gc=lc,mc=lc;var bc=Yu.performance||{},wc=bc.now||bc.mozNow||bc.msNow||bc.oNow||bc.webkitNow||function(){return(new Date).getTime()};var Sc=new Date;var Ac={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];ic.push(new pc(e,t)),1!==ic.length||ac||nc(sc)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:fc,addListener:dc,once:yc,off:hc,removeListener:vc,removeAllListeners:gc,emit:mc,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*wc.call(bc),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-Sc)/1e3}},xc=zu,Rc=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},Pc=Rc,Ec=function(e,t,r,n,o){var i=new Error(e);return Pc(i,t,r,n,o)},kc=Ec,Oc=zu,jc=Oc.isStandardBrowserEnv()?{write:function(e,t,r,n,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),Oc.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Oc.isString(n)&&a.push("path="+n),Oc.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(){}},Ic=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},Nc=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Tc=zu,Fc=["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"],Cc=zu,Uc=Cc.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=Cc.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function _c(e){this.message=e}_c.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},_c.prototype.__CANCEL__=!0;var Bc=_c,Wc=zu,Dc=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(kc("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},Gc=jc,Mc=Ju,Lc=function(e,t){return e&&!Ic(t)?Nc(e,t):t},qc=function(e){var t,r,n,o={};return e?(Tc.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=Tc.trim(e.substr(0,n)).toLowerCase(),r=Tc.trim(e.substr(n+1)),t){if(o[t]&&Fc.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o},Vc=Uc,zc=Ec,Hc=rs,$c=Bc,Jc=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)}Wc.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=Lc(e.baseURL,e.url);function f(){if(c){var n="getAllResponseHeaders"in c?qc(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};Dc((function(e){t(e),u()}),(function(e){r(e),u()}),o),c=null}}if(c.open(e.method.toUpperCase(),Mc(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(zc("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(zc("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||Hc.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(zc(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Wc.isStandardBrowserEnv()){var d=(e.withCredentials||Vc(l))&&e.xsrfCookieName?Gc.read(e.xsrfCookieName):void 0;d&&(i[e.xsrfHeaderName]=d)}"setRequestHeader"in c&&Wc.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:c.setRequestHeader(t,e)})),Wc.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 $c("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)}))},Kc=zu,Qc=function(e,t){xc.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},Xc=Rc,Yc={"Content-Type":"application/x-www-form-urlencoded"};function Zc(e,t){!Kc.isUndefined(e)&&Kc.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var es,ts={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==Ac&&"[object process]"===Object.prototype.toString.call(Ac))&&(es=Jc),es),transformRequest:[function(e,t){return Qc(t,"Accept"),Qc(t,"Content-Type"),Kc.isFormData(e)||Kc.isArrayBuffer(e)||Kc.isBuffer(e)||Kc.isStream(e)||Kc.isFile(e)||Kc.isBlob(e)?e:Kc.isArrayBufferView(e)?e.buffer:Kc.isURLSearchParams(e)?(Zc(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Kc.isObject(e)||t&&"application/json"===t["Content-Type"]?(Zc(t,"application/json"),function(e,t,r){if(Kc.isString(e))try{return(t||JSON.parse)(e),Kc.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ts.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&Kc.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Xc(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, */*"}}};Kc.forEach(["delete","get","head"],(function(e){ts.headers[e]={}})),Kc.forEach(["post","put","patch"],(function(e){ts.headers[e]=Kc.merge(Yc)}));var rs=ts,ns=zu,os=rs,is=function(e){return!(!e||!e.__CANCEL__)},as=zu,us=function(e,t,r){var n=this||os;return ns.forEach(r,(function(r){e=r.call(n,e,t)})),e},cs=is,ss=rs,ps=Bc;function ls(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ps("canceled")}var fs=zu,ds=function(e,t){t=t||{};var r={};function n(e,t){return fs.isPlainObject(e)&&fs.isPlainObject(t)?fs.merge(e,t):fs.isPlainObject(t)?fs.merge({},t):fs.isArray(t)?t.slice():t}function o(r){return fs.isUndefined(t[r])?fs.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!fs.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return fs.isUndefined(t[r])?fs.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 fs.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,n=t(e);fs.isUndefined(n)&&t!==u||(r[e]=n)})),r},ys="0.23.0",hs=ys,vs={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){vs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var gs={};vs.transitional=function(e,t,r){function n(e,t){return"[Axios v"+hs+"] 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&&!gs[o]&&(gs[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 ms=zu,bs=Ju,ws=Xu,Ss=function(e){return ls(e),e.headers=e.headers||{},e.data=us.call(e,e.data,e.headers,e.transformRequest),e.headers=as.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),as.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||ss.adapter)(e).then((function(t){return ls(e),t.data=us.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return cs(t)||(ls(e),t&&t.response&&(t.response.data=us.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},As=ds,xs={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:vs},Rs=xs.validators;function Ps(e){this.defaults=e,this.interceptors={request:new ws,response:new ws}}Ps.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=As(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&&xs.assertOptions(t,{silentJSONParsing:Rs.transitional(Rs.boolean),forcedJSONParsing:Rs.transitional(Rs.boolean),clarifyTimeoutError:Rs.transitional(Rs.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=[Ss,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=Ss(u)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},Ps.prototype.getUri=function(e){return e=As(this.defaults,e),bs(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},ms.forEach(["delete","get","head","options"],(function(e){Ps.prototype[e]=function(t,r){return this.request(As(r||{},{method:e,url:t,data:(r||{}).data}))}})),ms.forEach(["post","put","patch"],(function(e){Ps.prototype[e]=function(t,r,n){return this.request(As(n||{},{method:e,url:t,data:r}))}}));var Es=Ps,ks=Bc;function Os(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 ks(e),t(r.reason))}))}Os.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Os.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Os.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Os.source=function(){var e;return{token:new Os((function(t){e=t})),cancel:e}};var js=Os,Is=zu,Ns=_u,Ts=Es,Fs=ds;var Cs=function e(t){var r=new Ts(t),n=Ns(Ts.prototype.request,r);return Is.extend(n,Ts.prototype,r),Is.extend(n,r),n.create=function(r){return e(Fs(t,r))},n}(rs);Cs.Axios=Ts,Cs.Cancel=Bc,Cs.CancelToken=js,Cs.isCancel=is,Cs.VERSION=ys,Cs.all=function(e){return Promise.all(e)},Cs.spread=function(e){return function(t){return e.apply(null,t)}},Cs.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},Uu.exports=Cs,Uu.exports.default=Cs;var Us=Uu.exports,_s=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(Us(n(n({},e),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),e}(),Bs=O,Ws=gn,Ds=z,Gs=[].join,Ms=M!=Object,Ls=function(e,t){var r=[][e];return!!r&&Bs((function(){r.call(null,t||function(){throw 1},1)}))}("join",",");Ws({target:"Array",proto:!0,forced:Ms||!Ls},{join:function(e){return Gs.call(Ds(this),void 0===e?",":e)}});var qs,Vs=x.Symbol,zs=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},Hs=function(){return"function"==typeof Vs&&("function"==typeof Symbol&&("symbol"==typeof Vs("foo")&&("symbol"==typeof Symbol("bar")&&zs())))},$s="Function.prototype.bind called on incompatible ",Js=Array.prototype.slice,Ks=Object.prototype.toString,Qs="[object Function]",Xs=function(e){var t=this;if("function"!=typeof t||Ks.call(t)!==Qs)throw new TypeError($s+t);for(var r,n=Js.call(arguments,1),o=function(){if(this instanceof r){var o=t.apply(this,n.concat(Js.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(Js.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},Ys=Function.prototype.bind||Xs,Zs=Ys.call(Function.call,Object.prototype.hasOwnProperty),ep=SyntaxError,tp=Function,rp=TypeError,np=function(e){try{return tp('"use strict"; return ('+e+").constructor;")()}catch(e){}},op=Object.getOwnPropertyDescriptor;if(op)try{op({},"")}catch(e){op=null}var ip,ap=function(){throw new rp},up=op?function(){try{return ap}catch(e){try{return op(arguments,"callee").get}catch(e){return ap}}}():ap,cp=Hs(),sp=Object.getPrototypeOf||function(e){return e.__proto__},pp={},lp="undefined"==typeof Uint8Array?qs:sp(Uint8Array),fp={"%AggregateError%":"undefined"==typeof AggregateError?qs:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?qs:ArrayBuffer,"%ArrayIteratorPrototype%":cp?sp([][Symbol.iterator]()):qs,"%AsyncFromSyncIteratorPrototype%":qs,"%AsyncFunction%":pp,"%AsyncGenerator%":pp,"%AsyncGeneratorFunction%":pp,"%AsyncIteratorPrototype%":pp,"%Atomics%":"undefined"==typeof Atomics?qs:Atomics,"%BigInt%":"undefined"==typeof BigInt?qs:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?qs:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?qs:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?qs:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?qs:FinalizationRegistry,"%Function%":tp,"%GeneratorFunction%":pp,"%Int8Array%":"undefined"==typeof Int8Array?qs:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?qs:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?qs:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":cp?sp(sp([][Symbol.iterator]())):qs,"%JSON%":"object"==typeof JSON?JSON:qs,"%Map%":"undefined"==typeof Map?qs:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&cp?sp((new Map)[Symbol.iterator]()):qs,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?qs:Promise,"%Proxy%":"undefined"==typeof Proxy?qs:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?qs:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?qs:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&cp?sp((new Set)[Symbol.iterator]()):qs,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?qs:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":cp?sp(""[Symbol.iterator]()):qs,"%Symbol%":cp?Symbol:qs,"%SyntaxError%":ep,"%ThrowTypeError%":up,"%TypedArray%":lp,"%TypeError%":rp,"%Uint8Array%":"undefined"==typeof Uint8Array?qs:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?qs:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?qs:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?qs:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?qs:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?qs:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?qs:WeakSet},dp=function e(t){var r;if("%AsyncFunction%"===t)r=np("async function () {}");else if("%GeneratorFunction%"===t)r=np("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=np("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=sp(o.prototype))}return fp[t]=r,r},yp={"%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"]},hp=Ys,vp=Zs,gp=hp.call(Function.call,Array.prototype.concat),mp=hp.call(Function.apply,Array.prototype.splice),bp=hp.call(Function.call,String.prototype.replace),wp=hp.call(Function.call,String.prototype.slice),Sp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ap=/\\(\\)?/g,xp=function(e){var t=wp(e,0,1),r=wp(e,-1);if("%"===t&&"%"!==r)throw new ep("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new ep("invalid intrinsic syntax, expected opening `%`");var n=[];return bp(e,Sp,(function(e,t,r,o){n[n.length]=r?bp(o,Ap,"$1"):t||e})),n},Rp=function(e,t){var r,n=e;if(vp(yp,n)&&(n="%"+(r=yp[n])[0]+"%"),vp(fp,n)){var o=fp[n];if(o===pp&&(o=dp(n)),void 0===o&&!t)throw new rp("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new ep("intrinsic "+e+" does not exist!")},Pp=SyntaxError,Ep=Function,kp=TypeError,Op=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},jp=Object.getOwnPropertyDescriptor;if(jp)try{jp({},"")}catch(e){jp=null}var Ip=function(){throw new kp},Np=jp?function(){try{return Ip}catch(e){try{return jp(arguments,"callee").get}catch(e){return Ip}}}():Ip,Tp=Hs(),Fp=Object.getPrototypeOf||function(e){return e.__proto__},Cp=Op("async function* () {}"),Up=Cp?Cp.prototype:ip,_p=Up?Up.prototype:ip,Bp="undefined"==typeof Uint8Array?ip:Fp(Uint8Array),Wp={"%AggregateError%":"undefined"==typeof AggregateError?ip:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ip:ArrayBuffer,"%ArrayIteratorPrototype%":Tp?Fp([][Symbol.iterator]()):ip,"%AsyncFromSyncIteratorPrototype%":ip,"%AsyncFunction%":Op("async function () {}"),"%AsyncGenerator%":Up,"%AsyncGeneratorFunction%":Cp,"%AsyncIteratorPrototype%":_p?Fp(_p):ip,"%Atomics%":"undefined"==typeof Atomics?ip:Atomics,"%BigInt%":"undefined"==typeof BigInt?ip:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ip:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?ip:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ip:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ip:FinalizationRegistry,"%Function%":Ep,"%GeneratorFunction%":Op("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?ip:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ip:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ip:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Tp?Fp(Fp([][Symbol.iterator]())):ip,"%JSON%":"object"==typeof JSON?JSON:ip,"%Map%":"undefined"==typeof Map?ip:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Tp?Fp((new Map)[Symbol.iterator]()):ip,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ip:Promise,"%Proxy%":"undefined"==typeof Proxy?ip:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?ip:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ip:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Tp?Fp((new Set)[Symbol.iterator]()):ip,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ip:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Tp?Fp(""[Symbol.iterator]()):ip,"%Symbol%":Tp?Symbol:ip,"%SyntaxError%":Pp,"%ThrowTypeError%":Np,"%TypedArray%":Bp,"%TypeError%":kp,"%Uint8Array%":"undefined"==typeof Uint8Array?ip:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ip:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ip:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ip:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?ip:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ip:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ip:WeakSet},Dp={"%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"]},Gp=Ys,Mp=Zs,Lp=Gp.call(Function.call,Array.prototype.concat),qp=Gp.call(Function.apply,Array.prototype.splice),Vp=Gp.call(Function.call,String.prototype.replace),zp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Hp=/\\(\\)?/g,$p=function(e){var t=[];return Vp(e,zp,(function(e,r,n,o){t[t.length]=n?Vp(o,Hp,"$1"):r||e})),t},Jp=function(e,t){var r,n=e;if(Mp(Dp,n)&&(n="%"+(r=Dp[n])[0]+"%"),Mp(Wp,n)){var o=Wp[n];if(void 0===o&&!t)throw new kp("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Pp("intrinsic "+e+" does not exist!")},Kp=function(e,t){if("string"!=typeof e||0===e.length)throw new kp("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new kp('"allowMissing" argument must be a boolean');var r=$p(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],qp(r,Lp([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s];if("constructor"!==l&&p||(u=!0),Mp(Wp,i="%"+(n+="."+l)+"%"))a=Wp[i];else if(null!=a){if(jp&&s+1>=r.length){var f=jp(a,l);if(p=!!f,!t&&!(l in a))throw new kp("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=Mp(a,l),a=a[l];p&&!u&&(Wp[i]=a)}}return a},Qp={exports:{}};!function(e){var t=Ys,r=Kp,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}(Qp);var Xp=Kp,Yp=Qp.exports,Zp=Yp(Xp("String.prototype.indexOf")),el=R(Object.freeze({__proto__:null,default:{}})),tl="function"==typeof Map&&Map.prototype,rl=Object.getOwnPropertyDescriptor&&tl?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,nl=tl&&rl&&"function"==typeof rl.get?rl.get:null,ol=tl&&Map.prototype.forEach,il="function"==typeof Set&&Set.prototype,al=Object.getOwnPropertyDescriptor&&il?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ul=il&&al&&"function"==typeof al.get?al.get:null,cl=il&&Set.prototype.forEach,sl="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,pl="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,ll=Boolean.prototype.valueOf,fl=Object.prototype.toString,dl=Function.prototype.toString,yl=String.prototype.match,hl="function"==typeof BigInt?BigInt.prototype.valueOf:null,vl=Object.getOwnPropertySymbols,gl="function"==typeof Symbol?Symbol.prototype.toString:null,ml=Object.prototype.propertyIsEnumerable,bl=el.custom,wl=bl&&Rl(bl)?bl:null;function Sl(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function Al(e){return String(e).replace(/"/g,"&quot;")}function xl(e){return"[object Array]"===kl(e)}function Rl(e){return"[object Symbol]"===kl(e)}var Pl=Object.prototype.hasOwnProperty||function(e){return e in this};function El(e,t){return Pl.call(e,t)}function kl(e){return fl.call(e)}function Ol(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 jl(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return jl(e.slice(0,t.maxStringLength),t)+n}return Sl(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Il),"single",t)}function Il(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 Nl(e){return"Object("+e+")"}function Tl(e){return e+" { ? }"}function Fl(e,t,r,n){return e+" ("+t+") {"+(n?Cl(r,n):r.join(", "))+"}"}function Cl(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function Ul(e,t){var r=xl(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=El(e,o)?t(e[o],e):""}for(var i in e)El(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 vl)for(var a=vl(e),u=0;u<a.length;u++)ml.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var _l=function(e,t){if("string"!=typeof e||0===e.length)throw new rp("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new rp('"allowMissing" argument must be a boolean');var r=xp(e),n=r.length>0?r[0]:"",o=Rp("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],mp(r,gp([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s],f=wp(l,0,1),d=wp(l,-1);if(('"'===f||"'"===f||"`"===f||'"'===d||"'"===d||"`"===d)&&f!==d)throw new ep("property names with quotes must have matching quotes");if("constructor"!==l&&p||(u=!0),vp(fp,i="%"+(n+="."+l)+"%"))a=fp[i];else if(null!=a){if(!(l in a)){if(!t)throw new rp("base intrinsic for "+e+" exists, but the property is not available.");return}if(op&&s+1>=r.length){var y=op(a,l);a=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[l]}else p=vp(a,l),a=a[l];p&&!u&&(fp[i]=a)}}return a},Bl=function(e,t){var r=Xp(e,!!t);return"function"==typeof r&&Zp(e,".prototype.")>-1?Yp(r):r},Wl=function e(t,r,n,o){var i=r||{};if(El(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(El(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=!El(i,"customInspect")||i.customInspect;if("boolean"!=typeof a)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(El(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 jl(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 xl(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(Ol(o,t)>=0)return"[Circular]";function s(t,r,a){if(r&&(o=o.slice()).push(r),a){var u={depth:i.depth};return El(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=yl.call(dl.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),l=Ul(t,s);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(l.length>0?" { "+l.join(", ")+" }":"")}if(Rl(t)){var f=gl.call(t);return"object"==typeof t?Nl(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+"="+Sl(Al(y[h].value),"double",i);return d+=">",t.childNodes&&t.childNodes.length&&(d+="..."),d+="</"+String(t.nodeName).toLowerCase()+">"}if(xl(t)){if(0===t.length)return"[]";var v=Ul(t,s);return c&&!function(e){for(var t=0;t<e.length;t++)if(Ol(e[t],"\n")>=0)return!1;return!0}(v)?"["+Cl(v,c)+"]":"[ "+v.join(", ")+" ]"}if(function(e){return"[object Error]"===kl(e)}(t)){var g=Ul(t,s);return 0===g.length?"["+String(t)+"]":"{ ["+String(t)+"] "+g.join(", ")+" }"}if("object"==typeof t&&a){if(wl&&"function"==typeof t[wl])return t[wl]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!nl||!e||"object"!=typeof e)return!1;try{nl.call(e);try{ul.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var m=[];return ol.call(t,(function(e,r){m.push(s(r,t,!0)+" => "+s(e,t))})),Fl("Map",nl.call(t),m,c)}if(function(e){if(!ul||!e||"object"!=typeof e)return!1;try{ul.call(e);try{nl.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var b=[];return cl.call(t,(function(e){b.push(s(e,t))})),Fl("Set",ul.call(t),b,c)}if(function(e){if(!sl||!e||"object"!=typeof e)return!1;try{sl.call(e,sl);try{pl.call(e,pl)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Tl("WeakMap");if(function(e){if(!pl||!e||"object"!=typeof e)return!1;try{pl.call(e,pl);try{sl.call(e,sl)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Tl("WeakSet");if(function(e){return"[object Number]"===kl(e)}(t))return Nl(s(Number(t)));if(function(e){return"[object BigInt]"===kl(e)}(t))return Nl(s(hl.call(t)));if(function(e){return"[object Boolean]"===kl(e)}(t))return Nl(ll.call(t));if(function(e){return"[object String]"===kl(e)}(t))return Nl(s(String(t)));if(!function(e){return"[object Date]"===kl(e)}(t)&&!function(e){return"[object RegExp]"===kl(e)}(t)){var w=Ul(t,s);return 0===w.length?"{}":c?"{"+Cl(w,c)+"}":"{ "+w.join(", ")+" }"}return String(t)},Dl=_l("%TypeError%"),Gl=_l("%WeakMap%",!0),Ml=_l("%Map%",!0),Ll=Bl("WeakMap.prototype.get",!0),ql=Bl("WeakMap.prototype.set",!0),Vl=Bl("WeakMap.prototype.has",!0),zl=Bl("Map.prototype.get",!0),Hl=Bl("Map.prototype.set",!0),$l=Bl("Map.prototype.has",!0),Jl=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},Kl=String.prototype.replace,Ql=/%20/g,Xl="RFC3986",Yl={default:Xl,formatters:{RFC1738:function(e){return Kl.call(e,Ql,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Xl},Zl=Yl,ef=Object.prototype.hasOwnProperty,tf=Array.isArray,rf=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),nf=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},of={arrayToObject:nf,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(tf(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===Zl.RFC1738&&(40===c||41===c)?a+=i.charAt(u):c<128?a+=rf[c]:c<2048?a+=rf[192|c>>6]+rf[128|63&c]:c<55296||c>=57344?a+=rf[224|c>>12]+rf[128|c>>6&63]+rf[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(u)),a+=rf[240|c>>18]+rf[128|c>>12&63]+rf[128|c>>6&63]+rf[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(tf(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(tf(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!ef.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return tf(t)&&!tf(r)&&(o=nf(t,n)),tf(t)&&tf(r)?(r.forEach((function(r,o){if(ef.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 ef.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),o)}},af=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new Dl("Side channel does not contain "+Wl(e))},get:function(n){if(Gl&&n&&("object"==typeof n||"function"==typeof n)){if(e)return Ll(e,n)}else if(Ml){if(t)return zl(t,n)}else if(r)return function(e,t){var r=Jl(e,t);return r&&r.value}(r,n)},has:function(n){if(Gl&&n&&("object"==typeof n||"function"==typeof n)){if(e)return Vl(e,n)}else if(Ml){if(t)return $l(t,n)}else if(r)return function(e,t){return!!Jl(e,t)}(r,n);return!1},set:function(n,o){Gl&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new Gl),ql(e,n,o)):Ml?(t||(t=new Ml),Hl(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=Jl(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n},uf=of,cf=Yl,sf=Object.prototype.hasOwnProperty,pf={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},lf=Array.isArray,ff=Array.prototype.push,df=function(e,t){ff.apply(e,lf(t)?t:[t])},yf=Date.prototype.toISOString,hf=cf.default,vf={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:uf.encode,encodeValuesOnly:!1,format:hf,formatter:cf.formatters[hf],indices:!1,serializeDate:function(e){return yf.call(e)},skipNulls:!1,strictNullHandling:!1},gf=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&&lf(g)&&(g=uf.maybeMap(g,(function(e){return e instanceof Date?p(e):e}))),null===g){if(o)return a&&!d?a(r,vf.encoder,y,"key",l):r;g=""}if("string"==typeof(v=g)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||uf.isBuffer(g))return a?[f(d?r:a(r,vf.encoder,y,"key",l))+"="+f(a(g,vf.encoder,y,"value",l))]:[f(r)+"="+f(String(g))];var m,b=[];if(void 0===g)return b;if("comma"===n&&lf(g))m=[{value:g.length>0?g.join(",")||null:void 0}];else if(lf(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=lf(g)?"function"==typeof n?n(r,A):r:r+(s?"."+A:"["+A+"]");h.set(t,!0);var P=af();df(b,e(x,R,n,o,i,a,u,c,s,p,l,f,d,y,P))}}return b},mf=of,bf=Object.prototype.hasOwnProperty,wf=Array.isArray,Sf={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:mf.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Af=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},xf=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Rf=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&&bf.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&&bf.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:xf(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)}},Pf={formats:Yl,parse:function(e,t){var r=function(e){if(!e)return Sf;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?Sf.charset:e.charset;return{allowDots:void 0===e.allowDots?Sf.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Sf.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Sf.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Sf.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Sf.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Sf.comma,decoder:"function"==typeof e.decoder?e.decoder:Sf.decoder,delimiter:"string"==typeof e.delimiter||mf.isRegExp(e.delimiter)?e.delimiter:Sf.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Sf.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Sf.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Sf.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Sf.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Sf.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,Sf.decoder,c,"key"),p=t.strictNullHandling?null:""):(s=t.decoder(l.slice(0,d),Sf.decoder,c,"key"),p=mf.maybeMap(xf(l.slice(d+1),t),(function(e){return t.decoder(e,Sf.decoder,c,"value")}))),p&&t.interpretNumericEntities&&"iso-8859-1"===c&&(p=Af(p)),l.indexOf("[]=")>-1&&(p=wf(p)?[p]:p),bf.call(n,s)?n[s]=mf.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=Rf(u,n[u],r,"string"==typeof e);o=mf.merge(o,c,r)}return!0===r.allowSparse?o:mf.compact(o)},stringify:function(e,t){var r,n=e,o=function(e){if(!e)return vf;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||vf.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=cf.default;if(void 0!==e.format){if(!sf.call(cf.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=cf.formatters[r],o=vf.filter;return("function"==typeof e.filter||lf(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:vf.addQueryPrefix,allowDots:void 0===e.allowDots?vf.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:vf.charsetSentinel,delimiter:void 0===e.delimiter?vf.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:vf.encode,encoder:"function"==typeof e.encoder?e.encoder:vf.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:vf.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:vf.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:vf.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:vf.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):lf(o.filter)&&(r=o.filter);var i,a=[];if("object"!=typeof n||null===n)return"";i=t&&t.arrayFormat in pf?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var u=pf[i];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=af(),s=0;s<r.length;++s){var p=r[s];o.skipNulls&&null===n[p]||df(a,gf(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:""}},Ef={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)}(Ef);var kf=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 Fu)){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(Pf.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 Fu)){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(Ef.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":Ef.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}(),Of=Nn,jf=Pn?{}.toString:function(){return"[object "+Of(this)+"]"},If=Pn,Nf=Pt.exports,Tf=jf;If||Nf(Object.prototype,"toString",Tf,{unsafe:!0});var 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 kf(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 _s({responseHandler:p,requestConfigBuilder:s}),f=a.guestSpaceId;this.bulkRequest_=new _o(l,f),this.record=new Tu(l,this.bulkRequest_,f),this.app=new Xo(l,f),this.file=new Cu(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=ku,e.KintoneRestAPIClient=Qf,e.KintoneRestAPIError=Hf,Object.defineProperty(e,"__esModule",{value:!0})}));