"use strict";(self.webpackChunkstudio_client=self.webpackChunkstudio_client||[]).push([[694],{6245:(t,e,r)=>{function n(t){this.message=t}r.d(e,{Z:()=>s}),n.prototype=new Error,n.prototype.name="InvalidCharacterError";var a="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,a,i=0,o=0,s="";a=e.charAt(o++);~a&&(r=i%4?64*r+a:a,i++%4)?s+=String.fromCharCode(255&r>>(-2*i&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return s};function i(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(a(t).replace(/(.)/g,(function(t,e){var r=e.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(e)}catch(t){return a(e)}}function o(t){this.message=t}o.prototype=new Error,o.prototype.name="InvalidTokenError";const s=function(t,e){if("string"!=typeof t)throw new o("Invalid token specified");var r=!0===(e=e||{}).header?0:1;try{return JSON.parse(i(t.split(".")[r]))}catch(t){throw new o("Invalid token specified: "+t.message)}}},4066:(t,e,r)=>{r.d(e,{y:()=>d});var n=function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r$)/g,""):"[a-zA-Z0-9-_.~%':|=+\\*@$]+")+")"},p=[{name:"url-parameter",pattern:/^:([a-zA-Z0-9-_]*[a-zA-Z0-9]{1})(<(.+?)>)?/,regex:function(t){return new RegExp(l(t[2]))}},{name:"url-parameter-splat",pattern:/^\*([a-zA-Z0-9-_]*[a-zA-Z0-9]{1})/,regex:/([^?]*)/},{name:"url-parameter-matrix",pattern:/^;([a-zA-Z0-9-_]*[a-zA-Z0-9]{1})(<(.+?)>)?/,regex:function(t){return new RegExp(";"+t[1]+"="+l(t[2]))}},{name:"query-parameter",pattern:/^(?:\?|&)(?::)?([a-zA-Z0-9-_]*[a-zA-Z0-9]{1})/},{name:"delimiter",pattern:/^(\/|\?)/,regex:function(t){return new RegExp("\\"+t[0])}},{name:"sub-delimiter",pattern:/^(!|&|-|_|\.|;)/,regex:function(t){return new RegExp(t[0])}},{name:"fragment",pattern:/^([0-9a-zA-Z]+)/,regex:function(t){return new RegExp(t[0])}}],f=function t(e,r){if(void 0===r&&(r=[]),!p.some((function(n){var a=e.match(n.pattern);return!!a&&(r.push({type:n.name,match:a[0],val:a.slice(1,2),otherVal:a.slice(2),regex:n.regex instanceof Function?n.regex(a):n.regex}),a[0].length0,this.hasSpatParam=this.tokens.filter((function(t){return/splat$/.test(t.type)})).length>0,this.hasMatrixParams=this.tokens.filter((function(t){return/matrix$/.test(t.type)})).length>0,this.hasQueryParams=this.tokens.filter((function(t){return/^query-parameter/.test(t.type)})).length>0,this.spatParams=this.getParams("url-parameter-splat"),this.urlParams=this.getParams(/^url-parameter/),this.queryParams=this.getParams("query-parameter"),this.params=this.urlParams.concat(this.queryParams),this.source=this.tokens.filter((function(t){return void 0!==t.regex})).map((function(t){return t.regex.source})).join("")}return t.createPath=function(e,r){return new t(e,r)},t.prototype.isQueryParam=function(t){return-1!==this.queryParams.indexOf(t)},t.prototype.isSpatParam=function(t){return-1!==this.spatParams.indexOf(t)},t.prototype.test=function(t,e){var r=this,i=n(n({caseSensitive:!1,strictTrailingSlash:!1},this.options),e),o=function(t,e){return e||"\\/"===t?t:t.replace(/\\\/$/,"")+"(?:\\/)?"}(this.source,i.strictTrailingSlash),s=this.urlTest(t,o+(this.hasQueryParams?"(\\?.*$|$)":"$"),i.caseSensitive,i.urlParamsEncoding);if(!s||!this.hasQueryParams)return s;var u=(0,a.Qc)(t,i.queryParams);return 0===Object.keys(u).filter((function(t){return!r.isQueryParam(t)})).length?(Object.keys(u).forEach((function(t){return s[t]=u[t]})),s):null},t.prototype.partialTest=function(t,e){var r=this,i=n(n({caseSensitive:!1,delimited:!0},this.options),e),o=function(t,e){return e?/(\/)$/.test(t)?t:t+"(\\/|\\?|\\.|;|$)":t}(this.source,i.delimited),s=this.urlTest(t,o,i.caseSensitive,i.urlParamsEncoding);if(!s)return s;if(!this.hasQueryParams)return s;var u=(0,a.Qc)(t,i.queryParams);return Object.keys(u).filter((function(t){return r.isQueryParam(t)})).forEach((function(t){return function(t,e,r){void 0===r&&(r="");var n=t[e];return t[e]=void 0===n?r:Array.isArray(n)?n.concat(r):[n,r],t}(s,t,u[t])})),s},t.prototype.build=function(t,e){var r=this;void 0===t&&(t={});var i=n(n({ignoreConstraints:!1,ignoreSearch:!1,queryParams:{}},this.options),e),o=Object.keys(t).filter((function(t){return!r.isQueryParam(t)})).reduce((function(e,n){if(!h(t[n]))return e;var a=t[n],o=r.isSpatParam(n);return"boolean"==typeof a?e[n]=a:Array.isArray(a)?e[n]=a.map((function(t){return c(t,i.urlParamsEncoding,o)})):e[n]=c(a,i.urlParamsEncoding,o),e}),{});if(this.urlParams.some((function(e){return!h(t[e])}))){var s=this.urlParams.filter((function(e){return!h(t[e])}));throw new Error("Cannot build path: '"+this.path+"' requires missing parameters { "+s.join(", ")+" }")}if(!i.ignoreConstraints&&!this.tokens.filter((function(t){return/^url-parameter/.test(t.type)&&!/-splat$/.test(t.type)})).every((function(t){return new RegExp("^"+l(t.otherVal[0])+"$").test(o[t.val])})))throw new Error("Some parameters of '"+this.path+"' are of invalid format");var u=this.tokens.filter((function(t){return!1===/^query-parameter/.test(t.type)})).map((function(t){return"url-parameter-matrix"===t.type?";"+t.val+"="+o[t.val[0]]:/^url-parameter/.test(t.type)?o[t.val[0]]:t.match})).join("");if(i.ignoreSearch)return u;var p=this.queryParams.filter((function(e){return-1!==Object.keys(t).indexOf(e)})).reduce((function(e,r){return e[r]=t[r],e}),{}),f=(0,a.J_)(p,i.queryParams);return f?u+"?"+f:u},t.prototype.getParams=function(t){var e=t instanceof RegExp?function(e){return t.test(e.type)}:function(e){return e.type===t};return this.tokens.filter(e).map((function(t){return t.val[0]}))},t.prototype.urlTest=function(t,e,r,n){var a=this,i=new RegExp("^"+e,r?"":"i"),o=t.match(i);return o?this.urlParams.length?o.slice(1,this.urlParams.length+1).reduce((function(t,e,r){return t[a.urlParams[r]]=(u[n]||decodeURIComponent)(e),t}),{}):{}:null},t}()},3689:(t,e,r)=>{r.d(e,{xX:()=>h});const n=2147483647,a=36,i=/^xn--/,o=/[\x2E\u3002\uFF0E\uFF61]/g,s={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u=Math.floor;String.fromCharCode;function c(t){throw new RangeError(s[t])}function l(t,e){const r=t.split("@");let n="";r.length>1&&(n=r[0]+"@",t=r[1]);const a=function(t,e){const r=[];let n=t.length;for(;n--;)r[n]=e(t[n]);return r}((t=t.replace(o,".")).split("."),e).join(".");return n+a}const p=function(t,e,r){let n=0;for(t=r?u(t/700):t>>1,t+=u(t/e);t>455;n+=a)t=u(t/35);return u(n+36*t/(t+38))},f=function(t){const e=[],r=t.length;let i=0,o=128,s=72,l=t.lastIndexOf("-");l<0&&(l=0);for(let r=0;r=128&&c("not-basic"),e.push(t.charCodeAt(r));for(let h=l>0?l+1:0;h=r&&c("invalid-input");const l=(f=t.charCodeAt(h++))>=48&&f<58?f-48+26:f>=65&&f<91?f-65:f>=97&&f<123?f-97:a;l>=a&&c("invalid-input"),l>u((n-i)/e)&&c("overflow"),i+=l*e;const p=o<=s?1:o>=s+26?26:o-s;if(lu(n/m)&&c("overflow"),e*=m}const m=e.length+1;s=p(i-l,m,0==l),u(i/m)>n-o&&c("overflow"),o+=u(i/m),i%=m,e.splice(i++,0,o)}var f;return String.fromCodePoint(...e)},h=function(t){return l(t,(function(t){return i.test(t)?f(t.slice(4).toLowerCase()):t}))}}}]);