1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./rehype-katex.B0awKBUY.js","./hastscript.CdO75HTK.js","./web-namespaces.7WZk_TbE.js","./rehype-raw.CYCm9aNq.js","./remark-emoji.v_eXGFRJ.js","./lib.BAKrLDmv.js","./StreamlitSyntaxHighlighter.m6pCiOx6.js","./Table.Dvqmsc8I.js","./pandasStylerUtils.C4NWa-JG.js","./_baseIndexOf.BLRTnWan.js","./moment.CxUG5LjX.js","./numbro.CldGEqmS.js","./ArrowVegaLiteChart.DsP3UX0J.js","./embed.B-c_4G7P.js","./threshold.DgPyzOa1.js","./src.BJmgRfOQ.js","./timer.CZbQQOaD.js","./withFullScreenWrapper.Cayfkf4W.js","./DataFrame.Dqn1eUs1.js","./createDownloadLinkElement.sTIOLR-H.js","./formatMoment.DuwA7md2.js","./formatNumber.1VL8Csnc.js","./sprintfjs.BfFpychH.js","./reactJsonViewCompat.DeSSF5mf.js","./resolveDefaultExport.CsNBWkh8.js","./toConsumableArray.PDHxPGsP.js","./FileDownload.esm.Dvz4VOlO.js","./checkbox.UCpp4Z27.js","./dist.D8e_gvvD.js","./_arrayIncludesWith.MnaH2Ddz.js","../css/DataFrame.DUkanX9_.css","./TableChart.esm.Cnj3rUuT.js","./Balloons.BCjQXBJE.js","./Particles.6Y1M9UNq.js","./DeckGlJsonChart.CTNT18ux.js","./useBasicWidgetState.C674_qFj.js","../css/DeckGlJsonChart.s6LXjV0D.css","./GraphVizChart.Bllt1Ft5.js","./IFrame.BTtn53Z-.js","./IFrameUtil.0n70gnmO.js","./ImageList.Cf-EPneU.js","./Json.u4FUnqt5.js","./LinkButton.DxA99x2a.js","./iconPosition.CY47f4C7.js","./Metric.BruI98GJ.js","./PageLink.C2ii4mfx.js","./PlotlyChart.DE72Bh5O.js","./Progress.COTepsCQ.js","./ProgressBar.xFBTeDlx.js","./Snow.BYLr0edY.js","./AudioInput.DCUCqL6V.js","./useWaveformController.BFawfY-S.js","./urls.BRPKJgsc.js","./zip.Cv4j9RD0.js","./Button.D0kRCRsF.js","./ButtonGroup.C-5OFb1K.js","./ComponentInstance.DsmFJHtV.js","./withCalculatedWidth.CkdEK_fo.js","./CameraInput.l7STegSi.js","./UploadFileInfo.B7jn-kP1.js","./ChatInput.Cc_cBlnM.js","./InputInstructions.CdXeHGKW.js","./utils.YPConuOW.js","./ErrorOutline.esm.CSHh4G83.js","./useTextInputAutoExpand.5FuDn5wN.js","./base-input.Bg_42oFt.js","./inputUtils.BZnYy1KE.js","./Checkbox.CG2u7VZC.js","./ColorPicker.BVI1RUj8.js","./DateInput.DUiBPN6F.js","./useIntlLocale.Cu_M7zeK.js","./timepicker.ClgoBVYZ.js","./input.Dbu0xBeW.js","./DateTimeInput.CMDzUm2n.js","./styled-components.CVHEm-3c.js","./DownloadButton.BFV-IdVs.js","./Feedback.CNkRs1-z.js","./FileUploader.tT_CsfpY.js","./FormSubmitContent.CncrHuwk.js","./Multiselect.-_yiHvfM.js","./NumberInput.C2RC3TUO.js","./Pagination.1Lva0_GS.js","./Radio.CUhr8Ytd.js","./Selectbox.BVJhx6w-.js","./Slider.BQM0-JZh.js","./TextArea.D19944vu.js","./use
1UpdateUiValue.DxLOa8lS.js","./TextInput.Cyh_WsIr.js","./TimeInput.DrjtlXkN.js"])))=>i.map(i=>d[i]); 2var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var p=s((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function ee(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+A(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(k,`$&/`)+`/`),ee(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+A(s,l);c+=ee(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+A(s,l++),c+=ee(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function te(e,t,n){if(e==null)return e;var r=[],i=0;return ee(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ne(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var re={current:null},ie={transition:null},ae={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:ie,ReactCurrentOwner:C};function oe(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:te,forEach:function(e,t,n){te(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return te(e,function(){t++}),t},toArray:function(e){return te(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INT
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ae,e.act=oe,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ne}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=ie.transition;ie.transition={};try{e()}finally{ie.transition=t}},e.unstable_act=oe,e.useCallback=function(e,t){return re.current.useCallback(e,t)},e.useContext=function(e){return re.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return re.current.useDeferredValue(e)},e.useEffect=function(e,t){return re.current.useEffect(e,t)},e.useId=function(){return re.current.useId()},e.useImperativeHandle=function(e,t,n){return re.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return re.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return re.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return re.current.useMemo(e,t)},e.useReducer=function(e,t,n){return re.current.useReducer(e,t,n)},e.useRef=function(e){return re.current.useRef(e)},e.useState=function(e){return re.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return re.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return re.current.useTransition()},e.version=`18.3.1`})),m=s(((e,t)=>{t.exports=p()})),h=s((e=>{var t=m(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),g=s(((e,t)=>{t.exports=h()})),_=u(m()),v=u(g()),y=!1;function b(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function x(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var S=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!y:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(x(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=b(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 10,331 bytes, line 2
2,t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),C=`-ms-`,w=`-moz-`,T=`-webkit-`,E=`comm`,D=`rule`,O=`decl`,k=`@import`,A=`@keyframes`,ee=`@layer`,te=Math.abs,ne=String.fromCharCode,re=Object.assign;function ie(e,t){return ce(e,0)^45?(((t<<2^ce(e,0))<<2^ce(e,1))<<2^ce(e,2))<<2^ce(e,3):0}function ae(e){return e.trim()}function oe(e,t){return(e=t.exec(e))?e[0]:e}function j(e,t,n){return e.replace(t,n)}function se(e,t){return e.indexOf(t)}function ce(e,t){return e.charCodeAt(t)|0}function le(e,t,n){return e.slice(t,n)}function M(e){return e.length}function N(e){return e.length}function ue(e,t){return t.push(e),e}function de(e,t){return e.map(t).join(``)}var fe=1,pe=1,me=0,he=0,ge=0,_e=``;function ve(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:fe,column:pe,length:o,return:``}}function ye(e,t){return re(ve(``,null,null,``,null,null,0),e,{length:-e.length},t)}function be(){return ge}function xe(){return ge=he>0?ce(_e,--he):0,pe--,ge===10&&(pe=1,fe--),ge}function Se(){return ge=he<me?ce(_e,he++):0,pe++,ge===10&&(pe=1,fe++),ge}function Ce(){return ce(_e,he)}function we(){return he}function Te(e,t){return le(_e,e,t)}function Ee(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function De(e){return fe=pe=1,me=M(_e=e),he=0,[]}function Oe(e){return _e=``,e}function ke(e){return ae(Te(he-1,Me(e===91?e+2:e===40?e+1:e)))}function Ae(e){for(;(ge=Ce())&&ge<33;)Se();return Ee(e)>2||Ee(ge)>3?``:` `}function je(e,t){for(;--t&&Se()&&!(ge<48||ge>102||ge>57&&ge<65||ge>70&&ge<97););return Te(e,we()+(t<6&&Ce()==32&&Se()==32))}function Me(e){for(;Se();)switch(ge){case e:return he;case 34:case 39:e!==34&&e!==39&&Me(ge);break;case 40:e===41&&Me(e);break;case 92:Se();break}return he}function Ne(e,t){for(;Se()&&e+ge!==57&&!(e+ge===84&&Ce()===47););return`/*`+Te(t,he-1)+`*`+ne(e===47?e:Se())}function Pe(e){for(;!Ee(Ce());)Se();return Te(e,he)}function Fe(e){return Oe(Ie(``,null,null,null,[``],e=De(e),0,[0],e))}function Ie(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=Se()){case 40:if(m!=108&&ce(C,d-1)==58){se(C+=j(ke(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=ke(v);break;case 9:case 10:case 13:case 32:C+=Ae(m);break;case 92:C+=je(we()-1,7);continue;case 47:switch(Ce()){case 42:case 47:ue(Re(Ne(Se(),we()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=M(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=j(C,/\f/g,``)),p>0&&M(C)-d&&ue(p>32?ze(C+`;`,r,n,d-1):ze(j(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(ue(S=Le(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Ie(C,t,S,S,b,a,d,s,x);else switch(f===99&&ce(C,3)===110?100:f){case 100:case 108:case 109:case 115:Ie(e,S,S,r&&ue(Le(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Ie(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+M(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&xe()==125)continue}switch(C+=ne(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(M(C)-1)*_,_=1;break;case 64:Ce()===45&&(C+=ke(Se())),f=Ce(),u=d=M(y=C+=Pe(we())),v++;break;case 45:m===45&&M(C)==2&&(h=0)}}return a}function Le(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=N(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=le(e,d+1,d=te(h=o[m])),y=e;_<p;++_)(y=ae(h>0?f[_]+` `+v:j(v,/&\f/g,f[_])))&&(c[g++]=y);return ve(e,t,n,i===0?D:s,c,l,u)}function Re(e,t,n){return ve(e,t,n,E,ne(be()),le(e,2,-2),0)}function ze(e,t,n,r){return ve(e,t,n,O,le(e,0,r),le(e,r+1,-1),r)}function Be(e,t){for(var n=``,r=N(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Ve(e,t,n,r){switch(e.type){case ee:if(e.children.length)break;case k:case O:return e.return=e.return||e.value;case E:return``;case A:return e.return=e.value+`{`+Be(e.children,r)+`}`;case D:e.value=e.props.join(`,`)}return M(n=Be(e.children,r))?e.return=e.value+`{`+n+`}`:``}function He(e){var t=N(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Ue(e){return function(t){t.root||(t=t.return)&&e(t)}}var We=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};function Ge(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ke=function(e,t,n){for(var r=0,i=0;r=i,i=Ce(),r===38&&i===12&&(t[n]=1),!Ee(i);)Se();return Te(e,he)},qe=function(e,t){var n=-1,r=44;do switch(Ee(r)){case 0:r===38&&Ce()===12&&(t[n]=1),e[n]+=Ke(he-1,t,n);break;case 2:e[n]+=ke(r);break;case 4:if(r===44){e[++n]=Ce()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=ne(r)}while(r=Se());return e},Je=function(e,t){return Oe(qe(De(e),t))},Ye=new WeakMap,Xe=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ye.get(n))&&!r){Ye.set(e,!0);for(var i=[],a=Je(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},Ze=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function Qe(e,t){switch(ie(e,t)){case 5103:return T+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return T+e+w+e+C+e+e;case 6828:case 4268:return T+e+C+e+e;case 6165:return T+e+C+`flex-`+e+e;case 5187:return T+e+j(e,/(\w+).+(:[^]+)/,T+`box-$1$2`+C+`flex-$1$2`)+e;case 5443:return T+e+C+`flex-item-`+j(e,/flex-|-self/,``)+e;case 4675:return T+e+C+`flex-line-pack`+j(e,/align-content|flex-|-self/,``)+e;case 5548:return T+e+C+j(e,`shrink`,`negative`)+e;case 5292:return T+e+C+j(e,`basis`,`preferred-size`)+e;case 6060:return T+`box-`+j(e,`-grow`,``)+T+e+C+j(e,`grow`,`positive`)+e;case 4554:return T+j(e,/([^-])(transform)/g,`$1`+T+`$2`)+e;case 6187:return j(j(j(e,/(zoom-|grab)/,T+`$1`),/(image-set)/,T+`$1`),e,``)+e;case 5495:case 3959:return j(e,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return j(j(e,/(.+:)(flex-)?(.*)/,T+`box-pack:$3`+C+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+T+e+e;case 4095:case 3583:case 4068:case 2532:return j(e,/(.+)-inline(.+)/,T+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(M(e)-1-t>6)switch(ce(e,t+1)){case 109:if(ce(e,t+4)!==45)break;case 102:return j(e,/(.+:)(.+)-([^]+)/,`$1`+T+`$2-$3$1`+w+(ce(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~se(e,`stretch`)?Qe(j(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(ce(e,t+1)!==115)break;case 6444:switch(ce(e,M(e)-3-(~se(e,`!important`)&&10))){case 107:return j(e,`:`,`:`+T)+e;case 101:return j(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+T+(ce(e,14)===45?`inline-`:``)+`box$3$1`+T+`$2$3$1`+C+`$2box$3`)+e}break;case 5936:switch(ce(e,t+11)){case 114:return T+e+C+j(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return T+e+C+j(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return T+e+C+j(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return T+e+C+e+e}return e}var $e=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case O:e.return=Qe(e.value,e.length);break;case A:return Be([ye(e,{value:j(e.value,`@`,`@`+T)})],r);case D:if(e.length)return de(e.props,function(t){switch(oe(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Be([ye(e,{props:[j(t,/:(read-\w+)/,`:`+w+`$1`)]})],r);case`::placeholder`:return Be([ye(e,{props:[j(t,/:(plac\w+)/,`:`+T+`input-$1`)]}),ye(e,{props:[j(t,/:(plac\w+)/,`:`+w+`$1`)]}),ye(e,{props:[j(t,/:(plac\w+)/,C+`input-$1`)]})],r)}return``})}}],et=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||$e,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[Xe,Ze],l,u=[Ve,Ue(function(e){l.insert(e)})],d=He(c.concat(r,u)),f=function(e){return Be(Fe(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new S({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p};function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tt.apply(null,arguments)}var nt=s((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.
vendor: 4,355 bytes, line 2
2Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),rt=s(((e,t)=>{t.exports=nt()})),it=s(((e,t)=>{var n=rt(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),at=!0;function ot(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var st=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||at===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},ct=function(e,t,n){st(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function lt(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ut={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dt=!1,ft=/[A-Z]|^ms/g,pt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mt=function(e){return e.charCodeAt(1)===45},ht=function(e){return e!=null&&typeof e!=`boolean`},gt=Ge(function(e){return mt(e)?e:e.replace(ft,`-$&`).toLowerCase()}),_t=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(pt,function(e,t,n){return St={name:t,styles:n,next:St},t})}return ut[e]!==1&&!mt(e)&&typeof t==`number`&&t!==0?t+`px`:t},vt=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function yt(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;
2if(i.anim===1)return St={name:i.name,styles:i.styles,next:St},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)St={name:o.name,styles:o.styles,next:St},o=o.next;return a.styles+`;`}return bt(e,t,n);case`function`:if(e!==void 0){var s=St,c=n(e);return St=s,yt(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function bt(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=yt(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:ht(s)&&(r+=gt(a)+`:`+_t(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&dt)throw Error(vt);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)ht(o[c])&&(r+=gt(a)+`:`+_t(a,o[c])+`;`);else{var l=yt(e,t,o);switch(a){case`animation`:case`animationName`:r+=gt(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var xt=/label:\s*([^\s;{]+)\s*(;|$)/g,St;function Ct(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;St=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=yt(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=yt(n,t,e[o]),r&&(i+=a[o]);xt.lastIndex=0;for(var s=``,c;(c=xt.exec(i))!==null;)s+=`-`+c[1];return{name:lt(i)+s,styles:i,next:St}}var wt=function(e){return e()},Tt=_.useInsertionEffect?_.useInsertionEffect:!1,Et=Tt||wt,Dt=Tt||_.useLayoutEffect,Ot=_.createContext(typeof HTMLElement<`u`?et({key:`css`}):null),kt=Ot.Provider,At=function(e){return(0,_.forwardRef)(function(t,n){return e(t,(0,_.useContext)(Ot),n)})},jt=_.createContext({}),Mt=function(){return _.useContext(jt)},Nt=function(e,t){return typeof t==`function`?t(e):tt({},e,t)},Pt=We(function(e){return We(function(t){return Nt(e,t)})}),Ft=function(e){var t=_.useContext(jt);return e.theme!==t&&(t=Pt(t)(e.theme)),_.createElement(jt.Provider,{value:t},e.children)},It={}.hasOwnProperty,Lt=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Rt=function(e,t){var n={};for(var r in t)It.call(t,r)&&(n[r]=t[r]);return n[Lt]=e,n},zt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return st(t,n,r),Et(function(){return ct(t,n,r)}),null},Bt=At(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Lt],a=[r],o=``;typeof e.className==`string`?o=ot(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Ct(a,void 0,_.useContext(jt));o+=t.key+`-`+s.name;var c={};for(var l in e)It.call(e,l)&&l!==`css`&&l!==Lt&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),_.createElement(_.Fragment,null,_.createElement(zt,{cache:t,serialized:s,isStringTag:typeof i==`string`}),_.createElement(i,c))}),Vt=u(it()),Ht=v.Fragment,P=function(e,t,n){return It.call(t,`css`)?v.jsx(Bt,Rt(e,t),n):v.jsx(e,t,n)},F=function(e,t,n){return It.call(t,`css`)?v.jsxs(Bt,Rt(e,t),n):v.jsxs(e,t,n)},Ut=s(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define(n):typeof t==`object`&&t.exports?t.exports=n():e.log=n()})(e,function(){var e=function(){},t=`undefined`,n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=[`trace`,`debug`,`info`,`warn`,`error`],i={},a=null;function o(e,t){var n=e[t];if(typeof n.bind==`function`)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch{return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function c(r){return r===`debug`&&(r=`log`),typeof console===t?!1:r===`trace`&&n?s:console[r]===void 0?console.log===void 0?e:o(console,`log`):o(console,r)}function l(){for(var n=this.getLevel(),i=0;i<r.length;i++){var a=r[i];this[a]=i<n?e:this.methodFactory(a,n,this.name)}if(this.log=this.debug,typeof console===t&&n<this.levels.SILENT)return`No console available for logging`}function u(e){return function(){typeof console!==t&&(l.call(this),this[e].apply(this,arguments))}}function d(e,t,n){return c(e)||u.apply(this,arguments)}function f(e,n){var o=this,s,c,u,f=`loglevel`;typeof e==`string`?f+=`:`+e:typeof e==`symbol`&&(f=void 0);function p(e){var n=(r[e]||`silent`).toUpperCase();if(!(typeof window===t||!f)){try{window.localStorage[f]=n;return}catch{}try{window.document.cookie=encodeURIComponent(f)+`=`+n+`;`}catch{}}}function m(){var e;if(!(typeof window===t||!f)){try{e=window.localStorage[f]}catch{}if(typeof e===t)try{var n=window.document.cookie,r=encodeURIComponent(f),i=n.indexOf(r+`=`);i!==-1&&(e=/^([^;]+)/.exec(n.slice(i+r.length+1))[1])}catch{}return o.levels[e]===void 0&&(e=void 0),e}}function h(){if(!(typeof window===t||!f)){try{window.localStorage.removeItem(f)}catch{}try{window.document.cookie=encodeURIComponent(f)+`=; expires=Thu, 01 Jan 1970 00:00:00 UTC`}catch{}}}function g(e){var t=e;if(typeof t==`string`&&o.levels[t.toUpperCase()]!==void 0&&(t=o.levels[t.toUpperCase()]),typeof t==`number`&&t>=0&&t<=o.levels.SILENT)return t;
vendor: 6,167 bytes, line 2
2throw TypeError(`log.setLevel() called with invalid level: `+e)}o.name=e,o.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},o.methodFactory=n||d,o.getLevel=function(){return u??c??s},o.setLevel=function(e,t){return u=g(e),t!==!1&&p(u),l.call(o)},o.setDefaultLevel=function(e){c=g(e),m()||o.setLevel(e,!1)},o.resetLevel=function(){u=null,h(),l.call(o)},o.enableAll=function(e){o.setLevel(o.levels.TRACE,e)},o.disableAll=function(e){o.setLevel(o.levels.SILENT,e)},o.rebuild=function(){if(a!==o&&(s=g(a.getLevel())),l.call(o),a===o)for(var e in i)i[e].rebuild()},s=g(a?a.getLevel():`WARN`);var _=m();_!=null&&(u=g(_)),l.call(o)}a=new f,a.getLogger=function(e){if(typeof e!=`symbol`&&typeof e!=`string`||e===``)throw TypeError(`You must supply a name when creating a logger.`);var t=i[e];return t||=i[e]=new f(e,a.methodFactory),t};var p=typeof window===t?void 0:window.log;return a.noConflict=function(){return typeof window!==t&&window.log===a&&(window.log=p),a},a.getLoggers=function(){return i},a.default=a,a})})),Wt=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,te(x);else{var t=n(l);t!==null&&ne(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&ne(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?k():(S=!1,C=null)}}else S=!1}var k;if(typeof v==`function`)k=function(){v(O)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,ee=A.port2;A.port1.onmessage=O,k=function(){ee.postMessage(null)}}else k=function(){g(O,0)};function te(e){C=e,S||(S=!0,k())}function ne(t,n){w=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,te(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,ne(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,te(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),eee=s(((e,t)=>{t.exports=Wt()})),Gt=s((e=>{var t=m(),n=eee();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},f={};function p(e){return l.call(f,e)?!0:l.call(d,e)?!1:u.test(e)?f[e]=!0:(d[e]=!0,!1)}function h(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function g(e,t,n,r){if(t==null||h(e,t,n,r))return!0;
vendor: 23,581 bytes, lines 2-6
2if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var v={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){v[e]=new _(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];v[t]=new _(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){v[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){v[e]=new _(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){v[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){v[e]=new _(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){v[e]=new _(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){v[e]=new _(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){v[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){v[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new _(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){v[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function x(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(g(t,n,i,r)&&(n=null),r||i===null?p(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var S=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for(`react.element`),w=Symbol.for(`react.portal`),T=Symbol.for(`react.fragment`),E=Symbol.for(`react.strict_mode`),D=Symbol.for(`react.profiler`),O=Symbol.for(`react.provider`),k=Symbol.for(`react.context`),A=Symbol.for(`react.forward_ref`),ee=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=Symbol.for(`react.offscreen`),ae=Symbol.iterator;function oe(e){return typeof e!=`object`||!e?null:(e=ae&&e[ae]||e[`@@iterator`],typeof e==`function`?e:null)}var j=Object.assign,se;function ce(e){if(se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);se=t&&t[1]||``}return` 3`+se+e}var le=!1;function M(e,t){if(!e||le)return``;le=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(` 4`),a=r.stack.split(` 5`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=` 6`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{le=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ce(e):``}function N(e){switch(e.tag){case 5:return ce(e.type);case 16:return ce(`Lazy`);case 13:return ce(`Suspense`);case 19:return ce(`SuspenseList`);case 0:case 2:case 15:return e=M(e.type,!1),e;case 11:return e=M(e.type.render,!1),e;case 1:return e=M(e.type,!0),e;default:return``}}function ue(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case T:return`Fragment`;case w:return`Portal`;case D:return`Profiler`;case E:return`StrictMode`;case ee:return`Suspense`;case te:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case k:return(e.displayName||`Context`)+`.Consumer`;case O:return(e._context.displayName||`Context`)+`.Provider`;case A:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?ue(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}function de(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return ue(t);case 8:return t===E?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function fe(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function pe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function me(e){var t=pe(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function he(e){e._valueTracker||=me(e)}function ge(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=pe(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function _e(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ve(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ye(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=fe(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function be(e,t){t=t.checked,t!=null&&x(e,`checked`,t,!1)}function xe(e,t){be(e,t);var n=fe(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?Ce(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Ce(e,t.type,fe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Se(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function Ce(e,t,n){(t!==`number`||_e(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var we=Array.isArray;function Te(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+fe(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ee(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return j({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function De(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(we(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:fe(n)}}function Oe(e,t){var n=fe(t.value),r=fe(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function ke(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function Ae(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function je(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Ae(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Me,Ne=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(Me||=document.createElement(`div`),Me.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ie=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Fe).forEach(function(e){Ie.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fe[t]=Fe[e]})});function Le(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Fe.hasOwnProperty(e)&&Fe[e]?(``+t).trim():t+`px`}function Re(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Le(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var ze=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Be(e,t){if(t){if(ze[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Ve(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var He=null;function Ue(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var We=null,Ge=null,Ke=null;function qe(e){if(e=Ki(e)){if(typeof We!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Ji(t),We(e.stateNode,e.type,t))}}function Je(e){Ge?Ke?Ke.push(e):Ke=[e]:Ge=e}function Ye(){if(Ge){var e=Ge,t=Ke;if(Ke=Ge=null,qe(e),t)for(e=0;e<t.length;e++)qe(t[e])}}function Xe(e,t){return e(t)}function Ze(){}var Qe=!1;function $e(e,t,n){if(Qe)return e(t,n);Qe=!0;try{return Xe(e,t,n)}finally{Qe=!1,(Ge!==null||Ke!==null)&&(Ze(),Ye())}}function et(e,t){var n=e.stateNode;if(n===null)return null;var i=Ji(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var tt=!1;if(c)try{var nt={};Object.defineProperty(nt,`passive`,{get:function(){tt=!0}}),window.addEventListener(`test`,nt,nt),window.removeEventListener(`test`,nt,nt)}catch{tt=!1}function rt(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var it=!1,at=null,ot=!1,st=null,ct={onError:function(e){it=!0,at=e}};function lt(e,t,n,r,i,a,o,s,c){it=!1,at=null,rt.apply(ct,arguments)}function ut(e,t,n,i,a,o,s,c,l){if(lt.apply(this,arguments),it){if(it){var u=at;it=!1,at=null}else throw Error(r(198));ot||(ot=!0,st=u)}}function dt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ft(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pt(e){if(dt(e)!==e)throw Error(r(188))}function mt(e){var t=e.alternate;if(!t){if(t=dt(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return pt(a),e;if(o===i)return pt(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function ht(e){return e=mt(e),e===null?null:gt(e)}function gt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gt(e);if(t!==null)return t;e=e.sibling}return null}var _t=n.unstable_scheduleCallback,vt=n.unstable_cancelCallback,yt=n.unstable_shouldYield,bt=n.unstable_requestPaint,xt=n.unstable_now,St=n.unstable_getCurrentPriorityLevel,Ct=n.unstable_ImmediatePriority,wt=n.unstable_UserBlockingPriority,Tt=n.unstable_NormalPriority,Et=n.unstable_LowPriority,Dt=n.unstable_IdlePriority,Ot=null,kt=null;function At(e){if(kt&&typeof kt.onCommitFiberRoot==`function`)try{kt.onCommitFiberRoot(Ot,e,void 0,(e.current.flags&128)==128)}catch{}}var jt=Math.clz32?Math.clz32:Pt,Mt=Math.log,Nt=Math.LN2;function Pt(e){return e>>>=0,e===0?32:31-(Mt(e)/Nt|0)|0}var Ft=64,It=4194304;function Lt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Lt(a))):r=Lt(s)}else o=n&~i,o===0?a!==0&&(r=Lt(a)):r=Lt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-jt(t),i=1<<n,r|=e[n],t&=~i;return r}function zt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-jt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=zt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Vt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Ht(){var e=Ft;return Ft<<=1,!(Ft&4194240)&&(Ft=64),e}function P(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function F(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=n}function Ut(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-jt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Wt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Gt=0;function Kt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var qt,Jt,Yt,Xt,Zt,Qt=!1,$t=[],en=null,tn=null,nn=null,rn=new Map,an=new Map,on=[],sn=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function cn(e,t){switch(e){case`focusin`:case`focusout`:en=null;break;case`dragenter`:case`dragleave`:tn=null;break;case`mouseover`:case`mouseout`:nn=null;break;case`pointerover`:case`pointerout`:rn.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:an.delete(t.pointerId)}}function ln(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ki(t),t!==null&&Jt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function un(e,t,n,r,i){switch(t){case`focusin`:return en=ln(en,e,t,n,r,i),!0;case`dragenter`:return tn=ln(tn,e,t,n,r,i),!0;case`mouseover`:return nn=ln(nn,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return rn.set(a,ln(rn.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,an.set(a,ln(an.get(a)||null,e,t,n,r,i)),!0}return!1}function dn(e){var t=Gi(e.target);if(t!==null){var n=dt(t);if(n!==null){if(t=n.tag,t===13){if(t=ft(n),t!==null){e.blockedOn=t,Zt(e.priority,function(){Yt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);He=r,n.target.dispatchEvent(r),He=null}else return t=Ki(n),t!==null&&Jt(t),e.blockedOn=n,!1;t.shift()}return!0}function pn(e,t,n){fn(e)&&n.delete(t)}function mn(){Qt=!1,en!==null&&fn(en)&&(en=null),tn!==null&&fn(tn)&&(tn=null),nn!==null&&fn(nn)&&(nn=null),rn.forEach(pn),an.forEach(pn)}function hn(e,t){e.blockedOn===t&&(e.blockedOn=null,Qt||(Qt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,mn)))}function gn(e){function t(t){return hn(t,e)}if(0<$t.length){hn($t[0],e);for(var n=1;n<$t.length;n++){var r=$t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(en!==null&&hn(en,e),tn!==null&&hn(tn,e),nn!==null&&hn(nn,e),rn.forEach(t),an.forEach(t),n=0;n<on.length;n++)r=on[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<on.length&&(n=on[0],n.blockedOn===null);)dn(n),n.blockedOn===null&&on.shift()}var _n=S.ReactCurrentBatchConfig,vn=!0;function yn(e,t,n,r){var i=Gt,a=_n.transition;_n.transition=null;try{Gt=1,xn(e,t,n,r)}finally{Gt=i,_n.transition=a}}function bn(e,t,n,r){var i=Gt,a=_n.transition;_n.transition=null;try{Gt=4,xn(e,t,n,r)}finally{Gt=i,_n.transition=a}}function xn(e,t,n,r){if(vn){var i=Cn(e,t,n,r);if(i===null)_i(e,t,r,Sn,n),cn(e,r);else if(un(i,e,t,n,r))r.stopPropagation();else if(cn(e,r),t&4&&-1<sn.indexOf(e)){for(;i!==null;){var a=Ki(i);if(a!==null&&qt(a),a=Cn(e,t,n,r),a===null&&_i(e,t,r,Sn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else _i(e,t,r,null,n)}}var Sn=null;function Cn(e,t,n,r){if(Sn=null,e=Ue(r),e=Gi(e),e!==null)if(t=dt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ft(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Sn=e,null}function wn(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`
vendor: 5,031 bytes, line 6
6:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(St()){case Ct:return 1;case wt:return 4;case Tt:case Et:return 16;case Dt:return 536870912;default:return 16}default:return 16}}var Tn=null,En=null,Dn=null;function On(){if(Dn)return Dn;var e,t=En,n=t.length,r,i=`value`in Tn?Tn.value:Tn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Dn=i.slice(e,1<r?1-r:void 0)}function kn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function An(){return!0}function jn(){return!1}function Mn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?An:jn,this.isPropagationStopped=jn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=An)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=An)},persist:function(){},isPersistent:An}),t}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=Mn(Nn),Fn=j({},Nn,{view:0,detail:0}),In=Mn(Fn),Ln,Rn,zn,Bn=j({},Fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==zn&&(zn&&e.type===`mousemove`?(Ln=e.screenX-zn.screenX,Rn=e.screenY-zn.screenY):Rn=Ln=0,zn=e),Ln)},movementY:function(e){return`movementY`in e?e.movementY:Rn}}),Vn=Mn(Bn),Hn=Mn(j({},Bn,{dataTransfer:0})),Un=Mn(j({},Fn,{relatedTarget:0})),Wn=Mn(j({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0})),Gn=Mn(j({},Nn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Kn=Mn(j({},Nn,{data:0})),qn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Jn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Yn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yn[e])?!!t[e]:!1}function Zn(){return Xn}var Qn=Mn(j({},Fn,{key:function(e){if(e.key){var t=qn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=kn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Jn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zn,charCode:function(e){return e.type===`keypress`?kn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?kn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),$n=Mn(j({},Bn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),er=Mn(j({},Fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zn})),tr=Mn(j({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0})),nr=Mn(j({},Bn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}
vendor: 36,782 bytes, lines 6-7
6)),rr=[9,13,27,32],ir=c&&`CompositionEvent`in window,ar=null;c&&`documentMode`in document&&(ar=document.documentMode);var or=c&&`TextEvent`in window&&!ar,sr=c&&(!ir||ar&&8<ar&&11>=ar),cr=` `,lr=!1;function ur(e,t){switch(e){case`keyup`:return rr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function dr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var fr=!1;function pr(e,t){switch(e){case`compositionend`:return dr(t);case`keypress`:return t.which===32?(lr=!0,cr):null;case`textInput`:return e=t.data,e===cr&&lr?null:e;default:return null}}function mr(e,t){if(fr)return e===`compositionend`||!ir&&ur(e,t)?(e=On(),Dn=En=Tn=null,fr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return sr&&t.locale!==`ko`?null:t.data;default:return null}}var hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!hr[e.type]:t===`textarea`}function _r(e,t,n,r){Je(r),t=yi(t,`onChange`),0<t.length&&(n=new Pn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var vr=null,yr=null;function br(e){di(e,0)}function xr(e){if(ge(qi(e)))return e}function Sr(e,t){if(e===`change`)return t}var Cr=!1;if(c){var wr;if(c){var Tr=`oninput`in document;if(!Tr){var Er=document.createElement(`div`);Er.setAttribute(`oninput`,`return;`),Tr=typeof Er.oninput==`function`}wr=Tr}else wr=!1;Cr=wr&&(!document.documentMode||9<document.documentMode)}function Dr(){vr&&(vr.detachEvent(`onpropertychange`,Or),yr=vr=null)}function Or(e){if(e.propertyName===`value`&&xr(yr)){var t=[];_r(t,yr,e,Ue(e)),$e(br,t)}}function kr(e,t,n){e===`focusin`?(Dr(),vr=t,yr=n,vr.attachEvent(`onpropertychange`,Or)):e===`focusout`&&Dr()}function Ar(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return xr(yr)}function jr(e,t){if(e===`click`)return xr(t)}function Mr(e,t){if(e===`input`||e===`change`)return xr(t)}function Nr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Pr=typeof Object.is==`function`?Object.is:Nr;function Fr(e,t){if(Pr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!Pr(e[i],t[i]))return!1}return!0}function Ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lr(e,t){var n=Ir(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ir(n)}}function Rr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zr(){for(var e=window,t=_e();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=_e(e.document)}return t}function Br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Vr(e){var t=zr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rr(n.ownerDocument.documentElement,n)){if(r!==null&&Br(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Lr(n,a);var o=Lr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Hr=c&&`documentMode`in document&&11>=document.documentMode,Ur=null,Wr=null,Gr=null,Kr=!1;function qr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kr||Ur==null||Ur!==_e(r)||(r=Ur,`selectionStart`in r&&Br(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gr&&Fr(Gr,r)||(Gr=r,r=yi(Wr,`onSelect`),0<r.length&&(t=new Pn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ur)))}function Jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Yr={animationend:Jr(`Animation`,`AnimationEnd`),animationiteration:Jr(`Animation`,`AnimationIteration`),animationstart:Jr(`Animation`,`AnimationStart`),transitionend:Jr(`Transition`,`TransitionEnd`)},Xr={},Zr={};c&&(Zr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Yr.animationend.animation,delete Yr.animationiteration.animation,delete Yr.animationstart.animation),`TransitionEvent`in window||delete Yr.transitionend.transition);function Qr(e){if(Xr[e])return Xr[e];if(!Yr[e])return e;var t=Yr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zr)return Xr[e]=t[n];return e}var $r=Qr(`animationend`),ei=Qr(`animationiteration`),ti=Qr(`animationstart`),ni=Qr(`transitionend`),ri=new Map,ii=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function ai(e,t){ri.set(e,t),o(t,[e])}for(var oi=0;oi<ii.length;oi++){var si=ii[oi];ai(si.toLowerCase(),`on`+(si[0].toUpperCase()+si.slice(1)))}ai($r,`onAnimationEnd`),ai(ei,`onAnimationIteration`),ai(ti,`onAnimationStart`),ai(`dblclick`,`onDoubleClick`),ai(`focusin`,`onFocus`),ai(`focusout`,`onBlur`),ai(ni,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ci=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),li=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ci));function ui(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,ut(r,t,void 0,e),e.currentTarget=null}function di(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;ui(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;ui(i,s,l),a=c}}}if(ot)throw e=st,ot=!1,st=null,e}function fi(e,t){var n=t[Hi];n===void 0&&(n=t[Hi]=new Set);var r=e+`__bubble`;n.has(r)||(gi(t,e,2,!1),n.add(r))}function pi(e,t,n){var r=0;t&&(r|=4),gi(n,e,r,t)}var mi=`_reactListening`+Math.random().toString(36).slice(2);function hi(e){if(!e[mi]){e[mi]=!0,i.forEach(function(t){t!==`selectionchange`&&(li.has(t)||pi(t,!1,e),pi(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mi]||(t[mi]=!0,pi(`selectionchange`,!1,t))}}function gi(e,t,n,r){switch(wn(t)){case 1:var i=yn;break;case 4:i=bn;break;default:i=xn}n=i.bind(null,t,n,e),i=void 0,!tt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function _i(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Gi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}$e(function(){var r=a,i=Ue(n),o=[];a:{var s=ri.get(e);if(s!==void 0){var c=Pn,l=e;switch(e){case`keypress`:if(kn(n)===0)break a;case`keydown`:case`keyup`:c=Qn;break;case`focusin`:l=`focus`,c=Un;break;case`focusout`:l=`blur`,c=Un;break;case`beforeblur`:case`afterblur`:c=Un;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Vn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Hn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=er;break;case $r:case ei:case ti:c=Wn;break;case ni:c=tr;break;case`scroll`:c=In;break;case`wheel`:c=nr;break;case`copy`:case`cut`:case`paste`:c=Gn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=$n}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=et(p,f),h!=null&&u.push(vi(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==He&&(l=n.relatedTarget||n.fromElement)&&(Gi(l)||l[Vi]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Gi(l):null,l!==null&&(d=dt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Vn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=$n,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:qi(c),m=l==null?s:qi(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Gi(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=bi(m))p++;for(m=0,h=f;h;h=bi(h))m++;for(;0<p-m;)u=bi(u),p--;for(;0<m-p;)f=bi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=bi(u),f=bi(f)}u=null}else u=null;c!==null&&xi(o,s,c,u,!1),l!==null&&d!==null&&xi(o,d,l,u,!0)}}a:{if(s=r?qi(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=Sr;else if(gr(s))if(Cr)g=Mr;else{g=Ar;var _=kr}else (c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=jr);if(g&&=g(e,r)){_r(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&Ce(s,`number`,s.value)}switch(_=r?qi(r):window,e){case`focusin`:(gr(_)||_.contentEditable===`true`)&&(Ur=_,Wr=r,Gr=null);break;case`focusout`:Gr=Wr=Ur=null;break;case`mousedown`:Kr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Kr=!1,qr(o,n,i);break;case`selectionchange`:if(Hr)break;case`keydown`:case`keyup`:qr(o,n,i)}var v;if(ir)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else fr?ur(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(sr&&n.locale!==`ko`&&(fr||y!==`onCompositionStart`?y===`onCompositionEnd`&&fr&&(v=On()):(Tn=i,En=`value`in Tn?Tn.value:Tn.textContent,fr=!0)),_=yi(r,y),0<_.length&&(y=new Kn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=dr(n),v!==null&&(y.data=v)))),(v=or?pr(e,n):mr(e,n))&&(r=yi(r,`onBeforeInput`),0<r.length&&(i=new Kn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}di(o,t)})}function vi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=et(e,n),a!=null&&r.unshift(vi(e,a,i)),a=et(e,t),a!=null&&r.push(vi(e,a,i))),e=e.return}return r}function bi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function xi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=et(n,a),c!=null&&o.unshift(vi(n,c,s))):i||(c=et(n,a),c!=null&&o.push(vi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Si=/\r\n?/g,Ci=/\u0000|\uFFFD/g;function wi(e){return(typeof e==`string`?e:``+e).replace(Si,` 7`).replace(Ci,``)}function Ti(e,t,n){if(t=wi(t),wi(e)!==t&&n)throw Error(r(425))}function Ei(){}var Di=null,Oi=null;function ki(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ai=typeof setTimeout==`function`?setTimeout:void 0,ji=typeof clearTimeout==`function`?clearTimeout:void 0,Mi=typeof Promise==`function`?Promise:void 0,Ni=typeof queueMicrotask==`function`?queueMicrotask:Mi===void 0?Ai:function(e){return Mi.resolve(null).then(e).catch(Pi)};function Pi(e){setTimeout(function(){throw e})}function Fi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),gn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);gn(t)}function Ii(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Li(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Ri=Math.random().toString(36).slice(2),zi=`__reactFiber$`+Ri,Bi=`__reactProps$`+Ri,Vi=`__reactContainer$`+Ri,Hi=`__reactEvents$`+Ri,Ui=`__reactListeners$`+Ri,Wi=`__reactHandles$`+Ri;function Gi(e){var t=e[zi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Vi]||n[zi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Li(e);e!==null;){if(n=e[zi])return n;e=Li(e)}return t}e=n,n=e.parentNode}return null}function Ki(e){return e=e[zi]||e[Vi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function qi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Ji(e){return e[Bi]||null}var Yi=[],Xi=-1;function Zi(e){return{current:e}}function Qi(e){0>Xi||(e.current=Yi[Xi],Yi[Xi]=null,Xi--)}function $i(e,t){Xi++,Yi[Xi]=e.current,e.current=t}var ea={},ta=Zi(ea),na=Zi(!1),ra=ea;function ia(e,t){var n=e.type.contextTypes;if(!n)return ea;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function aa(e){return e=e.childContextTypes,e!=null}function oa(){Qi(na),Qi(ta)}function sa(e,t,n){if(ta.current!==ea)throw Error(r(168));$i(ta,t),$i(na,n)}function ca(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,de(e)||`Unknown`,a));return j({},n,i)}function la(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ea,ra=ta.current,$i(ta,e),$i(na,na.current),!0}function ua(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ca(e,t,ra),i.__reactInternalMemoizedMergedChildContext=e,Qi(na),Qi(ta),$i(ta,e)):Qi(na),$i(na,n)}var da=null,fa=!1,pa=!1;function ma(e){da===null?da=[e]:da.push(e)}function ha(e){fa=!0,ma(e)}function ga(){if(!pa&&da!==null){pa=!0;var e=0,t=Gt;try{var n=da;for(Gt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}da=null,fa=!1}catch(t){throw da!==null&&(da=da.slice(e+1)),_t(Ct,ga),t}finally{Gt=t,pa=!1}}return null}var _a=[],va=0,ya=null,ba=0,xa=[],Sa=0,Ca=null,wa=1,Ta=``;function Ea(e,t){_a[va++]=ba,_a[va++]=ya,ya=e,ba=t}function Da(e,t,n){xa[Sa++]=wa,xa[Sa++]=Ta,xa[Sa++]=Ca,Ca=e;var r=wa;e=Ta;var i=32-jt(r)-1;r&=~(1<<i),n+=1;var a=32-jt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,wa=1<<32-jt(t)+i|n<<i|r,Ta=a+e}else wa=1<<a|n<<i|r,Ta=e}function Oa(e){e.return!==null&&(Ea(e,1),Da(e,1,0))}function ka(e){for(;e===ya;)ya=_a[--va],_a[va]=null,ba=_a[--va],_a[va]=null;for(;e===Ca;)Ca=xa[--Sa],xa[Sa]=null,Ta=xa[--Sa],xa[Sa]=null,wa=xa[--Sa],xa[Sa]=null}var Aa=null,ja=null,Ma=!1,Na=null;function Pa(e,t){var n=nu(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Fa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,Aa=e,ja=Ii(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Aa=e,ja=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=Ca===null?null:{id:wa,overflow:Ta},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=nu(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Aa=e,ja=null,!0);default:return!1}}function Ia(e){return(e.mode&1)!=0&&(e.flags&128)==0}function La(e){if(Ma){var t=ja;if(t){var n=t;if(!Fa(e,t)){if(Ia(e))throw Error(r(418));t=Ii(n.nextSibling);var i=Aa;t&&Fa(e,t)?Pa(i,n):(e.flags=e.flags&-4097|2,Ma=!1,Aa=e)}}else{if(Ia(e))throw Error(r(418));e.flags=e.flags&-4097|2,Ma=!1,Aa=e}}}function Ra(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Aa=e}function za(e){if(e!==Aa)return!1;if(!Ma)return Ra(e),Ma=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!ki(e.type,e.memoizedProps)),t&&=ja){if(Ia(e))throw I(),Error(r(418));for(;t;)Pa(e,t),t=Ii(t.nextSibling)}if(Ra(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){ja=Ii(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}ja=null}}else ja=Aa?Ii(e.stateNode.nextSibling):null;return!0}function I(){for(var e=ja;e;)e=Ii(e.nextSibling)}function Ba(){ja=Aa=null,Ma=!1}function Va(e){Na===null?Na=[e]:Na.push(e)}var Ha=S.ReactCurrentBatchConfig;function Ua(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Wa(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ga(e){var t=e._init;return t(e._payload)}function Ka(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=au(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=lu(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===T?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===re&&Ga(i)===t.type)?(r=a(t,n.props),r.ref=Ua(e,t,n),r.return=e,r):(r=ou(n.type,n.key,n.props,null,e.mode,r),r.ref=Ua(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=uu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=su(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=lu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case C:return n=ou(t.type,t.key,t.props,null,e.mode,n),n.ref=Ua(e,null,t),n.return=e,n;case w:return t=uu(t,e.mode,n),t.return=e,t;case re:var r=t._init;return f(e,r(t._payload),n)}if(we(t)||oe(t))return t=su(t,e.mode,n,null),t.return=e,t;Wa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case C:return n.key===i?l(e,t,n,r):null;case w:return n.key===i?u(e,t,n,r):null;case re:return i=n._init,p(e,t,i(n._payload),r)}if(we(n)||oe(n))return i===null?d(e,t,n,r,null):null;Wa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case C:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case w:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:var a=r._init;return m(e,t,n,a(r._payload),i)}if(we(r)||oe(r))return e=e.get(n)||null,d(t,e,r,i,null);Wa(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Ma&&Ea(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Ma&&Ea(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Ma&&Ea(r,h),l}function g(a,s,c,l){var u=oe(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Ma&&Ea(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ma&&Ea(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Ma&&Ea(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===T&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case C:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===T){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===re&&Ga(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ua(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===T?(r=su(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=ou(i.type,i.key,i.props,null,e.mode,o),o.ref=Ua(e,r,i),o.return=e,e=o)}return s(e);case w:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=uu(i,e.mode,o),r.return=e,e=r}return s(e);case re:return l=i._init,_(e,r,l(i._payload),o)}if(we(i))return h(e,r,i,o);if(oe(i))return g(e,r,i,o);Wa(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=lu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var qa=Ka(!0),Ja=Ka(!1),Ya=Zi(null),Xa=null,Za=null,Qa=null;function $a(){Qa=Za=Xa=null}function eo(e){var t=Ya.current;Qi(Ya),e._currentValue=t}function to(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function no(e,t){Xa=e,Qa=Za=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Vs=!0),e.firstContext=null)}function ro(e){var t=e._currentValue;if(Qa!==e)if(e={context:e,memoizedValue:t,next:null},Za===null){if(Xa===null)throw Error(r(308));Za=e,Xa.dependencies={lanes:0,firstContext:e}}else Za=Za.next=e;return t}var io=null;function ao(e){io===null?io=[e]:io.push(e)}function oo(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ao(t)):(n.next=i.next,i.next=n),t.interleaved=n,L(e,r)}function L(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var R=!1;function z(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function B(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function V(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function so(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xc&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,L(e,n)}return i=r.interleaved,i===null?(t.next=t,ao(r)):(t.next=i.next,i.next=t),r.interleaved=t,L(e,n)}function co(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Wt(e,n)}}function lo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function uo(e,t,n,r){var i=e.updateQueue;R=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=j({},d,f);break a;case 2:R=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);il|=o,e.lanes=o,e.memoizedState=d}}function fo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var po={},mo=Zi(po),ho=Zi(po),go=Zi(po);function _o(e){if(e===po)throw Error(r(174));return e}function vo(e,t){switch($i(go,t),$i(ho,e),$i(mo,po),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:je(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=je(t,e)}Qi(mo),$i(mo,t)}function yo(){Qi(mo),Qi(ho),Qi(go)}function bo(e){_o(go.current);var t=_o(mo.current),n=je(t,e.type);t!==n&&($i(ho,e),$i(mo,n))}function xo(e){ho.current===e&&(Qi(mo),Qi(ho))}var So=Zi(0);function Co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wo=[];function To(){for(var e=0;e<wo.length;e++)wo[e]._workInProgressVersionPrimary=null;wo.length=0}var Eo=S.ReactCurrentDispatcher,Do=S.ReactCurrentBatchConfig,Oo=0,ko=null,Ao=null,jo=null,Mo=!1,No=!1,Po=0,Fo=0;function Io(){throw Error(r(321))}function Lo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pr(e[n],t[n]))return!1;return!0}function Ro(e,t,n,i,a,o){if(Oo=o,ko=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Eo.current=e===null||e.memoizedState===null?xs:Ss,e=n(i,a),No){o=0;do{if(No=!1,Po=0,25<=o)throw Error(r(301));o+=1,jo=Ao=null,t.updateQueue=null,Eo.current=Cs,e=n(i,a)}while(No)}if(Eo.current=bs,t=Ao!==null&&Ao.next!==null,Oo=0,jo=Ao=ko=null,Mo=!1,t)throw Error(r(300));return e}function zo(){var e=Po!==0;return Po=0,e}function Bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jo===null?ko.memoizedState=jo=e:jo=jo.next=e,jo}function Vo(){if(Ao===null){var e=ko.alternate;e=e===null?null:e.memoizedState}else e=Ao.next;var t=jo===null?ko.memoizedState:jo.next;if(t!==null)jo=t,Ao=e;else{if(e===null)throw Error(r(310));Ao=e,e={memoizedState:Ao.memoizedState,baseState:Ao.baseState,baseQueue:Ao.baseQueue,queue:Ao.queue,next:null},jo===null?ko.memoizedState=jo=e:jo=jo.next=e}return jo}function Ho(e,t){return typeof t==`function`?t(e):t}function Uo(e){var t=Vo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Ao,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Oo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,ko.lanes|=d,il|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Pr(i,t.memoizedState)||(Vs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,ko.lanes|=o,il|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wo(e){var t=Vo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Pr(o,t.memoizedState)||(Vs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Go(){}function Ko(e,t){var n=ko,i=Vo(),a=t(),o=!Pr(i.memoizedState,a);if(o&&(i.memoizedState=a,Vs=!0),i=i.queue,is(Yo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||jo!==null&&jo.memoizedState.tag&1){if(n.flags|=2048,$o(9,Jo.bind(null,n,i,a,t),void 0,null),Zc===null)throw Error(r(349));Oo&30||qo(n,t,a)}return a}function qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ko.updateQueue,t===null?(t={lastEffect:null,stores:null},ko.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jo(e,t,n,r){t.value=n,t.getSnapshot=r,Xo(t)&&Zo(e)}function Yo(e,t,n){return n(function(){Xo(t)&&Zo(e)})}function Xo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pr(e,n)}catch{return!0}}function Zo(e){var t=L(e,1);t!==null&&wl(t,e,1,-1)}function Qo(e){var t=Bo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:e},t.queue=e,e=e.dispatch=gs.bind(null,ko,e),[t.memoizedState,e]}function $o(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ko.updateQueue,t===null?(t={lastEffect:null,stores:null},ko.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function es(){return Vo().memoizedState}function ts(e,t,n,r){var i=Bo();ko.flags|=e,i.memoizedState=$o(1|t,n,void 0,r===void 0?null:r)}function ns(e,t,n,r){var i=Vo();r=r===void 0?null:r;var a=void 0;if(Ao!==null){var o=Ao.memoizedState;if(a=o.destroy,r!==null&&Lo(r,o.deps)){i.memoizedState=$o(t,n,a,r);return}}ko.flags|=e,i.memoizedState=$o(1|t,n,a,r)}function rs(e,t){return ts(8390656,8,e,t)}function is(e,t){return ns(2048,8,e,t)}function as(e,t){return ns(4,2,e,t)}function os(e,t){return ns(4,4,e,t)}function ss(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cs(e,t,n){return n=n==null?null:n.concat([e]),ns(4,4,ss.bind(null,t,e),n)}function ls(){}function us(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ds(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fs(e,t,n){return Oo&21?(Pr(n,t)||(n=Ht(),ko.lanes|=n,il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Vs=!0),e.memoizedState=n)}function ps(e,t){var n=Gt;Gt=n!==0&&4>n?n:4,e(!0);var r=Do.transition;Do.transition={};try{e(!1),t()}finally{Gt=n,Do.transition=r}}function ms(){return Vo().memoizedState}function hs(e,t,n){var r=Cl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_s(e))vs(t,n);else if(n=oo(e,t,n,r),n!==null){var i=Sl();wl(n,e,r,i),ys(n,t,r)}}function gs(e,t,n){var r=Cl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_s(e))vs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Pr(s,o)){var c=t.interleaved;c===null?(i.next=i,ao(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=oo(e,t,i,r),n!==null&&(i=Sl(),wl(n,e,r,i),ys(n,t,r))}}function _s(e){var t=e.alternate;return e===ko||t!==null&&t===ko}function vs(e,t){No=Mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ys(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Wt(e,n)}}var bs={readContext:ro,useCallback:Io,useContext:Io,useEffect:Io,useImperativeHandle:Io,useInsertionEffect:Io,useLayoutEffect:Io,useMemo:Io,useReducer:Io,useRef
7:Io,useState:Io,useDebugValue:Io,useDeferredValue:Io,useTransition:Io,useMutableSource:Io,useSyncExternalStore:Io,useId:Io,unstable_isNewReconciler:!1},xs={readContext:ro,useCallback:function(e,t){return Bo().memoizedState=[e,t===void 0?null:t],e},useContext:ro,useEffect:rs,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),ts(4194308,4,ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){return ts(4,2,e,t)},useMemo:function(e,t){var n=Bo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bo();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hs.bind(null,ko,e),[r.memoizedState,e]},useRef:function(e){var t=Bo();return e={current:e},t.memoizedState=e},useState:Qo,useDebugValue:ls,useDeferredValue:function(e){return Bo().memoizedState=e},useTransition:function(){var e=Qo(!1),t=e[0];return e=ps.bind(null,e[1]),Bo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ko,a=Bo();
vendor: 54,614 bytes, lines 7-9
7if(Ma){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Zc===null)throw Error(r(349));Oo&30||qo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Yo.bind(null,i,o,e),[e]),i.flags|=2048,$o(9,Jo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Bo(),t=Zc.identifierPrefix;if(Ma){var n=Ta,r=wa;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Po++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Fo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Ss={readContext:ro,useCallback:us,useContext:ro,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:Uo,useRef:es,useState:function(){return Uo(Ho)},useDebugValue:ls,useDeferredValue:function(e){return fs(Vo(),Ao.memoizedState,e)},useTransition:function(){return[Uo(Ho)[0],Vo().memoizedState]},useMutableSource:Go,useSyncExternalStore:Ko,useId:ms,unstable_isNewReconciler:!1},Cs={readContext:ro,useCallback:us,useContext:ro,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:Wo,useRef:es,useState:function(){return Wo(Ho)},useDebugValue:ls,useDeferredValue:function(e){var t=Vo();return Ao===null?t.memoizedState=e:fs(t,Ao.memoizedState,e)},useTransition:function(){return[Wo(Ho)[0],Vo().memoizedState]},useMutableSource:Go,useSyncExternalStore:Ko,useId:ms,unstable_isNewReconciler:!1};function ws(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ts(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:j({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Es={isMounted:function(e){return(e=e._reactInternals)?dt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Sl(),i=Cl(e),a=V(r,i);a.payload=t,n!=null&&(a.callback=n),t=so(e,a,i),t!==null&&(wl(t,e,i,r),co(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Sl(),i=Cl(e),a=V(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=so(e,a,i),t!==null&&(wl(t,e,i,r),co(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Sl(),r=Cl(e),i=V(n,r);i.tag=2,t!=null&&(i.callback=t),t=so(e,i,r),t!==null&&(wl(t,e,r,n),co(t,e,r))}};function Ds(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Fr(n,r)||!Fr(i,a):!0}function Os(e,t,n){var r=!1,i=ea,a=t.contextType;return typeof a==`object`&&a?a=ro(a):(i=aa(t)?ra:ta.current,r=t.contextTypes,a=(r=r!=null)?ia(e,i):ea),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Es,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Es.enqueueReplaceState(t,t.state,null)}function As(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},z(e);var a=t.contextType;typeof a==`object`&&a?i.context=ro(a):(a=aa(t)?ra:ta.current,i.context=ia(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Ts(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Es.enqueueReplaceState(i,i.state,null),uo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function js(e,t){try{var n=``,r=t;do n+=N(r),r=r.return;while(r);var i=n}catch(e){i=` 8Error generating stack: `+e.message+` 9`+e.stack}return{value:e,source:t,stack:i,digest:null}}function Ms(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ns(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ps=typeof WeakMap==`function`?WeakMap:Map;function Fs(e,t,n){n=V(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fl||(fl=!0,pl=r),Ns(e,t)},n}function Is(e,t,n){n=V(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ns(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ns(e,t),typeof r!=`function`&&(ml===null?ml=new Set([this]):ml.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Ls(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ps;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Yl.bind(null,e,t,n),t.then(e,e))}function Rs(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null?!0:t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function zs(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=V(-1,1),t.tag=2,so(n,t,1))),n.lanes|=1),e)}var Bs=S.ReactCurrentOwner,Vs=!1;function Hs(e,t,n,r){t.child=e===null?Ja(t,null,n,r):qa(t,e.child,n,r)}function Us(e,t,n,r,i){n=n.render;var a=t.ref;return no(t,i),r=Ro(e,t,n,r,a,i),n=zo(),e!==null&&!Vs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,lc(e,t,i)):(Ma&&n&&Oa(t),t.flags|=1,Hs(e,t,r,i),t.child)}function Ws(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ru(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Gs(e,t,a,r,i)):(e=ou(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Fr:n,n(o,r)&&e.ref===t.ref)return lc(e,t,i)}return t.flags|=1,e=au(a,r),e.ref=t.ref,e.return=t,t.child=e}function Gs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Fr(a,r)&&e.ref===t.ref)if(Vs=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Vs=!0);else return t.lanes=e.lanes,lc(e,t,i)}return Js(e,t,n,r,i)}function Ks(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$i(tl,el),el|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$i(tl,el),el|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,$i(tl,el),el|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),$i(tl,el),el|=r;return Hs(e,t,i,n),t.child}function qs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Js(e,t,n,r,i){var a=aa(n)?ra:ta.current;return a=ia(t,a),no(t,i),n=Ro(e,t,n,r,a,i),r=zo(),e!==null&&!Vs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,lc(e,t,i)):(Ma&&r&&Oa(t),t.flags|=1,Hs(e,t,n,i),t.child)}function Ys(e,t,n,r,i){if(aa(n)){var a=!0;la(t)}else a=!1;if(no(t,i),t.stateNode===null)cc(e,t),Os(t,n,r),As(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=ro(l):(l=aa(n)?ra:ta.current,l=ia(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&ks(t,o,r,l),R=!1;var f=t.memoizedState;o.state=f,uo(t,r,o,i),c=t.memoizedState,s!==r||f!==c||na.current||R?(typeof u==`function`&&(Ts(t,n,u,r),c=t.memoizedState),(s=R||Ds(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,B(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ws(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=ro(c):(c=aa(n)?ra:ta.current,c=ia(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&ks(t,o,r,c),R=!1,f=t.memoizedState,o.state=f,uo(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||na.current||R?(typeof p==`function`&&(Ts(t,n,p,r),m=t.memoizedState),(l=R||Ds(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Xs(e,t,n,r,a,i)}function Xs(e,t,n,r,i,a){qs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&ua(t,n,!1),lc(e,t,a);r=t.stateNode,Bs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=qa(t,e.child,null,a),t.child=qa(t,null,s,a)):Hs(e,t,s,a),t.memoizedState=r.state,i&&ua(t,n,!0),t.child}function Zs(e){var t=e.stateNode;t.pendingContext?sa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sa(e,t.context,!1),vo(e,t.containerInfo)}function Qs(e,t,n,r,i){return Ba(),Va(i),t.flags|=256,Hs(e,t,n,r),t.child}var $s={dehydrated:null,treeContext:null,retryLane:0};function ec(e){return{baseLanes:e,cachePool:null,transitions:null}}function tc(e,t,n){var r=t.pendingProps,i=So.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),$i(So,i&1),e===null)return La(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=cu(o,r,0,null),e=su(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ec(n),t.memoizedState=$s,e):nc(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return ic(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=au(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=su(a,o,n,null),a.flags|=2):a=au(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?ec(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=$s,r}return a=e.child,e=a.sibling,r=au(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function nc(e,t){return t=cu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function rc(e,t,n,r){return r!==null&&Va(r),qa(t,e.child,null,n),e=nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ic(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Ms(Error(r(422))),rc(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=cu({mode:`visible`,children:i.children},a,0,null),o=su(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&qa(t,e.child,null,s),t.child.memoizedState=ec(s),t.memoizedState=$s,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return rc(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Ms(o,i,void 0),rc(e,t,s,i)}if(c=(s&e.childLanes)!==0,Vs||c){if(i=Zc,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,L(e,a),wl(i,e,a,-1))}return Rl(),i=Ms(Error(r(421))),rc(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Zl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ja=Ii(a.nextSibling),Aa=t,Ma=!0,Na=null,e!==null&&(xa[Sa++]=wa,xa[Sa++]=Ta,xa[Sa++]=Ca,wa=e.id,Ta=e.overflow,Ca=t),t=nc(t,i.children),t.flags|=4096,t)}function ac(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),to(e.return,t,n)}function oc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Hs(e,t,r.children,n),r=So.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ac(e,n,t);else if(e.tag===19)ac(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if($i(So,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Co(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),oc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Co(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}oc(t,!0,n,null,a);break;case`together`:oc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),il|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=au(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=au(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function uc(e,t,n){switch(t.tag){case 3:Zs(t),Ba();break;case 5:bo(t);break;case 1:aa(t.type)&&la(t);break;case 4:vo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;$i(Ya,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?($i(So,So.current&1),e=lc(e,t,n),e===null?null:e.sibling):tc(e,t,n):($i(So,So.current&1),t.flags|=128,null);$i(So,So.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),$i(So,So.current),r)break;return null;case 22:case 23:return t.lanes=0,Ks(e,t,n)}return lc(e,t,n)}var dc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},fc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,_o(mo.current);var o=null;switch(n){case`input`:i=ve(e,i),r=ve(e,r),o=[];break;case`select`:i=j({},i,{value:void 0}),r=j({},r,{value:void 0}),o=[];break;case`textarea`:i=Ee(e,i),r=Ee(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Ei)}Be(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&fi(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},pc=function(e,t,n,r){n!==r&&(t.flags|=4)};function mc(e,t){if(!Ma)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gc(e,t,n){var i=t.pendingProps;switch(ka(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hc(t),null;case 1:return aa(t.type)&&oa(),hc(t),null;case 3:return i=t.stateNode,yo(),Qi(na),Qi(ta),To(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(za(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Na!==null&&(Ol(Na),Na=null))),hc(t),null;case 5:xo(t);var o=_o(go.current);if(n=t.type,e!==null&&t.stateNode!=null)fc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return hc(t),null}if(e=_o(mo.current),za(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[zi]=t,i[Bi]=s,e=(t.mode&1)!=0,n){case`dialog`:fi(`cancel`,i),fi(`close`,i);break;case`iframe`:case`object`:case`embed`:fi(`load`,i);break;case`video`:case`audio`:for(o=0;o<ci.length;o++)fi(ci[o],i);break;case`source`:fi(`error`,i);break;case`img`:case`image`:case`link`:fi(`error`,i),fi(`load`,i);break;case`details`:fi(`toggle`,i);break;case`input`:ye(i,s),fi(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},fi(`invalid`,i);break;case`textarea`:De(i,s),fi(`invalid`,i)}for(var c in Be(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&Ti(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&Ti(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&fi(`scroll`,i)}switch(n){case`input`:he(i),Se(i,s,!0);break;case`textarea`:he(i),ke(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Ei)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Ae(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[zi]=t,e[Bi]=i,dc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Ve(n,i),n){case`dialog`:fi(`cancel`,e),fi(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:fi(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ci.length;o++)fi(ci[o],e);o=i;break;case`source`:fi(`error`,e),o=i;break;case`img`:case`image`:case`link`:fi(`error`,e),fi(`load`,e),o=i;break;case`details`:fi(`toggle`,e),o=i;break;case`input`:ye(e,i),o=ve(e,i),fi(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=j({},i,{value:void 0}),fi(`invalid`,e);break;case`textarea`:De(e,i),o=Ee(e,i),fi(`invalid`,e);break;default:o=i}for(s in Be(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Re(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Ne(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Pe(e,u):typeof u==`number`&&Pe(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&fi(`scroll`,e):u!=null&&x(e,s,u,c))}switch(n){case`input`:he(e),Se(e,i,!1);break;case`textarea`:he(e),ke(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+fe(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Te(e,!!i.multiple,i.defaultValue,!0):Te(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Ei)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return hc(t),null;case 6:if(e&&t.stateNode!=null)pc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=_o(go.current),_o(mo.current),za(t)){if(i=t.stateNode,n=t.memoizedProps,i[zi]=t,(s=i.nodeValue!==n)&&(e=Aa,e!==null))switch(e.tag){case 3:Ti(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ti(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[zi]=t,t.stateNode=i}return hc(t),null;case 13:if(Qi(So),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ma&&ja!==null&&t.mode&1&&!(t.flags&128))I(),Ba(),t.flags|=98560,s=!1;else if(s=za(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[zi]=t}else Ba(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hc(t),s=!1}else Na!==null&&(Ol(Na),Na=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||So.current&1?nl===0&&(nl=3):Rl())),t.updateQueue!==null&&(t.flags|=4),hc(t),null);case 4:return yo(),e===null&&hi(t.stateNode.containerInfo),hc(t),null;case 10:return eo(t.type._context),hc(t),null;case 17:return aa(t.type)&&oa(),hc(t),null;case 19:if(Qi(So),s=t.memoizedState,s===null)return hc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)mc(s,!1);else{if(nl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=Co(e),c!==null){for(t.flags|=128,mc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $i(So,So.current&1|2),t.child}e=e.sibling}s.tail!==null&&xt()>ul&&(t.flags|=128,i=!0,mc(s,!1),t.lanes=4194304)}else{if(!i)if(e=Co(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Ma)return hc(t),null}else 2*xt()-s.renderingStartTime>ul&&n!==1073741824&&(t.flags|=128,i=!0,mc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(hc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=xt(),t.sibling=null,n=So.current,$i(So,i?n&1|2:n&1),t);case 22:case 23:return Pl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?el&1073741824&&(hc(t),t.subtreeFlags&6&&(t.flags|=8192)):hc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function _c(e,t){switch(ka(t),t.tag){case 1:return aa(t.type)&&oa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yo(),Qi(na),Qi(ta),To(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xo(t),null;case 13:if(Qi(So),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qi(So),null;case 4:return yo(),null;case 10:return eo(t.type._context),null;case 22:case 23:return Pl(),null;case 24:return null;default:return null}}var vc=!1,yc=!1,bc=typeof WeakSet==`function`?WeakSet:Set,H=null;function xc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Jl(e,t,n)}else n.current=null}function Sc(e,t,n){try{n()}catch(n){Jl(e,t,n)}}var Cc=!1;function wc(e,t){if(Di=vn,e=zr(),Br(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Oi={focusedElem:e,selectionRange:n},vn=!1,H=t;H!==null;)if(t=H,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ws(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Jl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return h=Cc,Cc=!1,h}function Tc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Sc(t,n,a)}i=i.next}while(i!==r)}}function Ec(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Dc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Oc(e){var t=e.alternate;t!==null&&(e.alternate=null,Oc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zi],delete t[Bi],delete t[Hi],delete t[Ui],delete t[Wi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kc(e){return e.tag===5||e.tag===3||e.tag===4}function Ac(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||kc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ei));else if(r!==4&&(e=e.child,e!==null))for(jc(e,t,n),e=e.sibling;e!==null;)jc(e,t,n),e=e.sibling}function Mc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}var Nc=null,Pc=!1;function Fc(e,t,n){for(n=n.child;n!==null;)Ic(e,t,n),n=n.sibling}function Ic(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount==`function`)try{kt.onCommitFiberUnmount(Ot,n)}catch{}switch(n.tag){case 5:yc||xc(n,t);case 6:var r=Nc,i=Pc;Nc=null,Fc(e,t,n),Nc=r,Pc=i,Nc!==null&&(Pc?(e=Nc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nc.removeChild(n.stateNode));break;case 18:Nc!==null&&(Pc?(e=Nc,n=n.stateNode,e.nodeType===8?Fi(e.parentNode,n):e.nodeType===1&&Fi(e,n),gn(e)):Fi(Nc,n.stateNode));break;case 4:r=Nc,i=Pc,Nc=n.stateNode.containerInfo,Pc=!0,Fc(e,t,n),Nc=r,Pc=i;break;case 0:case 11:case 14:case 15:if(!yc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Sc(n,t,o),i=i.next}while(i!==r)}Fc(e,t,n);break;case 1:if(!yc&&(xc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Jl(n,t,e)}Fc(e,t,n);break;case 21:Fc(e,t,n);break;case 22:n.mode&1?(yc=(r=yc)||n.memoizedState!==null,Fc(e,t,n),yc=r):Fc(e,t,n);break;default:Fc(e,t,n)}}function Lc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bc),t.forEach(function(t){var r=Ql.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Rc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Nc=c.stateNode,Pc=!1;break a;case 3:Nc=c.stateNode.containerInfo,Pc=!0;break a;case 4:Nc=c.stateNode.containerInfo,Pc=!0;break a}c=c.return}if(Nc===null)throw Error(r(160));Ic(o,s,a),Nc=null,Pc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Jl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)zc(t,e),t=t.sibling}function zc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rc(t,e),Bc(e),i&4){try{Tc(3,e,e.return),Ec(3,e)}catch(t){Jl(e,e.return,t)}try{Tc(5,e,e.return)}catch(t){Jl(e,e.return,t)}}break;case 1:Rc(t,e),Bc(e),i&512&&n!==null&&xc(n,n.return);break;case 5:if(Rc(t,e),Bc(e),i&512&&n!==null&&xc(n,n.return),e.flags&32){var a=e.stateNode;try{Pe(a,``)}catch(t){Jl(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&be(a,o),Ve(c,s);var u=Ve(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Re(a,f):d===`dangerouslySetInnerHTML`?Ne(a,f):d===`children`?Pe(a,f):x(a,d,f,u)}switch(c){case`input`:xe(a,o);break;case`textarea`:Oe(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Te(a,!!o.multiple,o.multiple?[]:``,!1):Te(a,!!o.multiple,o.defaultValue,!0)):Te(a,!!o.multiple,m,!1)}a[Bi]=o}catch(t){Jl(e,e.return,t)}}break;case 6:if(Rc(t,e),Bc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Jl(e,e.return,t)}}break;case 3:if(Rc(t,e),Bc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{gn(t.containerInfo)}catch(t){Jl(e,e.return,t)}break;case 4:Rc(t,e),Bc(e);break;case 13:Rc(t,e),Bc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(ll=xt())),i&4&&Lc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(yc=(u=yc)||d,Rc(t,e),yc=u):Rc(t,e),Bc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(H=e,d=e.child;d!==null;){for(f=H=d;H!==null;){switch(p=H,m=p.child,p.tag){case 0:case 11:case 14:case 15:Tc(4,p,p.return);break;case 1:xc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Jl(i,n,e)}}break;case 5:xc(p,p.return);break;case 22:if(p.memoizedState!==null){Wc(f);continue}}m===null?Wc(f):(m.return=p,H=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Le(`display`,s))}catch(t){Jl(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Jl(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Rc(t,e),Bc(e),i&4&&Lc(e);break;case 21:break;default:Rc(t,e),Bc(e)}}function Bc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(kc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Pe(a,``),i.flags&=-33),Mc(e,Ac(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;jc(e,Ac(e),o);break;default:throw Error(r(161))}}catch(t){Jl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vc(e,t,n){H=e,Hc(e,t,n)}function Hc(e,t,n){for(var r=(e.mode&1)!=0;H!==null;){var i=H,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||vc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||yc;s=vc;var l=yc;if(vc=o,(yc=c)&&!l)for(H=i;H!==null;)o=H,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Gc(i):(c.return=o,H=c);for(;a!==null;)H=a,Hc(a,t,n),a=a.sibling;H=i,vc=s,yc=l}Uc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,H=a):Uc(e,t,n)}}function Uc(e){for(;H!==null;){var t=H;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:yc||Ec(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!yc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ws(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&fo(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}fo(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&gn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}yc||t.flags&512&&Dc(t)}catch(e){Jl(t,t.return,e)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function Wc(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function Gc(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ec(4,t)}catch(e){Jl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Jl(t,i,e)}}var a=t.return;try{Dc(t)}catch(e){Jl(t,a,e)}break;case 5:var o=t.return;try{Dc(t)}catch(e){Jl(t,o,e)}}}catch(e){Jl(t,t.return,e)}if(t===e){H=null;break}var s=t.sibling;if(s!==null){s.return=t.return,H=s;break}H=t.return}}var Kc=Math.ceil,qc=S.ReactCurrentDispatcher,Jc=S.ReactCurrentOwner,Yc=S.ReactCurrentBatchConfig,Xc=0,Zc=null,Qc=null,$c=0,el=0,tl=Zi(0),nl=0,rl=null,il=0,al=0,ol=0,sl=null,cl=null,ll=0,ul=1/0,dl=null,fl=!1,pl=null,ml=null,hl=!1,gl=null,_l=0,vl=0,yl=null,bl=-1,xl=0;function Sl(){return Xc&6?xt():bl===-1?bl=xt():bl}function Cl(e){return e.mode&1?Xc&2&&$c!==0?$c&-$c:Ha.transition===null?(e=Gt,e===0?(e=window.event,e=e===void 0?16:wn(e.type),e):e):(xl===0&&(xl=Ht()),xl):1}function wl(e,t,n,i){if(50<vl)throw vl=0,yl=null,Error(r(185));F(e,n,i),(!(Xc&2)||e!==Zc)&&(e===Zc&&(!(Xc&2)&&(al|=n),nl===4&&Al(e,$c)),Tl(e,i),n===1&&Xc===0&&!(t.mode&1)&&(ul=xt()+500,fa&&ga()))}function Tl(e,t){var n=e.callbackNode;Bt(e,t);var r=Rt(e,e===Zc?$c:0);if(r===0)n!==null&&vt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&vt(n),t===1)e.tag===0?ha(jl.bind(null,e)):ma(jl.bind(null,e)),Ni(function(){!(Xc&6)&&ga()}),n=null;else{switch(Kt(r)){case 1:n=Ct;break;case 4:n=wt;break;case 16:n=Tt;break;case 536870912:n=Dt;break;default:n=Tt}n=eu(n,El.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function El(e,t){if(bl=-1,xl=0,Xc&6)throw Error(r(327));var n=e.callbackNode;if(Kl()&&e.callbackNode!==n)return null;var i=Rt(e,e===Zc?$c:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=zl(e,i);else{t=i;var a=Xc;Xc|=2;var o=Ll();(Zc!==e||$c!==t)&&(dl=null,ul=xt()+500,Fl(e,t));do try{Vl();break}catch(t){Il(e,t)}while(1);$a(),qc.current=o,Xc=a,Qc===null?(Zc=null,$c=0,t=nl):t=0}if(t!==0){if(t===2&&(a=Vt(e),a!==0&&(i=a,t=Dl(e,a))),t===1)throw n=rl,Fl(e,0),Al(e,i),Tl(e,xt()),n;if(t===6)Al(e,i);else{if(a=e.current.alternate,!(i&30)&&!kl(a)&&(t=zl(e,i),t===2&&(o=Vt(e),o!==0&&(i=o,t=Dl(e,o))),t===1))throw n=rl,Fl(e,0),Al(e,i),Tl(e,xt()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Wl(e,cl,dl);break;case 3:if(Al(e,i),(i&130023424)===i&&(t=ll+500-xt(),10<t)){if(Rt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Sl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ai(Wl.bind(null,e,cl,dl),t);break}Wl(e,cl,dl);break;case 4:if(Al(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-jt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=xt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Kc(i/1960))-i,10<i){e.timeoutHandle=Ai(Wl.bind(null,e,cl,dl),i);break}Wl(e,cl,dl);break;case 5:Wl(e,cl,dl);break;default:throw Error(r(329))}}}return Tl(e,xt()),e.callbackNode===n?El.bind(null,e):null}function Dl(e,t){var n=sl;return e.current.memoizedState.isDehydrated&&(Fl(e,t).flags|=256),e=zl(e,t),e!==2&&(t=cl,cl=n,t!==null&&Ol(t)),e}function Ol(e){cl===null?cl=e:cl.push.apply(cl,e)}function kl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Pr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Al(e,t){for(t&=~ol,t&=~al,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jt(t),r=1<<n;e[n]=-1,t&=~r}}function jl(e){if(Xc&6)throw Error(r(327));Kl();var t=Rt(e,0);if(!(t&1))return Tl(e,xt()),null;var n=zl(e,t);if(e.tag!==0&&n===2){var i=Vt(e);i!==0&&(t=i,n=Dl(e,i))}if(n===1)throw n=rl,Fl(e,0),Al(e,t),Tl(e,xt()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wl(e,cl,dl),Tl(e,xt()),null}function Ml(e,t){var n=Xc;Xc|=1;try{return e(t)}finally{Xc=n,Xc===0&&(ul=xt()+500,fa&&ga())}}function Nl(e){gl!==null&&gl.tag===0&&!(Xc&6)&&Kl();var t=Xc;Xc|=1;var n=Yc.transition,r=Gt;try{if(Yc.transition=null,Gt=1,e)return e()}finally{Gt=r,Yc.transition=n,Xc=t,!(Xc&6)&&ga()}}function Pl(){el=tl.current,Qi(tl)}function Fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ji(n)),Qc!==null)for(n=Qc.return;n!==null;){var r=n;switch(ka(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&oa();break;case 3:yo(),Qi(na),Qi(ta),To();break;case 5:xo(r);break;case 4:yo();break;case 13:Qi(So);break;case 19:Qi(So);break;case 10:eo(r.type._context);break;case 22:case 23:Pl()}n=n.return}if(Zc=e,Qc=e=au(e.current,null),$c=el=t,nl=0,rl=null,ol=al=il=0,cl=sl=null,io!==null){for(t=0;t<io.length;t++)if(n=io[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}io=null}return e}function Il(e,t){do{var n=Qc;try{if($a(),Eo.current=bs,Mo){for(var i=ko.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Mo=!1}if(Oo=0,jo=Ao=ko=null,No=!1,Po=0,Jc.current=null,n===null||n.return===null){nl=1,rl=t,Qc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=$c,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Rs(s);if(m!==null){m.flags&=-257,zs(m,s,c,o,t),m.mode&1&&Ls(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Ls(o,u,t),Rl();break a}l=Error(r(426))}}else if(Ma&&c.mode&1){var _=Rs(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),zs(_,s,c,o,t),Va(js(l,c));break a}}o=l=js(l,c),nl!==4&&(nl=2),sl===null?sl=[o]:sl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Fs(o,l,t);lo(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(ml===null||!ml.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Is(o,c,t);lo(o,x);break a}}o=o.return}while(o!==null)}Ul(n)}catch(e){t=e,Qc===n&&n!==null&&(Qc=n=n.return);continue}break}while(1)}function Ll(){var e=qc.current;return qc.current=bs,e===null?bs:e}function Rl(){(nl===0||nl===3||nl===2)&&(nl=4),Zc===null||!(il&268435455)&&!(al&268435455)||Al(Zc,$c)}function zl(e,t){var n=Xc;Xc|=2;var i=Ll();(Zc!==e||$c!==t)&&(dl=null,Fl(e,t));do try{Bl();break}catch(t){Il(e,t)}while(1);if($a(),Xc=n,qc.current=i,Qc!==null)throw Error(r(261));return Zc=null,$c=0,nl}function Bl(){for(;Qc!==null;)Hl(Qc)}function Vl(){for(;Qc!==null&&!yt();)Hl(Qc)}function Hl(e){var t=$l(e.alternate,e,el);e.memoizedProps=e.pendingProps,t===null?Ul(e):Qc=t,Jc.current=null}function Ul(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=_c(n,t),n!==null){n.flags&=32767,Qc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{nl=6,Qc=null;return}}else if(n=gc(n,t,el),n!==null){Qc=n;return}if(t=t.sibling,t!==null){Qc=t;return}Qc=t=e}while(t!==null);nl===0&&(nl=5)}function Wl(e,t,n){var r=Gt,i=Yc.transition;try{Yc.transition=null,Gt=1,Gl(e,t,n,r)}finally{Yc.transition=i,Gt=r}return null}function Gl(e,t,n,i){do Kl();while(gl!==null);if(Xc&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Ut(e,o),e===Zc&&(Qc=Zc=null,$c=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||hl||(hl=!0,eu(Tt,function(){return Kl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Yc.transition,Yc.transition=null;var s=Gt;Gt=1;var c=Xc;Xc|=4,Jc.current=null,wc(e,n),zc(n,e),Vr(Oi),vn=!!Di,Oi=Di=null,e.current=n,Vc(n,e,a),bt(),Xc=c,Gt=s,Yc.transition=o}else e.current=n;if(hl&&(hl=!1,gl=e,_l=a),o=e.pendingLanes,o===0&&(ml=null),At(n.stateNode,i),Tl(e,xt()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(fl)throw fl=!1,e=pl,pl=null,e;return _l&1&&e.tag!==0&&Kl(),o=e.pendingLanes,o&1?e===yl?vl++:(vl=0,yl=e):vl=0,ga(),null}function Kl(){if(gl!==null){var e=Kt(_l),t=Yc.transition,n=Gt;try{if(Yc.transition=null,Gt=16>e?16:e,gl===null)var i=!1;else{if(e=gl,gl=null,_l=0,Xc&6)throw Error(r(331));var a=Xc;for(Xc|=4,H=e.current;H!==null;){var o=H,s=o.child;if(H.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(H=u;H!==null;){var d=H;switch(d.tag){case 0:case 11:case 15:Tc(8,d,o)}var f=d.child;if(f!==null)f.return=d,H=f;else for(;H!==null;){d=H;var p=d.sibling,m=d.return;if(Oc(d),d===u){H=null;break}if(p!==null){p.return=m,H=p;break}H=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}H=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,H=s;else b:for(;H!==null;){if(o=H,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Tc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,H=v;break b}H=o.return}}var y=e.current;for(H=y;H!==null;){s=H;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,H=b;else b:for(s=y;H!==null;){if(c=H,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Ec(9,c)}}catch(e){Jl(c,c.return,e)}if(c===s){H=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,H=x;break b}H=c.return}}if(Xc=a,ga(),kt&&typeof kt.onPostCommitFiberRoot==`function`)try{kt.onPostCommitFiberRoot(Ot,e)}catch{}i=!0}return i}finally{Gt=n,Yc.transition=t}}return!1}function ql(e,t,n){t=js(n,t),t=Fs(e,t,1),e=so(e,t,1),t=Sl(),e!==null&&(F(e,1,t),Tl(e,t))}function Jl(e,t,n){if(e.tag===3)ql(e,e,n);else for(;t!==null;){if(t.tag===3){ql(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ml===null||!ml.has(r))){e=js(n,e),e=Is(t,e,1),t=so(t,e,1),e=Sl(),t!==null&&(F(t,1,e),Tl(t,e));break}}t=t.return}}function Yl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Sl(),e.pingedLanes|=e.suspendedLanes&n,Zc===e&&($c&n)===n&&(nl===4||nl===3&&($c&130023424)===$c&&500>xt()-ll?Fl(e,0):ol|=n),Tl(e,t)}function Xl(e,t){t===0&&(e.mode&1?(t=It,It<<=1,!(It&130023424)&&(It=4194304)):t=1);var n=Sl();e=L(e,t),e!==null&&(F(e,t,n),Tl(e,n))}function Zl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xl(e,n)}function Ql(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Xl(e,n)}var $l=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||na.current)Vs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Vs=!1,uc(e,t,n);Vs=!!(e.flags&131072)}else Vs=!1,Ma&&t.flags&1048576&&Da(t,ba,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;cc(e,t),e=t.pendingProps;var a=ia(t,ta.current);no(t,n),a=Ro(null,t,i,e,a,n);var o=zo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,aa(i)?(o=!0,la(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,z(t),a.updater=Es,t.stateNode=a,a._reactInternals=t,As(t,i,e,n),t=Xs(null,t,i,!0,o,n)):(t.tag=0,Ma&&o&&Oa(t),Hs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(cc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=iu(i),e=ws(i,e),a){case 0:t=Js(null,t,i,e,n);break a;case 1:t=Ys(null,t,i,e,n);break a;case 11:t=Us(null,t,i,e,n);break a;case 14:t=Ws(null,t,i,ws(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),Js(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),Ys(e,t,i,a,n);case 3:a:{if(Zs(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,B(e,t),uo(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=js(Error(r(423)),t),t=Qs(e,t,i,n,a);break a}else if(i!==a){a=js(Error(r(424)),t),t=Qs(e,t,i,n,a);break a}else for(ja=Ii(t.stateNode.containerInfo.firstChild),Aa=t,Ma=!0,Na=null,n=Ja(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ba(),i===a){t=lc(e,t,n);break a}Hs(e,t,i,n)}t=t.child}return t;case 5:return bo(t),e===null&&La(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,ki(i,a)?s=null:o!==null&&ki(i,o)&&(t.flags|=32),qs(e,t),Hs(e,t,s,n),t.child;case 6:return e===null&&La(t),null;case 13:return tc(e,t,n);case 4:return vo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=qa(t,null,i,n):Hs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),Us(e,t,i,a,n);case 7:return Hs(e,t,t.pendingProps,n),t.child;case 8:return Hs(e,t,t.pendingProps.children,n),t.child;case 12:return Hs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,$i(Ya,i._currentValue),i._currentValue=s,o!==null)if(Pr(o.value,s)){if(o.children===a.children&&!na.current){t=lc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=V(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),to(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),to(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Hs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,no(t,n),a=ro(a),i=i(a),t.flags|=1,Hs(e,t,i,n),t.child;case 14:return i=t.type,a=ws(i,t.pendingProps),a=ws(i.type,a),Ws(e,t,i,a,n);case 15:return Gs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),cc(e,t),t.tag=1,aa(i)?(e=!0,la(t)):e=!1,no(t,n),Os(t,i,a),As(t,i,a,n),Xs(null,t,i,!0,e,n);case 19:return sc(e,t,n);case 22:return Ks(e,t,n)}throw Error(r(156,t.tag))};function eu(e,t){return _t(e,t)}function tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nu(e,t,n,r){return new tu(e,t,n,r)}function ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function iu(e){if(typeof e==`function`)return+!!ru(e);if(e!=null){if(e=e.$$typeof,e===A)return 11;if(e===ne)return 14}return 2}function au(e,t){var n=e.alternate;return n===null?(n=nu(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ou(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)ru(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case T:return su(n.children,a,o,t);case E:s=8,a|=8;break;case D:return e=nu(12,n,t,a|2),e.elementType=D,e.lanes=o,e;case ee:return e=nu(13,n,t,a),e.elementType=ee,e.lanes=o,e;case te:return e=nu(19,n,t,a),e.elementType=te,e.lanes=o,e;case ie:return cu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case O:s=10;break a;case k:s=9;break a;case A:s=11;break a;case ne:s=14;break a;case re:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=nu(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function su(e,t,n,r){return e=nu(7,e,r,t),e.lanes=n,e}function cu(e,t,n,r){return e=nu(22,e,r,t),e.elementType=ie,e.lanes=n,e.stateNode={isHidden:!1},e}function lu(e,t,n){return e=nu(6,e,null,t),e.lanes=n,e}function uu(e,t,n){return t=nu(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function du(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=P(0),this.expirationTimes=P(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=P(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function fu(e,t,n,r,i,a,o,s,c){return e=new du(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=nu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},z(a),e}function pu(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:w,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function mu(e){if(!e)return ea;e=e._reactInternals;
vendor: 4,413 bytes, line 9
9a:{if(dt(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(aa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(aa(n))return ca(e,n,t)}return t}function hu(e,t,n,r,i,a,o,s,c){return e=fu(n,r,!0,e,i,a,o,s,c),e.context=mu(null),n=e.current,r=Sl(),i=Cl(n),a=V(r,i),a.callback=t??null,so(n,a,i),e.current.lanes=i,F(e,i,r),Tl(e,r),e}function gu(e,t,n,r){var i=t.current,a=Sl(),o=Cl(i);return n=mu(n),t.context===null?t.context=n:t.pendingContext=n,t=V(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=so(i,t,o),e!==null&&(wl(e,i,o,a),co(e,i,o)),o}function _u(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function vu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yu(e,t){vu(e,t),(e=e.alternate)&&vu(e,t)}function bu(){return null}var xu=typeof reportError==`function`?reportError:function(e){console.error(e)};function Su(e){this._internalRoot=e}Cu.prototype.render=Su.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));gu(e,t,null,null)},Cu.prototype.unmount=Su.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nl(function(){gu(null,e,null,null)}),t[Vi]=null}};function Cu(e){this._internalRoot=e}Cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<on.length&&t!==0&&t<on[n].priority;n++);on.splice(n,0,e),n===0&&dn(e)}};function wu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Tu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function Eu(){}function Du(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=_u(o);a.call(e)}}var o=hu(t,r,e,0,null,!1,!1,``,Eu);return e._reactRootContainer=o,e[Vi]=o.current,hi(e.nodeType===8?e.parentNode:e),Nl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=_u(c);s.call(e)}}var c=fu(e,0,!1,null,null,!1,!1,``,Eu);return e._reactRootContainer=c,e[Vi]=c.current,hi(e.nodeType===8?e.parentNode:e),Nl(function(){gu(t,c,n,r)}),c}function Ou(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=_u(o);s.call(e)}}gu(t,o,e,i)}else o=Du(n,t,e,i,r);return _u(o)}qt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Lt(t.pendingLanes);n!==0&&(Wt(t,n|1),Tl(t,xt()),!(Xc&6)&&(ul=xt()+500,ga()))}break;case 13:Nl(function(){var t=L(e,1);t!==null&&wl(t,e,1,Sl())}),yu(e,1)}},Jt=function(e){if(e.tag===13){var t=L(e,134217728);t!==null&&wl(t,e,134217728,Sl()),yu(e,134217728)}},Yt=function(e){if(e.tag===13){var t=Cl(e),n=L(e,t);n!==null&&wl(n,e,t,Sl()),yu(e,t)}},Xt=function(){return Gt},Zt=function(e,t){var n=Gt;try{return Gt=e,t()}finally{Gt=n}},We=function(e,t,n){switch(t){case`input`:if(xe(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Ji(i);if(!a)throw Error(r(90));ge(i),xe(i,a)}}}break;case`textarea`:Oe(e,n);break;case`select`:t=n.value,t!=null&&Te(e,!!n.multiple,t,!1)}},Xe=Ml,Ze=Nl;var ku={usingClientEntryPoint:!1,Events:[Ki,qi,Ji,Je,Ye,Ml]},Au={findFiberByHostInstance:Gi,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},ju={bundleType:Au.bundleType,version:Au.version,rendererPackageName:Au.rendererPackageName,rendererConfig:Au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ht(e),e===null?null:e.stateNode},findFiberByHostInstance:Au.findFiberByHostInstance||bu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};
9if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Mu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mu.isDisabled&&Mu.supportsFiber)try{Ot=Mu.inject(ju),kt=Mu}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ku,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wu(t))throw Error(r(200));return pu(e,t,null,n)},e.createRoot=function(e,t){if(!wu(e))throw Error(r(299));var n=!1,i=``,a=xu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=fu(e,1,!1,null,null,n,!1,i,a),e[Vi]=t.current,hi(e.nodeType===8?e.parentNode:e),new Su(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=ht(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Nl(e)},e.hydrate=function(e,t,n){if(!Tu(t))throw Error(r(200));return Ou(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!wu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=xu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=hu(t,null,e,1,n??null,a,!1,o,s),e[Vi]=t.current,hi(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Cu(t)},e.render=function(e,t,n){if(!Tu(t))throw Error(r(200));return Ou(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!Tu(e))throw Error(r(40));return e._reactRootContainer?(Nl(function(){Ou(null,null,e,!1,function(){e._reactRootContainer=null,e[Vi]=null})}),!0):!1},e.unstable_batchedUpdates=Ml,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Tu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Ou(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),Kt=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Gt()})),qt=s((e=>{var t=Kt();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),Jt=s(((e,t)=>{var n=typeof Element<`u`,r=typeof Map==`function`,i=typeof Set==`function`,a=typeof ArrayBuffer==`function`&&!!ArrayBuffer.isView;function o(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;var s,c,l;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(!o(e[c],t[c]))return!1;return!0}var u;if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],t.get(c.value[0])))return!1;return!0}if(i&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf==`function`&&typeof t.valueOf==`function`)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString==`function`&&typeof t.toString==`function`)return e.toString()===t.toString();if(l=Object.keys(e),s=l.length,s!==Object.keys(t).length)return!1;for(c=s;c--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[c]))return!1;if(n&&e instanceof Element)return!1;for(c=s;c--!==0;)if(!((l[c]===`_owner`||l[c]===`__v`||l[c]===`__o`)&&e.$$typeof)&&!o(e[l[c]],t[l[c]]))return!1;return!0}return e!==e&&t!==t}t.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||``).match(/stack|recursion/i))return console.warn(`react-fast-compare cannot handle circular refs`),!1;throw e}}})),Yt=s(((e,t)=>
9{t.exports=function(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}})),Xt=s(((e,t)=>{t.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],d=t[l];if(i=n?n.call(r,u,d,l):void 0,i===!1||i===void 0&&u!==d)return!1}return!0}})),Zt=u(Ut(),1),Qt=qt(),$t=u(Jt()),en=u(Yt()),tn=u(Xt()),nn=(e=>(e.BASE=`base`,e.BODY=`body`,e.HEAD=`head`,e.HTML=`html`,e.LINK=`link`,e.META=`meta`,e.NOSCRIPT=`noscript`,e.SCRIPT=`script`,e.STYLE=`style`,e.TITLE=`title`,e.FRAGMENT=`Symbol(react.fragment)`,e))(nn||{}),rn={link:{rel:[`amphtml`,`canonical`,`alternate`]},script:{type:[`application/ld+json`]},meta:{charset:``,name:[`generator`,`robots`,`description`],property:[`og:type`,`og:title`,`og:url`,`og:image`,`og:image:alt`,`og:description`,`twitter:url`,`twitter:title`,`twitter:description`,`twitter:image`,`twitter:image:alt`,`twitter:card`,`twitter:site`]}},an=Object.values(nn),on={accesskey:`accessKey`,charset:`charSet`,class:`className`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,"http-equiv":`httpEquiv`,itemprop:`itemProp`,tabindex:`tabIndex`},sn=Object.entries(on).reduce((e,[t,n])=>(e[n]=t,e),{}),cn=`data-rh`,ln={DEFAULT_TITLE:`defaultTitle`,DEFER:`defer`,ENCODE_SPECIAL_CHARACTERS:`encodeSpecialCharacters`,ON_CHANGE_CLIENT_STATE:`onChangeClientState`,TITLE_TEMPLATE:`titleTemplate`,PRIORITIZE_SEO_TAGS:`prioritizeSeoTags`},un=(e,t)=>{for(let n=e.length-1;n>=0;--n){let r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},dn=e=>{let t=un(e,`title`),n=un(e,ln.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join(``)),n&&t)return n.replace(/%s/g,()=>t);let r=un(e,ln.DEFAULT_TITLE);return t||r||void 0},fn=e=>un(e,ln.ON_CHANGE_CLIENT_STATE)||(()=>{}),pn=(e,t)=>t.filter(t=>t[e]!==void 0).map(t=>t[e]).reduce((e,t)=>({...e,...t}),{}),mn=(e,t)=>t.filter(e=>e.base!==void 0).map(e=>e.base).reverse().reduce((t,n)=>{if(!t.length){let r=Object.keys(n);for(let i=0;i<r.length;i+=1){let a=r[i].toLowerCase();if(e.indexOf(a)!==-1&&n[a])return t.concat(n)}}return t},[]),hn=e=>console&&typeof console.warn==`function`&&console.warn(e),gn=(e,t,n)=>{let r={};return n.filter(t=>Array.isArray(t[e])?!0:(t[e]!==void 0&&hn(`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`),!1)).map(t=>t[e]).reverse().reduce((e,n)=>{let i={};n.filter(e=>{let n,a=Object.keys(e);for(let r=0;r<a.length;r+=1){let i=a[r],o=i.toLowerCase();t.indexOf(o)!==-1&&!(n===`rel`&&e[n].toLowerCase()===`canonical`)&&!(o===`rel`&&e[o].toLowerCase()===`stylesheet`)&&(n=o),t.indexOf(i)!==-1&&(i===`innerHTML`||i===`cssText`||i===`itemprop`)&&(n=i)}if(!n||!e[n])return!1;let o=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),r[n][o]?!1:(i[n][o]=!0,!0)}).reverse().forEach(t=>e.push(t));let a=Object.keys(i);for(let e=0;e<a.length;e+=1){let t=a[e];r[t]={...r[t],...i[t]}}return e},[]).reverse()},_n=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},vn=e=>({baseTag:mn([`href`],e),bodyAttributes:pn(`bodyAttributes`,e),defer:un(e,ln.DEFER),encode:un(e,ln.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:pn(`htmlAttributes`,e),linkTags:gn(`link`,[`rel`,`href`],e),metaTags:gn(`meta`,[`name`,`charset`,`http-equiv`,`property`,`itemprop`],e),noscriptTags:gn(`noscript`,[`innerHTML`],e),onChangeClientState:fn(e),scriptTags:gn(`script`,[`src`,`innerHTML`],e),styleTags:gn(`style`,[`cssText`],e),title:dn(e),titleAttributes:pn(`titleAttributes`,e),prioritizeSeoTags:_n(e,ln.PRIORITIZE_SEO_TAGS)}),yn=e=>Array.isArray(e)?e.join(``):e,bn=(e,t)=>{let n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},xn=(e,t)=>Array.isArray(e)?e.reduce((e,n)=>(bn(n,t)?e.priority.push(n):e.default.push(n),e),{priority:[],default:[]}):{default:e,priority:[]},Sn=(e,t)=>({...e,[t]:void 0}),Cn=[`noscript`,`script`,`style`],wn=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`),Tn=e=>Object.keys(e).reduce((t,n)=>{let r=e[n]===void 0?`${n}`:`${n}="${e[n]}"`;return t?`${t} ${r}`:r},``),En=(e,t,n,r)=>{let i=Tn(n),a=yn(t);return i?`<${e} ${cn}="true" ${i}>${wn(a,r)}</${e}>`:`<${e} ${cn}="true">${wn(a,r)}</${e}>`},Dn=(e,t,n=!0)=>t.reduce((t,r)=>{let i=r,a=Object.keys(i).filter(e=>!(e===`innerHTML`||e===`cssText`)).reduce((e,t)=>
9{let r=i[t]===void 0?t:`${t}="${wn(i[t],n)}"`;return e?`${e} ${r}`:r},``),o=i.innerHTML||i.cssText||``;return`${t}<${e} ${cn}="true" ${a}${Cn.indexOf(e)===-1?`/>`:`>${o}</${e}>`}`},``),On=(e,t={})=>Object.keys(e).reduce((t,n)=>{let r=on[n];return t[r||n]=e[n],t},t),kn=(e,t,n)=>{let r=On(n,{key:t,[cn]:!0});return[_.createElement(`title`,r,t)]},An=(e,t)=>t.map((t,n)=>{let r={key:n,[cn]:!0};return Object.keys(t).forEach(e=>{let n=on[e]||e;n===`innerHTML`||n===`cssText`?r.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:r[n]=t[e]}),_.createElement(e,r)}),jn=(e,t,n=!0)=>{switch(e){case`title`:return{toComponent:()=>kn(e,t.title,t.titleAttributes),toString:()=>En(e,t.title,t.titleAttributes,n)};case`bodyAttributes`:case`htmlAttributes`:return{toComponent:()=>On(t),toString:()=>Tn(t)};default:return{toComponent:()=>An(e,t),toString:()=>Dn(e,t,n)}}},Mn=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{let i=xn(e,rn.meta),a=xn(t,rn.link),o=xn(n,rn.script);return{priorityMethods:{toComponent:()=>[...An(`meta`,i.priority),...An(`link`,a.priority),...An(`script`,o.priority)],toString:()=>`${jn(`meta`,i.priority,r)} ${jn(`link`,a.priority,r)} ${jn(`script`,o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},Nn=e=>{let{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s=``,titleAttributes:c,prioritizeSeoTags:l}=e,{linkTags:u,metaTags:d,scriptTags:f}=e,p={toComponent:()=>[],toString:()=>``};return l&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:f}=Mn(e)),{priority:p,base:jn(`base`,t,r),bodyAttributes:jn(`bodyAttributes`,n,r),htmlAttributes:jn(`htmlAttributes`,i,r),link:jn(`link`,u,r),meta:jn(`meta`,d,r),noscript:jn(`noscript`,a,r),script:jn(`script`,f,r),style:jn(`style`,o,r),title:jn(`title`,{title:s,titleAttributes:c},r)}},Pn=[],Fn=!!(typeof window<`u`&&window.document&&window.document.createElement),In=class{instances=[];canUseDOM=Fn;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Pn:this.instances,add:e=>{(this.canUseDOM?Pn:this.instances).push(e)},remove:e=>{let t=(this.canUseDOM?Pn:this.instances).indexOf(e);(this.canUseDOM?Pn:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Nn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:``,titleAttributes:{}}))}},Ln=parseInt(`18.3.1`.split(`.`)[0],10)>=19,Rn=_.createContext({}),zn=class e extends _.Component{static canUseDOM=Fn;helmetData;constructor(t){super(t),Ln?this.helmetData=null:this.helmetData=new In(this.props.context||{},e.canUseDOM)}render(){return Ln?_.createElement(_.Fragment,null,this.props.children):_.createElement(Rn.Provider,{value:this.helmetData.value},this.props.children)}},Bn=(e,t)=>{let n=document.head||document.querySelector(`head`),r=n.querySelectorAll(`${e}[${cn}]`),i=[].slice.call(r),a=[],o;return t&&t.length&&t.forEach(t=>{let n=document.createElement(e);for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))if(e===`innerHTML`)n.innerHTML=t.innerHTML;else if(e===`cssText`){let e=t.cssText;n.appendChild(document.createTextNode(e))}else{let r=e,i=t[r]===void 0?``:t[r];n.setAttribute(e,i)}n.setAttribute(cn,`true`),i.some((e,t)=>(o=t,n.isEqualNode(e)))?i.splice(o,1):a.push(n)}
9),i.forEach(e=>e.parentNode?.removeChild(e)),a.forEach(e=>n.appendChild(e)),{oldTags:i,newTags:a}},Vn=(e,t)=>{let n=document.getElementsByTagName(e)[0];if(!n)return;let r=n.getAttribute(cn),i=r?r.split(`,`):[],a=[...i],o=Object.keys(t);for(let e of o){let r=t[e]||``;n.getAttribute(e)!==r&&n.setAttribute(e,r),i.indexOf(e)===-1&&i.push(e);let o=a.indexOf(e);o!==-1&&a.splice(o,1)}for(let e=a.length-1;e>=0;--e)n.removeAttribute(a[e]);i.length===a.length?n.removeAttribute(cn):n.getAttribute(cn)!==o.join(`,`)&&n.setAttribute(cn,o.join(`,`))},Hn=(e,t)=>{e!==void 0&&document.title!==e&&(document.title=yn(e)),Vn(`title`,t)},Un=(e,t)=>{let{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:c,scriptTags:l,styleTags:u,title:d,titleAttributes:f}=e;Vn(`body`,r),Vn(`html`,i),Hn(d,f);let p={baseTag:Bn(`base`,n),linkTags:Bn(`link`,a),metaTags:Bn(`meta`,o),noscriptTags:Bn(`noscript`,s),scriptTags:Bn(`script`,l),styleTags:Bn(`style`,u)},m={},h={};Object.keys(p).forEach(e=>{let{newTags:t,oldTags:n}=p[e];t.length&&(m[e]=t),n.length&&(h[e]=p[e].oldTags)}),t&&t(),c(e,m,h)},Wn=null,Gn=e=>{Wn&&cancelAnimationFrame(Wn),e.defer?Wn=requestAnimationFrame(()=>{Un(e,()=>{Wn=null})}):(Un(e),Wn=null)},Kn=class extends _.Component{rendered=!1;shouldComponentUpdate(e){return!(0,tn.default)(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){let{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){let{helmetInstances:e,setHelmet:t}=this.props.context,n=null,r=vn(e.get().map(e=>{let{context:t,...n}=e.props;return n}));zn.canUseDOM?Gn(r):Nn&&(n=Nn(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;let{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},qn=[],Jn=e=>{let t={};for(let n of Object.keys(e))t[sn[n]||n]=e[n];return t},Yn=e=>{let t={};for(let n of Object.keys(e)){let r=on[n];t[r||n]=e[n]}return t},Xn=(e,t)=>{if(!Fn)return;let n=document.getElementsByTagName(e)[0];if(!n)return;let r=`data-rh-managed`,i=n.getAttribute(r),a=i?i.split(`,`):[],o=Object.keys(t);for(let e of a)o.includes(e)||n.removeAttribute(e);for(let e of o){let r=t[e];r==null||r===!1?n.removeAttribute(e):r===!0?n.setAttribute(e,``):n.setAttribute(e,String(r))}o.length>0?n.setAttribute(r,o.join(`,`)):n.removeAttribute(r)},Zn=()=>{let e={},t={};for(let n of qn){let{htmlAttributes:r,bodyAttributes:i}=n.props;r&&Object.assign(e,Jn(r)),i&&Object.assign(t,Jn(i))}Xn(`html`,e),Xn(`body`,t)},Qn=class extends _.Component{componentDidMount(){qn.push(this),Zn()}componentDidUpdate(){Zn()}componentWillUnmount(){let e=qn.indexOf(this);e!==-1&&qn.splice(e,1),Zn()}resolveTitle(){let{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(``):e):e||n||void 0}renderTitle(){let e=this.resolveTitle();if(e===void 0)return null;let t=this.props.titleAttributes||{};return _.createElement(`title`,Yn(t),e)}renderBase(){let{base:e}=this.props;return e?_.createElement(`base`,Yn(e)):null}renderMeta(){let{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>_.createElement(`meta`,{key:t,...Yn(e)}))}renderLink(){let{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>_.createElement(`link`,{key:t,...Yn(e)}))}renderScript(){let{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>{let{innerHTML:n,...r}=e,i=Yn(r);return n&&(i.dangerouslySetInnerHTML={__html:n}),_.createElement(`script`,{key:t,...i})})}renderStyle(){let{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>{let{cssText:n,...r}=e,i=Yn(r);return n&&(i.dangerouslySetInnerHTML={__html:n}),_.createElement(`style`,{key:t,...i})})}renderNoscript(){let{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>{let{innerHTML:n,...r}=e,i=Yn(r);return n&&(i.dangerouslySetInnerHTML={__html:n}),_.createElement(`noscript`,{key:t,...i})})}render(){return _.createElement(_.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},$n=class extends _.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!(0,$t.default)(Sn(this.props,`helmetData`),Sn(e,`helmetData`))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case`script`:case`noscript`:return{innerHTML:t};case`style`:return{cssText:t};default:throw Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case`title`:return{...t,[e.type]:r,titleAttributes:{...n}};case`body`:return{...t,bodyAttributes:{...n}};case`html`:return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(t=>{n={...n,[t]:e[t]}}),n}
9warnOnInvalidChildren(e,t){return(0,en.default)(an.some(t=>e.type===t),typeof e.type==`function`?`You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.`:`Only elements types ${an.join(`, `)} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),(0,en.default)(!t||typeof t==`string`||Array.isArray(t)&&!t.some(e=>typeof e!=`string`),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return _.Children.forEach(e,e=>{if(!e||!e.props)return;let{children:r,...i}=e.props,a=Object.keys(i).reduce((e,t)=>(e[sn[t]||t]=i[t],e),{}),{type:o}=e;switch(typeof o==`symbol`?o=o.toString():this.warnOnInvalidChildren(e,r),o){case`Symbol(react.fragment)`:t=this.mapChildrenToProps(r,t);break;case`link`:case`meta`:case`noscript`:case`script`:case`style`:n=this.flattenArrayTypeChildren(e,n,a,r);break;default:t=this.mapObjectTypeChildren(e,t,a,r);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){let{children:e,...t}=this.props,n={...t},{helmetData:r}=t;return e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof In)&&(r=new In(r.context,!0),delete n.helmetData),Ln?_.createElement(Qn,{...n}):r?_.createElement(Kn,{...n,context:r.value}):_.createElement(Rn.Consumer,null,e=>_.createElement(Kn,{...n,context:e}))}},er=class{constructor(e=``){this.prefix=e,this.count=0,this.offset=374,this.msb=1295,this.power=2}next(){let e=this.increment().toString(36);return this.prefix?`${this.prefix}${e}`:e}increment(){let e=this.count+this.offset;return e===this.msb&&(this.offset+=(this.msb+1)*9,this.msb=36**++this.power-1),this.count++,e}},tr=/(!?\(\s*min(-device-)?-width).+\(\s*max(-device)?-width/i,nr=/\(\s*min(-device)?-width/i,rr=/(!?\(\s*max(-device)?-width).+\(\s*min(-device)?-width/i,ir=/\(\s*max(-device)?-width/i,ar=_r(tr,rr,nr),or=_r(rr,tr,ir),sr=/(!?\(\s*min(-device)?-height).+\(\s*max(-device)?-height/i,cr=/\(\s*min(-device)?-height/i,lr=/(!?\(\s*max(-device)?-height).+\(\s*min(-device)?-height/i,ur=/\(\s*max(-device)?-height/i,dr=_r(sr,lr,cr),fr=_r(lr,sr,ur),pr=/print/i,mr=/^print$/i,hr=Number.MAX_VALUE;function gr(e){let t=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(e);if(t===null)return hr;let n=t[1];switch(t[2]){case`ch`:n=parseFloat(n)*8.8984375;break;case`em`:case`rem`:n=parseFloat(n)*16;break;case`ex`:n=parseFloat(n)*8.296875;break;case`px`:n=parseFloat(n);break}return+n}function _r(e,t,n){return function(r){return e.test(r)?!0:t.test(r)?!1:n.test(r)}}function vr(e,t){let n=pr.test(e),r=mr.test(e),i=pr.test(t),a=mr.test(t);return n&&i?!r&&a?1:r&&!a?-1:e.localeCompare(t):n?1:i?-1:null}function yr(e,t){if(e===``)return-1;if(t===``)return 1;let n=vr(e,t);if(n!==null)return n;let r=ar(e)||dr(e),i=or(e)||fr(e),a=ar(t)||dr(t),o=or(t)||fr(t);if(r&&o)return-1;if(i&&a)return 1;let s=gr(e),c=gr(t);return s===hr&&c===hr?e.localeCompare(t):s===hr?1:c===hr?-1:s>c?i?-1:1:s<c?i?1:-1:e.localeCompare(t)}var br=class{constructor(e,t,n){this.idGenerator=e,this.onNewCache=t,this.onNewValue=n,this.sortedCacheKeys=[],this.caches={}}getCache(e){if(!this.caches[e]){let t=new xr(this.idGenerator,this.onNewValue);t.key=e,this.sortedCacheKeys.push(e),this.sortedCacheKeys.sort(yr);let n=this.sortedCacheKeys.indexOf(e),r=n<this.sortedCacheKeys.length-1?this.sortedCacheKeys[n+1]:void 0;this.caches[e]=t,this.onNewCache(e,t,r)}return this.caches[e]}getSortedCacheKeys(){return this.sortedCacheKeys}},xr=class{constructor(e,t){this.cache={},this.idGenerator=e,this.onNewValue=t}addValue(e,t){let n=this.cache[e];if(n)return n;let r=this.idGenerator.next();return this.cache[e]=r,this.onNewValue(this,r,t),r}},Sr=/[A-Z]/g,Cr=/^ms-/,wr={};function Tr(e){return e in wr?wr[e]:wr[e]=e.replace(Sr,`-$&`).toLowerCase().replace(Cr,`-ms-`)}function Er(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Dr(e,t,n){if(e.hasOwnProperty(t)){for(var r={},i=e[t],a=Er(t),o=Object.keys(n),s=0;s<o.length;s++){var c=o[s];if(c===t)for(var l=0;l<i.length;l++)r[i[l]+a]=n[t];r[c]=n[c]}return r}return n}function Or(e,t,n,r,i){for(var a=0,o=e.length;a<o;++a){var s=e[a](t,n,r,i);if(s)return s}}function kr(e,t){e.indexOf(t)===-1&&e.push(t)}function Ar(e,t){if(Array.isArray(t))for(var n=0,r=t.length;n<r;++n)kr(e,t[n]);else kr(e,t)}function jr(e){return e instanceof Object&&!Array.isArray(e)}function Mr(e){var t=e.prefixMap,n=e.plugins;return function e(r){for(var i in r){var a=r[i];if(jr(a))r[i]=e(a);else if(Array.isArray(a)){for(var o=[],s=0,c=a.length;s<c;++s)Ar(o,Or(n,i,a[s],r,t)||a[s]);o.length>0&&(r[i]=o)}else{var l=Or(n,i,a,r,t);l&&(r[i]=l),r=Dr(t,i,r)}}return r}}var Nr=[`Webkit`],Pr=[`Moz`],Fr=[`ms`],Ir=[`Webkit`,`Moz`],Lr=[`Webkit`,`ms`],Rr={plugins:[],prefixMap:{appearance:Ir,textEmphasisPosition:Nr,textEmphasis:Nr,textEmphasisStyle:Nr,textEmphasisColor:Nr,boxDecorationBreak:Nr,maskImage:Nr,maskMode:Nr,maskRepeat:Nr,maskPosition:Nr,maskClip:Nr,maskOrigin:Nr,maskSize:Nr,maskComposite:Nr,mask:Nr,maskBorderSource:Nr,maskBorderMode:Nr,maskBorderSlice:Nr,maskBorderWidth:Nr,maskBorderOutset:Nr,maskBorderRepeat:Nr,maskBorder:Nr,maskType:Nr,textDecorationStyle:Nr,textDecorationSkip:Nr,textDecorationLine:Nr,textDecorationColor:Nr,userSelect:[`Webkit`,`Moz`,`ms`],backdropFilter:Nr,fontKerning:Nr,scrollSnapType:Lr,scrollSnapPointsX:Lr,scrollSnapPointsY:Lr,scrollSnapDestination:Lr,scrollSnapCoordinate:Lr,clipPath:Nr,shapeImageThreshold:Nr,shapeImageMargin:Nr,shapeImageOutside:Nr,filter:Nr,hyphens:Lr,flowInto:Lr,flowFrom:Lr,breakBefore:Lr,breakAfter:Lr,breakInside:Lr,regionFragment:Lr,writingMode:Lr,textOrientation:Nr,tabSize:Pr,fontFeatureSettings:Nr,columnCount:Nr,columnFill:Nr,columnGap:Nr,columnRule:Nr,columnRuleColor:Nr,columnRuleStyle:Nr,columnRuleWidth:Nr,columns:Nr,columnSpan:Nr,columnWidth:Nr,wrapFlow:Fr,wrapThrough:Fr,wrapMargin:Fr,textSizeAdjust:Lr}};function zr(e,t){if(typeof t==`string`&&t===`text`)return[`-webkit-text`,`text`]}var Br=[`-webkit-`,`-moz-`,``],Vr={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function Hr(e,t){if(e===`cursor`&&Vr.hasOwnProperty(t))return Br.map(function(e){return e+t})}var Ur=u(s(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=/-webkit-|-moz-|-ms-/;function r(e){return typeof e==`string`&&n.test(e)}t.exports=e.default}))()),Wr=[`-webkit-`,``];function Gr(e,t){if(typeof t==`string`&&!(0,Ur.default)(t)&&t.indexOf(`cross-fade(`)>-1)return Wr.map(function(e){return t.replace(/cross-fade\(/g,e+`cross-fade(`)})}var Kr=[`-webkit-`,``];function qr(e,t){if(typeof t==`string`&&!(0,Ur.default)(t)&&t.indexOf(`filter(`)>-1)return Kr.map(function(e){return t.replace(/filter\(/g,e+`filter(`)})}var Jr={flex:[`-webkit-box`,`-moz-box`,`-ms-flexbox`,`-webkit-flex`,`flex`],"inline-flex":[`-webkit-inline-box`,`-moz-inline-box`,`-ms-inline-flexbox`,`-webkit-inline-flex`,`inline-flex`]};function Yr(e,t){if(e===`display`&&Jr.hasOwnProperty(t))return Jr[t]}var Xr={"space-around":`justify`,"space-between":`justify`,"flex-start":`start`,"flex-end":`end`,"wrap-reverse":`multiple`,wrap:`multiple`},Zr={alignItems:`WebkitBoxAlign`,justifyContent:`WebkitBoxPack`,flexWrap:`WebkitBoxLines`,flexGrow:`WebkitBoxFlex`};function Qr(e,t,n){e===`flexDirection`&&typeof t==`string`&&(t.indexOf(`column`)>-1?n.WebkitBoxOrient=`vertical`:n.WebkitBoxOrient=`horizontal`,t.indexOf(`reverse`)>-1?n.WebkitBoxDirection=`reverse`:n.WebkitBoxDirection=`normal`),Zr.hasOwnProperty(e)&&(n[Zr[e]]=Xr[t]||t)}var $r=[`-webkit-`,`-moz-`,``],ei=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function ti(e,t){if(typeof t==`string`&&!(0,Ur.default)(t)&&ei.test(t))return $r.map(function(e){return t.replace(ei,function(t){return e+t})})}var ni=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);
9throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}();function ri(e){return typeof e==`number`&&!isNaN(e)}function ii(e){return typeof e==`string`&&e.includes(`/`)}var ai=[`center`,`end`,`start`,`stretch`],oi={"inline-grid":[`-ms-inline-grid`,`inline-grid`],grid:[`-ms-grid`,`grid`]},si={alignSelf:function(e,t){ai.indexOf(e)>-1&&(t.msGridRowAlign=e)},gridColumn:function(e,t){if(ri(e))t.msGridColumn=e;else if(ii(e)){var n=ni(e.split(`/`),2),r=n[0],i=n[1];si.gridColumnStart(+r,t);var a=ni(i.split(/ ?span /),2),o=a[0],s=a[1];o===``?si.gridColumnEnd(+r+ +s,t):si.gridColumnEnd(+i,t)}else si.gridColumnStart(e,t)},gridColumnEnd:function(e,t){var n=t.msGridColumn;ri(e)&&ri(n)&&(t.msGridColumnSpan=e-n)},gridColumnStart:function(e,t){ri(e)&&(t.msGridColumn=e)},gridRow:function(e,t){if(ri(e))t.msGridRow=e;else if(ii(e)){var n=ni(e.split(`/`),2),r=n[0],i=n[1];si.gridRowStart(+r,t);var a=ni(i.split(/ ?span /),2),o=a[0],s=a[1];o===``?si.gridRowEnd(+r+ +s,t):si.gridRowEnd(+i,t)}else si.gridRowStart(e,t)},gridRowEnd:function(e,t){var n=t.msGridRow;ri(e)&&ri(n)&&(t.msGridRowSpan=e-n)},gridRowStart:function(e,t){ri(e)&&(t.msGridRow=e)},gridTemplateColumns:function(e,t){t.msGridColumns=e},gridTemplateRows:function(e,t){t.msGridRows=e},justifySelf:function(e,t){ai.indexOf(e)>-1&&(t.msGridColumnAlign=e)}};function ci(e,t,n){if(e===`display`&&t in oi)return oi[t];if(e in si){var r=si[e];r(t,n)}}var li=[`-webkit-`,``];function ui(e,t){if(typeof t==`string`&&!(0,Ur.default)(t)&&t.indexOf(`image-set(`)>-1)return li.map(function(e){return t.replace(/image-set\(/g,e+`image-set(`)})}var di={marginBlockStart:[`WebkitMarginBefore`],marginBlockEnd:[`WebkitMarginAfter`],marginInlineStart:[`WebkitMarginStart`,`MozMarginStart`],marginInlineEnd:[`WebkitMarginEnd`,`MozMarginEnd`],paddingBlockStart:[`WebkitPaddingBefore`],paddingBlockEnd:[`WebkitPaddingAfter`],paddingInlineStart:[`WebkitPaddingStart`,`MozPaddingStart`],paddingInlineEnd:[`WebkitPaddingEnd`,`MozPaddingEnd`],borderBlockStart:[`WebkitBorderBefore`],borderBlockStartColor:[`WebkitBorderBeforeColor`],borderBlockStartStyle:[`WebkitBorderBeforeStyle`],borderBlockStartWidth:[`WebkitBorderBeforeWidth`],borderBlockEnd:[`WebkitBorderAfter`],borderBlockEndColor:[`WebkitBorderAfterColor`],borderBlockEndStyle:[`WebkitBorderAfterStyle`],borderBlockEndWidth:[`WebkitBorderAfterWidth`],borderInlineStart:[`WebkitBorderStart`,`MozBorderStart`],borderInlineStartColor:[`WebkitBorderStartColor`,`MozBorderStartColor`],borderInlineStartStyle:[`WebkitBorderStartStyle`,`MozBorderStartStyle`],borderInlineStartWidth:[`WebkitBorderStartWidth`,`MozBorderStartWidth`],borderInlineEnd:[`WebkitBorderEnd`,`MozBorderEnd`],borderInlineEndColor:[`WebkitBorderEndColor`,`MozBorderEndColor`],borderInlineEndStyle:[`WebkitBorderEndStyle`,`MozBorderEndStyle`],borderInlineEndWidth:[`WebkitBorderEndWidth`,`MozBorderEndWidth`]};function fi(e,t,n){if(Object.prototype.hasOwnProperty.call(di,e))for(var r=di[e],i=0,a=r.length;i<a;++i)n[r[i]]=t}function pi(e,t){if(e===`position`&&t===`sticky`)return[`-webkit-sticky`,`sticky`]}var mi=[`-webkit-`,`-moz-`,``],hi={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},gi={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function _i(e,t){if(hi.hasOwnProperty(e)&&gi.hasOwnProperty(t))return mi.map(function(e){return e+t})}var vi=c({default:()=>bi});function yi(e){return`-`+e.toLowerCase()}function bi(e){if(Ci.hasOwnProperty(e))return Ci[e];var t=e.replace(xi,yi);return Ci[e]=Si.test(t)?`-`+t:t}var xi,Si,Ci,wi=o((()=>{xi=/[A-Z]/g,Si=/^ms-/,Ci={}})),Ti=u(s(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=i;var n=r((wi(),d(vi)));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(0,n.default)(e)}t.exports=e.default}))()),Ei={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},Di={Webkit:`-webkit-`,Moz:`-moz-`,ms:`-ms-`};function Oi(e,t){if((0,Ur.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),r=0,i=n.length;r<i;++r){var a=n[r],o=[a];for(var s in t){var c=(0,Ti.default)(s);if(a.indexOf(c)>-1&&c!==`order`)for(var l=t[s],u=0,d=l.length;u<d;++u)o.unshift(a.replace(c,Di[l[u]]+c))}n[r]=o.join(`,`)}return n.join(`,`)}function ki(e,t,n,r){if(typeof t==`string`&&Ei.hasOwnProperty(e)){var i=Oi(t,r),a=i.split(/,(?![^()]
9*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(`,`);if(e.indexOf(`Webkit`)>-1)return a;var o=i.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(`,`);return e.indexOf(`Moz`)>-1?o:(n[`Webkit`+Er(e)]=a,n[`Moz`+Er(e)]=o,i)}}var Ai=[zr,Gr,Hr,qr,Qr,ti,ci,ui,fi,pi,_i,ki,Yr],ji=Mr({prefixMap:Rr.prefixMap,plugins:Ai});function Mi(e,t,n,r){let i=e.getCache(n),a=``;for(let o in t){let s=t[o];if(s!=null)if(typeof s!=`object`){let e=`${Tr(o)}:${s}`,t=`${r}${e}`,n=i.cache[t];if(n!==void 0){a+=` `+n;continue}else{let n=``,c=ji({[o]:s});for(let t in c){let r=c[t],i=typeof r;if(i===`string`||i===`number`){let i=`${Tr(t)}:${r}`;i!==e&&(n+=`${i};`)}else if(Array.isArray(r)){let i=Tr(t);for(let t=0;t<r.length;t++){let a=`${i}:${r[t]}`;a!==e&&(n+=`${a};`)}}}n+=e;let l=i.addValue(t,{pseudo:r,block:n});a+=` `+l}}else o[0]===`:`?a+=` `+Mi(e,s,n,r+o):o.substring(0,6)===`@media`&&(a+=` `+Mi(e,s,o.substr(7),r))}return a.slice(1)}function Ni(e,t){let n=`.${e}`;return t&&(n+=t),n}function Pi(e){let t=``;for(let n in e)t+=`${n}{${Fi(e[n])}}`;return t}function Fi(e){let t=``;for(let n in e){let r=e[n];(typeof r==`string`||typeof r==`number`)&&(t+=`${Tr(n)}:${r};`)}return t.slice(0,-1)}function Ii(e,t){return`@keyframes ${e}{${t}}`}function Li(e,t){return`@font-face{font-family:${e};${t}}`}function Ri(e,t){return`${e}{${t}}`}var zi=/\.([^{:]+)(:[^{]+)?{(?:[^}]*;)?([^}]*?)}/g,Bi=/@keyframes ([^{]+){((?:(?:from|to|(?:\d+\.?\d*%))\{(?:[^}])*})*)}/g,Vi=/@font-face\{font-family:([^;]+);([^}]*)\}/g;function Hi(e,t,n){let r;for(;r=t.exec(n);){let[,t,n,i]=r,a=n?`${n}${i}`:i;e.cache[a]=t,e.idGenerator.increment()}}function Ui(e,t,n){let r;for(;r=t.exec(n);){let[,t,n]=r;e.cache[n]=t,e.idGenerator.increment()}}var Wi=class{constructor(e={}){this.styleElements={};let t=new er(e.prefix),n=(e,t,n)=>{let{pseudo:r,block:i}=n,a=this.styleElements[e.key].sheet,o=Ri(Ni(t,r),i);try{a.insertRule(o,a.cssRules.length)}catch{}};if(this.styleCache=new br(t,(e,t,n)=>{let r=document.createElement(`style`);if(r.media=e,n===void 0)this.container.appendChild(r);else{let e=Gi(this.container.children,n);this.container.insertBefore(r,this.container.children[e])}this.styleElements[e]=r},n),this.keyframesCache=new xr(new er(e.prefix),(e,t,n)=>{this.styleCache.getCache(``);let r=this.styleElements[``].sheet,i=Ii(t,Pi(n));try{r.insertRule(i,r.cssRules.length)}catch{}}),this.fontFaceCache=new xr(new er(e.prefix),(e,t,n)=>{this.styleCache.getCache(``);let r=this.styleElements[``].sheet,i=Li(t,Fi(n));try{r.insertRule(i,r.cssRules.length)}catch{}}),e.container&&(this.container=e.container),e.hydrate&&e.hydrate.length>0){if(!this.container){let t=e.hydrate[0].parentElement;t!=null&&(this.container=t)}for(let r=0;r<e.hydrate.length;r++){let i=e.hydrate[r],a=i.getAttribute(`data-hydrate`);if(a===`font-face`){Ui(this.fontFaceCache,Vi,i.textContent);continue}if(a===`keyframes`){Ui(this.keyframesCache,Bi,i.textContent);continue}let o=i.media?i.media:``;this.styleElements[o]=i;let s=new xr(t,n);s.key=o,Hi(s,zi,i.textContent),this.styleCache.sortedCacheKeys.push(o),this.styleCache.caches[o]=s}}if(!this.container){if(document.head===null)throw Error("No container provided and `document.head` was null");this.container=document.head}}renderStyle(e){return Mi(this.styleCache,e,``,``)}renderFontFace(e){let t=Fi(e);return this.fontFaceCache.addValue(t,e)}renderKeyframes(e){let t=Pi(e);return this.keyframesCache.addValue(t,e)}};function Gi(e,t){let n=0;for(;n<e.length;n++){let r=e[n];if(r.tagName===`STYLE`&&r.media===t)return n}return-1}function Ki(e,t){let n=Ji(e,t);return t.renderStyle(n)}function qi(){return{}}function Ji(e,t){for(let n in e){let r=e[n];if(n===`animationName`&&typeof r!=`string`){e.animationName=t.renderKeyframes(r);continue}if(n===`fontFamily`&&typeof r!=`string`)if(Array.isArray(r)){let n=``;for(let e of r)typeof e==`object`?n+=`${t.renderFontFace(e)},`:typeof e==`string`&&(n+=`${e},`);e.fontFamily=n.slice(0,-1);continue}else if(r===void 0)continue;else{e.fontFamily=t.renderFontFace(r);continue}typeof r==`object`&&r&&Ji(r,t)}return e}var Yi=o((()=>{}));function Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xi.apply(this,arguments)}function Zi(e){e===va&&console.warn(`Styletron Provider is not set up. Defaulting to no-op.`)}function Qi(){let e=_a.useContext(ya);return _a.useContext(xa),_a.useContext(ba),Zi(e),_a.useRef(``),_a.useRef([]),[function(t){return Ki(t,e)}]}function $i({getInitialStyle:e,driver:t,wrapper:n}){function r(r,i){return ua(ea({reducers:[],base:r,driver:t,getInitialStyle:e,wrapper:n},i))}return r}function ea(e,t){return typeof t==`function`?ia(e,t):na(e,t)}function ta(e,t){return typeof t==`function`?aa(e,t):ra(e,t)}function na(e,t){return ca(e,oa(t))}function ra(e,t){return ca(e,sa(t))}function ia(e,t){return la(e,(e,n)=>ha(e,t(n)))}function aa(e,t){return la(e,(e,n)=>ma(e,t(n)))}function oa(e){return{reducer:t=>
9ha(t,e),assignmentCommutative:!0,factory:oa,style:e}}function sa(e){return{reducer:t=>ma(t,e),assignmentCommutative:!0,factory:sa,style:e}}function ca(e,t){if(e.reducers.length===0){let n=t.reducer(e.getInitialStyle());return{reducers:e.reducers,base:e.base,driver:e.driver,wrapper:e.wrapper,getInitialStyle:()=>n}}else{let n=e.reducers[0];if(n.assignmentCommutative===!0&&t.assignmentCommutative===!0){let r=t.reducer(n.style);return{getInitialStyle:e.getInitialStyle,base:e.base,driver:e.driver,wrapper:e.wrapper,reducers:[n.factory(r)].concat(e.reducers.slice(1))}}return la(e,t.reducer)}}function la(e,t){return{getInitialStyle:e.getInitialStyle,base:e.base,driver:e.driver,wrapper:e.wrapper,reducers:[{assignmentCommutative:!1,reducer:t}].concat(e.reducers)}}function ua(e){let{reducers:t,base:n,driver:r,wrapper:i,getInitialStyle:a,ext:o}=e,s=i(_a.forwardRef((e,i)=>{let o=_a.useContext(ya);_a.useContext(xa),_a.useContext(ba),Zi(o);let s=pa(e),c=da(a,t,e);e.$style&&(c=typeof e.$style==`function`?ma(c,e.$style(e)):ma(c,e.$style));let l=r(c,o),u=e.$as?e.$as:n;return s.className=e.className?`${e.className} ${l}`:l,e.$ref&&console.warn("The prop `$ref` has been deprecated. Use `ref` instead. Refs are now forwarded with React.forwardRef."),_a.createElement(u,Xi({},s,{ref:i||e.$ref}))}));return s.__STYLETRON__={base:n,reducers:t,driver:r,wrapper:i,getInitialStyle:a},s}function da(e,t,n){let r=e(),i=t.length;for(;i--;){let e=t[i].reducer;r=e(r,n)}return r}function fa(e){return typeof e==`object`&&!!e}function pa(e){let t={};for(let n in e)n[0]!==`$`&&(t[n]=e[n]);return t}function ma(e,t){let n=ga({},e);for(let r in t){let i=t[r];fa(i)&&fa(e[r])?n[r]=ma(e[r],i):n[r]=i}return n}function ha(e,t){return ga(ga({},e),t)}function ga(e,t){for(let n in t)e[n]=t[n];return e}var _a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea=o((()=>{_a=u(m()),Yi(),va={renderStyle:()=>``,renderKeyframes:()=>``,renderFontFace:()=>``},ya=_a.createContext(va),ba=_a.createContext(!1),xa=_a.createContext(void 0),Sa=ya.Provider,$i({getInitialStyle:qi,driver:Ki,wrapper:e=>e}),Ca=(e,t)=>{let n=e.__STYLETRON__;return ua(ta(n,t))},wa=Ca,Ta=(e,t)=>{let n=e.__STYLETRON__;return ua({getInitialStyle:n.getInitialStyle,base:n.base,driver:n.driver,wrapper:t,reducers:n.reducers})}}));Ea();var Da=function(e,t){var n=arguments;if(t==null||!It.call(t,`css`))return _.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Bt,i[1]=Rt(e,t);for(var a=2;a<r;a++)i[a]=n[a];return _.createElement.apply(null,i)};(function(e){var t;(function(e){})(t||=e.JSX||={})})(Da||={});var Oa=At(function(e,t){var n=e.styles,r=Ct([n],void 0,_.useContext(jt)),i=_.useRef();return Dt(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),Dt(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&ct(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function ka(){return Ct([...arguments])}function Aa(){var e=ka.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var ja=({fontFaces:e})=>P(Oa,{styles:[ka(e.map(e=>{let{family:t,weight:n,weightRange:r,url:i,style:a,unicodeRange:o}=e,s=r||n;return` 10 @font-face { 11 font-family: ${t}; 12 src: url(${i}) format("woff2"); 13 font-display: swap; 14 ${a?`font-style: ${a};`:``} 15 ${s?`font-weight: ${s};`:``} 16 ${o?`unicode-range: ${o};`:``} 17 } 18 `}))]}),Ma=({fontSources:e})=>P($n,{children:Object.entries(e).map(([e,t])=>P(`link`,{id:e,rel:`stylesheet`,href:t},e))});Promise.withResolvers===void 0&&(Promise.withResolvers=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return{resolve:e,reject:t,promise:n}});function Na(e){let t=document.cookie.match(`\\b${e}=([^;]*)\\b`);return t?t[1]:void 0}function Pa(){let e=`testData`;try{let{localStorage:t}=window;t.setItem(e,e),t.getItem(e),t.removeItem(e)}catch{return!1}return!0}function Fa(e){return Array.isArray(e)&&e.length>0&&e.every(e=>typeof e==`string`&&e.trim().length>0)}function Ia(e){return typeof structuredClone==`function`?structuredClone(e):JSON.parse(JSON.stringify(e))}function La(e){return Object.freeze(e),Array.isArray(e)?e.forEach(e
18=>{typeof e==`object`&&e&&!Object.isFrozen(e)&&La(e)}):Object.values(e).forEach(e=>{typeof e==`object`&&e&&!Object.isFrozen(e)&&La(e)}),e}var Ra=(()=>{let e=window.__streamlit;if(e)return La(Ia(e))})(),za={get BACKEND_BASE_URL(){return Ra?.BACKEND_BASE_URL},get HOST_CONFIG_BASE_URL(){return Ra?.HOST_CONFIG_BASE_URL},get DOWNLOAD_ASSETS_BASE_URL(){return Ra?.DOWNLOAD_ASSETS_BASE_URL},get MAIN_PAGE_BASE_URL(){return Ra?.MAIN_PAGE_BASE_URL},get CUSTOM_COMPONENT_CLIENT_ID(){return Ra?.CUSTOM_COMPONENT_CLIENT_ID},get LIGHT_THEME(){return Ra?.LIGHT_THEME},get DARK_THEME(){return Ra?.DARK_THEME},get ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION(){return Ra?.ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION},get HOST_CONFIG(){return Ra?.HOST_CONFIG}};function I(e){return e!=null}function Ba(e){return e==null}var Va=()=>window.location.hostname===`localhost`||window.location.hostname===`127.0.0.1`,Ha=`NO_SCRIPT_RUN_ID`,Ua=s(((e,t)=>{t.exports=n;function n(e,t){for(var n=Array(arguments.length-1),r=0,i=2,a=!0;i<arguments.length;)n[r++]=arguments[i++];return new Promise(function(i,o){n[r]=function(e){if(a)if(a=!1,e)o(e);else{for(var t=Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];i.apply(null,t)}};try{e.apply(t||null,n)}catch(e){a&&(a=!1,o(e))}})}})),Wa=s((e=>{var t=e;t.length=function(e){var t=e.length;if(!t)return 0;for(;t>0&&e.charAt(t-1)===`=`;)--t;return Math.floor(t*3/4)};for(var n=Array(64),r=Array(123),i=0;i<64;)r[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r[45]=62,r[95]=63,t.encode=function(e,t,r){for(var i=null,a=[],o=0,s=0,c;t<r;){var l=e[t++];switch(s){case 0:a[o++]=n[l>>2],c=(l&3)<<4,s=1;break;case 1:a[o++]=n[c|l>>4],c=(l&15)<<2,s=2;break;case 2:a[o++]=n[c|l>>6],a[o++]=n[l&63],s=0;break}o>8191&&((i||=[]).push(String.fromCharCode.apply(String,a)),o=0)}return s&&(a[o++]=n[c],a[o++]=61,s===1&&(a[o++]=61)),i?(o&&i.push(String.fromCharCode.apply(String,a.slice(0,o))),i.join(``)):String.fromCharCode.apply(String,a.slice(0,o))};var a=`invalid encoding`;t.decode=function(e,t,n){for(var i=n,o=0,s,c=0;c<e.length;){var l=e.charCodeAt(c++);if(l===61&&o>1)break;if((l=r[l])===void 0)throw Error(a);switch(o){case 0:s=l,o=1;break;case 1:t[n++]=s<<2|(l&48)>>4,s=l,o=2;break;case 2:t[n++]=(s&15)<<4|(l&60)>>2,s=l,o=3;break;case 3:t[n++]=(s&3)<<6|l,o=0;break}}if(o===1)throw Error(a);return n-i};var o=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,s=/[-_]/,c=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==)?|[A-Za-z0-9_-]{3}=?)?$/;t.test=function(e){return o.test(e)||s.test(e)&&c.test(e)}})),Ga=s(((e,t)=>{t.exports=n;function n(){this._listeners={}}n.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},n.prototype.off=function(e,t){if(e===void 0)this._listeners={};else if(t===void 0)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r<n.length;)n[r].fn===t?n.splice(r,1):++r;return this},n.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<t.length;)t[r].fn.apply(t[r++].ctx,n)}return this}})),Ka=s(((e,t)=>{t.exports=n(n);function n(e){return typeof Float32Array<`u`?(function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=n[3]===128;function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3]}function a(e,r,i){t[0]=e,r[i]=n[3],r[i+1]=n[2],r[i+2]=n[1],r[i+3]=n[0]}e.writeFloatLE=r?i:a,e.writeFloatBE=r?a:i;function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function s(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.readFloatLE=r?o:s,e.readFloatBE=r?s:o})():(function(){function t(e,t,n,r){var i=+(t<0);if(i&&(t=-t),t===0)e(1/t>0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var a=Math.floor(Math.log(t)/Math.LN2),o=Math.round(t*2**-a*8388608)&8388607;e((i<<31|a+127<<23|o)>>>0,n,r)}}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,i);function n(e,t,n){var r=e(t,n),i=(r>>31)*2+1,a=r>>>23&255,o=r&8388607;return a===255?o?NaN:i*(1/0):a===0?i*1401298464324817e-60*o:i*2**(a-150)*(o+8388608)}e.readFloatLE=n.bind(null,a),e.readFloatBE=n.bind(null,o)})(),typeof Float64Array<`u`?(function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=n[7]===128;
18function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3],r[i+4]=n[4],r[i+5]=n[5],r[i+6]=n[6],r[i+7]=n[7]}function a(e,r,i){t[0]=e,r[i]=n[7],r[i+1]=n[6],r[i+2]=n[5],r[i+3]=n[4],r[i+4]=n[3],r[i+5]=n[2],r[i+6]=n[1],r[i+7]=n[0]}e.writeDoubleLE=r?i:a,e.writeDoubleBE=r?a:i;function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.readDoubleLE=r?o:s,e.readDoubleBE=r?s:o})():(function(){function t(e,t,n,r,i,a){var o=+(r<0);if(o&&(r=-r),r===0)e(0,i,a+t),e(1/r>0?0:2147483648,i,a+n);else if(isNaN(r))e(0,i,a+t),e(2146959360,i,a+n);else if(r>17976931348623157e292)e(0,i,a+t),e((o<<31|2146435072)>>>0,i,a+n);else{var s;if(r<22250738585072014e-324)s=r/5e-324,e(s>>>0,i,a+t),e((o<<31|s/4294967296)>>>0,i,a+n);else{var c=Math.floor(Math.log(r)/Math.LN2);c===1024&&(c=1023),s=r*2**-c,e(s*4503599627370496>>>0,i,a+t),e((o<<31|c+1023<<20|s*1048576&1048575)>>>0,i,a+n)}}}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,i,4,0);function n(e,t,n,r,i){var a=e(r,i+t),o=e(r,i+n),s=(o>>31)*2+1,c=o>>>20&2047,l=4294967296*(o&1048575)+a;return c===2047?l?NaN:s*(1/0):c===0?s*5e-324*l:s*2**(c-1075)*(l+4503599627370496)}e.readDoubleLE=n.bind(null,a,0,4),e.readDoubleBE=n.bind(null,o,4,0)})(),e}function r(e,t,n){t[n]=e&255,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function i(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=e&255}function a(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}})),qa=s(((e,t)=>{t.exports=n;function n(e){try{if(typeof f!=`function`)return null;var t=f(e);return t&&(t.length||Object.keys(t).length)?t:null}catch{return null}}})),Ja=s((e=>{var t=e,n=`�`;t.length=function(e){for(var t=0,n=0,r=0;r<e.length;++r)n=e.charCodeAt(r),n<128?t+=1:n<2048?t+=2:(n&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320?(++r,t+=4):t+=3;return t};function r(e,t,r,i){for(var a=t;a<r;){var o=e[a++];if(o<=127)i+=String.fromCharCode(o);else if(o>=192&&o<224){var s=(o&31)<<6|e[a++]&63;i+=s>=128?String.fromCharCode(s):n}else if(o>=224&&o<240){var c=(o&15)<<12|(e[a++]&63)<<6|e[a++]&63;i+=c>=2048?String.fromCharCode(c):n}else if(o>=240){var l=(o&7)<<18|(e[a++]&63)<<12|(e[a++]&63)<<6|e[a++]&63;l<65536||l>1114111?i+=n:(l-=65536,i+=String.fromCharCode(55296+(l>>10)),i+=String.fromCharCode(56320+(l&1023)))}}return i}t.read=function(e,t,n){if(n-t<1)return``;for(var i=``,a=t,o,s,c,l,u,d,f,p;a+7<n;a+=8){if(o=e[a],s=e[a+1],c=e[a+2],l=e[a+3],u=e[a+4],d=e[a+5],f=e[a+6],p=e[a+7],(o|s|c|l|u|d|f|p)&128)return r(e,a,n,i);i+=String.fromCharCode(o,s,c,l,u,d,f,p)}for(;a<n;++a){if(o=e[a],o&128)return r(e,a,n,i);i+=String.fromCharCode(o)}return i},t.write=function(e,t,n){for(var r=n,i,a,o=0;o<e.length;++o)i=e.charCodeAt(o),i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)==55296&&((a=e.charCodeAt(o+1))&64512)==56320?(i=65536+((i&1023)<<10)+(a&1023),++o,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128);return n-r}})),Ya=s(((e,t)=>{t.exports=n;function n(e,t,n){var r=n||8192,i=r>>>1,a=null,o=r;return function(n){if(n<1||n>i)return e(n);o+n>r&&(a=e(r),o=0);var s=t.call(a,o,o+=n);return o&7&&(o=(o|7)+1),s}}})),Xa=s(((e,t)=>{t.exports=r;var n=Qa();function r(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=r.zero=new r(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var a=r.zeroHash=`\0\0\0\0\0\0\0\0`;r.fromNumber=function(e){if(e===0)return i;var t=e<0;t&&(e=-e);var n=e>>>0,a=(e-n)/4294967296>>>0;return t&&(a=~a>>>0,n=~n>>>0,++n>4294967295&&(n=0,++a>4294967295&&(a=0))),new r(n,a)},r.from=function(e){if(typeof e==`number`)return r.fromNumber(e);if(n.isString(e))if(n.Long)e=n.Long.fromString(e);else return r.fromNumber(parseInt(e,10));return e.low||e.high?new r(e.low>>>0,e.high>>>0):i},r.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+n*4294967296)}return this.lo+this.hi*4294967296},r.prototype.toLong=function(e){return n.Long?new n.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}};var o=String.prototype.charCodeAt;
vendor: 4,532 bytes, line 18
18r.fromHash=function(e){return e===a?i:new r((o.call(e,0)|o.call(e,1)<<8|o.call(e,2)<<16|o.call(e,3)<<24)>>>0,(o.call(e,4)|o.call(e,5)<<8|o.call(e,6)<<16|o.call(e,7)<<24)>>>0)},r.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},r.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},r.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},r.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?t===0?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}})),Za=s(((e,t)=>{(function(n,r){function i(e){return e.default||e}typeof define==`function`&&define.amd?define([],function(){var e={};return r(e),i(e)}):typeof e==`object`?(r(e),typeof t==`object`&&(t.exports=i(e))):(function(){var e={};r(e),n.Long=i(e)})()})(typeof globalThis<`u`?globalThis:typeof self<`u`?self:e,function(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function n(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}n.prototype.__isLong__,Object.defineProperty(n.prototype,`__isLong__`,{value:!0});function r(e){return(e&&e.__isLong__)===!0}function i(e){var t=Math.clz32(e&-e);return e?31-t:t}n.isLong=r;var a={},o={};function s(e,t){var n,r,i;return t?(e>>>=0,(i=0<=e&&e<256)&&(r=o[e],r)?r:(n=l(e,0,!0),i&&(o[e]=n),n)):(e|=0,(i=-128<=e&&e<128)&&(r=a[e],r)?r:(n=l(e,e<0?-1:0,!1),i&&(a[e]=n),n))}n.fromInt=s;function c(e,t){if(isNaN(e))return t?b:y;if(t){if(e<0)return b;if(e>=g)return T}else{if(e<=-_)return E;if(e+1>=_)return w}return e<0?c(-e,t).neg():l(e%h|0,e/h|0,t)}n.fromNumber=c;function l(e,t,r){return new n(e,t,r)}n.fromBits=l;var u=Math.pow;function d(e,t,n){if(e.length===0)throw Error(`empty string`);if(typeof t==`number`?(n=t,t=!1):t=!!t,e===`NaN`||e===`Infinity`||e===`+Infinity`||e===`-Infinity`)return t?b:y;if(n||=10,n<2||36<n)throw RangeError(`radix`);var r;if((r=e.indexOf(`-`))>0)throw Error(`interior hyphen`);if(r===0)return d(e.substring(1),t,n).neg();for(var i=c(u(n,8)),a=y,o=0;o<e.length;o+=8){var s=Math.min(8,e.length-o),l=parseInt(e.substring(o,o+s),n);if(s<8){var f=c(u(n,s));a=a.mul(f).add(c(l))}else a=a.mul(i),a=a.add(c(l))}return a.unsigned=t,a}n.fromString=d;function f(e,t){return typeof e==`number`?c(e,t):typeof e==`string`?d(e,t):l(e.low,e.high,typeof t==`boolean`?t:e.unsigned)}n.fromValue=f;var p=65536,m=1<<24,h=p*p,g=h*h,_=g/2,v=s(m),y=s(0);n.ZERO=y;var b=s(0,!0);n.UZERO=b;var x=s(1);n.ONE=x;var S=s(1,!0);n.UONE=S;var C=s(-1);n.NEG_ONE=C;var w=l(-1,2147483647,!1);n.MAX_VALUE=w;var T=l(-1,-1,!0);n.MAX_UNSIGNED_VALUE=T;var E=l(0,-2147483648,!1);n.MIN_VALUE=E;var D=n.prototype;D.toInt=function(){return this.unsigned?this.low>>>0:this.low},D.toNumber=function(){return this.unsigned?(this.high>>>0)*h+(this.low>>>0):this.high*h+(this.low>>>0)},D.toString=function(e){if(e||=10,e<2||36<e)throw RangeError(`radix`);if(this.isZero())return`0`;if(this.isNegative())if(this.eq(E)){var t=c(e),n=this.div(t),r=n.mul(t).sub(this);return n.toString(e)+r.toInt().toString(e)}else return`-`+this.neg().toString(e);for(var i=c(u(e,6),this.unsigned),a=this,o=``;;){var s=a.div(i),l=(a.sub(s.mul(i)).toInt()>>>0).toString(e);if(a=s,a.isZero())return l+o;for(;l.length<6;)l=`0`+l;o=``+l+o}},D.getHighBits=function(){return this.high},D.getHighBitsUnsigned=function(){return this.high>>>0}
18,D.getLowBits=function(){return this.low},D.getLowBitsUnsigned=function(){return this.low>>>0},D.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var e=this.high==0?this.low:this.high,t=31;t>0&&!(e&1<<t);t--);return this.high==0?t+1:t+33},D.isSafeInteger=function(){var e=this.high>>21;return e?this.unsigned?!1:e===-1&&!(this.low===0&&this.high===-2097152):!0},D.isZero=function(){return this.high===0&&this.low===0},D.eqz=D.isZero,D.isNegative=function(){return!this.unsigned&&this.high<0},D.isPositive=function(){return this.unsigned||this.high>=0},D.isOdd=function(){return(this.low&1)==1},D.isEven=function(){return(this.low&1)==0},D.equals=function(e){return r(e)||(e=f(e)),this.unsigned!==e.unsigned&&this.high>>>31==1&&e.high>>>31==1?!1:this.high===e.high&&this.low===e.low},D.eq=D.equals,D.notEquals=function(e){return!this.eq(e)},D.neq=D.notEquals,D.ne=D.notEquals,D.lessThan=function(e){return this.comp(e)<0},D.lt=D.lessThan,D.lessThanOrEqual=function(e){return this.comp(e)<=0},D.lte=D.lessThanOrEqual,D.le=D.lessThanOrEqual,D.greaterThan=function(e){return this.comp(e)>0},D.gt=D.greaterThan,D.greaterThanOrEqual=function(e){return this.comp(e)>=0},D.gte=D.greaterThanOrEqual,D.ge=D.greaterThanOrEqual,D.compare=function(e){if(r(e)||(e=f(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},D.comp=D.compare,D.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(x)},D.neg=D.negate,D.add=function(e){r(e)||(e=f(e));var t=this.high>>>16,n=this.high&65535,i=this.low>>>16,a=this.low&65535,o=e.high>>>16,s=e.high&65535,c=e.low>>>16,u=e.low&65535,d=0,p=0,m=0,h=0;return h+=a+u,m+=h>>>16,h&=65535,m+=i+c,p+=m>>>16,m&=65535,p+=n+s,d+=p>>>16,p&=65535,d+=t+o,d&=65535,l(m<<16|h,d<<16|p,this.unsigned)},D.subtract=function(e){return r(e)||(e=f(e)),this.add(e.neg())},D.sub=D.subtract,D.multiply=function(e){if(this.isZero())return this;if(r(e)||(e=f(e)),t)return l(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?b:y;if(this.eq(E))return e.isOdd()?E:y;if(e.eq(E))return this.isOdd()?E:y;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(v)&&e.lt(v))return c(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,i=this.high&65535,a=this.low>>>16,o=this.low&65535,s=e.high>>>16,u=e.high&65535,d=e.low>>>16,p=e.low&65535,m=0,h=0,g=0,_=0;return _+=o*p,g+=_>>>16,_&=65535,g+=a*p,h+=g>>>16,g&=65535,g+=o*d,h+=g>>>16,g&=65535,h+=i*p,m+=h>>>16,h&=65535,h+=a*d,m+=h>>>16,h&=65535,h+=o*u,m+=h>>>16,h&=65535,m+=n*p+i*d+a*u+o*s,m&=65535,l(g<<16|_,m<<16|h,this.unsigned)},D.mul=D.multiply,D.divide=function(e){if(r(e)||(e=f(e)),e.isZero())throw Error(`division by zero`);if(t)return!this.unsigned&&this.high===-2147483648&&e.low===-1&&e.high===-1?this:l((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(this.isZero())return this.unsigned?b:y;var n,i,a;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return b;if(e.gt(this.shru(1)))return S;a=b}else{if(this.eq(E))return e.eq(x)||e.eq(C)?E:e.eq(E)?x:(n=this.shr(1).div(e).shl(1),n.eq(y)?e.isNegative()?x:C:(i=this.sub(e.mul(n)),a=n.add(i.div(e)),a));if(e.eq(E))return this.unsigned?b:y;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();a=y}for(i=this;i.gte(e);){n=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(n)/Math.LN2),s=o<=48?1:u(2,o-48),d=c(n),p=d.mul(e);p.isNegative()||p.gt(i);)n-=s,d=c(n,this.unsigned),p=d.mul(e);d.isZero()&&(d=x),a=a.add(d),i=i.sub(p)}return a},D.div=D.divide,D.modulo=function(e){return r(e)||(e=f(e)),t?l((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},D.mod=D.modulo,D.rem=D.modulo,D.not=function(){return l(~this.low,~this.high,this.unsigned)},D.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},D.clz=D.countLeadingZeros,D.countTrailingZeros=function(){return this.low?i(this.low):i(this.high)+32},D.ctz=D.countTrailingZeros,D.and=function(e){return r(e)||(e=f(e)),l(this.low&e.low,this.high&e.high,this.unsigned)},D.or=function(e){return r(e)||(e=f(e)),l(this.low|e.low,this.high|e.high,this.unsigned)},D.xor=function(e){return r(e)||(e=f(e)),l(this.low^e.low,this.high^e.high,this.unsigned)},D.shiftLeft=function(e){return r(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):l(0,this.low<<e-32,this.unsigned)},D.shl=D.shiftLeft,D.shiftRight=function(e){return r(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):l(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},D.shr=D.shiftRight,D.shiftRightUnsigned=function(e){return r(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):l(e===32?this.high:this.high>>>e-32,0,this.unsigned)},D.shru=D.shiftRightUnsigned,D.shr_u=D.shiftRightUnsigned,D.rotateLeft=function(e){var t;return r(e)&&(e=e.toInt()),(e&=63)==0?this:e===32?l(this.high,this.low,this.unsigned):e<32?(t=32-e,l(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(e-=32,t=32-e,l(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},D.rotl=D.rotateLeft,D.rotateRight=function(e){var t;return r(e)&&(e=e.toInt()),(e&=63)==0?this:e===32?l(this.high,this.low,this.unsigned):e<32?(t=32-e,l(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(e-=32,t=32-e,l(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},D.rotr=D.rotateRight,D.toSigned=function(){return this.unsigned?l(this.low,this.high,!1):this},D.toUnsigned=function(){return this.unsigned?this:l(this.low,this.high,!0)},D.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},D.toBytesLE=function(){var e=this.high,t=this.low;return[t&255,t>>>8&255,t>>>16&255,t>>>24,e&255,e>>
18>8&255,e>>>16&255,e>>>24]},D.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255]},n.fromBytes=function(e,t,r){return r?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)},typeof BigInt==`function`&&(n.fromBigInt=function(e,t){return l(Number(BigInt.asIntN(32,e)),Number(BigInt.asIntN(32,e>>BigInt(32))),t)},n.fromValue=function(e,t){return typeof e==`bigint`?n.fromBigInt(e,t):f(e,t)},D.toBigInt=function(){var e=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|e}),e.default=n})})),Qa=s((e=>{var t=e;t.asPromise=Ua(),t.base64=Wa(),t.EventEmitter=Ga(),t.float=Ka(),t.inquire=qa(),t.utf8=Ja(),t.pool=Ya(),t.LongBits=Xa(),t.isNode=!!(typeof global<`u`&&global&&global.process&&global.process.versions&&global.process.versions.node),t.global=t.isNode&&global||typeof window<`u`&&window||typeof self<`u`&&self||e,t.emptyArray=Object.freeze?Object.freeze([]):[],t.emptyObject=Object.freeze?Object.freeze({}):{},t.isInteger=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e},t.isString=function(e){return typeof e==`string`||e instanceof String},t.isObject=function(e){return e&&typeof e==`object`},t.isset=t.isSet=function(e,t){var n=e[t];return n!=null&&e.hasOwnProperty(t)?typeof n!=`object`||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1},t.Buffer=(function(){try{var e=t.global.Buffer;return e.prototype.utf8Write?e:null}catch{return null}})(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(e){return typeof e==`number`?t.Buffer?t._Buffer_allocUnsafe(e):new t.Array(e):t.Buffer?t._Buffer_from(e):typeof Uint8Array>`u`?e:new Uint8Array(e)},t.Array=typeof Uint8Array<`u`?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||(function(){try{var e=Za();return e&&e.isLong?e:null}catch{return null}})(),t.key2Re=/^(?:true|false|0|1)$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\x00-\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,n){var r=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(r.lo,r.hi,n):r.toNumber(!!n)},t.longFromKey=function(e,n){return t.key64Re.test(e)&&!t.key32Re.test(e)?t.longFromHash(e,n):e},t.boolFromKey=function(e){return e===`true`||e===`1`};function n(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;++i)(e[r[i]]===void 0||!n)&&r[i]!==`__proto__`&&(e[r[i]]=t[r[i]]);return e}t.merge=n,t.nestingLimit=32,t.recursionLimit=100,t.makeProp=function(e,t,n){Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:n===void 0?!0:n,configurable:!0,writable:!0})},t.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)};function r(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,`message`,{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,`stack`,{value:Error().stack||``}),r&&n(this,r)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+`: `+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}t.newError=r,t.ProtocolError=r(`ProtocolError`),t.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(t[e[n]]===1&&this[e[n]]!==void 0&&this[e[n]]!==null)return e[n]}},t.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},t.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},t._configure=function(){var e=t.Buffer;if(!e){t._Buffer_from=t._Buffer_allocUnsafe=null;return}t._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},t._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}}})),$a=s(((e,t)=>{t.exports=u;var n=Qa(),r,i=n.LongBits,a=n.base64,o=n.utf8;function s(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function c(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function u(){this.len=0,this.head=new s(c,0,0),this.tail=this.head,this.states=null}var d=function(){return n.Buffer?function(){return(u.create=function(){return new r})()}:function(){return new u}};u.create=d(),u.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(u.alloc=n.pool(u.alloc,n.Array.prototype.subarray)),u.prototype._push=function(e,t,n){return this.tail=this.tail.next=new s(e,t,n),this.len+=t,this};function f(e,t,n){t[n]=e&255}function p(e,t,n){for(var r=0;r<e.length;)t[n++]=e.charCodeAt(r++)}function m(e,t,n){for(;e>127;)t[n++]=e&127|128,e>>>=7;t[n]=e}function h(e,t){this.len=e,this.next=void 0,this.val=t}h.prototype=Object.create(s.prototype),h.prototype.fn=m,u.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},u.prototype.int32=function(e){return e<0?this._push(g,10,i.fromNumber(e)):this.uint32(e)},u.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function g(e,t,n){for(;e.hi;)t[n++]=e.lo&127|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=e.lo&127|128,e.lo>>>=7;t[n++]=e.lo}u.prototype.uint64=function(e){var t=i.from(e);return this._push(g,t.length(),t)},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(g,t.length(),t)},u.prototype.bool=function(e){return this._push(f,1,+!!e)};function _(e,t,n){t[n]=e&255,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}u.prototype.fixed32=function(e){return this._push(_,4,e>>>0)},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(e){var t=i.from(e);return this._push(_,4,t.lo)._push(_,4,t.hi)},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},u.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var v=n.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r<e.length;++r)t[n+r]=e[r]};u.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(f,1,0);if(n.isString(e)){var r=u.alloc(t=a.length(e));a.decode(e,r,0),e=r}return this.uint32(t)._push(v,t,e)},u.prototype.raw=function(e){var t=e.length>>>0;return t?this._push(v,t,e):this},u.prototype.string=function(e){var t=o.length(e);return t?this.uint32(t)._push(t===e.length?p:o.write,t,e):this._push(f,1,0)},u.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new s(c,0,0),this.len=0,this},u.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new s(c,0,0),this.len=0),this},u.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},u.prototype.finish=function(){return this.finishInto(this.constructor.alloc(this.len),0)},u.prototype.finishInto=function(e,t){t===void 0&&(t=0);for(var n=this.head.next,r=t;n;)n.fn(n.val,e,r),r+=n.len,n=n.next;return e},u._configure=function(e){r=e,u.create=d(),r._configure()}})),eo=s(((e,t)=>{t.exports=i;var n=$a();(i.prototype=Object.create(n.prototype)).constructor=i;var r=Qa();function i(){n.call(this)}i._configure=function(){i.alloc=r._Buffer_allocUnsafe,i.writeBytesBuffer=r.Buffer&&r.Buffer.prototype instanceof Uint8Array&&r.Buffer.prototype.set.name===`set`?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r<e.length;)t[n++]=e[r++]}},i.prototype.bytes=function(e){r.isString(e)&&(e=r._Buffer_from(e,`base64`));var t=e.length>>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.raw=function(e){var t=e.length>>>0;return t?this._push(i.writeBytesBuffer,t,e):this};function a(e,t,n){for(var r=0;r<e.length;)t[n++]=e.charCodeAt(r++)}function o(e,t,n){e.length<40?r.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i.prototype.string=function(e){var t=r.Buffer.byteLength(e);return this.uint32(t),t&&this._push(t===e.length&&t<40?a:o,t,e),this},i._configure()})),to=s(((e,t)=>{t.exports=s;var n=Qa(),r,i=n.LongBits,a=n.utf8;function o(e,t){return RangeError(`index out of range: `+e.pos+` + `+(t||1)+` > `+e.len)}function s(e){this.buf=e,this.pos=0,this.len=e.length}var c=typeof Uint8Array<`u`?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new s(e);throw Error(`illegal buffer`)}:function(e){if(Array.isArray(e))return new s(e);throw Error(`illegal buffer`)},l=function(){return n.Buffer?function(e){return(s.create=function(e){return n.Buffer.isBuffer(e)?new r(e):c(e)})(e)}:c};s.create=l(),s.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,s.prototype.raw=function(e,t){return Array.isArray(this.buf)?this.buf.slice(e,t):e===t?new this.buf.constructor(0):this._slice.call(this.buf,e,t)}
18,s.prototype.uint32=function(){var e=this.buf,t=this.pos,n=(e[t]&127)>>>0;if(e[t++]<128||(n=(n|(e[t]&127)<<7)>>>0,e[t++]<128)||(n=(n|(e[t]&127)<<14)>>>0,e[t++]<128)||(n=(n|(e[t]&127)<<21)>>>0,e[t++]<128)||(n=(n|(e[t]&15)<<28)>>>0,e[t++]<128))return this.pos=t,n;for(var r=0;r<5;++r){if(t>=this.len)throw this.pos=t,o(this);if(e[t++]<128)return this.pos=t,n}throw this.pos=t,Error(`invalid varint encoding`)},s.prototype.tag=function(){var e=this.buf,t=this.pos,n=(e[t]&127)>>>0;if(e[t++]<128||(n=(n|(e[t]&127)<<7)>>>0,e[t++]<128)||(n=(n|(e[t]&127)<<14)>>>0,e[t++]<128)||(n=(n|(e[t]&127)<<21)>>>0,e[t++]<128))return this.pos=t,n;if(n=(n|(e[t]&15)<<28)>>>0,e[t]<128&&!(e[t]&112))return this.pos=t+1,n;throw this.pos=t+1,Error(`invalid tag encoding`)},s.prototype.int32=function(){return this.uint32()|0},s.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function u(){var e=new i(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(this.buf[this.pos]&127)<<28)>>>0,e.hi=(e.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(this.buf[this.pos++]&127)<<t*7)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw o(this);if(e.hi=(e.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return e}throw Error(`invalid varint encoding`)}s.prototype.bool=function(){for(var e=!1,t,n=0;n<10;++n){if(this.pos>=this.len)throw o(this);if(t=this.buf[this.pos++],t&127&&(e=!0),t<128)return e}throw Error(`invalid varint encoding`)};function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}s.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return d(this.buf,this.pos+=4)},s.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return d(this.buf,this.pos+=4)|0};function f(){if(this.pos+8>this.len)throw o(this,8);return new i(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}s.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},s.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},s.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw o(this,e);return this.pos=n,this.raw(t,n)},s.prototype.string=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw o(this,e);return this.pos=n,a.read(this.buf,t,n)},s.prototype.skip=function(e){if(typeof e==`number`){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do if(this.pos>=this.len)throw o(this);while(this.buf[this.pos++]&128);return this},s.recursionLimit=n.recursionLimit,s.prototype.skipType=function(e,t,n){if(t===void 0&&(t=0),t>s.recursionLimit)throw Error(`max depth exceeded`);if(n===0)throw Error(`illegal tag: field number 0`);switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;;){var r=this.tag(),i=r>>>3;if(e=r&7,!i)throw Error(`illegal tag: field number 0`);if(e===4){if(n!==void 0&&i!==n)throw Error(`invalid end group tag`);break}this.skipType(e,t+1,i)}break;case 5:this.skip(4);break;default:throw Error(`invalid wire type `+e+` at offset `+this.pos)}return this},s._configure=function(e){r=e,s.create=l(),r._configure();var t=n.Long?`toLong`:`toNumber`;n.merge(s.prototype,{int64:function(){return u.call(this)[t](!1)},uint64:function(){return u.call(this)[t](!0)},sint64:function(){return u.call(this).zzDecode()[t](!1)},fixed64:function(){return f.call(this)[t](!0)},sfixed64:function(){return f.call(this)[t](!1)}})}})),no=s(((e,t)=>{t.exports=i;var n=to();(i.prototype=Object.create(n.prototype)).constructor=i;var r=Qa();function i(e){n.call(this,e)}i._configure=function(){r.Buffer&&(i.prototype._slice=r.Buffer.prototype.slice)},i.prototype.raw=function(e,t){return e===t?r.Buffer.alloc(0):this._slice.call(this.buf,e,t)},i.prototype.string=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw RangeError(`index out of range: `+this.pos+` + `+e+` > `+this.len);return this.pos=n,this.buf.utf8Slice?this.buf.utf8Slice(t,n):this.buf.toString(`utf-8`,t,n)},i._configure()})),ro=s(((e,t)=>{t.exports=r;var n=Qa();(r.prototype=Object.create(n.EventEmitter.prototype)).constructor=r;function r(e,t,r){if(typeof e!=`function`)throw TypeError(`rpcImpl must be a function`);
18n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}r.prototype.rpcCall=function e(t,r,i,a,o){if(!a)throw TypeError(`request must be specified`);var s=this;if(!o)return n.asPromise(e,s,t,r,i,a);if(!s.rpcImpl){setTimeout(function(){o(Error(`already ended`))},0);return}try{return s.rpcImpl(t,r[s.requestDelimited?`encodeDelimited`:`encode`](a).finish(),function(e,n){if(e)return s.emit(`error`,e,t),o(e);if(n===null){s.end(!0);return}if(!(n instanceof i))try{n=i[s.responseDelimited?`decodeDelimited`:`decode`](n)}catch(e){return s.emit(`error`,e,t),o(e)}return s.emit(`data`,n,t),o(null,n)})}catch(e){s.emit(`error`,e,t),setTimeout(function(){o(e)},0);return}},r.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit(`end`).off()),this}})),io=s((e=>{var t=e;t.Service=ro()})),ao=s(((e,t)=>{t.exports={}})),oo=s((e=>{var t=e;t.build=`minimal`,t.Writer=$a(),t.BufferWriter=eo(),t.Reader=to(),t.BufferReader=no(),t.util=Qa(),t.rpc=io(),t.roots=ao(),t.configure=n;function n(){t.util._configure(),t.Writer._configure(t.BufferWriter),t.Reader._configure(t.BufferReader)}n()})),L=u(s(((e,t)=>{t.exports=oo()}))(),1),R=L.default.Reader,z=L.default.Writer,B=L.default.util,V=L.default.roots.default||(L.default.roots.default={}),so=V.Alert=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.body=``,e.prototype.format=0,e.prototype.icon=``,e.prototype.widthConfig=null,e.prototype.title=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.body!=null&&Object.hasOwnProperty.call(e,`body`)&&t.uint32(10).string(e.body),e.format!=null&&Object.hasOwnProperty.call(e,`format`)&&t.uint32(16).int32(e.format),e.icon!=null&&Object.hasOwnProperty.call(e,`icon`)&&t.uint32(26).string(e.icon),e.widthConfig!=null&&Object.hasOwnProperty.call(e,`widthConfig`)&&V.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(34).fork()).ldelim(),e.title!=null&&Object.hasOwnProperty.call(e,`title`)&&t.uint32(42).string(e.title),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Alert,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.body=s:delete o.body;continue;case 2:if(a!==0)break;(s=e.int32())?o.format=s:delete o.format;continue;case 3:if(a!==2)break;(s=e.string()).length?o.icon=s:delete o.icon;continue;case 4:if(a!==2)break;o.widthConfig=V.streamlit.WidthConfig.decode(e,e.uint32(),void 0,r+1,o.widthConfig);continue;case 5:if(a!==2)break;(s=e.string()).length?o.title=s:delete o.title;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Alert)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Alert;if(e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=String(e.body)),e.format!==0&&(typeof e.format!=`string`||V.Alert.Format[e.format]!==0))switch(e.format){default:if(typeof e.format==`number`){n.format=e.format;break}break;case`UNUSED`:case 0:n.format=0;break;case`ERROR`:case 1:n.format=1;break;case`WARNING`:case 2:n.format=2;break;case`INFO`:case 3:n.format=3;break;case`SUCCESS`:case 4:n.format=4;break}if(e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=String(e.icon)),e.widthConfig!=null){if(typeof e.widthConfig!=`object`)throw TypeError(`.Alert.widthConfig: object expected`);n.widthConfig=V.streamlit.WidthConfig.fromObject(e.widthConfig,t+1)}return e.title!=null&&(typeof e.title!=`string`||e.title.length)&&(n.title=String(e.title)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.body=``,n.format=t.enums===String?`UNUSED`:0,n.icon=``,n.widthConfig=null,n.title=``),e.body!=null&&e.hasOwnProperty(`body`)&&(n.body=e.body),e.format!=null&&e.hasOwnProperty(`format`)&&(n.format=t.enums===String?V.Alert.Format[e.format]===void 0?e.format:V.Alert.Format[e.format]:e.format),e.icon!=null&&e.hasOwnProperty(`icon`)&&(n.icon=e.icon),e.widthConfig!=null&&e.hasOwnProperty(`widthConfig`)&&(n.widthConfig=V.streamlit.WidthConfig.toObject(e.widthConfig,t)),e.t
18itle!=null&&e.hasOwnProperty(`title`)&&(n.title=e.title),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Alert`},e.Format=(function(){let e={},t=Object.create(e);return t[e[0]=`UNUSED`]=0,t[e[1]=`ERROR`]=1,t[e[2]=`WARNING`]=2,t[e[3]=`INFO`]=3,t[e[4]=`SUCCESS`]=4,t})(),e})(),co=V.streamlit=(()=>{let e={};return e.WidthConfig=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.useStretch=null,e.prototype.useContent=null,e.prototype.pixelWidth=null,e.prototype.remWidth=null;let t;return Object.defineProperty(e.prototype,`widthSpec`,{get:B.oneOfGetter(t=[`useStretch`,`useContent`,`pixelWidth`,`remWidth`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.useStretch!=null&&Object.hasOwnProperty.call(e,`useStretch`)&&t.uint32(8).bool(e.useStretch),e.useContent!=null&&Object.hasOwnProperty.call(e,`useContent`)&&t.uint32(16).bool(e.useContent),e.pixelWidth!=null&&Object.hasOwnProperty.call(e,`pixelWidth`)&&t.uint32(24).uint32(e.pixelWidth),e.remWidth!=null&&Object.hasOwnProperty.call(e,`remWidth`)&&t.uint32(37).float(e.remWidth),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.streamlit.WidthConfig;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;o.useStretch=e.bool(),o.widthSpec=`useStretch`;continue;case 2:if(a!==0)break;o.useContent=e.bool(),o.widthSpec=`useContent`;continue;case 3:if(a!==0)break;o.pixelWidth=e.uint32(),o.widthSpec=`pixelWidth`;continue;case 4:if(a!==5)break;o.remWidth=e.float(),o.widthSpec=`remWidth`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.streamlit.WidthConfig)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.streamlit.WidthConfig;return e.useStretch!=null&&(n.useStretch=!!e.useStretch),e.useContent!=null&&(n.useContent=!!e.useContent),e.pixelWidth!=null&&(n.pixelWidth=e.pixelWidth>>>0),e.remWidth!=null&&(n.remWidth=Number(e.remWidth)),n},e.toObject=function(e,t){t||={};let n={};return e.useStretch!=null&&e.hasOwnProperty(`useStretch`)&&(n.useStretch=e.useStretch,t.oneofs&&(n.widthSpec=`useStretch`)),e.useContent!=null&&e.hasOwnProperty(`useContent`)&&(n.useContent=e.useContent,t.oneofs&&(n.widthSpec=`useContent`)),e.pixelWidth!=null&&e.hasOwnProperty(`pixelWidth`)&&(n.pixelWidth=e.pixelWidth,t.oneofs&&(n.widthSpec=`pixelWidth`)),e.remWidth!=null&&e.hasOwnProperty(`remWidth`)&&(n.remWidth=t.json&&!isFinite(e.remWidth)?String(e.remWidth):e.remWidth,t.oneofs&&(n.widthSpec=`remWidth`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/streamlit.WidthConfig`},e})(),e.GapSize=(function(){let e={},t=Object.create(e);return t[e[0]=`GAP_UNDEFINED`]=0,t[e[1]=`SMALL`]=1,t[e[2]=`MEDIUM`]=2,t[e[3]=`LARGE`]=3,t[e[4]=`NONE`]=4,t[e[5]=`XXSMALL`]=5,t[e[6]=`XSMALL`]=6,t[e[7]=`XLARGE`]=7,t[e[8]=`XXLARGE`]=8,t})(),e.GapConfig=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.gapSize=null;let t;return Object.defineProperty(e.prototype,`gapSpec`,{get:B.oneOfGetter(t=[`gapSize`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.gapSize!=null&&Object.hasOwnProperty.call(e,`gapSize`)&&t.uint32(8).int32(e.gapSize),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);
18let a=t===void 0?e.len:e.pos+t,o=i||new V.streamlit.GapConfig;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;o.gapSize=e.int32(),o.gapSpec=`gapSize`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.streamlit.GapConfig)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.streamlit.GapConfig;switch(e.gapSize){default:if(typeof e.gapSize==`number`){n.gapSize=e.gapSize;break}break;case`GAP_UNDEFINED`:case 0:n.gapSize=0;break;case`SMALL`:case 1:n.gapSize=1;break;case`MEDIUM`:case 2:n.gapSize=2;break;case`LARGE`:case 3:n.gapSize=3;break;case`NONE`:case 4:n.gapSize=4;break;case`XXSMALL`:case 5:n.gapSize=5;break;case`XSMALL`:case 6:n.gapSize=6;break;case`XLARGE`:case 7:n.gapSize=7;break;case`XXLARGE`:case 8:n.gapSize=8;break}return n},e.toObject=function(e,t){t||={};let n={};return e.gapSize!=null&&e.hasOwnProperty(`gapSize`)&&(n.gapSize=t.enums===String?V.streamlit.GapSize[e.gapSize]===void 0?e.gapSize:V.streamlit.GapSize[e.gapSize]:e.gapSize,t.oneofs&&(n.gapSpec=`gapSize`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/streamlit.GapConfig`},e})(),e.HeightConfig=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.useStretch=null,e.prototype.useContent=null,e.prototype.pixelHeight=null,e.prototype.remHeight=null;let t;return Object.defineProperty(e.prototype,`heightSpec`,{get:B.oneOfGetter(t=[`useStretch`,`useContent`,`pixelHeight`,`remHeight`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.useStretch!=null&&Object.hasOwnProperty.call(e,`useStretch`)&&t.uint32(8).bool(e.useStretch),e.useContent!=null&&Object.hasOwnProperty.call(e,`useContent`)&&t.uint32(16).bool(e.useContent),e.pixelHeight!=null&&Object.hasOwnProperty.call(e,`pixelHeight`)&&t.uint32(24).uint32(e.pixelHeight),e.remHeight!=null&&Object.hasOwnProperty.call(e,`remHeight`)&&t.uint32(37).float(e.remHeight),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.streamlit.HeightConfig;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;o.useStretch=e.bool(),o.heightSpec=`useStretch`;continue;case 2:if(a!==0)break;o.useContent=e.bool(),o.heightSpec=`useContent`;continue;case 3:if(a!==0)break;o.pixelHeight=e.uint32(),o.heightSpec=`pixelHeight`;continue;case 4:if(a!==5)break;o.remHeight=e.float(),o.heightSpec=`remHeight`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.streamlit.HeightConfig)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.streamlit.HeightConfig;return e.useStretch!=null&&(n.useStretch=!!e.useStretch),e.useContent!=null&&(n.useContent=!!e.useContent),e.pixelHeight!=null&&(n.pixelHeight=e.pixelHeight>>>0),e.remHeight!=null&&(n.remHeight=Number(e.remHeight)),n},e.toObject=function(e,t){t||={};let n={};return e.useStretch!=null&&e.hasOwnProperty(`useStretch`)&&(n.useStretch=e.useStretch,t.oneofs&&(n.heightSpec=`useStretch`)),e.useContent!=null&&e.hasOwnProperty(`useContent`)&&(n.useContent=e.useContent,t.oneofs&&(n.heightSpec=`useContent`)),e.pixelHeight!=null&&e.hasOwnProperty(`pixelHeight`)&&(n.pixelHeight=e.pixelHeight,t.oneofs&&(n.heightSpec=`pixelHeight`)),e.remHeight!=null&&e.hasOwnProperty(`remHeight`)&&(n.remHeight=t.json&&!isFinite(e.remHeight)?String(e.remHeight):e.remHeight,t.oneofs&&(n.heightSpec=`remHeight`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/streamlit.HeightConfig`},e})(),e.ButtonLikeIconPosition=(function(){let e={},t=Object.create(e);return t[e[0]=`LEFT`]=0,t[e[1]=`RIGHT`]=1,t})(),e.SelectWidgetFilterMode=(function(){let e={},t=Object.create(e);return t[e[0]=`FILTER_MODE_FUZZY`]=0,t[e[1]=`FILTER_MODE_CONTAINS`]=1,t[e[2]=`FILTER_MODE_PREFIX`]=2,t[e[3]=`FILTER_MODE_NONE`]=3,t})(),e.TextAlignmentConfig=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.alignment=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.alignment!=null&&Object.hasOwnProperty.call(e,`alignment`)&&t.uint32(8).int32(e.alignment),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.streamlit.TextAlignmentConfig,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.int32())?o.alignment=s:delete o.alignment;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.streamlit.TextAlignmentConfig)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.streamlit.TextAlignmentConfig;if(e.alignment!==0&&(typeof e.alignment!=`string`||V.streamlit.TextAlignmentConfig.Alignment[e.alignment]!==0))switch(e.alignment){default:if(typeof e.alignment==`number`){n.alignment=e.alignment;break}break;case`UNSPECIFIED`:case 0:n.alignment=0;break;case`LEFT`:case 1:n.alignment=1;break;case`CENTER`:case 2:n.alignment=2;break;case`RIGHT`:case 3:n.alignment=3;break;case`JUSTIFY`:case 4:n.alignment=4;break}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.alignment=t.enums===String?`UNSPECIFIED`:0),e.alignment!=null&&e.hasOwnProperty(`alignment`)&&(n.alignment=t.enums===String?V.streamlit.TextAlignmentConfig.Alignment[e.alignment]===void 0?e.alignment:V.streamlit.TextAlignmentConfig.Alignment[e.alignment]:e.alignment),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/streamlit.TextAlignmentConfig`},e.Alignment=(function(){let e={},t=Object.create(e);return t[e[0]=`UNSPECIFIED`]=0,t[e[1]=`LEFT`]=1,t[e[2]=`CENTER`]=2,t[e[3]=`RIGHT`]=3,t[e[4]=`JUSTIFY`]=4,t})(),e})(),e})();V.AppPage=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.pageScriptHash=``,e.prototype.pageName=``,e.prototype.icon=``,e.prototype.isDefault=!1,e.prototype.sectionHeader=``,e.prototype.urlPathname=``,e.prototype.isHidden=!1,e.prototype.externalUrl=null;let t;return Object.defineProperty(e.prototype,`_externalUrl`,{get:B.oneOfGetter(t=[`externalUrl`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,`pageScriptHash`)&&t.uint32(10).string(e.pageScriptHash),e.pageName!=null&&Object.hasOwnProperty.call(e,`pageName`)&&t.uint32(18).string(e.pageName),e.icon!=null&&Object.hasOwnProperty.call(e,`icon`)&&t.uint32(26).string(e.icon),e.isDefault!=null&&Object.hasOwnProperty.call(e,`isDefault`)&&t.uint32(32).bool(e.isDefault),e.sectionHeader!=null&&Object.hasOwnProperty.call(e,`sectionHeader`)&&t.uint32(42).string(e.sectionHeader),e.urlPathname!=null&&Object.hasOwnProperty.call(e,`urlPathname`)&&t.uint32(50).string(e.urlPathname),e.isHidden!=null&&Object.hasOwnProperty.call(e,`isHidden`)&&t.uint32(56).bool(e.isHidden),e.externalUrl!=null&&Object.hasOwnProperty.call(e,`externalUrl`)&&t.uint32(66).string(e.externalUrl),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.AppPage,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.pageScriptHash=s:delete o.pageScriptHash;continue;case 2:if(a!==2)break;(s=e.string()).length?o.pageName=s:delete o.pageName;continue;case 3:if(a!==2)break;(s=e.string()).length?o.icon=s:delete o.icon;continue;case 4:if(a!==0)break;(s=e.bool())?o.isDefault=s:delete o.isDefault;continue;case 5:if(a!==2)break;(s=e.string()).length?o.sectionHeader=s:delete o.sectionHeader;continue;case 6:if(a!==2)break;(s=e.string()).length?o.urlPathname=s:delete o.urlPathname;continue;case 7:if(a!==0)break;(s=e.bool())?o.isHidden=s:delete o.isHidden;continue;case 8:if(a!==2)break;o.externalUrl=e.string(),o._externalUrl=`externalUrl`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.AppPage)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.AppPage;return e.pageScriptHash!=null&&(typeof e.pageScriptHash!=`string`||e.pageScriptHash.length)&&(n.pageScriptHash=String(e.pageScriptHash)),e.pageName!=null&&(typeof e.pageName!=`string`||e.pageName.length)&&(n.pageName=String(e.pageName)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=String(e.icon)),e.isDefault!=null&&e.isDefault&&(n.isDefault=!!e.isDefault),e.sectionHeader!=null&&(typeof e.sectionHeader!=`string`||e.sectionHeader.length)&&(n.sectionHeader=String(e.sectionHeader)),e.urlPathname!=null&&(typeof e.urlPathname!=`string`||e.urlPathname.length)&&(n.urlPathname=String(e.urlPathname)),e.isHidden!=null&&e.isHidden&&(n.isHidden=!!e.isHidden),e.externalUrl!=null&&(n.externalUrl=String(e.externalUrl)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.pageScriptHash=``,n.pageName=``,n.icon=``,n.isDefault=!1,n.sectionHeader=``,n.urlPathname=``,n.isHidden=!1),e.pageScriptHash!=null&&e.hasOwnProperty(`pageScriptHash`)&&(n.pageScriptHash=e.pageScriptHash),e.pageName!=null&&e.hasOwnProperty(`pageName`)&&(n.pageName=e.pageName),e.icon!=null&&e.hasOwnProperty(`icon`)&&(n.icon=e.icon),e.isDefault!=null&&e.hasOwnProperty(`isDefault`)&&(n.isDefault=e.isDefault),e.sectionHeader!=null&&e.hasOwnProperty(`sectionHeader`)&&(n.sectionHeader=e.sectionHeader),e.urlPathname!=null&&e.hasOwnProperty(`urlPathname`)&&(n.urlPathname=e.urlPathname),e.isHidden!=null&&e.hasOwnProperty(`isHidden`)&&(n.isHidden=e.isHidden),e.externalUrl!=null&&e.hasOwnProperty(`externalUrl`)&&(n.externalUrl=e.externalUrl,t.oneofs&&(n._externalUrl=`externalUrl`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/AppPage`},e})(),V.ArrowData=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.data=B.newBuffer([]),e.prototype.styler=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.data!=null&&Object.hasOwnProperty.call(e,`data`)&&t.uint32(10).bytes(e.data),e.styler!=null&&Object.hasOwnProperty.call(e,`styler`)&&V.ArrowData.PandasStyler.encode(e.styler,t.uint32(18).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ArrowData,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.bytes()).length?o.data=s:delete o.data;continue;case 2:if(a!==2)break;o.styler=V.ArrowData.PandasStyler.decode(e,e.uint32(),void 0,r+1,o.styler);continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ArrowData)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ArrowData;if(e.data!=null&&e.data.length&&(typeof e.data==`string`?B.base64.decode(e.data,n.data=B.newBuffer(B.base64.length(e.data)),0):e.data.length>=0&&(n.data=e.data)),e.styler!=null){if(typeof e.styler!=`object`)throw TypeError(`.ArrowData.styler: object expected`);n.styler=V.ArrowData.PandasStyler.fromObject(e.styler,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(t.bytes===String?n.data=``:(n.data=[],t.bytes!==Array&&(n.data=B.newBuffer(n.data))),n.styler=null),e.data!=null&&e.hasOwnProperty(`data`)&&(n.data=t.bytes===String?B.base64.encode(e.data,
180,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),e.styler!=null&&e.hasOwnProperty(`styler`)&&(n.styler=V.ArrowData.PandasStyler.toObject(e.styler,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ArrowData`},e.PandasStyler=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.uuid=``,e.prototype.caption=``,e.prototype.styles=``,e.prototype.displayValues=B.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.uuid!=null&&Object.hasOwnProperty.call(e,`uuid`)&&t.uint32(10).string(e.uuid),e.caption!=null&&Object.hasOwnProperty.call(e,`caption`)&&t.uint32(18).string(e.caption),e.styles!=null&&Object.hasOwnProperty.call(e,`styles`)&&t.uint32(26).string(e.styles),e.displayValues!=null&&Object.hasOwnProperty.call(e,`displayValues`)&&t.uint32(34).bytes(e.displayValues),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ArrowData.PandasStyler,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.uuid=s:delete o.uuid;continue;case 2:if(a!==2)break;(s=e.string()).length?o.caption=s:delete o.caption;continue;case 3:if(a!==2)break;(s=e.string()).length?o.styles=s:delete o.styles;continue;case 4:if(a!==2)break;(s=e.bytes()).length?o.displayValues=s:delete o.displayValues;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ArrowData.PandasStyler)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ArrowData.PandasStyler;return e.uuid!=null&&(typeof e.uuid!=`string`||e.uuid.length)&&(n.uuid=String(e.uuid)),e.caption!=null&&(typeof e.caption!=`string`||e.caption.length)&&(n.caption=String(e.caption)),e.styles!=null&&(typeof e.styles!=`string`||e.styles.length)&&(n.styles=String(e.styles)),e.displayValues!=null&&e.displayValues.length&&(typeof e.displayValues==`string`?B.base64.decode(e.displayValues,n.displayValues=B.newBuffer(B.base64.length(e.displayValues)),0):e.displayValues.length>=0&&(n.displayValues=e.displayValues)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.uuid=``,n.caption=``,n.styles=``,t.bytes===String?n.displayValues=``:(n.displayValues=[],t.bytes!==Array&&(n.displayValues=B.newBuffer(n.displayValues)))),e.uuid!=null&&e.hasOwnProperty(`uuid`)&&(n.uuid=e.uuid),e.caption!=null&&e.hasOwnProperty(`caption`)&&(n.caption=e.caption),e.styles!=null&&e.hasOwnProperty(`styles`)&&(n.styles=e.styles),e.displayValues!=null&&e.hasOwnProperty(`displayValues`)&&(n.displayValues=t.bytes===String?B.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ArrowData.PandasStyler`},e})(),e})(),V.ArrowNamedDataSet=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.name=``,e.prototype.hasName=!1,e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(10).string(e.name),e.data!=null&&Object.hasOwnProperty.call(e,`data`)&&V.ArrowData.encode(e.data,t.uint32(18).fork()).ldelim(),e.hasName!=null&&Object.hasOwnProperty.call(e,`hasName`)&&t.uint32(24).bool(e.hasName),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ArrowNamedDataSet,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.name=s:delete o.name;continue;case 3:if(a!==0)break;(s=e.bool())?o.hasName=s:delete o.hasName;continue;case 2:if(a!==2)break;o.data=V.ArrowData.decode(e,e.uint32(),void 0,r+1,o.data);continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ArrowNamedDataSet)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ArrowNamedDataSet;if(e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=String(e.name)),e.hasName!=null&&e.hasName&&(n.hasName=!!e.hasName),e.data!=null){if(typeof e.data!=`object`)throw TypeError(`.ArrowNamedDataSet.data: object expected`);n.data=V.ArrowData.fromObject(e.data,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.name=``,n.data=null,n.hasName=!1),e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),e.data!=null&&e.hasOwnProperty(`data`)&&(n.data=V.ArrowData.toObject(e.data,t)),e.hasName!=null&&e.hasOwnProperty(`hasName`)&&(n.hasName=e.hasName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ArrowNamedDataSet`},e})(),V.Audio=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.url=``,e.prototype.startTime=0,e.prototype.endTime=0,e.prototype.loop=!1,e.prototype.autoplay=!1,e.prototype.id=``,e.prototype.widthConfig=null;let t;return Object.defineProperty(e.prototype,`_widthConfig`,{get:B.oneOfGetter(t=[`widthConfig`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.startTime!=null&&Object.hasOwnProperty.call(e,`startTime`)&&t.uint32(24).int32(e.startTime),e.url!=null&&Object.hasOwnProperty.call(e,`url`)&&t.uint32(42).string(e.url),e.endTime!=null&&Object.hasOwnProperty.call(e,`endTime`)&&t.uint32(48).int32(e.endTime),e.loop!=null&&Object.hasOwnProperty.call(e,`loop`)&&t.uint32(56).bool(e.loop),e.autoplay!=null&&Object.hasOwnProperty.call(e,`autoplay`)&&t.uint32(64).bool(e.autoplay),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(74).string(e.id),e.widthConfig!=null&&Object.hasOwnProperty.call(e,`widthConfig`)&&V.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(82).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Audio,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 5:if(a!==2)break;(s=e.string()).length?o.url=s:delete o.url;continue;case 3:if(a!==0)break;(s=e.int32())?o.startTime=s:delete o.startTime;continue;case 6:if(a!==0)break;(s=e.int32())?o.endTime=s:delete o.endTime;continue;case 7:if(a!==0)break;(s=e.bool())?o.loop=s:delete o.loop;continue;case 8:if(a!==0)break;(s=e.bool())?o.autoplay=s:delete o.autoplay;continue;
18case 9:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 10:if(a!==2)break;o.widthConfig=V.streamlit.WidthConfig.decode(e,e.uint32(),void 0,r+1,o.widthConfig),o._widthConfig=`widthConfig`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Audio)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Audio;if(e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=String(e.url)),e.startTime!=null&&Number(e.startTime)!==0&&(n.startTime=e.startTime|0),e.endTime!=null&&Number(e.endTime)!==0&&(n.endTime=e.endTime|0),e.loop!=null&&e.loop&&(n.loop=!!e.loop),e.autoplay!=null&&e.autoplay&&(n.autoplay=!!e.autoplay),e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.widthConfig!=null){if(typeof e.widthConfig!=`object`)throw TypeError(`.Audio.widthConfig: object expected`);n.widthConfig=V.streamlit.WidthConfig.fromObject(e.widthConfig,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.startTime=0,n.url=``,n.endTime=0,n.loop=!1,n.autoplay=!1,n.id=``),e.startTime!=null&&e.hasOwnProperty(`startTime`)&&(n.startTime=e.startTime),e.url!=null&&e.hasOwnProperty(`url`)&&(n.url=e.url),e.endTime!=null&&e.hasOwnProperty(`endTime`)&&(n.endTime=e.endTime),e.loop!=null&&e.hasOwnProperty(`loop`)&&(n.loop=e.loop),e.autoplay!=null&&e.hasOwnProperty(`autoplay`)&&(n.autoplay=e.autoplay),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.widthConfig!=null&&e.hasOwnProperty(`widthConfig`)&&(n.widthConfig=V.streamlit.WidthConfig.toObject(e.widthConfig,t),t.oneofs&&(n._widthConfig=`widthConfig`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Audio`},e})(),V.AudioInput=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.label=``,e.prototype.help=``,e.prototype.formId=``,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.sampleRate=null;let t;return Object.defineProperty(e.prototype,`_sampleRate`,{get:B.oneOfGetter(t=[`sampleRate`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(26).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(34).string(e.formId),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(40).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(50).fork()).ldelim(),e.sampleRate!=null&&Object.hasOwnProperty.call(e,`sampleRate`)&&t.uint32(56).int32(e.sampleRate),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.AudioInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 4:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 5:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 6:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 7:if(a!==0)break;o.sampleRate=e.int32(),o._sampleRate=`sampleRate`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.AudioInput)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.AudioInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.AudioInput.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.sampleRate!=null&&(n.sampleRate=e.sampleRate|0),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``,n.label=``,n.help=``,n.formId=``,n.disabled=!1,n.labelVisibility=null),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.sampleRate!=null&&e.hasOwnProperty(`sampleRate`)&&(n.sampleRate=e.sampleRate,t.oneofs&&(n._sampleRate=`sampleRate`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/AudioInput`},e})();var lo=V.LabelVisibility=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(8).int32(e.value),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.LabelVisibility,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.int32())?o.value=s:delete o.value;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.LabelVisibility)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.LabelVisibility;if(e.value!==0&&(typeof e.value!=`string`||V.LabelVisibility.LabelVisibilityOptions[e.value]!==0))switch(e.value){default:if(typeof e.value==`number`){n.value=e.value;break}break;case`VISIBLE`:case 0:n.value=0;break;case`HIDDEN`:case 1:n.value=1;break;case`COLLAPSED`:case 2:n.value=2;break}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.value=t.enums===String?`VISIBLE`:0),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=t.enums===String?V.LabelVisibility.LabelVisibilityOptions[e.value]===void 0?e.value:V.LabelVisibility.LabelVisibilityOptions[e.value]:e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/LabelVisibility`},e.LabelVisibilityOptions=(function(){let e={},t=Object.create(e);return t[e[0]=`VISIBLE`]=0,t[e[1]=`HIDDEN`]=1,t[e[2]=`COLLAPSED`]=2,t})(),e})();V.AuthRedirect=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.url=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.url!=null&&Object.hasOwnProperty.call(e,`url`)&&t.uint32(10).string(e.url),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.AuthRedirect,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.url=s:delete o.url;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.AuthRedirect)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.AuthRedirect;return e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=String(e.url)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.url=``),e.url!=null&&e.hasOwnProperty(`url`)&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/AuthRedirect`},e})(),V.AutoRerun=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.interval=0,e.prototype.fragmentId=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.interval!=null&&Object.hasOwnProperty.call(e,`interval`)&&t.uint32(13).float(e.interval),e.fragmentId!=null&&Object.hasOwnProperty.call(e,`fragmentId`)&&t.uint32(18).string(e.fragmentId),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.AutoRerun,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==5)break;(s=e.float())===0?delete o.interval:o.interval=s;continue;case 2:if(a!==2)break;(s=e.string()).length?o.fragmentId=s:delete o.fragmentId;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.AutoRerun)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.AutoRerun;return e.interval!=null&&Number(e.interval)!==0&&(n.interval=Number(e.interval)),e.fragmentId!=null&&(typeof e.fragmentId!=`string`||e.fragmentId.length)&&(n.fragmentId=String(e.fragmentId)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.interval=0,n.fragmentId=``),e.interval!=null&&e.hasOwnProperty(`interval`)&&(n.interval=t.json&&!isFinite(e.interval)?String(e.interval):e.interval),e.fragmentId!=null&&e.hasOwnProperty(`fragmentId`)&&(n.fragmentId=e.fragmentId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/AutoRerun`},e})();var uo=V.BackMsg=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.clearCache=null,e.prototype.setRunOnSave=null,e.prototype.stopScript=null,e.prototype.rerunScript=null,e.prototype.loadGitInfo=null,e.prototype.debugDisconnectWebsocket=null,e.prototype.debugShutdownRuntime=null,e.prototype.fileUrlsRequest=null,e.prototype.appHeartbeat=null,e.prototype.backendOperationRequest=null,e.prototype.debugLastBackmsgId=``;let t;return Object.defineProperty(e.prototype,`type`,{get:B.oneOfGetter(t=[`clearCache`,`setRunOnSave`,`stopScript`,`rerunScript`,`loadGitInfo`,`debugDisconnectWebsocket`,`debugShutdownRuntime`,`fileUrlsRequest`,`appHeartbeat`,`backendOperationRequest`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.clearCache!=null&&Object.hasOwnProperty.call(e,`clearCache`)&&t.uint32(40).bool(e.clearCache),e.setRunOnSave!=null&&Object.hasOwnProperty.call(e,`setRunOnSave`)&&t.uint32(48).bool(e.setRunOnSave),e.stopScript!=null&&Object.hasOwnProperty.call(e,`stopScript`)&&t.uint32(56).bool(e.stopScript),e.rerunScript!=null&&Object.hasOwnProperty.call(e,`rerunScript`)&&V.ClientState.encode(e.rerunScript,t.uint32(90).fork()).ldelim(),e.loadGitInfo!=null&&Object.hasOwnProperty.call(e,`loadGitInfo`)&&t.uint32(96).bool(e.loadGitInfo),e.debugL
18astBackmsgId!=null&&Object.hasOwnProperty.call(e,`debugLastBackmsgId`)&&t.uint32(106).string(e.debugLastBackmsgId),e.debugDisconnectWebsocket!=null&&Object.hasOwnProperty.call(e,`debugDisconnectWebsocket`)&&t.uint32(112).bool(e.debugDisconnectWebsocket),e.debugShutdownRuntime!=null&&Object.hasOwnProperty.call(e,`debugShutdownRuntime`)&&t.uint32(120).bool(e.debugShutdownRuntime),e.fileUrlsRequest!=null&&Object.hasOwnProperty.call(e,`fileUrlsRequest`)&&V.FileURLsRequest.encode(e.fileUrlsRequest,t.uint32(130).fork()).ldelim(),e.appHeartbeat!=null&&Object.hasOwnProperty.call(e,`appHeartbeat`)&&t.uint32(136).bool(e.appHeartbeat),e.backendOperationRequest!=null&&Object.hasOwnProperty.call(e,`backendOperationRequest`)&&V.BackendOperationRequest.encode(e.backendOperationRequest,t.uint32(154).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.BackMsg,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 5:if(a!==0)break;o.clearCache=e.bool(),o.type=`clearCache`;continue;case 6:if(a!==0)break;o.setRunOnSave=e.bool(),o.type=`setRunOnSave`;continue;case 7:if(a!==0)break;o.stopScript=e.bool(),o.type=`stopScript`;continue;case 11:if(a!==2)break;o.rerunScript=V.ClientState.decode(e,e.uint32(),void 0,r+1,o.rerunScript),o.type=`rerunScript`;continue;case 12:if(a!==0)break;o.loadGitInfo=e.bool(),o.type=`loadGitInfo`;continue;case 14:if(a!==0)break;o.debugDisconnectWebsocket=e.bool(),o.type=`debugDisconnectWebsocket`;continue;case 15:if(a!==0)break;o.debugShutdownRuntime=e.bool(),o.type=`debugShutdownRuntime`;continue;case 16:if(a!==2)break;o.fileUrlsRequest=V.FileURLsRequest.decode(e,e.uint32(),void 0,r+1,o.fileUrlsRequest),o.type=`fileUrlsRequest`;continue;case 17:if(a!==0)break;o.appHeartbeat=e.bool(),o.type=`appHeartbeat`;continue;case 19:if(a!==2)break;o.backendOperationRequest=V.BackendOperationRequest.decode(e,e.uint32(),void 0,r+1,o.backendOperationRequest),o.type=`backendOperationRequest`;continue;case 13:if(a!==2)break;(s=e.string()).length?o.debugLastBackmsgId=s:delete o.debugLastBackmsgId;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.BackMsg)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.BackMsg;if(e.clearCache!=null&&(n.clearCache=!!e.clearCache),e.setRunOnSave!=null&&(n.setRunOnSave=!!e.setRunOnSave),e.stopScript!=null&&(n.stopScript=!!e.stopScript),e.rerunScript!=null){if(typeof e.rerunScript!=`object`)throw TypeError(`.BackMsg.rerunScript: object expected`);n.rerunScript=V.ClientState.fromObject(e.rerunScript,t+1)}if(e.loadGitInfo!=null&&(n.loadGitInfo=!!e.loadGitInfo),e.debugDisconnectWebsocket!=null&&(n.debugDisconnectWebsocket=!!e.debugDisconnectWebsocket),e.debugShutdownRuntime!=null&&(n.debugShutdownRuntime=!!e.debugShutdownRuntime),e.fileUrlsRequest!=null){if(typeof e.fileUrlsRequest!=`object`)throw TypeError(`.BackMsg.fileUrlsRequest: object expected`);n.fileUrlsRequest=V.FileURLsRequest.fromObject(e.fileUrlsRequest,t+1)}if(e.appHeartbeat!=null&&(n.appHeartbeat=!!e.appHeartbeat),e.backendOperationRequest!=null){if(typeof e.backendOperationRequest!=`object`)throw TypeError(`.BackMsg.backendOperationRequest: object expected`);n.backendOperationRequest=V.BackendOperationRequest.fromObject(e.backendOperationRequest,t+1)}return e.debugLastBackmsgId!=null&&(typeof e.debugLastBackmsgId!=`string`||e.debugLastBackmsgId.length)&&(n.debugLastBackmsgId=String(e.debugLastBackmsgId)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.debugLastBackmsgId=``),e.clearCache!=null&&e.hasOwnProperty(`clearCache`)&&(n.clearCache=e.clearCache,t.oneofs&&(n.type=`clearCache`)),e.setRunOnSave!=null&&e.hasOwnProperty(`setRunOnSave`)&&(n.setRunOnSave=e.setRunOnSave,t.oneofs&&(n.type=`setRunOnSave`)),e.stopScript!=null&&e.hasOwnProperty(`stopScript`)&&(n.stopScript=e.stopScript,t.oneofs&&(n.type=`stopScript`)),e.rerunScript!=null&&e.hasOwnProperty(`rerunScript`)&&(n.rerunScript=V.ClientState.toObject(e.rerunScript,t),t.oneofs&&(n.type=`rerunScript`)),e.loadGitInfo!=null&&e.hasOwnProperty(`loadGitInfo`)&&(n.loadGitInfo=e.loadGitInfo,t.oneofs&&(n.type=`loadGitInfo`)),e.debugL
18astBackmsgId!=null&&e.hasOwnProperty(`debugLastBackmsgId`)&&(n.debugLastBackmsgId=e.debugLastBackmsgId),e.debugDisconnectWebsocket!=null&&e.hasOwnProperty(`debugDisconnectWebsocket`)&&(n.debugDisconnectWebsocket=e.debugDisconnectWebsocket,t.oneofs&&(n.type=`debugDisconnectWebsocket`)),e.debugShutdownRuntime!=null&&e.hasOwnProperty(`debugShutdownRuntime`)&&(n.debugShutdownRuntime=e.debugShutdownRuntime,t.oneofs&&(n.type=`debugShutdownRuntime`)),e.fileUrlsRequest!=null&&e.hasOwnProperty(`fileUrlsRequest`)&&(n.fileUrlsRequest=V.FileURLsRequest.toObject(e.fileUrlsRequest,t),t.oneofs&&(n.type=`fileUrlsRequest`)),e.appHeartbeat!=null&&e.hasOwnProperty(`appHeartbeat`)&&(n.appHeartbeat=e.appHeartbeat,t.oneofs&&(n.type=`appHeartbeat`)),e.backendOperationRequest!=null&&e.hasOwnProperty(`backendOperationRequest`)&&(n.backendOperationRequest=V.BackendOperationRequest.toObject(e.backendOperationRequest,t),t.oneofs&&(n.type=`backendOperationRequest`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/BackMsg`},e})(),fo=V.BackendOperationRequest=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.requestId=``,e.prototype.sessionId=``,e.prototype.deferredFile=null;let t;return Object.defineProperty(e.prototype,`payload`,{get:B.oneOfGetter(t=[`deferredFile`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.requestId!=null&&Object.hasOwnProperty.call(e,`requestId`)&&t.uint32(10).string(e.requestId),e.sessionId!=null&&Object.hasOwnProperty.call(e,`sessionId`)&&t.uint32(18).string(e.sessionId),e.deferredFile!=null&&Object.hasOwnProperty.call(e,`deferredFile`)&&V.DeferredFileRequestPayload.encode(e.deferredFile,t.uint32(26).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.BackendOperationRequest,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.requestId=s:delete o.requestId;continue;case 2:if(a!==2)break;(s=e.string()).length?o.sessionId=s:delete o.sessionId;continue;case 3:if(a!==2)break;o.deferredFile=V.DeferredFileRequestPayload.decode(e,e.uint32(),void 0,r+1,o.deferredFile),o.payload=`deferredFile`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.BackendOperationRequest)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.BackendOperationRequest;if(e.requestId!=null&&(typeof e.requestId!=`string`||e.requestId.length)&&(n.requestId=String(e.requestId)),e.sessionId!=null&&(typeof e.sessionId!=`string`||e.sessionId.length)&&(n.sessionId=String(e.sessionId)),e.deferredFile!=null){if(typeof e.deferredFile!=`object`)throw TypeError(`.BackendOperationRequest.deferredFile: object expected`);n.deferredFile=V.DeferredFileRequestPayload.fromObject(e.deferredFile,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.requestId=``,n.sessionId=``),e.requestId!=null&&e.hasOwnProperty(`requestId`)&&(n.requestId=e.requestId),e.sessionId!=null&&e.hasOwnProperty(`sessionId`)&&(n.sessionId=e.sessionId),e.deferredFile!=null&&e.hasOwnProperty(`deferredFile`)&&(n.deferredFile=V.DeferredFileRequestPayload.toObject(e.deferredFile,t),t.oneofs&&(n.payload=`deferredFile`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/BackendOperationRequest`},e})();V.DeferredFileRequestPayload=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.fileId=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.fileId!=null&&Object.hasOwnProperty.call(e,`fileId`)&&t.uint32(10).string(e.fileId),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.DeferredFileRequestPayload,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.fileId=s:delete o.fileId;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.DeferredFileRequestPayload)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.DeferredFileRequestPayload;return e.fileId!=null&&(typeof e.fileId!=`string`||e.fileId.length)&&(n.fileId=String(e.fileId)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.fileId=``),e.fileId!=null&&e.hasOwnProperty(`fileId`)&&(n.fileId=e.fileId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/DeferredFileRequestPayload`},e})(),V.ContextInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.timezone=null,e.prototype.timezoneOffset=null,e.prototype.locale=null,e.prototype.url=null,e.prototype.isEmbedded=null,e.prototype.colorScheme=null;let t;return Object.defineProperty(e.prototype,`_timezone`,{get:B.oneOfGetter(t=[`timezone`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_timezoneOffset`,{get:B.oneOfGetter(t=[`timezoneOffset`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_locale`,{get:B.oneOfGetter(t=[`locale`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_url`,{get:B.oneOfGetter(t=[`url`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_isEmbedded`,{get:B.oneOfGetter(t=[`isEmbedded`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_colorScheme`,{get:B.oneOfGetter(t=[`colorScheme`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.timezone!=null&&Object.hasOwnProperty.call(e,`timezone`)&&t.uint32(10).string(e.timezone),e.timezoneOffset!=null&&Object.hasOwnProperty.call(e,`timezoneOffset`)&&t.uint32(16).int32(e.timezoneOffset),e.locale!=null&&Object.hasOwnProperty.call(e,`locale`)&&t.uint32(26).string(e.locale),e.url!=null&&Object.hasOwnProperty.call(e,`url`)&&t.uint32(34).string(e.url),e.isEmbedded!=null&&Object.hasOwnProperty.call(e,`isEmbedded`)&&t.uint32(40).bool(e.isEmbedded),e.colorScheme!=null&&Object.hasOwnProperty.call(e,`colorScheme`)&&t.uint32(50).string(e.colorScheme),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ContextInfo;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.timezone=e.string(),o._timezone=`timezone`;continue;case 2:if(a!==0)break;o.timezoneOffset=e.int32(),o._timezoneOffset=`timezoneOffset`;
18continue;case 3:if(a!==2)break;o.locale=e.string(),o._locale=`locale`;continue;case 4:if(a!==2)break;o.url=e.string(),o._url=`url`;continue;case 5:if(a!==0)break;o.isEmbedded=e.bool(),o._isEmbedded=`isEmbedded`;continue;case 6:if(a!==2)break;o.colorScheme=e.string(),o._colorScheme=`colorScheme`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ContextInfo)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ContextInfo;return e.timezone!=null&&(n.timezone=String(e.timezone)),e.timezoneOffset!=null&&(n.timezoneOffset=e.timezoneOffset|0),e.locale!=null&&(n.locale=String(e.locale)),e.url!=null&&(n.url=String(e.url)),e.isEmbedded!=null&&(n.isEmbedded=!!e.isEmbedded),e.colorScheme!=null&&(n.colorScheme=String(e.colorScheme)),n},e.toObject=function(e,t){t||={};let n={};return e.timezone!=null&&e.hasOwnProperty(`timezone`)&&(n.timezone=e.timezone,t.oneofs&&(n._timezone=`timezone`)),e.timezoneOffset!=null&&e.hasOwnProperty(`timezoneOffset`)&&(n.timezoneOffset=e.timezoneOffset,t.oneofs&&(n._timezoneOffset=`timezoneOffset`)),e.locale!=null&&e.hasOwnProperty(`locale`)&&(n.locale=e.locale,t.oneofs&&(n._locale=`locale`)),e.url!=null&&e.hasOwnProperty(`url`)&&(n.url=e.url,t.oneofs&&(n._url=`url`)),e.isEmbedded!=null&&e.hasOwnProperty(`isEmbedded`)&&(n.isEmbedded=e.isEmbedded,t.oneofs&&(n._isEmbedded=`isEmbedded`)),e.colorScheme!=null&&e.hasOwnProperty(`colorScheme`)&&(n.colorScheme=e.colorScheme,t.oneofs&&(n._colorScheme=`colorScheme`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ContextInfo`},e})(),V.ClientState=(()=>{function e(e){if(this.cachedMessageHashes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.queryString=``,e.prototype.widgetStates=null,e.prototype.pageScriptHash=``,e.prototype.pageName=``,e.prototype.fragmentId=``,e.prototype.isAutoRerun=!1,e.prototype.cachedMessageHashes=B.emptyArray,e.prototype.contextInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.queryString!=null&&Object.hasOwnProperty.call(e,`queryString`)&&t.uint32(10).string(e.queryString),e.widgetStates!=null&&Object.hasOwnProperty.call(e,`widgetStates`)&&V.WidgetStates.encode(e.widgetStates,t.uint32(18).fork()).ldelim(),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,`pageScriptHash`)&&t.uint32(26).string(e.pageScriptHash),e.pageName!=null&&Object.hasOwnProperty.call(e,`pageName`)&&t.uint32(34).string(e.pageName),e.fragmentId!=null&&Object.hasOwnProperty.call(e,`fragmentId`)&&t.uint32(42).string(e.fragmentId),e.isAutoRerun!=null&&Object.hasOwnProperty.call(e,`isAutoRerun`)&&t.uint32(48).bool(e.isAutoRerun),e.cachedMessageHashes!=null&&e.cachedMessageHashes.length)for(let n=0;n<e.cachedMessageHashes.length;++n)t.uint32(58).string(e.cachedMessageHashes[n]);if(e.contextInfo!=null&&Object.hasOwnProperty.call(e,`contextInfo`)&&V.ContextInfo.encode(e.contextInfo,t.uint32(66).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ClientState,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.queryString=s:delete o.queryString;continue;case 2:if(a!==2)break;o.widgetStates=V.WidgetStates.decode(e,e.uint32(),void 0,r+1,o.widgetStates);continue;case 3:if(a!==2)break;(s=e.string()).length?o.pageScriptHash=s:delete o.pageScriptHash;continue;case 4:if(a!==2)break;(s=e.string()).length?o.pageName=s:delete o.pageName;continue;case 5:if(a!==2)break;(s=e.string()).length?o.fragmentId=s:delete o.fragmentId;continue;case 6:if(a!==0)break;(s=e.bool())?o.isAutoRerun=s:delete o.isAutoRerun;continue;case 7:if(a!==2)break;o.cachedMessageHashes&&o.cachedMessageHashes.length||(o.cachedMessageHashes=[]),o.cachedMessageHashes.push(e.string());continue;case 8:if(a!==2)break;o.contextInfo=V.ContextInfo.decode(e,e.uint32(),void 0,r+1,o.contextInfo);continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ClientState)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ClientState;if(e.queryString!=null&&(typeof e.queryString!=`string`||e.queryString.length)&&(n.queryString=String(e.queryString)),e.widgetStates!=null){if(typeof e.widgetStates!=`object`)throw TypeError(`.ClientState.widgetStates: object expected`);n.widgetStates=V.WidgetStates.fromObject(e.widgetStates,t+1)}if(e.pageScriptHash!=null&&(typeof e.pageScriptHash!=`string`||e.pageScriptHash.length)&&(n.pageScriptHash=String(e.pageScriptHash)),e.pageName!=null&&(typeof e.pageName!=`string`||e.pageName.length)&&(n.pageName=String(e.pageName)),e.fragmentId!=null&&(typeof e.fragmentId!=`string`||e.fragmentId.length)&&(n.fragmentId=String(e.fragmentId)),e.isAutoRerun!=null&&e.isAutoRerun&&(n.isAutoRerun=!!e.isAutoRerun),e.cachedMessageHashes
18){if(!Array.isArray(e.cachedMessageHashes))throw TypeError(`.ClientState.cachedMessageHashes: array expected`);n.cachedMessageHashes=Array(e.cachedMessageHashes.length);for(let t=0;t<e.cachedMessageHashes.length;++t)n.cachedMessageHashes[t]=String(e.cachedMessageHashes[t])}if(e.contextInfo!=null){if(typeof e.contextInfo!=`object`)throw TypeError(`.ClientState.contextInfo: object expected`);n.contextInfo=V.ContextInfo.fromObject(e.contextInfo,t+1)}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.cachedMessageHashes=[]),t.defaults&&(n.queryString=``,n.widgetStates=null,n.pageScriptHash=``,n.pageName=``,n.fragmentId=``,n.isAutoRerun=!1,n.contextInfo=null),e.queryString!=null&&e.hasOwnProperty(`queryString`)&&(n.queryString=e.queryString),e.widgetStates!=null&&e.hasOwnProperty(`widgetStates`)&&(n.widgetStates=V.WidgetStates.toObject(e.widgetStates,t)),e.pageScriptHash!=null&&e.hasOwnProperty(`pageScriptHash`)&&(n.pageScriptHash=e.pageScriptHash),e.pageName!=null&&e.hasOwnProperty(`pageName`)&&(n.pageName=e.pageName),e.fragmentId!=null&&e.hasOwnProperty(`fragmentId`)&&(n.fragmentId=e.fragmentId),e.isAutoRerun!=null&&e.hasOwnProperty(`isAutoRerun`)&&(n.isAutoRerun=e.isAutoRerun),e.cachedMessageHashes&&e.cachedMessageHashes.length){n.cachedMessageHashes=Array(e.cachedMessageHashes.length);for(let t=0;t<e.cachedMessageHashes.length;++t)n.cachedMessageHashes[t]=e.cachedMessageHashes[t]}return e.contextInfo!=null&&e.hasOwnProperty(`contextInfo`)&&(n.contextInfo=V.ContextInfo.toObject(e.contextInfo,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ClientState`},e})();var po=V.WidgetStates=(()=>{function e(e){if(this.widgets=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.widgets=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.widgets!=null&&e.widgets.length)for(let n=0;n<e.widgets.length;++n)V.WidgetState.encode(e.widgets[n],t.uint32(10).fork()).ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.WidgetStates;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.widgets&&o.widgets.length||(o.widgets=[]),o.widgets.push(V.WidgetState.decode(e,e.uint32(),void 0,r+1));continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.WidgetStates)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.WidgetStates;if(e.widgets){if(!Array.isArray(e.widgets))throw TypeError(`.WidgetStates.widgets: array expected`);n.widgets=Array(e.widgets.length);for(let r=0;r<e.widgets.length;++r){if(typeof e.widgets[r]!=`object`)throw TypeError(`.WidgetStates.widgets: object expected`);n.widgets[r]=V.WidgetState.fromObject(e.widgets[r],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.widgets=[]),e.widgets&&e.widgets.length){n.widgets=Array(e.widgets.length);for(let r=0;r<e.widgets.length;++r)n.widgets[r]=V.WidgetState.toObject(e.widgets[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/WidgetStates`},e})(),mo=V.WidgetState=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.triggerValue=null,e.prototype.boolValue=null,e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.stringValue=null,e.prototype.doubleArrayValue=null,e.prototype.intArrayValue=null,e.prototype.stringArrayValue=null,e.prototype.jsonValue=null,e.prototype.arrowValue=null,e.prototype.bytesValue=null,e.prototype.fileUploaderStateValue=null,e.prototype.stringTriggerValue=null,e.prototype.chatInputValue=null,e.prototype.jsonTriggerValue=null;let t;return Object.defineProperty(e.prototype,`value`,{get:B.oneOfGetter(t=[`triggerValue`,`boolValue`,`doubleValue`,`intValue`,`stringValue`,`doubleArrayValue`,`intArrayValue`,`stringArrayValue`,`jsonValue`,`arrowValue`,`bytesValue`,`fileUploaderStateValue`,`stringTriggerValue`,`chatInputValue`,`jsonTriggerValue`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.triggerValue!=null&&Object.hasOwnProperty.call(e,`triggerValue`)&&t.uint32(16).bool(e.triggerValue),e.boolValue!=null&&Object.hasOwnProperty.call(e,`boolValue`)&&t.uint32(24).bool(e.boolValue),e.doubleValue!=null&&Object.hasOwnProperty.call(e,`doubleValue`)&&t.uint32(33).double(e.doubleValue),e.intValue!=null&&Object.hasOwnProperty.call(e,`intValue`)&&t.uint32(40).sint64(e.intValue),e.stringValue!=null&&Object.hasOwnProperty.call(e,`stringValue`)&&t.uint32(50).string(e.stringValue),e.doubleArrayValue!=null&&Object.hasOwnProperty.call(e,`doubleArrayValue`)&&V.DoubleArray.encode(e.doubleArrayValue,t.uint32(58).fork()).ldelim(),e.intArrayValue!=null&&Object.hasOwnProperty.call(e,`intArrayValue`)&&V.SInt64Array.encode(e.intArrayValue,t.uint32(66).fork()).ldelim(),e.stringArrayValue!=null&&Object.hasOwnProperty.call(e,`stringArrayValue`)&&V.StringArray.encode(e.stringArrayValue,t.uint32(74).fork()).ldelim(),e.jsonValue!=null&&Object.hasOwnProperty.call(e,`jsonValue`)&&t.uint32(82).string(e.jsonValue),e.arrowValue!=null&&Object.hasOwnProperty.call(e,`arrowValue`)&&V.ArrowTable.encode(e.arrowValue,t.uint32(90).fork()).ldelim(),e.bytesValue!=null&&Object.hasOwnProperty.call(e,`bytesValue`)&&t.uint32(98).bytes(e.bytesValue),e.fileUploaderStateValue!=null&&Object.hasOwnProperty.call(e,`fileUploaderStateValue`)&&V.FileUploaderState.encode(e.fileUploaderStateValue,t.uint32(106).fork()).ldelim(),e.stringTriggerValue!=null&&Object.hasOwnProperty.call(e,`stringTriggerValue`)&&V.StringTriggerValue.encode(e.stringTriggerValue,t.uint32(114).fork()).ldelim(),e.chatInputValue!=null&&Object.hasOwnProperty.call(e,`chatInputValue`)&&V.ChatInputValue.encode(e.chatInputValue,t.uint32(122).fork()).ldelim(),e.jsonTriggerValue!=null&&Object.hasOwnProperty.call(e,`jsonTriggerValue`)&&t.uint32(130).string(e.jsonTriggerValue),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.WidgetState,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==0)break;o.triggerValue=e.bool(),o.value=`triggerValue`;continue;case 3:if(a!==0)break;o.boolValue=e.bool(),o.value=`boolValue`;continue;case 4:if(a!==1)break;o.doubleValue=e.double(),o.value=`doubleValue`;continue;case 5:if(a!==0)break;o.intValue=e.sint64(),o.value=`intValue`;continue;case 6:if(a!==2)break;o.stringValue=e.string(),o.value=`stringValue`;continue;case 7:if(a!==2)break;o.doubleArrayValue=V.DoubleArray.decode(e,e.uint32(),void 0,r+1,o.doubleArrayValue),o.value=`doubleArrayValue`;continue;case 8:if(a!==2)break;o.intArrayValue=V.SInt64Array.decode(e,e.uint32(),void 0,r+1,o.intArrayValue),o.value=`intArrayValue`;continue;
18case 9:if(a!==2)break;o.stringArrayValue=V.StringArray.decode(e,e.uint32(),void 0,r+1,o.stringArrayValue),o.value=`stringArrayValue`;continue;case 10:if(a!==2)break;o.jsonValue=e.string(),o.value=`jsonValue`;continue;case 11:if(a!==2)break;o.arrowValue=V.ArrowTable.decode(e,e.uint32(),void 0,r+1,o.arrowValue),o.value=`arrowValue`;continue;case 12:if(a!==2)break;o.bytesValue=e.bytes(),o.value=`bytesValue`;continue;case 13:if(a!==2)break;o.fileUploaderStateValue=V.FileUploaderState.decode(e,e.uint32(),void 0,r+1,o.fileUploaderStateValue),o.value=`fileUploaderStateValue`;continue;case 14:if(a!==2)break;o.stringTriggerValue=V.StringTriggerValue.decode(e,e.uint32(),void 0,r+1,o.stringTriggerValue),o.value=`stringTriggerValue`;continue;case 15:if(a!==2)break;o.chatInputValue=V.ChatInputValue.decode(e,e.uint32(),void 0,r+1,o.chatInputValue),o.value=`chatInputValue`;continue;case 16:if(a!==2)break;o.jsonTriggerValue=e.string(),o.value=`jsonTriggerValue`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.WidgetState)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.WidgetState;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.triggerValue!=null&&(n.triggerValue=!!e.triggerValue),e.boolValue!=null&&(n.boolValue=!!e.boolValue),e.doubleValue!=null&&(n.doubleValue=Number(e.doubleValue)),e.intValue!=null&&(B.Long?(n.intValue=B.Long.fromValue(e.intValue)).unsigned=!1:typeof e.intValue==`string`?n.intValue=parseInt(e.intValue,10):typeof e.intValue==`number`?n.intValue=e.intValue:typeof e.intValue==`object`&&(n.intValue=new B.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),e.stringValue!=null&&(n.stringValue=String(e.stringValue)),e.doubleArrayValue!=null){if(typeof e.doubleArrayValue!=`object`)throw TypeError(`.WidgetState.doubleArrayValue: object expected`);n.doubleArrayValue=V.DoubleArray.fromObject(e.doubleArrayValue,t+1)}if(e.intArrayValue!=null){if(typeof e.intArrayValue!=`object`)throw TypeError(`.WidgetState.intArrayValue: object expected`);n.intArrayValue=V.SInt64Array.fromObject(e.intArrayValue,t+1)}if(e.stringArrayValue!=null){if(typeof e.stringArrayValue!=`object`)throw TypeError(`.WidgetState.stringArrayValue: object expected`);n.stringArrayValue=V.StringArray.fromObject(e.stringArrayValue,t+1)}if(e.jsonValue!=null&&(n.jsonValue=String(e.jsonValue)),e.arrowValue!=null){if(typeof e.arrowValue!=`object`)throw TypeError(`.WidgetState.arrowValue: object expected`);n.arrowValue=V.ArrowTable.fromObject(e.arrowValue,t+1)}if(e.bytesValue!=null&&(typeof e.bytesValue==`string`?B.base64.decode(e.bytesValue,n.bytesValue=B.newBuffer(B.base64.length(e.bytesValue)),0):e.bytesValue.length>=0&&(n.bytesValue=e.bytesValue)),e.fileUploaderStateValue!=null){if(typeof e.fileUploaderStateValue!=`object`)throw TypeError(`.WidgetState.fileUploaderStateValue: object expected`);n.fileUploaderStateValue=V.FileUploaderState.fromObject(e.fileUploaderStateValue,t+1)}if(e.stringTriggerValue!=null){if(typeof e.stringTriggerValue!=`object`)throw TypeError(`.WidgetState.stringTriggerValue: object expected`);n.stringTriggerValue=V.StringTriggerValue.fromObject(e.stringTriggerValue,t+1)}if(e.chatInputValue!=null){if(typeof e.chatInputValue!=`object`)throw TypeError(`.WidgetState.chatInputValue: object expected`);n.chatInputValue=V.ChatInputValue.fromObject(e.chatInputValue,t+1)}return e.jsonTriggerValue!=null&&(n.jsonTriggerValue=String(e.jsonTriggerValue)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.triggerValue!=null&&e.hasOwnProperty(`triggerValue`)&&(n.triggerValue=e.triggerValue,t.oneofs&&(n.value=`triggerValue`)),e.boolValue!=null&&e.hasOwnProperty(`boolValue`)&&(n.boolValue=e.boolValue,t.oneofs&&(n.value=`boolValue`)),e.doubleValue!=null&&e.hasOwnProperty(`doubleValue`)&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.value=`doubleValue`)),e.intValue!=null&&e.hasOwnProperty(`intValue`)&&(typeof e.intValue==`number`?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?B.Long.prototype.toString.call(e.intValue):t.longs===Number?new B.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.value=`intValue`)),e.stringValue!=null&&e.hasOwnProperty(`stringValue`)&&(n.stringValue=e.stringValue,t.oneofs&&(n.value=`stringValue`)),e.doubleArrayValue!=null&&e.hasOwnProperty(`doubleArrayValue`)&&(n.doubleArrayValue=V.DoubleArray.toObject(e.doubleArrayValue,t),t.oneofs&&(n.value=`doubleArrayValue`)),e.intArrayValue!=null&&e.hasOwnProperty(`intArrayValue`)&&(n.intArrayValue=V.SInt64Array.toObject(e.intArrayValue,t),t.oneofs&&(n.value=`intArrayValue`)),e.stringArrayValue!=null&&e.hasOwnProperty(`stringArrayValue`)&&(n.stringArrayValue=V.StringArray.toObject(e.stringArrayValue,t),t.oneofs&&(n.value=`stringArrayValue`)),e.jsonValue!=null&&e.hasOwnProperty(`jsonValue`)&&(n.jsonValue=e.jsonValue,t.oneofs&&(n.value=`jsonValue`)),e.arrowValue!=null&&e.hasOwnProperty(`arrowValue`)&&(n.arrowValue=V.ArrowTable.toObject(e.arrowValue,t),t.oneofs&&(n.value=`arrowValue`)),e.bytesValue!=null&&e.hasOwnProperty(`bytesValue`)&&(n.bytesValue=t.bytes===String?B.base64.encode(e.bytesValue,0,e.bytesValue.length):t.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue,t.oneofs&&(n.value=`bytesValue`)),e.fileUploaderStateValue!=null&&e.hasOwnProperty(`fileUploaderStateValue`)&&(n.fileUploaderStateValue=V.FileUploaderState.toObject(e.fileUploaderStateValue,t),t.oneofs&&(n.value=`fileUploaderStateValue`)),e.stringTriggerValue!=null&&e.hasOwnProperty(`stringTriggerValue`)&&(n.stringTriggerValue=V.StringTriggerValue.toObject(e.stringTriggerValue,t),t.oneofs&&(n.value=`stringTriggerValue`)),e.chatInputValue!=null&&e.hasOwnProperty(`chatInputValue`)&&(n.chatInputValue=V.ChatInputValue.toObject(e.chatInputValue,t),t.oneofs&&(n.value=`chatInputValue`)),e.jsonTriggerValue!=null&&e.hasOwnProperty(`jsonTriggerValue`)&&(n.jsonTriggerValue=e.jsonTriggerValue,t.oneofs&&(n.value=`jsonTriggerValue`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/WidgetState`},e})(),ho=V.StringArray=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.data=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.data!=null&&e.data.length)for(let n=0;n<e.data.length;++n)t.uint32(10).string(e.data[n]);if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.StringArray;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.data&&o.data.length||(o.data=[]),o.data.push(e.string());continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.StringArray)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.StringArray;
18if(e.data){if(!Array.isArray(e.data))throw TypeError(`.StringArray.data: array expected`);n.data=Array(e.data.length);for(let t=0;t<e.data.length;++t)n.data[t]=String(e.data[t])}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=Array(e.data.length);for(let t=0;t<e.data.length;++t)n.data[t]=e.data[t]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/StringArray`},e})(),go=V.DoubleArray=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.data=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.data!=null&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.double(e.data[n]);t.ldelim()}if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.DoubleArray;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a===2){o.data&&o.data.length||(o.data=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.data.push(e.double());continue}if(a!==1)break;o.data&&o.data.length||(o.data=[]),o.data.push(e.double());continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.DoubleArray)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.DoubleArray;
18if(e.data){if(!Array.isArray(e.data))throw TypeError(`.DoubleArray.data: array expected`);n.data=Array(e.data.length);for(let t=0;t<e.data.length;++t)n.data[t]=Number(e.data[t])}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=Array(e.data.length);for(let r=0;r<e.data.length;++r)n.data[r]=t.json&&!isFinite(e.data[r])?String(e.data[r]):e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/DoubleArray`},e})();V.Int32Array=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.data=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.data!=null&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.int32(e.data[n]);t.ldelim()}if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Int32Array;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a===2){o.data&&o.data.length||(o.data=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.data.push(e.int32());continue}if(a!==0)break;o.data&&o.data.length||(o.data=[]),o.data.push(e.int32());continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Int32Array)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Int32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(`.Int32Array.data: array expected`);n.data=Array(e.data.length);for(let t=0;t<e.data.length;++t)n.data[t]=e.data[t]|0}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=Array(e.data.length);for(let t=0;t<e.data.length;++t)n.data[t]=e.data[t]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Int32Array`},e})(),V.Int64Array=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.data=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.data!=null&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.int64(e.data[n]);t.ldelim()}if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Int64Array;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a===2){o.data&&o.data.length||(o.data=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.data.push(e.int64());continue}if(a!==0)break;o.data&&o.data.length||(o.data=[]),o.data.push(e.int64());continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Int64Array)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Int64Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(`.Int64Array.data: array expected`);n.data=Array(e.data.length);for(let t=0;t<e.data.length;++t)B.Long?(n.data[t]=B.Long.fromValue(e.data[t])).unsigned=!1:typeof e.data[t]==`string`?n.data[t]=parseInt(e.data[t],10):typeof e.data[t]==`number`?n.data[t]=e.data[t]:typeof e.data[t]==`object`&&(n.data[t]=new B.LongBits(e.data[t].low>>>0,e.data[t].high>>>0).toNumber())}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=Array(e.data.length);for(let r=0;r<e.data.length;++r)typeof e.data[r]==`number`?n.data[r]=t.longs===String?String(e.data[r]):e.data[r]:n.data[r]=t.longs===String?B.Long.prototype.toString.call(e.data[r]):t.longs===Number?new B.LongBits(e.data[r].low>>>0,e.data[r].high>>>0).toNumber():e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Int64Array`},e})();var _o=V.SInt64Array=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.data=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.data!=null&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.sint64(e.data[n]);t.ldelim()}if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.SInt64Array;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a===2){o.data&&o.data.length||(o.data=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.data.push(e.sint64());continue}if(a!==0)break;o.data&&o.data.length||(o.data=[]),o.data.push(e.sint64());continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.SInt64Array)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.SInt64Array;
18if(e.data){if(!Array.isArray(e.data))throw TypeError(`.SInt64Array.data: array expected`);n.data=Array(e.data.length);for(let t=0;t<e.data.length;++t)B.Long?(n.data[t]=B.Long.fromValue(e.data[t])).unsigned=!1:typeof e.data[t]==`string`?n.data[t]=parseInt(e.data[t],10):typeof e.data[t]==`number`?n.data[t]=e.data[t]:typeof e.data[t]==`object`&&(n.data[t]=new B.LongBits(e.data[t].low>>>0,e.data[t].high>>>0).toNumber())}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=Array(e.data.length);for(let r=0;r<e.data.length;++r)typeof e.data[r]==`number`?n.data[r]=t.longs===String?String(e.data[r]):e.data[r]:n.data[r]=t.longs===String?B.Long.prototype.toString.call(e.data[r]):t.longs===Number?new B.LongBits(e.data[r].low>>>0,e.data[r].high>>>0).toNumber():e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/SInt64Array`},e})();V.UInt32Array=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.data=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.data!=null&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.uint32(e.data[n]);t.ldelim()}if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.UInt32Array;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a===2){o.data&&o.data.length||(o.data=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.data.push(e.uint32());continue}if(a!==0)break;o.data&&o.data.length||(o.data=[]),o.data.push(e.uint32());continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.UInt32Array)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.UInt32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(`.UInt32Array.data: array expected`);n.data=Array(e.data.length);for(let t=0;t<e.data.length;++t)n.data[t]=e.data[t]>>>0}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=Array(e.data.length);for(let t=0;t<e.data.length;++t)n.data[t]=e.data[t]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/UInt32Array`},e})();var vo=V.StringTriggerValue=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.data=null;let t;return Object.defineProperty(e.prototype,`_data`,{get:B.oneOfGetter(t=[`data`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.data!=null&&Object.hasOwnProperty.call(e,`data`)&&t.uint32(10).string(e.data),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.StringTriggerValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.data=e.string(),o._data=`data`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.StringTriggerValue)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.StringTriggerValue;return e.data!=null&&(n.data=String(e.data)),n},e.toObject=function(e,t){t||={};let n={};return e.data!=null&&e.hasOwnProperty(`data`)&&(n.data=e.data,t.oneofs&&(n._data=`data`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/StringTriggerValue`},e})();V.FileURLsRequest=(()=>{function e(e){if(this.fileNames=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.requestId=``,e.prototype.fileNames=B.emptyArray,e.prototype.sessionId=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.requestId!=null&&Object.hasOwnProperty.call(e,`requestId`)&&t.uint32(10).string(e.requestId),e.fileNames!=null&&e.fileNames.length)for(let n=0;n<e.fileNames.length;++n)t.uint32(18).string(e.fileNames[n]);if(e.sessionId!=null&&Object.hasOwnProperty.call(e,`sessionId`)&&t.uint32(26).string(e.sessionId),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.FileURLsRequest,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.requestId=s:delete o.requestId;continue;case 2:if(a!==2)break;o.fileNames&&o.fileNames.length||(o.fileNames=[]),o.fileNames.push(e.string());continue;case 3:if(a!==2)break;(s=e.string()).length?o.sessionId=s:delete o.sessionId;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.FileURLsRequest)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.FileURLsRequest;if(e.requestId!=null&&(typeof e.requestId!=`string`||e.requestId.length)&&(n.requestId=String(e.requestId)),e.fileNames){if
18(!Array.isArray(e.fileNames))throw TypeError(`.FileURLsRequest.fileNames: array expected`);n.fileNames=Array(e.fileNames.length);for(let t=0;t<e.fileNames.length;++t)n.fileNames[t]=String(e.fileNames[t])}return e.sessionId!=null&&(typeof e.sessionId!=`string`||e.sessionId.length)&&(n.sessionId=String(e.sessionId)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.fileNames=[]),t.defaults&&(n.requestId=``,n.sessionId=``),e.requestId!=null&&e.hasOwnProperty(`requestId`)&&(n.requestId=e.requestId),e.fileNames&&e.fileNames.length){n.fileNames=Array(e.fileNames.length);for(let t=0;t<e.fileNames.length;++t)n.fileNames[t]=e.fileNames[t]}return e.sessionId!=null&&e.hasOwnProperty(`sessionId`)&&(n.sessionId=e.sessionId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/FileURLsRequest`},e})(),V.FileURLs=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.fileId=``,e.prototype.uploadUrl=``,e.prototype.deleteUrl=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.fileId!=null&&Object.hasOwnProperty.call(e,`fileId`)&&t.uint32(10).string(e.fileId),e.uploadUrl!=null&&Object.hasOwnProperty.call(e,`uploadUrl`)&&t.uint32(18).string(e.uploadUrl),e.deleteUrl!=null&&Object.hasOwnProperty.call(e,`deleteUrl`)&&t.uint32(26).string(e.deleteUrl),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.FileURLs,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.fileId=s:delete o.fileId;continue;case 2:if(a!==2)break;(s=e.string()).length?o.uploadUrl=s:delete o.uploadUrl;continue;case 3:if(a!==2)break;(s=e.string()).length?o.deleteUrl=s:delete o.deleteUrl;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.FileURLs)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.FileURLs;return e.fileId!=null&&(typeof e.fileId!=`string`||e.fileId.length)&&(n.fileId=String(e.fileId)),e.uploadUrl!=null&&(typeof e.uploadUrl!=`string`||e.uploadUrl.length)&&(n.uploadUrl=String(e.uploadUrl)),e.deleteUrl!=null&&(typeof e.deleteUrl!=`string`||e.deleteUrl.length)&&(n.deleteUrl=String(e.deleteUrl)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.fileId=``,n.uploadUrl=``,n.deleteUrl=``),e.fileId!=null&&e.hasOwnProperty(`fileId`)&&(n.fileId=e.fileId),e.uploadUrl!=null&&e.hasOwnProperty(`uploadUrl`)&&(n.uploadUrl=e.uploadUrl),e.deleteUrl!=null&&e.hasOwnProperty(`deleteUrl`)&&(n.deleteUrl=e.deleteUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/FileURLs`},e})(),V.FileURLsResponse=(()=>{function e(e){if(this.fileUrls=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.responseId=``,e.prototype.fileUrls=B.emptyArray,e.prototype.errorMsg=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.responseId!=null&&Object.hasOwnProperty.call(e,`responseId`)&&t.uint32(10).string(e.responseId),e.fileUrls!=null&&e.fileUrls.length)for(let n=0;n<e.fileUrls.length;++n)V.FileURLs.encode(e.fileUrls[n],t.uint32(18).fork()).ldelim();if(e.errorMsg!=null&&Object.hasOwnProperty.call(e,`errorMsg`)&&t.uint32(26).string(e.errorMsg),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.FileURLsResponse,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.responseId=s:delete o.responseId;continue;case 2:if(a!==2)break;o.fileUrls&&o.fileUrls.length||(o.fileUrls=[]),o.fileUrls.push(V.FileURLs.decode(e,e.uint32(),void 0,r+1));continue;case 3:if(a!==2)break;(s=e.string()).length?o.errorMsg=s:delete o.errorMsg;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.FileURLsResponse)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.FileURLsResponse;if(e.responseId!=null&&(typeof e.responseId!=`string`||e.responseId.length)&&(n.responseId=String(e.responseId)),e.fileUrls){if(!Array.isArray(e.fileUrls))throw TypeError(`.FileURLsResponse.fileUrls: array expected`);n.fileUrls=Array(e.fileUrls.length);for(let r=0;r<e.fileUrls.length;++r){if(typeof e.fileUrls[r]!=`object`)throw TypeError(`.FileURLsResponse.fileUrls: object expected`);n.fileUrls[r]=V.FileURLs.fromObject(e.fileUrls[r],t+1)}}return e.errorMsg!=null&&(typeof e.errorMsg!=`string`||e.errorMsg.length)&&(n.errorMsg=String(e.errorMsg)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.fileUrls=[]),t.defaults&&(n.responseId=``,n.errorMsg=``),e.responseId!=null&&e.hasOwnProperty(`responseId`)&&(n.responseId=e.responseId),e.fileUrls&&e.fileUrls.length){n.fileUrls=Array(e.fileUrls.length);for(let r=0;r<e.fileUrls.length;++r)n.fileUrls[r]=V.FileURLs.toObject(e.fileUrls[r],t)}return e.errorMsg!=null&&e.hasOwnProperty(`errorMsg`)&&(n.errorMsg=e.errorMsg),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/FileURLsResponse`},e})();var yo=V.UploadedFileInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.name=``,e.prototype.size=B.Long?B.Long.fromBits(0,0,!0):0,e.prototype.fileId=``,e.prototype.fileUrls=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(18).string(e.name),e.size!=null&&Object.hasOwnProperty.call(e,`size`)&&t.uint32(24).uint64(e.size),e.fileId!=null&&Object.hasOwnProperty.call(e,`fileId`)&&t.uint32(34).string(e.fileId),e.fileUrls!=null&&Object.hasOwnProperty.call(e,`fileUrls`)&&V.FileURLs.encode(e.fileUrls,t.uint32(42).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.UploadedFileInfo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 2:if(a!==2)break;(s=e.string()).length?o.name=s:delete o.name;continue;case 3:if(a!==0)break;(typeof(s=e.uint64())==`object`?s.low||s.high:s!==0)?o.size=s:delete o.size;continue;case 4:if(a!==2)break;(s=e.string()).length?o.fileId=s:delete o.fileId;continue;case 5:if(a!==2)break;o.fileUrls=V.FileURLs.decode(e,e.uint32(),void 0,r+1,o.fileUrls);continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.UploadedFileInfo)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.UploadedFileInfo;if(e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=String(e.name)),e.size!=null&&(typeof e.size==`object`?e.size.low||e.size.high:Number(e.size)!==0)&&(B.Long?(n.size=B.Long.fromValue(e.size)).unsigned=!0:typeof e.size==`string`?n.size=parseInt(e.size,10):typeof e.size==`number`?n.size=e.size:typeof e.size==`object`&&(n.size=new B.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0))),e.fileId!=null&&(typeof e.fileId!=`string`||e.fileId.length)&&(n.fileId=String(e.fileId)),e.fileUrls!=null){if(typeof e.fileUrls!=`object`)throw TypeError(`.UploadedFileInfo.fileUrls: object expected`);n.fileUrls=V.FileURLs.fromObject(e.fileUrls,t+1)}return n},e.toObject=function(e,t){t||={};let n={};if(t.defaults){if(n.name=``,B.Long){let e=new B.Long(0,0,!0);n.size=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.size=t.longs===String?`0`:0;
18n.fileId=``,n.fileUrls=null}return e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),e.size!=null&&e.hasOwnProperty(`size`)&&(typeof e.size==`number`?n.size=t.longs===String?String(e.size):e.size:n.size=t.longs===String?B.Long.prototype.toString.call(e.size):t.longs===Number?new B.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0):e.size),e.fileId!=null&&e.hasOwnProperty(`fileId`)&&(n.fileId=e.fileId),e.fileUrls!=null&&e.hasOwnProperty(`fileUrls`)&&(n.fileUrls=V.FileURLs.toObject(e.fileUrls,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/UploadedFileInfo`},e})(),bo=V.FileUploaderState=(()=>{function e(e){if(this.uploadedFileInfo=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.uploadedFileInfo=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.uploadedFileInfo!=null&&e.uploadedFileInfo.length)for(let n=0;n<e.uploadedFileInfo.length;++n)V.UploadedFileInfo.encode(e.uploadedFileInfo[n],t.uint32(18).fork()).ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.FileUploaderState;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 2:if(a!==2)break;o.uploadedFileInfo&&o.uploadedFileInfo.length||(o.uploadedFileInfo=[]),o.uploadedFileInfo.push(V.UploadedFileInfo.decode(e,e.uint32(),void 0,r+1));continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.FileUploaderState)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.FileUploaderState;if(e.uploadedFileInfo){if(!Array.isArray(e.uploadedFileInfo))throw TypeError(`.FileUploaderState.uploadedFileInfo: array expected`);n.uploadedFileInfo=Array(e.uploadedFileInfo.length);for(let r=0;r<e.uploadedFileInfo.length;++r){if(typeof e.uploadedFileInfo[r]!=`object`)throw TypeError(`.FileUploaderState.uploadedFileInfo: object expected`);n.uploadedFileInfo[r]=V.UploadedFileInfo.fromObject(e.uploadedFileInfo[r],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.uploadedFileInfo=[]),e.uploadedFileInfo&&e.uploadedFileInfo.length){n.uploadedFileInfo=Array(e.uploadedFileInfo.length);for(let r=0;r<e.uploadedFileInfo.length;++r)n.uploadedFileInfo[r]=V.UploadedFileInfo.toObject(e.uploadedFileInfo[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/FileUploaderState`},e})(),xo=V.ChatInputValue=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.data=null,e.prototype.fileUploaderState=null,e.prototype.audioFileInfo=null;let t;return Object.defineProperty(e.prototype,`_data`,{get:B.oneOfGetter(t=[`data`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_fileUploaderState`,{get:B.oneOfGetter(t=[`fileUploaderState`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_audioFileInfo`,{get:B.oneOfGetter(t=[`audioFileInfo`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.data!=null&&Object.hasOwnProperty.call(e,`data`)&&t.uint32(10).string(e.data),e.fileUploaderState!=null&&Object.hasOwnProperty.call(e,`fileUploaderState`)&&V.FileUploaderState.encode(e.fileUploaderState,t.uint32(18).fork()).ldelim(),e.audioFileInfo!=null&&Object.hasOwnProperty.call(e,`audioFileInfo`)&&V.UploadedFileInfo.encode(e.audioFileInfo,t.uint32(26).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ChatInputValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.data=e.string(),o._data=`data`;continue;case 2:if(a!==2)break;o.fileUploaderState=V.FileUploaderState.decode(e,e.uint32(),void 0,r+1,o.fileUploaderState),o._fileUploaderState=`fileUploaderState`;continue;case 3:if(a!==2)break;o.audioFileInfo=V.UploadedFileInfo.decode(e,e.uint32(),void 0,r+1,o.audioFileInfo),o._audioFileInfo=`audioFileInfo`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ChatInputValue)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ChatInputValue;if(e.data!=null&&(n.data=String(e.data)),e.fileUploaderState!=null){if(typeof e.fileUploaderState!=`object`)throw TypeError(`.ChatInputValue.fileUploaderState: object expected`);n.fileUploaderState=V.FileUploaderState.fromObject(e.fileUploaderState,t+1)}if(e.audioFileInfo!=null){if(typeof e.audioFileInfo!=`object`)throw TypeError(`.ChatInputValue.audioFileInfo: object expected`);n.audioFileInfo=V.UploadedFileInfo.fromObject(e.audioFileInfo,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return e.data!=null&&e.hasOwnProperty(`data`)&&(n.data=e.data,t.oneofs&&(n._data=`data`)),e.fileUploaderState!=null&&e.hasOwnProperty(`fileUploaderState`)&&(n.fileUploaderState=V.FileUploaderState.toObject(e.fileUploaderState,t),t.oneofs&&(n._fileUploaderState=`fileUploaderState`)),e.audioFileInfo!=null&&e.hasOwnProperty(`audioFileInfo`)&&(n.audioFileInfo=V.UploadedFileInfo.toObject(e.audioFileInfo,t),t.oneofs&&(n._audioFileInfo=`audioFileInfo`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ChatInputValue`},e})();V.ComponentInstance=(()=>{function e(e){if(this.specialArgs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.jsonArgs=``,e.prototype.specialArgs=B.emptyArray,e.prototype.componentName=``,e.prototype.url=``,e.prototype.formId=``,e.prototype.tabIndex=null;let t;return Object.defineProperty(e.prototype,`_tabIndex`,{get:B.oneOfGetter(t=[`tabIndex`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.jsonArgs!=null&&Object.hasOwnProperty.call(e,`jsonArgs`)&&t.uint32(18).string(e.jsonArgs),e.specialArgs!=null&&e.specialArgs.length)for(let n=0;n<e.specialArgs.length;++n)V.SpecialArg.encode(e.specialArgs[n],t.uint32(26).fork()).ldelim();if(e.componentName!=null&&Object.hasOwnProperty.call(e,`componentName`)&&t.uint32(34).string(e.componentName),e.url!=null&&Object.hasOwnProperty.call(e,`url`)&&t.uint32(42).string(e.url),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(50).string(e.formId),e.tabIndex!=null&&Object.hasOwnProperty.call(e,`tabIndex`)&&t.uint32(56).int32(e.tabIndex),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ComponentInstance,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.jsonArgs=s:delete o.jsonArgs;continue;case 3:if(a!==2)break;o.specialArgs&&o.specialArgs.length||(o.specialArgs=[]),o.specialArgs.push(V.SpecialArg.decode(e,e.uint32(),void 0,r+1));continue;case 4:if(a!==2)break;(s=e.string()).length?o.componentName=s:delete o.componentName;continue;case 5:if(a!==2)break;(s=e.string()).length?o.url=s:delete o.url;continue;case 6:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 7:if(a!==0)break;o.tabIndex=e.int32(),o._tabIndex=`tabIndex`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ComponentInstance)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ComponentInstance;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.jsonArgs!=null&&(typeof e.jsonArgs!=`string`||e.jsonArgs.length)&&(n.jsonArgs=String(e.jsonArgs)),e.specialArgs){if(!Array.isArray(e.specialArgs))throw TypeError(`.ComponentInstance.specialArgs: array expected`);n.specialArgs=Array(e.specialArgs.length);for(let r=0;r<e.specialArgs.length;++r){if(typeof e.specialArgs[r]!=`object`)throw TypeError(`.ComponentInstance.specialArgs: object expected`);n.specialArgs[r]=V.SpecialArg.fromObject(e.specialArgs[r],t+1)}}return e.componentName!=null&&(typeof e.componentName!=`string`||e.componentName.length)&&(n.componentName=String(e.componentName)),e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=String(e.url)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.tabIndex!=null&&(n.tabIndex=e.tabIndex|0),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.specialArgs=[]),t.defaults&&(n.id=``,n.jsonArgs=``,n.componentName=``,n.url=``,n.formId=``),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.jsonArgs!=null&&e.hasOwnProperty(`jsonArgs`)&&(n.jsonArgs=e.jsonArgs),e.specialArgs&&e.specialArgs.length){n.specialArgs=Array(e.specialArgs.length);for(let r=0;r<e.specialArgs.length;++r)n.specialArgs[r]=V.SpecialArg.toObject(e.specialArgs[r],t)}return e.componentName!=null&&e.hasOwnProperty(`componentName`)&&(n.componentName=e.componentName),e.url!=null&&e.hasOwnProperty(`url`)&&(n.url=e.url),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.tabIndex!=null&&e.hasOwnProperty(`tabIndex`)&&(n.tabIndex=e.tabIndex,t.oneofs&&(n._tabIndex=`tabIndex`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ComponentInstance`},e})(),V.SpecialArg=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.key=``,e.prototype.arrowDataframe=null,e.prototype.bytes=null;let t;return Object.defineProperty(e.prototype,`value`,{get:B.oneOfGetter(t=[`arrowDataframe`,`bytes`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.key!=null&&Object.hasOwnProperty.call(e,`key`)&&t.uint32(10).string(e.key),e.arrowDataframe!=null&&Object.hasOwnProperty.call(e,`arrowDataframe`)&&V.ArrowDataframe.encode(e.arrowDataframe,t.uint32(18).fork()).ldelim(),e.bytes!=null&&Object.hasOwnProperty.call(e,`bytes`)&&t.uint32(26).bytes(e.bytes),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.SpecialArg,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.key=s:delete o.key;continue;case 2:if(a!==2)break;o.arrowDataframe=V.ArrowDataframe.decode(e,e.uint32(),void 0,r+1,o.arrowDataframe),o.value=`arrowDataframe`;continue;case 3:if(a!==2)break;o.bytes=e.bytes(),o.value=`bytes`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.SpecialArg)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.SpecialArg;if(e.key!=null&&(typeof e.key!=`string`||e.key.length)&&(n.key=String(e.key)),e.arrowDataframe!=null){if(typeof e.arrowDataframe!=`object`)throw TypeError(`.SpecialArg.arrowDataframe: object expected`);n.arrowDataframe=V.ArrowDataframe.fromObject(e.arrowDataframe,t+1)}return e.bytes!=null&&(typeof e.bytes==`string`?B.base64.decode(e.bytes,n.bytes=B.newBuffer(B.base64.length(e.bytes)),0):e.bytes.length>=0&&(n.bytes=e.bytes)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.key=``),e.key!=null&&e.hasOwnProperty(`key`)&&(n.key=e.key),e.arrowDataframe!=null&&e.hasOwnProperty(`arrowDataframe`)&&(n.arrowDataframe=V.ArrowDataframe.toObject(e.arrowDataframe,t),t.oneofs&&(n.value=`arrowDataframe`)),e.bytes!=null&&e.hasOwnProperty(`bytes`)&&(n.bytes=t.bytes===String?B.base64.encode(e.bytes,0,e.bytes.length):t.bytes===Array?Array.prototype.slice.call(e.bytes):e.bytes,t.oneofs&&(n.value=`bytes`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/SpecialArg`},e})();var So=V.ArrowDataframe=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.prototype.height=0,e.prototype.width=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.data!=null&&Object.hasOwnProperty.call(e,`data`)&&V.ArrowTable.encode(e.data,t.uint32(10).fork()).ldelim(),e.height!=null&&Object.hasOwnProperty.call(e,`height`)&&t.uint32(16).uint32(e.height),e.width!=null&&Object.hasOwnProperty.call(e,`width`)&&t.uint32(24).uint32(e.width),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ArrowDataframe,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.data=V.ArrowTable.decode(e,e.uint32(),void 0,r+1,o.data);continue;case 2:if(a!==0)break;(s=e.uint32())?o.height=s:delete o.height;continue;case 3:if(a!==0)break;(s=e.uint32())?o.width=s:delete o.width;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ArrowDataframe)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ArrowDataframe;if(e.data!=null){if(typeof e.data!=`object`)throw TypeError(`.ArrowDataframe.data: object expected`);n.data=V.ArrowTable.fromObject(e.data,t+1)}return e.height!=null&&Number(e.height)!==0&&(n.height=e.height>>>0),e.width!=null&&Number(e.width)!==0&&(n.width=e.width>>>0),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.data=null,n.height=0,n.width=0),e.data!=null&&e.hasOwnProperty(`data`)&&(n.data=V.ArrowTable.toObject(e.data,t)),e.height!=null&&e.hasOwnProperty(`height`)&&(n.height=e.height),e.width!=null&&e.hasOwnProperty(`width`)&&(n.width=e.width),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ArrowDataframe`},e})();V.ArrowTable=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.data=B.newBuffer([]),e.prototype.index=B.newBuffer([]),e.prototype.columns=B.newBuffer([]),e.prototype.styler=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.data!=null&&Object.hasOwnProperty.call(e,`data`)&&t.uint32(10).bytes(e.data),e.index!=null&&Object.hasOwnProperty.call(e,`inde
18x`)&&t.uint32(18).bytes(e.index),e.columns!=null&&Object.hasOwnProperty.call(e,`columns`)&&t.uint32(26).bytes(e.columns),e.styler!=null&&Object.hasOwnProperty.call(e,`styler`)&&V.ArrowTableStyler.encode(e.styler,t.uint32(42).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ArrowTable,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.bytes()).length?o.data=s:delete o.data;continue;case 2:if(a!==2)break;(s=e.bytes()).length?o.index=s:delete o.index;continue;case 3:if(a!==2)break;(s=e.bytes()).length?o.columns=s:delete o.columns;continue;case 5:if(a!==2)break;o.styler=V.ArrowTableStyler.decode(e,e.uint32(),void 0,r+1,o.styler);continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ArrowTable)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ArrowTable;if(e.data!=null&&e.data.length&&(typeof e.data==`string`?B.base64.decode(e.data,n.data=B.newBuffer(B.base64.length(e.data)),0):e.data.length>=0&&(n.data=e.data)),e.index!=null&&e.index.length&&(typeof e.index==`string`?B.base64.decode(e.index,n.index=B.newBuffer(B.base64.length(e.index)),0):e.index.length>=0&&(n.index=e.index)),e.columns!=null&&e.columns.length&&(typeof e.columns==`string`?B.base64.decode(e.columns,n.columns=B.newBuffer(B.base64.length(e.columns)),0):e.columns.length>=0&&(n.columns=e.columns)),e.styler!=null){if(typeof e.styler!=`object`)throw TypeError(`.ArrowTable.styler: object expected`);n.styler=V.ArrowTableStyler.fromObject(e.styler,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(t.bytes===String?n.data=``:(n.data=[],t.bytes!==Array&&(n.data=B.newBuffer(n.data))),t.bytes===String?n.index=``:(n.index=[],t.bytes!==Array&&(n.index=B.newBuffer(n.index))),t.bytes===String?n.columns=``:(n.columns=[],t.bytes!==Array&&(n.columns=B.newBuffer(n.columns))),n.styler=null),e.data!=null&&e.hasOwnProperty(`data`)&&(n.data=t.bytes===String?B.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),e.index!=null&&e.hasOwnProperty(`index`)&&(n.index=t.bytes===String?B.base64.encode(e.index,0,e.index.length):t.bytes===Array?Array.prototype.slice.call(e.index):e.index),e.columns!=null&&e.hasOwnProperty(`columns`)&&(n.columns=t.bytes===String?B.base64.encode(e.columns,0,e.columns.length):t.bytes===Array?Array.prototype.slice.call(e.columns):e.columns),e.styler!=null&&e.hasOwnProperty(`styler`)&&(n.styler=V.ArrowTableStyler.toObject(e.styler,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ArrowTable`},e})(),V.ArrowTableStyler=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.uuid=``,e.prototype.caption=``,e.prototype.styles=``,e.prototype.displayValues=B.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.uuid!=null&&Object.hasOwnProperty.call(e,`uuid`)&&t.uint32(10).string(e.uuid),e.caption!=null&&Object.hasOwnProperty.call(e,`caption`)&&t.uint32(18).string(e.caption),e.styles!=null&&Object.hasOwnProperty.call(e,`styles`)&&t.uint32(26).string(e.styles),e.displayValues!=null&&Object.hasOwnProperty.call(e,`displayValues`)&&t.uint32(34).bytes(e.displayValues),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ArrowTableStyler,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.uuid=s:delete o.uuid;continue;case 2:if(a!==2)break;(s=e.string()).length?o.caption=s:delete o.caption;continue;case 3:if(a!==2)break;(s=e.string()).length?o.styles=s:delete o.styles;continue;case 4:if(a!==2)break;(s=e.bytes()).length?o.displayValues=s:delete o.displayValues;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ArrowTableStyler)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ArrowTableStyler;return e.uuid!=null&&(typeof e.uuid!=`string`||e.uuid.length)&&(n.uuid=String(e.uuid)),e.caption!=null&&(typeof e.caption!=`
18string`||e.caption.length)&&(n.caption=String(e.caption)),e.styles!=null&&(typeof e.styles!=`string`||e.styles.length)&&(n.styles=String(e.styles)),e.displayValues!=null&&e.displayValues.length&&(typeof e.displayValues==`string`?B.base64.decode(e.displayValues,n.displayValues=B.newBuffer(B.base64.length(e.displayValues)),0):e.displayValues.length>=0&&(n.displayValues=e.displayValues)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.uuid=``,n.caption=``,n.styles=``,t.bytes===String?n.displayValues=``:(n.displayValues=[],t.bytes!==Array&&(n.displayValues=B.newBuffer(n.displayValues)))),e.uuid!=null&&e.hasOwnProperty(`uuid`)&&(n.uuid=e.uuid),e.caption!=null&&e.hasOwnProperty(`caption`)&&(n.caption=e.caption),e.styles!=null&&e.hasOwnProperty(`styles`)&&(n.styles=e.styles),e.displayValues!=null&&e.hasOwnProperty(`displayValues`)&&(n.displayValues=t.bytes===String?B.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ArrowTableStyler`},e})(),V.Balloons=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.show=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.show!=null&&Object.hasOwnProperty.call(e,`show`)&&t.uint32(24).bool(e.show),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Balloons,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 3:if(a!==0)break;(s=e.bool())?o.show=s:delete o.show;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Balloons)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Balloons;return e.show!=null&&e.show&&(n.show=!!e.show),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.show=!1),e.show!=null&&e.hasOwnProperty(`show`)&&(n.show=e.show),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Balloons`},e})(),V.MixedData=(()=>{function e(e){if(this.arrowBlobs={},e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.json=``,e.prototype.arrowBlobs=B.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.json!=null&&Object.hasOwnProperty.call(e,`json`)&&t.uint32(10).string(e.json),e.arrowBlobs!=null&&Object.hasOwnProperty.call(e,`arrowBlobs`))for(let n=Object.keys(e.arrowBlobs),r=0;r<n.length;++r)t.uint32(18).fork().uint32(10).string(n[r]),V.ArrowData.encode(e.arrowBlobs[n[r]],t.uint32(18).fork()).ldelim().ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.MixedData,s,c;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(c=e.string()).length?o.json=c:delete o.json;continue;case 2:{if(a!==2)break;o.arrowBlobs===B.emptyObject&&(o.arrowBlobs={});let t=e.uint32()+e.pos;for(s=``,c=null;e.pos<t;){let t=e.tag();switch(a=t&7,t>>>=3){case 1:if(a!==2)break;s=e.string();continue;case 2:if(a!==2)break;c=V.ArrowData.decode(e,e.uint32(),void 0,r+1);continue}e.skipType(a,r,t)}s===`__proto__`&&B.makeProp(o.arrowBlobs,s),o.arrowBlobs[s]=c||new V.ArrowData;continue}}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.MixedData)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.MixedData;if(e.json!=null&&(typeof e.json!=`string`||e.json.length)&&(n.json=String(e.json)),e.arrowBlobs){if(typeof e.arrowBlobs!=`object`)throw TypeError(`.MixedData.arrowBlobs: object expected`);n.arrowBlobs={};for(let r=Object.keys(e.arrowBlobs),i=0;i<r.length;++i){if(r[i]===`__proto__`&&B.makeProp(n.arrowBlobs,r[i]),typeof e.arrowBlobs[r[i]]!=`object`)throw TypeError(`.MixedData.arrowBlobs: object expected`);n.arrowBlobs[r[i]]=V.ArrowData.fromObject(e.arrowBlobs[r[i]],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};(t.objects||t.defaults)&&(n.arrowBlobs={}),t.defaults&&(n.json=``),e.json!=null&&e.hasOwnProperty(`json`)&&(n.json=e.json);let r;
18if(e.arrowBlobs&&(r=Object.keys(e.arrowBlobs)).length){n.arrowBlobs={};for(let i=0;i<r.length;++i)r[i]===`__proto__`&&B.makeProp(n.arrowBlobs,r[i]),n.arrowBlobs[r[i]]=V.ArrowData.toObject(e.arrowBlobs[r[i]],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/MixedData`},e})(),V.BidiComponent=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.componentName=``,e.prototype.jsContent=null,e.prototype.jsSourcePath=null,e.prototype.formId=``,e.prototype.htmlContent=null,e.prototype.cssContent=null,e.prototype.cssSourcePath=null,e.prototype.isolateStyles=!1,e.prototype.json=null,e.prototype.arrowData=null,e.prototype.bytes=null,e.prototype.mixed=null;let t;return Object.defineProperty(e.prototype,`_jsContent`,{get:B.oneOfGetter(t=[`jsContent`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_jsSourcePath`,{get:B.oneOfGetter(t=[`jsSourcePath`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_htmlContent`,{get:B.oneOfGetter(t=[`htmlContent`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_cssContent`,{get:B.oneOfGetter(t=[`cssContent`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_cssSourcePath`,{get:B.oneOfGetter(t=[`cssSourcePath`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`data`,{get:B.oneOfGetter(t=[`json`,`arrowData`,`bytes`,`mixed`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.componentName!=null&&Object.hasOwnProperty.call(e,`componentName`)&&t.uint32(18).string(e.componentName),e.jsContent!=null&&Object.hasOwnProperty.call(e,`jsContent`)&&t.uint32(26).string(e.jsContent),e.jsSourcePath!=null&&Object.hasOwnProperty.call(e,`jsSourcePath`)&&t.uint32(34).string(e.jsSourcePath),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(42).string(e.formId),e.htmlContent!=null&&Object.hasOwnProperty.call(e,`htmlContent`)&&t.uint32(50).string(e.htmlContent),e.cssContent!=null&&Object.hasOwnProperty.call(e,`cssContent`)&&t.uint32(58).string(e.cssContent),e.cssSourcePath!=null&&Object.hasOwnProperty.call(e,`cssSourcePath`)&&t.uint32(66).string(e.cssSourcePath),e.isolateStyles!=null&&Object.hasOwnProperty.call(e,`isolateStyles`)&&t.uint32(72).bool(e.isolateStyles),e.json!=null&&Object.hasOwnProperty.call(e,`json`)&&t.uint32(82).string(e.json),e.arrowData!=null&&Object.hasOwnProperty.call(e,`arrowData`)&&V.ArrowData.encode(e.arrowData,t.uint32(90).fork()).ldelim(),e.bytes!=null&&Object.hasOwnProperty.call(e,`bytes`)&&t.uint32(98).bytes(e.bytes),e.mixed!=null&&Object.hasOwnProperty.call(e,`mixed`)&&V.MixedData.encode(e.mixed,t.uint32(106).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.BidiComponent,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.componentName=s:delete o.componentName;continue;case 3:if(a!==2)break;o.jsContent=e.string(),o._jsContent=`jsContent`;continue;case 4:if(a!==2)break;o.jsSourcePath=e.string(),o._jsSourcePath=`jsSourcePath`;continue;case 5:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==2)break;o.htmlContent=e.string(),o._htmlContent=`htmlContent`;continue;case 7:if(a!==2)break;o.cssContent=e.string(),o._cssContent=`cssContent`;continue;case 8:if(a!==2)break;o.cssSourcePath=e.string(),o._cssSourcePath=`cssSourcePath`;continue;case 9:if(a!==0)break;(s=e.bool())?o.isolateStyles=s:delete o.isolateStyles;continue;case 10:if(a!==2)break;o.json=e.string(),o.data=`json`;continue;case 11:if(a!==2)break;o.arrowData=V.ArrowData.decode(e,e.uint32(),void 0,r+1,o.arrowData),o.data=`arrowData`;continue;case 12:if(a!==2)break;o.bytes=e.bytes(),o.data=`bytes`;continue;case 13:if(a!==2)break;o.mixed=V.MixedData.decode(e,e.uint32(),void 0,r+1,o.mixed),o.data=`mixed`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.BidiComponent)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.BidiComponent;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.componentName!=null&&(typeof e.componentName!=`string`||e.componentName.length)&&(n.componentName=String(e.componentName)),e.jsContent!=null&&(n.jsContent=String(e.jsContent)),e.jsSourcePath!=null&&(n.jsSourcePath=String(e.jsSourcePath)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.htmlContent!=null&&(n.htmlContent=String(e.htmlContent)),e.cssContent!=null&&(n.cssContent=String(e.cssContent)),e.cssSourcePath!=null&&(n.cssSourcePath=String(e.cssSourcePath)),e.isolateStyles!=null&&e.isolateStyles&&(n.isolateStyles=!!e.isolateStyles),e.json!=null&&(n.json=String(e.json)),e.arrowData!=null){if(typeof e.arrowData!=`object`)throw TypeError(`.BidiComponent.arrowData: object expected`);n.arrowData=V.ArrowData.fromObject(e.arrowData,t+1)}if(e.bytes!=null&&(typeof e.bytes==`string`?B.base64.decode(e.bytes,n.bytes=B.newBuffer(B.base64.length(e.bytes)),0):e.bytes.length>=0&&(n.bytes=e.bytes)),e.mixed!=null){if(typeof e.mixed!=`object`)throw TypeError(`.BidiComponent.mixed: object expected`);n.mixed=V.MixedData.fromObject(e.mixed,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``,n.componentName=``,n.formId=``,n.isolateStyles=!1),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.componentName!=null&&e.hasOwnProperty(`componentName`)&&(n.componentName=e.componentName),e.jsContent!=null&&e.hasOwnProperty(`jsContent`)&&(n.jsContent=e.jsContent,t.oneofs&&(n._jsContent=`jsContent`)),e.jsSourcePath!=null&&e.hasOwnProperty(`jsSourcePath`)&&(n.jsSourcePath=e.jsSourcePath,t.oneofs&&(n._jsSourcePath=`jsSourcePath`)),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.htmlContent!=null&&e.hasOwnProperty(`htmlContent`)&&(n.htmlContent=e.htmlContent,t.oneofs&&(n._htmlContent=`htmlContent`)),e.cssContent!=null&&e.hasOwnProperty(`cssContent`)&&(n.cssContent=e.cssContent,t.oneofs&&(n._cssContent=`cssContent`)),e.cssSourcePath!=null&&e.hasOwnProperty(`cssSourcePath`)&&(n.cssSourcePath=e.cssSourcePath,t.oneofs&&(n._cssSourcePath=`cssSourcePath`)),e.isolateStyles!=null&&e.hasOwnProperty(`isolateStyles`)&&(n.isolateStyles=e.isolateStyles),e.json!=null&&e.hasOwnProperty(`json`)&&(n.json=e.json,t.oneofs&&(n.data=`json`)),e.arrowData!=null&&e.hasOwnProperty(`arrowData`)&&(n.arrowData=V.ArrowData.toObject(e.arrowData,t),t.oneofs&&(n.data=`arrowData`)),e.bytes!=null&&e.hasOwnProperty(`bytes`)&&(n.bytes=t.bytes===String?B.base64.encode(e.bytes,0,e.bytes.length):t.bytes===Array?Array.prototype.slice.call(e.bytes):e.bytes,t.oneofs&&(n.data=`bytes`)),e.mixed!=null&&e.hasOwnProperty(`mixed`)&&(n.mixed=V.MixedData.toObject(e.mixed,t),t.oneofs&&(n.data=`mixed`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/BidiComponent`},e})();
18var Co=V.Block=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.vertical=null,e.prototype.horizontal=null,e.prototype.column=null,e.prototype.expandable=null,e.prototype.form=null,e.prototype.tabContainer=null,e.prototype.tab=null,e.prototype.chatMessage=null,e.prototype.popover=null,e.prototype.dialog=null,e.prototype.flexContainer=null,e.prototype.allowEmpty=!1,e.prototype.id=null,e.prototype.heightConfig=null,e.prototype.widthConfig=null,e.prototype.autoscroll=null;let t;return Object.defineProperty(e.prototype,`type`,{get:B.oneOfGetter(t=[`vertical`,`horizontal`,`column`,`expandable`,`form`,`tabContainer`,`tab`,`chatMessage`,`popover`,`dialog`,`flexContainer`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_id`,{get:B.oneOfGetter(t=[`id`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_heightConfig`,{get:B.oneOfGetter(t=[`heightConfig`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_widthConfig`,{get:B.oneOfGetter(t=[`widthConfig`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_autoscroll`,{get:B.oneOfGetter(t=[`autoscroll`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.vertical!=null&&Object.hasOwnProperty.call(e,`vertical`)&&V.Block.Vertical.encode(e.vertical,t.uint32(10).fork()).ldelim(),e.horizontal!=null&&Object.hasOwnProperty.call(e,`horizontal`)&&V.Block.Horizontal.encode(e.horizontal,t.uint32(18).fork()).ldelim(),e.column!=null&&Object.hasOwnProperty.call(e,`column`)&&V.Block.Column.encode(e.column,t.uint32(26).fork()).ldelim(),e.expandable!=null&&Object.hasOwnProperty.call(e,`expandable`)&&V.Block.Expandable.encode(e.expandable,t.uint32(34).fork()).ldelim(),e.form!=null&&Object.hasOwnProperty.call(e,`form`)&&V.Block.Form.encode(e.form,t.uint32(42).fork()).ldelim(),e.tabContainer!=null&&Object.hasOwnProperty.call(e,`tabContainer`)&&V.Block.TabContainer.encode(e.tabContainer,t.uint32(50).fork()).ldelim(),e.tab!=null&&Object.hasOwnProperty.call(e,`tab`)&&V.Block.Tab.encode(e.tab,t.uint32(58).fork()).ldelim(),e.allowEmpty!=null&&Object.hasOwnProperty.call(e,`allowEmpty`)&&t.uint32(64).bool(e.allowEmpty),e.chatMessage!=null&&Object.hasOwnProperty.call(e,`chatMessage`)&&V.Block.ChatMessage.encode(e.chatMessage,t.uint32(74).fork()).ldelim(),e.popover!=null&&Object.hasOwnProperty.call(e,`popover`)&&V.Block.Popover.encode(e.popover,t.uint32(82).fork()).ldelim(),e.dialog!=null&&Object.hasOwnProperty.call(e,`dialog`)&&V.Block.Dialog.encode(e.dialog,t.uint32(90).fork()).ldelim(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(98).string(e.id),e.flexContainer!=null&&Object.hasOwnProperty.call(e,`flexContainer`)&&V.Block.FlexContainer.encode(e.flexContainer,t.uint32(106).fork()).ldelim(),e.heightConfig!=null&&Object.hasOwnProperty.call(e,`heightConfig`)&&V.streamlit.HeightConfig.encode(e.heightConfig,t.uint32(114).fork()).ldelim(),e.widthConfig!=null&&Object.hasOwnProperty.call(e,`widthConfig`)&&V.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(122).fork()).ldelim(),e.autoscroll!=null&&Object.hasOwnProperty.call(e,`autoscroll`)&&t.uint32(128).bool(e.autoscroll),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Block,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.vertical=V.Block.Vertical.decode(e,e.uint32(),void 0,r+1,o.vertical),o.type=`vertical`;continue;case 2:if(a!==2)break;o.horizontal=V.Block.Horizontal.decode(e,e.uint32(),void 0,r+1,o.horizontal),o.type=`horizontal`;continue;case 3:if(a!==2)break;o.column=V.Block.Column.decode(e,e.uint32(),void 0,r+1,o.column),o.type=`column`;continue;case 4:if(a!==2)break;o.expandable=V.Block.Expandable.decode(e,e.uint32(),void 0,r+1,o.expandable),o.type=`expandable`;continue;case 5:if(a!==2)break;o.form=V.Block.Form.decode(e,e.uint32(),void 0,r+1,o.form),o.type=`form`;continue;case 6:if(a!==2)break;o.tabContainer=V.Block.TabContainer.decode(e,e.uint32(),void 0,r+1,o.tabContainer),o.type=`tabContainer`;continue;case 7:if(a!==2)break;o.tab=V.Block.Tab.decode(e,e.uint32(),void 0,r+1,o.tab),o.type=`tab`;continue;
18case 9:if(a!==2)break;o.chatMessage=V.Block.ChatMessage.decode(e,e.uint32(),void 0,r+1,o.chatMessage),o.type=`chatMessage`;continue;case 10:if(a!==2)break;o.popover=V.Block.Popover.decode(e,e.uint32(),void 0,r+1,o.popover),o.type=`popover`;continue;case 11:if(a!==2)break;o.dialog=V.Block.Dialog.decode(e,e.uint32(),void 0,r+1,o.dialog),o.type=`dialog`;continue;case 13:if(a!==2)break;o.flexContainer=V.Block.FlexContainer.decode(e,e.uint32(),void 0,r+1,o.flexContainer),o.type=`flexContainer`;continue;case 8:if(a!==0)break;(s=e.bool())?o.allowEmpty=s:delete o.allowEmpty;continue;case 12:if(a!==2)break;o.id=e.string(),o._id=`id`;continue;case 14:if(a!==2)break;o.heightConfig=V.streamlit.HeightConfig.decode(e,e.uint32(),void 0,r+1,o.heightConfig),o._heightConfig=`heightConfig`;continue;case 15:if(a!==2)break;o.widthConfig=V.streamlit.WidthConfig.decode(e,e.uint32(),void 0,r+1,o.widthConfig),o._widthConfig=`widthConfig`;continue;case 16:if(a!==0)break;o.autoscroll=e.bool(),o._autoscroll=`autoscroll`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Block)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Block;if(e.vertical!=null){if(typeof e.vertical!=`object`)throw TypeError(`.Block.vertical: object expected`);n.vertical=V.Block.Vertical.fromObject(e.vertical,t+1)}if(e.horizontal!=null){if(typeof e.horizontal!=`object`)throw TypeError(`.Block.horizontal: object expected`);n.horizontal=V.Block.Horizontal.fromObject(e.horizontal,t+1)}if(e.column!=null){if(typeof e.column!=`object`)throw TypeError(`.Block.column: object expected`);n.column=V.Block.Column.fromObject(e.column,t+1)}if(e.expandable!=null){if(typeof e.expandable!=`object`)throw TypeError(`.Block.expandable: object expected`);n.expandable=V.Block.Expandable.fromObject(e.expandable,t+1)}if(e.form!=null){if(typeof e.form!=`object`)throw TypeError(`.Block.form: object expected`);n.form=V.Block.Form.fromObject(e.form,t+1)}if(e.tabContainer!=null){if(typeof e.tabContainer!=`object`)throw TypeError(`.Block.tabContainer: object expected`);n.tabContainer=V.Block.TabContainer.fromObject(e.tabContainer,t+1)}if(e.tab!=null){if(typeof e.tab!=`object`)throw TypeError(`.Block.tab: object expected`);n.tab=V.Block.Tab.fromObject(e.tab,t+1)}if(e.chatMessage!=null){if(typeof e.chatMessage!=`object`)throw TypeError(`.Block.chatMessage: object expected`);n.chatMessage=V.Block.ChatMessage.fromObject(e.chatMessage,t+1)}if(e.popover!=null){if(typeof e.popover!=`object`)throw TypeError(`.Block.popover: object expected`);n.popover=V.Block.Popover.fromObject(e.popover,t+1)}if(e.dialog!=null){if(typeof e.dialog!=`object`)throw TypeError(`.Block.dialog: object expected`);n.dialog=V.Block.Dialog.fromObject(e.dialog,t+1)}if(e.flexContainer!=null){if(typeof e.flexContainer!=`object`)throw TypeError(`.Block.flexContainer: object expected`);n.flexContainer=V.Block.FlexContainer.fromObject(e.flexContainer,t+1)}if(e.allowEmpty!=null&&e.allowEmpty&&(n.allowEmpty=!!e.allowEmpty),e.id!=null&&(n.id=String(e.id)),e.heightConfig!=null){if(typeof e.heightConfig!=`object`)throw TypeError(`.Block.heightConfig: object expected`);n.heightConfig=V.streamlit.HeightConfig.fromObject(e.heightConfig,t+1)}if(e.widthConfig!=null){if(typeof e.widthConfig!=`object`)throw TypeError(`.Block.widthConfig: object expected`);n.widthConfig=V.streamlit.WidthConfig.fromObject(e.widthConfig,t+1)}return e.autoscroll!=null&&(n.autoscroll=!!e.autoscroll),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.allowEmpty=!1),e.vertical!=null&&e.hasOwnProperty(`vertical`)&&(n.vertical=V.Block.Vertical.toObject(e.vertical,t),t.oneofs&&(n.type=`vertical`)),e.horizontal!=null&&e.hasOwnProperty(`horizontal`)&&(n.horizontal=V.Block.Horizontal.toObject(e.horizontal,t),t.oneofs&&(n.type=`horizontal`)),e.column!=null&&e.hasOwnProperty(`column`)&&(n.column=V.Block.Column.toObject(e.column,t),t.oneofs&&(n.type=`column`)),e.expandable!=null&&e.hasOwnProperty(`expandable`)&&(n.expandable=V.Block.Expandable.toObject(e.expandable,t),t.oneofs&&(n.type=`expandable`)),e.form!=null&&e.hasOwnProperty(`form`)&&(n.form=V.Block.Form.toObject(e.form,t),t.oneofs&&(n.type=`form`)),e.tabContainer!=null&&e.hasOwnProperty(`tabContainer`)&&(n.tabContainer=V.Block.TabContainer.toObject(e.tabContainer,t),t.oneofs&&(n.type=`tabContainer`)),e.tab!=null&&e.hasOwnProperty(`tab`)&&(n.tab=V.Block.Tab.toObject(e.tab,t),t.oneofs&&(n.type=`tab`)),e.allowEmpty!=null&&e.hasOwnProperty(`allowEmpty`)&&(n.allowEmpty=e.allowEmpty),e.chatMessage!=null&&e.hasOwnProperty(`chatMessage`)&&(n.chatMessage=V.Block.ChatMessage.toObject(e.chatMessage,t),t.oneofs&&(n.type=`chatMessage`)),e.popover!=null&&e.hasOwnProperty(`popover`)&&(n.popover=V.Block.Popover.toObject(e.popover,t),t.oneofs&&(n.type=`popover`)),e.dialog!=null&&e.hasOwnProperty(`dialog`)&&(n.dialog=V.Block.Dialog.toObject(e.dialog,t),t.oneofs&&(n.type=`dialog`)),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id,t.oneofs&&(n._id=`id`)),e.flexContainer!=null&&e.hasOwnProperty(`flexContainer`)&&(n.flexContainer=V.Block.FlexContainer.toObject(e.flexContainer,t),t.oneofs&&(n.type=`flexContainer`)),e.heightConfig!=null&&e.hasOwnProperty(`heightConfig`)&&(n.heightConfig=V.streamlit.HeightConfig.toObject(e.height
18Config,t),t.oneofs&&(n._heightConfig=`heightConfig`)),e.widthConfig!=null&&e.hasOwnProperty(`widthConfig`)&&(n.widthConfig=V.streamlit.WidthConfig.toObject(e.widthConfig,t),t.oneofs&&(n._widthConfig=`widthConfig`)),e.autoscroll!=null&&e.hasOwnProperty(`autoscroll`)&&(n.autoscroll=e.autoscroll,t.oneofs&&(n._autoscroll=`autoscroll`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Block`},e.Vertical=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.border=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.border!=null&&Object.hasOwnProperty.call(e,`border`)&&t.uint32(8).bool(e.border),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Block.Vertical,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.bool())?o.border=s:delete o.border;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Block.Vertical)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Block.Vertical;return e.border!=null&&e.border&&(n.border=!!e.border),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.border=!1),e.border!=null&&e.hasOwnProperty(`border`)&&(n.border=e.border),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Block.Vertical`},e})(),e.Horizontal=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.gap=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.gap!=null&&Object.hasOwnProperty.call(e,`gap`)&&t.uint32(10).string(e.gap),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Block.Horizontal,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.gap=s:delete o.gap;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Block.Horizontal)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Block.Horizontal;return e.gap!=null&&(typeof e.gap!=`string`||e.gap.length)&&(n.gap=String(e.gap)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.gap=``),e.gap!=null&&e.hasOwnProperty(`gap`)&&(n.gap=e.gap),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Block.Horizontal`},e})(),e.FlexContainer=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.border=!1,e.prototype.gapConfig=null,e.prototype.scale=0,e.prototype.direction=0,e.prototype.wrap=!1,e.prototype.justify=0,e.prototype.align=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.border!=null&&Object.hasOwnProperty.call(e,`border`)&&t.uint32(8).bool(e.border),e.gapConfig!=null&&Object.hasOwnProperty.call(e,`gapConfig`)&&V.streamlit.Ga
18pConfig.encode(e.gapConfig,t.uint32(18).fork()).ldelim(),e.scale!=null&&Object.hasOwnProperty.call(e,`scale`)&&t.uint32(29).float(e.scale),e.direction!=null&&Object.hasOwnProperty.call(e,`direction`)&&t.uint32(32).int32(e.direction),e.wrap!=null&&Object.hasOwnProperty.call(e,`wrap`)&&t.uint32(40).bool(e.wrap),e.justify!=null&&Object.hasOwnProperty.call(e,`justify`)&&t.uint32(56).int32(e.justify),e.align!=null&&Object.hasOwnProperty.call(e,`align`)&&t.uint32(64).int32(e.align),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Block.FlexContainer,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.bool())?o.border=s:delete o.border;continue;case 2:if(a!==2)break;o.gapConfig=V.streamlit.GapConfig.decode(e,e.uint32(),void 0,r+1,o.gapConfig);continue;case 3:if(a!==5)break;(s=e.float())===0?delete o.scale:o.scale=s;continue;case 4:if(a!==0)break;(s=e.int32())?o.direction=s:delete o.direction;continue;case 5:if(a!==0)break;(s=e.bool())?o.wrap=s:delete o.wrap;continue;case 7:if(a!==0)break;(s=e.int32())?o.justify=s:delete o.justify;continue;case 8:if(a!==0)break;(s=e.int32())?o.align=s:delete o.align;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Block.FlexContainer)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Block.FlexContainer;if(e.border!=null&&e.border&&(n.border=!!e.border),e.gapConfig!=null){if(typeof e.gapConfig!=`object`)throw TypeError(`.Block.FlexContainer.gapConfig: object expected`);n.gapConfig=V.streamlit.GapConfig.fromObject(e.gapConfig,t+1)}if(e.scale!=null&&Number(e.scale)!==0&&(n.scale=Number(e.scale)),e.direction!==0&&(typeof e.direction!=`string`||V.Block.FlexContainer.Direction[e.direction]!==0))switch(e.direction){default:if(typeof e.direction==`number`){n.direction=e.direction;break}break;case`DIRECTION_UNDEFINED`:case 0:n.direction=0;break;case`VERTICAL`:case 1:n.direction=1;break;case`HORIZONTAL`:case 2:n.direction=2;break}if(e.wrap!=null&&e.wrap&&(n.wrap=!!e.wrap),e.justify!==0&&(typeof e.justify!=`string`||V.Block.FlexContainer.Justify[e.justify]!==0))switch(e.justify){default:if(typeof e.justify==`number`){n.justify=e.justify;break}break;case`JUSTIFY_UNDEFINED`:case 0:n.justify=0;break;case`JUSTIFY_START`:case 1:n.justify=1;break;case`JUSTIFY_END`:case 2:n.justify=2;break;case`JUSTIFY_CENTER`:case 3:n.justify=3;break;case`SPACE_BETWEEN`:case 4:n.justify=4;break}if(e.align!==0&&(typeof e.align!=`string`||V.Block.FlexContainer.Align[e.align]!==0))switch(e.align){default:if(typeof e.align==`number`){n.align=e.align;break}break;case`ALIGN_UNDEFINED`:case 0:n.align=0;break;case`ALIGN_START`:case 1:n.align=1;break;case`ALIGN_END`:case 2:n.align=2;break;case`ALIGN_CENTER`:case 3:n.align=3;break;case`STRETCH`:case 4:n.align=4;break}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.border=!1,n.gapConfig=null,n.scale=0,n.direction=t.enums===String?`DIRECTION_UNDEFINED`:0,n.wrap=!1,n.justify=t.enums===String?`JUSTIFY_UNDEFINED`:0,n.align=t.enums===String?`ALIGN_UNDEFINED`:0),e.border!=null&&e.hasOwnProperty(`border`)&&(n.border=e.border),e.gapConfig!=null&&e.hasOwnProperty(`gapConfig`)&&(n.gapConfig=V.streamlit.GapConfig.toObject(e.gapConfig,t)),e.scale!=null&&e.hasOwnProperty(`scale`)&&(n.scale=t.json&&!isFinite(e.scale)?String(e.scale):e.scale),e.direction!=null&&e.hasOwnProperty(`direction`)&&(n.direction=t.enums===String?V.Block.FlexContainer.Direction[e.direction]===void 0?e.direction:V.Block.FlexContainer.Direction[e.direction]:e.direction),e.wrap!=null&&e.hasOwnProperty(`wrap`)&&(n.wrap=e.wrap),e.justify!=null&&e.hasOwnProperty(`justify`)&&(n.justify=t.enums===String?V.Block.FlexContainer.Justify[e.justify]===void 0?e.justify:V.Block.FlexContainer.Justify[e.justify]:e.justify),e.align!=null&&e.hasOwnProperty(`align`)&&(n.align=t.enums===String?V.Block.FlexContainer.Align[e.align]===void 0?e.align:V.Block.FlexContainer.Align[e.align]:e.align),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Block.FlexContainer`},e.Direction=(function(){let e={},t=Object.create(e);return t[e[0]=`DIRECTION_UNDEFINED`]=0,t[e[1]=`VERTICAL`]=1,t[e[2]=`HORIZONTAL`]=2,t})(),e.Justify=(function(){let e={},t=Object.create(e);return t[e[0]=`JUSTIFY_UNDEFINED`]=0,t[e[1]=`JUSTIFY_START`]=1,t[e[2]=`JUSTIFY_END`]=2,t[e[3]=`JUSTIFY_CENTER`]=3,t[e[4]=`SPACE_BETWEEN`]=4,t})(),e.Align=(function(){let e={},t=Object.create(e);return t[e[0]=`ALIGN_UNDEFINED`]=0,t[e[1]=`ALIGN_START`]=1,t[e[2]=`ALIGN_END`]=2,t[e[3]=`ALIGN_CENTER`]=3,t[e[4]=`STRETCH`]=4,t})(),e})(),e.Column=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.weight=0,e.prototype.verticalAlignment=0,e.prototype.showBorder=!1,e.prototype.gapConfig=null;let t;return Object.defineProperty(e.prototype,`_gapConfig`,{get:B.oneOfGetter(t=[`gapConfig`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.weight!=null&&Object.hasOwnProperty.call(e,`weight`)&&t.uint32(9).double(e.weight),e.verticalAlignment!=null&&Object.hasOwnProperty.call(e,`verticalAlignment`)&&t.uint32(24).int32(e.verticalAlignment),e.showBorder!=null&&Object.hasOwnProperty.call(e,`showBorder`)&&t.uint32(32).bool(e.showBorder),e.gapConfig!=null&&Object.hasOwnProperty.call(e,`gapConfig`)&&V.streamlit.Ga
18pConfig.encode(e.gapConfig,t.uint32(42).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Block.Column,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;(s=e.double())===0?delete o.weight:o.weight=s;continue;case 3:if(a!==0)break;(s=e.int32())?o.verticalAlignment=s:delete o.verticalAlignment;continue;case 4:if(a!==0)break;(s=e.bool())?o.showBorder=s:delete o.showBorder;continue;case 5:if(a!==2)break;o.gapConfig=V.streamlit.GapConfig.decode(e,e.uint32(),void 0,r+1,o.gapConfig),o._gapConfig=`gapConfig`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Block.Column)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Block.Column;if(e.weight!=null&&Number(e.weight)!==0&&(n.weight=Number(e.weight)),e.verticalAlignment!==0&&(typeof e.verticalAlignment!=`string`||V.Block.Column.VerticalAlignment[e.verticalAlignment]!==0))switch(e.verticalAlignment){default:if(typeof e.verticalAlignment==`number`){n.verticalAlignment=e.verticalAlignment;break}break;case`TOP`:case 0:n.verticalAlignment=0;break;case`CENTER`:case 1:n.verticalAlignment=1;break;case`BOTTOM`:case 2:n.verticalAlignment=2;break}if(e.showBorder!=null&&e.showBorder&&(n.showBorder=!!e.showBorder),e.gapConfig!=null){if(typeof e.gapConfig!=`object`)throw TypeError(`.Block.Column.gapConfig: object expected`);n.gapConfig=V.streamlit.GapConfig.fromObject(e.gapConfig,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.weight=0,n.verticalAlignment=t.enums===String?`TOP`:0,n.showBorder=!1),e.weight!=null&&e.hasOwnProperty(`weight`)&&(n.weight=t.json&&!isFinite(e.weight)?String(e.weight):e.weight),e.verticalAlignment!=null&&e.hasOwnProperty(`verticalAlignment`)&&(n.verticalAlignment=t.enums===String?V.Block.Column.VerticalAlignment[e.verticalAlignment]===void 0?e.verticalAlignment:V.Block.Column.VerticalAlignment[e.verticalAlignment]:e.verticalAlignment),e.showBorder!=null&&e.hasOwnProperty(`showBorder`)&&(n.showBorder=e.showBorder),e.gapConfig!=null&&e.hasOwnProperty(`gapConfig`)&&(n.gapConfig=V.streamlit.GapConfig.toObject(e.gapConfig,t),t.oneofs&&(n._gapConfig=`gapConfig`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Block.Column`},e.VerticalAlignment=(function(){let e={},t=Object.create(e);return t[e[0]=`TOP`]=0,t[e[1]=`CENTER`]=1,t[e[2]=`BOTTOM`]=2,t})(),e})(),e.Expandable=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.label=``,e.prototype.expanded=null,e.prototype.icon=``,e.prototype.id=null,e.prototype.type=0;let t;return Object.defineProperty(e.prototype,`_expanded`,{get:B.oneOfGetter(t=[`expanded`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_id`,{get:B.oneOfGetter(t=[`id`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(10).string(e.label),e.expanded!=null&&Object.hasOwnProperty.call(e,`expanded`)&&t.uint32(16).bool(e.expanded),e.icon!=null&&Object.hasOwnProperty.call(e,`icon`)&&t.uint32(26).string(e.icon),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(34).string(e.id),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(40).int32(e.type),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Block.Expandable,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 2:if(a!==0)break;o.expanded=e.bool(),o._expanded=`expanded`;continue;case 3:if(a!==2)break;(s=e.string()).length?o.icon=s:delete o.icon;continue;case 4:if(a!==2)break;o.id=e.string(),o._id=`id`;continue;case 5:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Block.Expandable)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Block.Expandable;if(e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.expanded!=null&&(n.expanded=!!e.expanded),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=String(e.icon)),e.id!=null&&(n.id=String(e.id)),e.type!==0&&(typeof e.type!=`string`||V.Block.Expandable.Type[e.type]!==0))switch(e.type){default:if(typeof e.type==`number`){n.type=e.type;break}break;case`DEFAULT`:case 0:n.type=0;break;case`COMPACT`:case 1:n.type=1;break}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.label=``,n.icon=``,n.type=t.enums===String?`DEFAULT`:0),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.expanded!=null&&e.hasOwnProperty(`expanded`)&&(n.expanded=e.expanded,t.oneofs&&(n._expanded=`expanded`)),e.icon!=null&&e.hasOwnProperty(`icon`)&&(n.icon=e.icon),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id,t.oneofs&&(n._id=`id`)),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=t.enums===String?V.Block.Expandable.Type[e.type]===void 0?e.type:V.Block.Expandable.Type[e.type]:e.type),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Block.Expandable`},e.Type=(function(){let e={},t=Object.create(e);return t[e[0]=`DEFAULT`]=0,t[e[1]=`COMPACT`]=1,t})(),e})(),e.Dialog=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.title=``,e.prototype.dismissible=!1,e.prototype.width=0,e.prototype.isOpen=null,e.prototype.id=``,e.prototype.icon=``;let t;return Object.defineProperty(e.prototype,`_isOpen`,{get:B.oneOfGetter(t=[`isOpen`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.title!=null&&Object.hasOwnProperty.call(e,`title`)&&t.uint32(10).string(e.title),e.dismissible!=null&&Object.hasOwnProperty.call(e,`dismissible`)&&t.uint32(16).bool(e.dismissible),e.width!=null&&Object.hasOwnProperty.call(e,`width`)&&t.uint32(24).int32(e.width),e.isOpen!=null&&Object.hasOwnProperty.call(e,`isOpen`)&&t.uint32(32).bool(e.isOpen),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(42).string(e.id),e.icon!=null&&Object.hasOwnProperty.call(e,`icon`)&&t.uint32(50).string(e.icon),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Block.Dialog,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.title=s:delete o.title;continue;case 2:if(a!==0)break;(s=e.bool())?o.dismissible=s:delete o.dismissible;continue;case 3:if(a!==0)break;(s=e.int32())?o.width=s:delete o.width;continue;case 4:if(a!==0)break;o.isOpen=e.bool(),o._isOpen=`isOpen`;continue;case 5:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 6:if(a!==2)break;(s=e.string()).length?o.icon=s:delete o.icon;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Block.Dialog)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Block.Dialog;if(e.title!=null&&(typeof e.title!=`string`||e.title.length)&&(n.title=String(e.title)),e.dismissible!=null&&e.dismissible&&(n.dismissible=!!e.dismissible),e.width!==0&&(typeof e.width!=`string`||V.Block.Dialog.DialogWidth[e.width]!==0))switch(e.width){default:if(typeof e.width==`number`){n.width=e.width;break}break;case`SMALL`:case 0:n.width=0;break;case`LARGE`:case 1:n.width=1;break;case`MEDIUM`:case 2:n.width=2;break}return e.isOpen!=null&&(n.isOpen=!!e.isOpen),e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=String(e.icon)),n},e.toObject=function(e,t){t||={};let n={};
18return t.defaults&&(n.title=``,n.dismissible=!1,n.width=t.enums===String?`SMALL`:0,n.id=``,n.icon=``),e.title!=null&&e.hasOwnProperty(`title`)&&(n.title=e.title),e.dismissible!=null&&e.hasOwnProperty(`dismissible`)&&(n.dismissible=e.dismissible),e.width!=null&&e.hasOwnProperty(`width`)&&(n.width=t.enums===String?V.Block.Dialog.DialogWidth[e.width]===void 0?e.width:V.Block.Dialog.DialogWidth[e.width]:e.width),e.isOpen!=null&&e.hasOwnProperty(`isOpen`)&&(n.isOpen=e.isOpen,t.oneofs&&(n._isOpen=`isOpen`)),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.icon!=null&&e.hasOwnProperty(`icon`)&&(n.icon=e.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Block.Dialog`},e.DialogWidth=(function(){let e={},t=Object.create(e);return t[e[0]=`SMALL`]=0,t[e[1]=`LARGE`]=1,t[e[2]=`MEDIUM`]=2,t})(),e})(),e.Form=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.formId=``,e.prototype.clearOnSubmit=!1,e.prototype.border=!1,e.prototype.enterToSubmit=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(10).string(e.formId),e.clearOnSubmit!=null&&Object.hasOwnProperty.call(e,`clearOnSubmit`)&&t.uint32(16).bool(e.clearOnSubmit),e.border!=null&&Object.hasOwnProperty.call(e,`border`)&&t.uint32(24).bool(e.border),e.enterToSubmit!=null&&Object.hasOwnProperty.call(e,`enterToSubmit`)&&t.uint32(32).bool(e.enterToSubmit),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Block.Form,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 2:if(a!==0)break;(s=e.bool())?o.clearOnSubmit=s:delete o.clearOnSubmit;continue;case 3:if(a!==0)break;(s=e.bool())?o.border=s:delete o.border;continue;case 4:if(a!==0)break;(s=e.bool())?o.enterToSubmit=s:delete o.enterToSubmit;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Block.Form)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Block.Form;return e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.clearOnSubmit!=null&&e.clearOnSubmit&&(n.clearOnSubmit=!!e.clearOnSubmit),e.border!=null&&e.border&&(n.border=!!e.border),e.enterToSubmit!=null&&e.enterToSubmit&&(n.enterToSubmit=!!e.enterToSubmit),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.formId=``,n.clearOnSubmit=!1,n.border=!1,n.enterToSubmit=!1),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.clearOnSubmit!=null&&e.hasOwnProperty(`clearOnSubmit`)&&(n.clearOnSubmit=e.clearOnSubmit),e.border!=null&&e.hasOwnProperty(`border`)&&(n.border=e.border),e.enterToSubmit!=null&&e.hasOwnProperty(`enterToSubmit`)&&(n.enterToSubmit=e.enterToSubmit),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Block.Form`},e})(),e.TabContainer=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.defaultTabIndex=0,e.prototype.id=null;let t;return Object.defineProperty(e.prototype,`_id`,{get:B.oneOfGetter(t=[`id`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.defaultTabIndex!=null&&Object.hasOwnProperty.call(e,`defaultTabIndex`)&&t.uint32(8).int32(e.defaultTabIndex),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(18).string(e.id),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Block.TabContainer,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.int32())?o.defaultTabIndex=s:delete o.defaultTabIndex;continue;case 2:if(a!==2)break;o.id=e.string(),o._id=`id`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Block.TabContainer)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Block.TabContainer;return e.defaultTabIndex!=null&&Number(e.defaultTabIndex)!==0&&(n.defaultTabIndex=e.defaultTabIndex|0),e.
18id!=null&&(n.id=String(e.id)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.defaultTabIndex=0),e.defaultTabIndex!=null&&e.hasOwnProperty(`defaultTabIndex`)&&(n.defaultTabIndex=e.defaultTabIndex),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id,t.oneofs&&(n._id=`id`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Block.TabContainer`},e})(),e.Tab=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.label=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(10).string(e.label),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Block.Tab,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Block.Tab)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Block.Tab;return e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.label=``),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Block.Tab`},e})(),e.Popover=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.label=``,e.prototype.help=``,e.prototype.disabled=!1,e.prototype.icon=``,e.prototype.type=``,e.prototype.open=null,e.prototype.id=null;let t;return Object.defineProperty(e.prototype,`_open`,{get:B.oneOfGetter(t=[`open`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_id`,{get:B.oneOfGetter(t=[`id`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(10).string(e.label),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(26).string(e.help),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(32).bool(e.disabled),e.icon!=null&&Object.hasOwnProperty.call(e,`icon`)&&t.uint32(42).string(e.icon),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(50).string(e.type),e.open!=null&&Object.hasOwnProperty.call(e,`open`)&&t.uint32(56).bool(e.open),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(66).string(e.id),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Block.Popover,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 4:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 5:if(a!==2)break;(s=e.string()).length?o.icon=s:delete o.icon;continue;case 6:if(a!==2)break;(s=e.string()).length?o.type=s:delete o.type;continue;case 7:if(a!==0)break;o.open=e.bool(),o._open=`open`;continue;case 8:if(a!==2)break;o.id=e.string(),o._id=`id`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Block.Popover)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Block.Popover;return e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=String(e.icon)),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=String(e.type)),e.open!=null&&(n.open=!!e.open),e.id!=null&&(n.id=String(e.id)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.label=``,n.help=``,n.disabled=!1,n.icon=``,n.type=``),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.icon!=null&&e.hasOwnProperty(`icon`)&&(n.icon=e.icon),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=e.type),e.open!=null&&e.hasOwnProperty(`open`)&&(n.open=e.open,t.oneofs&&(n._open=`o
18pen`)),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id,t.oneofs&&(n._id=`id`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Block.Popover`},e})(),e.ChatMessage=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.name=``,e.prototype.avatar=``,e.prototype.avatarType=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(10).string(e.name),e.avatar!=null&&Object.hasOwnProperty.call(e,`avatar`)&&t.uint32(18).string(e.avatar),e.avatarType!=null&&Object.hasOwnProperty.call(e,`avatarType`)&&t.uint32(24).int32(e.avatarType),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Block.ChatMessage,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.name=s:delete o.name;continue;case 2:if(a!==2)break;(s=e.string()).length?o.avatar=s:delete o.avatar;continue;case 3:if(a!==0)break;(s=e.int32())?o.avatarType=s:delete o.avatarType;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Block.ChatMessage)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Block.ChatMessage;if(e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=String(e.name)),e.avatar!=null&&(typeof e.avatar!=`string`||e.avatar.length)&&(n.avatar=String(e.avatar)),e.avatarType!==0&&(typeof e.avatarType!=`string`||V.Block.ChatMessage.AvatarType[e.avatarType]!==0))switch(e.avatarType){default:if(typeof e.avatarType==`number`){n.avatarType=e.avatarType;break}break;case`IMAGE`:case 0:n.avatarType=0;break;case`EMOJI`:case 1:n.avatarType=1;break;case`ICON`:case 2:n.avatarType=2;break}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.name=``,n.avatar=``,n.avatarType=t.enums===String?`IMAGE`:0),e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),e.avatar!=null&&e.hasOwnProperty(`avatar`)&&(n.avatar=e.avatar),e.avatarType!=null&&e.hasOwnProperty(`avatarType`)&&(n.avatarType=t.enums===String?V.Block.ChatMessage.AvatarType[e.avatarType]===void 0?e.avatarType:V.Block.ChatMessage.AvatarType[e.avatarType]:e.avatarType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Block.ChatMessage`},e.AvatarType=(function(){let e={},t=Object.create(e);return t[e[0]=`IMAGE`]=0,t[e[1]=`EMOJI`]=1,t[e[2]=`ICON`]=2,t})(),e})(),e})();V.Button=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.id=``,e.prototype.label=``,e.prototype.default=!1,e.prototype.help=``,e.prototype.formId=``,e.prototype.isFormSubmitter=!1,e.prototype.type=``,e.prototype.disabled=!1,e.prototype.icon=``,e.prototype.shortcut=``,e.prototype.iconPosition=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,`default`)&&t.uint32(24).bool(e.default),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(42).string(e.formId),e.isFormSubmitter!=null&&Object.hasOwnProperty.call(e,`isFormSubmitter`)&&t.uint32(48).bool(e.isFormSubmitter),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(58).string(e.type),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(64).bool(e.disabled),e.icon!=null&&Object.hasOwnProperty.call(e,`icon`)&&t.uint32(82).string(e.icon),e.shortcut!=null&&Object.hasOwnProperty.call(e,`shortcut`)&&t.uint32(90).string(e.shortcut),e.iconPosition!=null&&Object.hasOwnProperty.call(e,`iconPosition`)&&t.uint32(96).int32(e.iconPosition),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Button,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==0)break;(s=e.bool())?o.default=s:delete o.default;continue;case 4:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==0)break;(s=e.bool())?o.isFormSubmitter=s:delete o.isFormSubmitter;continue;case 7:if(a!==2)break;
18(s=e.string()).length?o.type=s:delete o.type;continue;case 8:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 10:if(a!==2)break;(s=e.string()).length?o.icon=s:delete o.icon;continue;case 11:if(a!==2)break;(s=e.string()).length?o.shortcut=s:delete o.shortcut;continue;case 12:if(a!==0)break;(s=e.int32())?o.iconPosition=s:delete o.iconPosition;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Button)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Button;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.default!=null&&e.default&&(n.default=!!e.default),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.isFormSubmitter!=null&&e.isFormSubmitter&&(n.isFormSubmitter=!!e.isFormSubmitter),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=String(e.type)),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=String(e.icon)),e.shortcut!=null&&(typeof e.shortcut!=`string`||e.shortcut.length)&&(n.shortcut=String(e.shortcut)),e.iconPosition!==0&&(typeof e.iconPosition!=`string`||V.streamlit.ButtonLikeIconPosition[e.iconPosition]!==0))switch(e.iconPosition){default:if(typeof e.iconPosition==`number`){n.iconPosition=e.iconPosition;break}break;case`LEFT`:case 0:n.iconPosition=0;break;case`RIGHT`:case 1:n.iconPosition=1;break}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``,n.label=``,n.default=!1,n.help=``,n.formId=``,n.isFormSubmitter=!1,n.type=``,n.disabled=!1,n.icon=``,n.shortcut=``,n.iconPosition=t.enums===String?`LEFT`:0),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.default!=null&&e.hasOwnProperty(`default`)&&(n.default=e.default),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.isFormSubmitter!=null&&e.hasOwnProperty(`isFormSubmitter`)&&(n.isFormSubmitter=e.isFormSubmitter),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=e.type),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.icon!=null&&e.hasOwnProperty(`icon`)&&(n.icon=e.icon),e.shortcut!=null&&e.hasOwnProperty(`shortcut`)&&(n.shortcut=e.shortcut),e.iconPosition!=null&&e.hasOwnProperty(`iconPosition`)&&(n.iconPosition=t.enums===String?V.streamlit.ButtonLikeIconPosition[e.iconPosition]===void 0?e.iconPosition:V.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Button`},e})();var wo=V.ButtonGroup=(()=>{function e(e){if(this.options=[],this.default=[],this.rawValues=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.options=B.emptyArray,e.prototype.default=B.emptyArray,e.prototype.disabled=!1,e.prototype.clickMode=0,e.prototype.formId=``,e.prototype.setValue=!1,e.prototype.style=0,e.prototype.label=``,e.prototype.labelVisibility=null,e.prototype.help=null,e.prototype.rawValues=B.emptyArray,e.prototype.queryParamKey=null,e.prototype.required=!1;let t;return Object.defineProperty(e.prototype,`_help`,{get:B.oneOfGetter(t=[`help`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.options!=null&&e.options.length)for(let n=0;n<e.options.length;++n)V.ButtonGroup.Option.encode(e.options[n],t.uint32(18).fork()).ldelim();if(e.default!=null&&e.default.length){t.uint32(26).fork();for(let n=0;n<e.default.length;++n)t.uint32(e.default[n]);t.ldelim()}if(e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(32).bool(e.disabled),e.clickMode!=null&&Object.hasOwnProperty.call(e,`clickMode`)&&t.uint32(40).int32(e.clickMode),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(50).string(e.formId),e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(64).bool(e.setValue),e.style!=null&&Object.hasOwnProperty.call(e,`style`)&&t.uint32(80).int32(e.style),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(90).string(e.label),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(98).fork()).ldelim(),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(106).string(e.help),e.rawValues!=null&&e.rawValues.length)for(let n=0;n<e.rawValues.length;++n)t.uint32(114).string(e.rawValues[n]);if(e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(122).string(e.queryParamKey),e.required!=null&&Object.hasOwnProperty.call(e,`required`)&&t.uint32(128).bool(e.required),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ButtonGroup,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;o.options&&o.options.length||(o.options=[]),o.options.push(V.ButtonGroup.Option.decode(e,e.uint32(),void 0,r+1));continue;case 3:if(a===2){o.default&&o.default.length||(o.default=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.default.push(e.uint32());continue}if(a!==0)break;o.default&&o.default.length||(o.default=[]),o.default.push(e.uint32());continue;case 4:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 5:if(a!==0)break;(s=e.int32())?o.clickMode=s:delete o.clickMode;continue;case 6:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 8:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 10:if(a!==0)break;(s=e.int32())?o.style=s:delete o.style;continue;case 11:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 12:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 13:if(a!==2)break;o.help=e.string(),o._help=`help`;continue;case 14:if(a!==2)break;o.rawValues&&o.rawValues.length||(o.rawValues=[]),o.rawValues.push(e.string());continue;case 15:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue;case 16:if(a!==0)break;(s=e.bool())?o.required=s:delete o.required;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ButtonGroup)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ButtonGroup;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.options){if(!Array.isArray(e.options))throw TypeError(`.ButtonGroup.options: array expected`);n.options=Array(e.options.length);for(let r=0;r<e.options.length;
18++r){if(typeof e.options[r]!=`object`)throw TypeError(`.ButtonGroup.options: object expected`);n.options[r]=V.ButtonGroup.Option.fromObject(e.options[r],t+1)}}if(e.default){if(!Array.isArray(e.default))throw TypeError(`.ButtonGroup.default: array expected`);n.default=Array(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=e.default[t]>>>0}if(e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.clickMode!==0&&(typeof e.clickMode!=`string`||V.ButtonGroup.ClickMode[e.clickMode]!==0))switch(e.clickMode){default:if(typeof e.clickMode==`number`){n.clickMode=e.clickMode;break}break;case`SINGLE_SELECT`:case 0:n.clickMode=0;break;case`MULTI_SELECT`:case 1:n.clickMode=1;break}if(e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.style!==0&&(typeof e.style!=`string`||V.ButtonGroup.Style[e.style]!==0))switch(e.style){default:if(typeof e.style==`number`){n.style=e.style;break}break;case`SEGMENTED_CONTROL`:case 0:n.style=0;break;case`PILLS`:case 1:n.style=1;break}if(e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.ButtonGroup.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.help!=null&&(n.help=String(e.help)),e.rawValues){if(!Array.isArray(e.rawValues))throw TypeError(`.ButtonGroup.rawValues: array expected`);n.rawValues=Array(e.rawValues.length);for(let t=0;t<e.rawValues.length;++t)n.rawValues[t]=String(e.rawValues[t])}return e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),e.required!=null&&e.required&&(n.required=!!e.required),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.options=[],n.default=[],n.rawValues=[]),t.defaults&&(n.id=``,n.disabled=!1,n.clickMode=t.enums===String?`SINGLE_SELECT`:0,n.formId=``,n.setValue=!1,n.style=t.enums===String?`SEGMENTED_CONTROL`:0,n.label=``,n.labelVisibility=null,n.required=!1),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.options&&e.options.length){n.options=Array(e.options.length);for(let r=0;r<e.options.length;++r)n.options[r]=V.ButtonGroup.Option.toObject(e.options[r],t)}if(e.default&&e.default.length){n.default=Array(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=e.default[t]}if(e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.clickMode!=null&&e.hasOwnProperty(`clickMode`)&&(n.clickMode=t.enums===String?V.ButtonGroup.ClickMode[e.clickMode]===void 0?e.clickMode:V.ButtonGroup.ClickMode[e.clickMode]:e.clickMode),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.style!=null&&e.hasOwnProperty(`style`)&&(n.style=t.enums===String?V.ButtonGroup.Style[e.style]===void 0?e.style:V.ButtonGroup.Style[e.style]:e.style),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help,t.oneofs&&(n._help=`help`)),e.rawValues&&e.rawValues.length){n.rawValues=Array(e.rawValues.length);for(let t=0;t<e.rawValues.length;++t)n.rawValues[t]=e.rawValues[t]}return e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),e.required!=null&&e.hasOwnProperty(`required`)&&(n.required=e.required),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ButtonGroup`},e.ClickMode=(function(){let e={},t=Object.create(e);return t[e[0]=`SINGLE_SELECT`]=0,t[e[1]=`MULTI_SELECT`]=1,t})(),e.Option=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.content=``,e.prototype.contentIcon=null;let t;return Object.defineProperty(e.prototype,`_contentIcon`,{get:B.oneOfGetter(t=[`contentIcon`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.content!=null&&Object.hasOwnProperty.call(e,`content`)&&t.uint32(10).string(e.content),e.contentIcon!=null&&Object.hasOwnProperty.call(e,`contentIcon`)&&t.uint32(26).string(e.contentIcon),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ButtonGroup.Option,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.content=s:delete o.content;continue;case 3:if(a!==2)break;o.contentIcon=e.string(),o._contentIcon=`contentIcon`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ButtonGroup.Option)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ButtonGroup.Option;return e.content!=null&&(typeof e.content!=`string`||e.content.length)&&(n.content=String(e.content)),e.contentIcon!=null&&(n.contentIcon=String(e.contentIcon)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.content=``),e.content!=null&&e.hasOwnProperty(`content`)&&(n.content=e.content),e.contentIcon!=null&&e.hasOwnProperty(`contentIcon`)&&(n.contentIcon=e.contentIcon,t.oneofs&&(n._contentIcon=`contentIcon`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ButtonGroup.Option`},e})(),e.Style=(function(){let e={},t=Object.create(e);return t[e[0]=`SEGMENTED_CONTROL`]=0,t[e[1]=`PILLS`]=1,t})(),e})();V.CameraInput=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.id=``,e.prototype.label=``,e.prototype.help=``,e.prototype.formId=``,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(26).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(34).string(e.formId),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(40).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(50).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.CameraInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 4:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 5:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 6:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.CameraInput)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.CameraInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.CameraInput.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``,n.label=``,n.help=``,n.formId=``,n.disabled=!1,n.labelVisibility=null),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/CameraInput`},e})();var To=V.ChatInput=(()=>{function e(e){if(this.fileType=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.placeholder=``,e.prototype.maxChars=0,e.prototype.disabled=!1,e.prototype.value=``,e.prototype.setValue=!1,e.prototype.default=``,e.prototype.acceptFile=0,e.prototype.fileType=B.emptyArray,e.prototype.maxUploadSizeMb=0,e.prototype.acceptAudio=!1,e.prototype.audioSampleRate=null;let t;return Object.defineProperty(e.prototype,`_audioSampleRate`,{get:B.oneOfGetter(t=[`audioSampleRate`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.placeholder!=null&&Object.hasOwnProperty.call(e,`placeholder`)&&t.uint32(18).string(e.placeholder),e.maxChars!=null&&Object.hasOwnProperty.call(e,`maxChars`)&&t.uint32(24).uint32(e.maxChars),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(32).bool(e.disabled),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(42).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(48).bool(e.setValue),e.default!=null&&Object.hasOwnProperty.call(e,`default`)&&t.uint32(58).string(e.default),e.acceptFile!=null&&Object.hasOwnProperty.call(e,`acceptFile`)&&t.uint32(72).int32(e.acceptFile),e.fileType!=null&&e.fileType.length)for(let n=0;n<e.fileType.length;++n)t.uint32(82).string(e.fileType[n]);if(e.maxUploadSizeMb!=null&&Object.hasOwnProperty.call(e,`maxUploadSizeMb`)&&t.uint32(88).int32(e.maxUploadSizeMb),e.acceptAudio!=null&&Object.hasOwnProperty.call(e,`acceptAudio`)&&t.uint32(96).bool(e.acceptAudio),e.audioSampleRate!=null&&Object.hasOwnProperty.call(e,`audioSampleRate`)&&t.uint32(104).int32(e.audioSampleRate),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ChatInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.placeholder=s:delete o.placeholder;continue;case 3:if(a!==0)break;(s=e.uint32())?o.maxChars=s:delete o.maxChars;continue;case 4:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 5:if(a!==2)break;(s=e.string()).length?o.value=s:delete o.value;continue;case 6:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 7:if(a!==2)break;(s=e.string()).length?o.default=s:delete o.default;continue;
18case 9:if(a!==0)break;(s=e.int32())?o.acceptFile=s:delete o.acceptFile;continue;case 10:if(a!==2)break;o.fileType&&o.fileType.length||(o.fileType=[]),o.fileType.push(e.string());continue;case 11:if(a!==0)break;(s=e.int32())?o.maxUploadSizeMb=s:delete o.maxUploadSizeMb;continue;case 12:if(a!==0)break;(s=e.bool())?o.acceptAudio=s:delete o.acceptAudio;continue;case 13:if(a!==0)break;o.audioSampleRate=e.int32(),o._audioSampleRate=`audioSampleRate`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ChatInput)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ChatInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.placeholder!=null&&(typeof e.placeholder!=`string`||e.placeholder.length)&&(n.placeholder=String(e.placeholder)),e.maxChars!=null&&Number(e.maxChars)!==0&&(n.maxChars=e.maxChars>>>0),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.value!=null&&(typeof e.value!=`string`||e.value.length)&&(n.value=String(e.value)),e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.default!=null&&(typeof e.default!=`string`||e.default.length)&&(n.default=String(e.default)),e.acceptFile!==0&&(typeof e.acceptFile!=`string`||V.ChatInput.AcceptFile[e.acceptFile]!==0))switch(e.acceptFile){default:if(typeof e.acceptFile==`number`){n.acceptFile=e.acceptFile;break}break;case`NONE`:case 0:n.acceptFile=0;break;case`SINGLE`:case 1:n.acceptFile=1;break;case`MULTIPLE`:case 2:n.acceptFile=2;break;case`DIRECTORY`:case 3:n.acceptFile=3;break}if(e.fileType){if(!Array.isArray(e.fileType))throw TypeError(`.ChatInput.fileType: array expected`);n.fileType=Array(e.fileType.length);for(let t=0;t<e.fileType.length;++t)n.fileType[t]=String(e.fileType[t])}return e.maxUploadSizeMb!=null&&Number(e.maxUploadSizeMb)!==0&&(n.maxUploadSizeMb=e.maxUploadSizeMb|0),e.acceptAudio!=null&&e.acceptAudio&&(n.acceptAudio=!!e.acceptAudio),e.audioSampleRate!=null&&(n.audioSampleRate=e.audioSampleRate|0),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.fileType=[]),t.defaults&&(n.id=``,n.placeholder=``,n.maxChars=0,n.disabled=!1,n.value=``,n.setValue=!1,n.default=``,n.acceptFile=t.enums===String?`NONE`:0,n.maxUploadSizeMb=0,n.acceptAudio=!1),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.placeholder!=null&&e.hasOwnProperty(`placeholder`)&&(n.placeholder=e.placeholder),e.maxChars!=null&&e.hasOwnProperty(`maxChars`)&&(n.maxChars=e.maxChars),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=e.value),e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.default!=null&&e.hasOwnProperty(`default`)&&(n.default=e.default),e.acceptFile!=null&&e.hasOwnProperty(`acceptFile`)&&(n.acceptFile=t.enums===String?V.ChatInput.AcceptFile[e.acceptFile]===void 0?e.acceptFile:V.ChatInput.AcceptFile[e.acceptFile]:e.acceptFile),e.fileType&&e.fileType.length){n.fileType=Array(e.fileType.length);for(let t=0;t<e.fileType.length;++t)n.fileType[t]=e.fileType[t]}return e.maxUploadSizeMb!=null&&e.hasOwnProperty(`maxUploadSizeMb`)&&(n.maxUploadSizeMb=e.maxUploadSizeMb),e.acceptAudio!=null&&e.hasOwnProperty(`acceptAudio`)&&(n.acceptAudio=e.acceptAudio),e.audioSampleRate!=null&&e.hasOwnProperty(`audioSampleRate`)&&(n.audioSampleRate=e.audioSampleRate,t.oneofs&&(n._audioSampleRate=`audioSampleRate`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ChatInput`},e.AcceptFile=(function(){let e={},t=Object.create(e);return t[e[0]=`NONE`]=0,t[e[1]=`SINGLE`]=1,t[e[2]=`MULTIPLE`]=2,t[e[3]=`DIRECTORY`]=3,t})(),e})(),Eo=V.Checkbox=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.label=``,e.prototype.default=!1,e.prototype.help=``,e.prototype.formId=``,e.prototype.value=!1,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.type=0,e.prototype.queryParamKey=null;let t;return Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,`default`)&&t.uint32(24).bool(e.default),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(48).bool(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(80).int32(e.type),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(90).string(e.queryParamKey),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Checkbox,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==0)break;(s=e.bool())?o.default=s:delete o.default;continue;case 4:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==0)break;(s=e.bool())?o.value=s:delete o.value;continue;case 7:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 8:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;
18case 9:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 10:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue;case 11:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Checkbox)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Checkbox;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.default!=null&&e.default&&(n.default=!!e.default),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.value!=null&&e.value&&(n.value=!!e.value),e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.Checkbox.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.type!==0&&(typeof e.type!=`string`||V.Checkbox.StyleType[e.type]!==0))switch(e.type){default:if(typeof e.type==`number`){n.type=e.type;break}break;case`DEFAULT`:case 0:n.type=0;break;case`TOGGLE`:case 1:n.type=1;break}return e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``,n.label=``,n.default=!1,n.help=``,n.formId=``,n.value=!1,n.setValue=!1,n.disabled=!1,n.labelVisibility=null,n.type=t.enums===String?`DEFAULT`:0),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.default!=null&&e.hasOwnProperty(`default`)&&(n.default=e.default),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=e.value),e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=t.enums===String?V.Checkbox.StyleType[e.type]===void 0?e.type:V.Checkbox.StyleType[e.type]:e.type),e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Checkbox`},e.StyleType=(function(){let e={},t=Object.create(e);return t[e[0]=`DEFAULT`]=0,t[e[1]=`TOGGLE`]=1,t})(),e})();V.Code=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.codeText=``,e.prototype.language=``,e.prototype.showLineNumbers=!1,e.prototype.wrapLines=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.codeText!=null&&Object.hasOwnProperty.call(e,`codeText`)&&t.uint32(10).string(e.codeText),e.language!=null&&Object.hasOwnProperty.call(e,`language`)&&t.uint32(18).string(e.language),e.showLineNumbers!=null&&Object.hasOwnProperty.call(e,`showLineNumbers`)&&t.uint32(24).bool(e.showLineNumbers),e.wrapLines!=null&&Object.hasOwnProperty.call(e,`wrapLines`)&&t.uint32(32).bool(e.wrapLines),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Code,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.codeText=s:delete o.codeText;continue;case 2:if(a!==2)break;(s=e.string()).length?o.language=s:delete o.language;continue;case 3:if(a!==0)break;(s=e.bool())?o.showLineNumbers=s:delete o.showLineNumbers;continue;case 4:if(a!==0)break;(s=e.bool())?o.wrapLines=s:delete o.wrapLines;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Code)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Code;return e.codeText!=null&&(typeof e.codeText!=`string`||e.codeText.length)&&(n.codeText=String(e.codeText)),e.language!=null&&(typeof e.language!=`string`||e.language.length)&&(n.language=String(e.language)),e.showLineNumbers!=null&&e.showLineNumbers&&(n.showLineNumbers=!!e.showLineNumbers),e.wrapLines!=null&&e.wrapLines&&(n.wrapLines=!!e.wrapLines),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.codeText=``,n.language=``,n.showLineNumbers=!1,n.wrapLines=!1),e.codeText!=null&&e.hasOwnProperty(`codeText`)&&(n.codeText=e.codeText),e.language!=null&&e.hasOwnProperty(`language`)&&(n.language=e.language),e.showLineNumbers!=null&&e.hasOwnProperty(`showLineNumbers`)&&(n.showLineNumbers=e.showLineNumbers),e.wrapLines!=null&&e.hasOwnProperty(`wrapLines`)&&(n.wrapLines=e.wrapLines),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Code`},e})(),V.ColorPicker=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.label=``,e.prototype.default=``,e.prototype.help=``,e.prototype.formId=``,e.prototype.value=``,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.queryParamKey=null;let t;return Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,`default`)&&t.uint32(26).string(e.default),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(50).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(82).string(e.queryParamKey),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ColorPicker,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;(s=e.string()).length?o.default=s:delete o.default;continue;case 4:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==2)break;(s=e.string()).length?o.value=s:delete o.value;continue;case 7:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 8:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;
18case 9:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 10:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ColorPicker)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ColorPicker;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.default!=null&&(typeof e.default!=`string`||e.default.length)&&(n.default=String(e.default)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.value!=null&&(typeof e.value!=`string`||e.value.length)&&(n.value=String(e.value)),e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.ColorPicker.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``,n.label=``,n.default=``,n.help=``,n.formId=``,n.value=``,n.setValue=!1,n.disabled=!1,n.labelVisibility=null),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.default!=null&&e.hasOwnProperty(`default`)&&(n.default=e.default),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=e.value),e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ColorPicker`},e})();var Do=V.Dataframe=(()=>{function e(e){if(this.columnOrder=[],this.selectionMode=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.arrowData=null,e.prototype.id=``,e.prototype.columns=``,e.prototype.editingMode=0,e.prototype.disabled=!1,e.prototype.formId=``,e.prototype.columnOrder=B.emptyArray,e.prototype.selectionMode=B.emptyArray,e.prototype.rowHeight=null,e.prototype.placeholder=null,e.prototype.selectionState=null,e.prototype.selectionDefault=null;let t;return Object.defineProperty(e.prototype,`_rowHeight`,{get:B.oneOfGetter(t=[`rowHeight`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_placeholder`,{get:B.oneOfGetter(t=[`placeholder`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_selectionState`,{get:B.oneOfGetter(t=[`selectionState`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_selectionDefault`,{get:B.oneOfGetter(t=[`selectionDefault`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.arrowData!=null&&Object.hasOwnProperty.call(e,`arrowData`)&&V.ArrowData.encode(e.arrowData,t.uint32(10).fork()).ldelim(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(18).string(e.id),e.columns!=null&&Object.hasOwnProperty.call(e,`columns`)&&t.uint32(26).string(e.columns),e.editingMode!=null&&Object.hasOwnProperty.call(e,`editingMode`)&&t.uint32(32).int32(e.editingMode),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(40).bool(e.disabled),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(50).string(e.formId),e.columnOrder!=null&&e.columnOrder.length)for(let n=0;n<e.columnOrder.length;++n)t.uint32(58).string(e.columnOrder[n]);if(e.selectionMode!=null&&e.selectionMode.length){t.uint32(66).fork();for(let n=0;n<e.selectionMode.length;++n)t.int32(e.selectionMode[n]);t.ldelim()}if(e.rowHeight!=null&&Object.hasOwnProperty.call(e,`rowHeight`)&&t.uint32(72).uint32(e.rowHeight),e.placeholder!=null&&Object.hasOwnProperty.call(e,`placeholder`)&&t.uint32(82).string(e.placeholder),e.selectionState!=null&&Object.hasOwnProperty.call(e,`selectionState`)&&t.uint32(90).string(e.selectionState),e.selectionDefault!=null&&Object.hasOwnProperty.call(e,`selectionDefault`)&&t.uint32(98).string(e.selectionDefault),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Dataframe,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.arrowData=V.ArrowData.decode(e,e.uint32(),void 0,r+1,o.arrowData);continue;case 2:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 3:if(a!==2)break;(s=e.string()).length?o.columns=s:delete o.columns;continue;case 4:if(a!==0)break;(s=e.int32())?o.editingMode=s:delete o.editingMode;continue;case 5:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 6:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 7:if(a!==2)break;o.columnOrder&&o.columnOrder.length||(o.columnOrder=[]),o.columnOrder.push(e.string());continue;case 8:if(a===2){o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.selectionMode.push(e.int32());continue}if(a!==0)break;o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]),o.selectionMode.push(e.int32());continue;
18case 9:if(a!==0)break;o.rowHeight=e.uint32(),o._rowHeight=`rowHeight`;continue;case 10:if(a!==2)break;o.placeholder=e.string(),o._placeholder=`placeholder`;continue;case 11:if(a!==2)break;o.selectionState=e.string(),o._selectionState=`selectionState`;continue;case 12:if(a!==2)break;o.selectionDefault=e.string(),o._selectionDefault=`selectionDefault`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Dataframe)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Dataframe;if(e.arrowData!=null){if(typeof e.arrowData!=`object`)throw TypeError(`.Dataframe.arrowData: object expected`);n.arrowData=V.ArrowData.fromObject(e.arrowData,t+1)}if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.columns!=null&&(typeof e.columns!=`string`||e.columns.length)&&(n.columns=String(e.columns)),e.editingMode!==0&&(typeof e.editingMode!=`string`||V.Dataframe.EditingMode[e.editingMode]!==0))switch(e.editingMode){default:if(typeof e.editingMode==`number`){n.editingMode=e.editingMode;break}break;case`READ_ONLY`:case 0:n.editingMode=0;break;case`FIXED`:case 1:n.editingMode=1;break;case`DYNAMIC`:case 2:n.editingMode=2;break;case`ADD_ONLY`:case 3:n.editingMode=3;break;case`DELETE_ONLY`:case 4:n.editingMode=4;break}if(e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.columnOrder){if(!Array.isArray(e.columnOrder))throw TypeError(`.Dataframe.columnOrder: array expected`);n.columnOrder=Array(e.columnOrder.length);for(let t=0;t<e.columnOrder.length;++t)n.columnOrder[t]=String(e.columnOrder[t])}if(e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(`.Dataframe.selectionMode: array expected`);n.selectionMode=Array(e.selectionMode.length);for(let t=0;t<e.selectionMode.length;++t)switch(e.selectionMode[t]){default:if(typeof e.selectionMode[t]==`number`){n.selectionMode[t]=e.selectionMode[t];break}case`SINGLE_ROW`:case 0:n.selectionMode[t]=0;break;case`MULTI_ROW`:case 1:n.selectionMode[t]=1;break;case`SINGLE_COLUMN`:case 2:n.selectionMode[t]=2;break;case`MULTI_COLUMN`:case 3:n.selectionMode[t]=3;break;case`SINGLE_CELL`:case 4:n.selectionMode[t]=4;break;case`MULTI_CELL`:case 5:n.selectionMode[t]=5;break;case`SINGLE_ROW_REQUIRED`:case 6:n.selectionMode[t]=6;break}}return e.rowHeight!=null&&(n.rowHeight=e.rowHeight>>>0),e.placeholder!=null&&(n.placeholder=String(e.placeholder)),e.selectionState!=null&&(n.selectionState=String(e.selectionState)),e.selectionDefault!=null&&(n.selectionDefault=String(e.selectionDefault)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.columnOrder=[],n.selectionMode=[]),t.defaults&&(n.arrowData=null,n.id=``,n.columns=``,n.editingMode=t.enums===String?`READ_ONLY`:0,n.disabled=!1,n.formId=``),e.arrowData!=null&&e.hasOwnProperty(`arrowData`)&&(n.arrowData=V.ArrowData.toObject(e.arrowData,t)),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.columns!=null&&e.hasOwnProperty(`columns`)&&(n.columns=e.columns),e.editingMode!=null&&e.hasOwnProperty(`editingMode`)&&(n.editingMode=t.enums===String?V.Dataframe.EditingMode[e.editingMode]===void 0?e.editingMode:V.Dataframe.EditingMode[e.editingMode]:e.editingMode),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.columnOrder&&e.columnOrder.length){n.columnOrder=Array(e.columnOrder.length);for(let t=0;t<e.columnOrder.length;++t)n.columnOrder[t]=e.columnOrder[t]}if(e.selectionMode&&e.selectionMode.length){n.selectionMode=Array(e.selectionMode.length);for(let r=0;r<e.selectionMode.length;++r)n.selectionMode[r]=t.enums===String?V.Dataframe.SelectionMode[e.selectionMode[r]]===void 0?e.selectionMode[r]:V.Dataframe.SelectionMode[e.selectionMode[r]]:e.selectionMode[r]}return e.rowHeight!=null&&e.hasOwnProperty(`rowHeight`)&&(n.rowHeight=e.rowHeight,t.oneofs&&(n._rowHeight=`rowHeight`)),e.placeholder!=null&&e.hasOwnProperty(`placeholder`)&&(n.placeholder=e.placeholder,t.oneofs&&(n._placeholder=`placeholder`)),e.selectionState!=null&&e.hasOwnProperty(`selectionState`)&&(n.selectionState=e.selectionState,t.oneofs&&(n._selectionState=`selectionState`)),e.selectionDefault!=null&&e.hasOwnProperty(`selectionDefault`)&&(n.selectionDefault=e.selectionDefault,t.oneofs&&(n._selectionDefault=`selectionDefault`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Dataframe`},e.EditingMode=(function(){let e={},t=Object.create(e);return t[e[0]=`READ_ONLY`]=0,t[e[1]=`FIXED`]=1,t[e[2]=`DYNAMIC`]=2,t[e[3]=`ADD_ONLY`]=3,t[e[4]=`DELETE_ONLY`]=4,t})(),e.SelectionMode=(function(){let e={},t=Object.create(e);return t[e[0]=`SINGLE_ROW`]=0,t[e[1]=`MULTI_ROW`]=1,t[e[2]=`SINGLE_COLUMN`]=2,t[e[3]=`MULTI_COLUMN`]=3,t[e[4]=`SINGLE_CELL`]=4,t[e[5]=`MULTI_CELL`]=5,t[e[6]=`SINGLE_ROW_REQUIRED`]=6,t})(),e})();V.DateInput=(()=>{function e(e){if(this.default=[],this.value=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.label=``,e.prototype.default=B.emptyArray,e.prototype.min=``,e.prototype.max=``,e.prototype.isRange=!1,e.prototype.help=``,e.prototype.formId=``,e.prototype.value=B.emptyArray,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.format=``,e.prototype.queryParamKey=null;let t;return Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let n=0;n<e.default.length;++n)t.uint32(26).string(e.default[n]);if(e.min!=null&&Object.hasOwnProperty.call(e,`min`)&&t.uint32(34).string(e.min),e.max!=null&&Object.hasOwnProperty.call(e,`max`)&&t.uint32(42).string(e.max),e.isRange!=null&&Object.hasOwnProperty.call(e,`isRange`)&&t.uint32(48).bool(e.isRange),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(58).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(66).string(e.formId),e.value!=null&&e.value.length)for(let n=0;n<e.value.length;++n)t.uint32(74).string(e.value[n]);if(e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(80).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(88).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(98).fork()).ldelim(),e.format!=null&&Object.hasOwnProperty.call(e,`format`)&&t.uint32(106).string(e.format),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(114).string(e.queryParamKey),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.DateInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.default&&o.default.length||(o.default=[]),o.default.push(e.string());continue;case 4:if(a!==2)break;(s=e.string()).length?o.min=s:delete o.min;continue;case 5:if(a!==2)break;(s=e.string()).length?o.max=s:delete o.max;continue;case 6:if(a!==0)break;(s=e.bool())?o.isRange=s:delete o.isRange;continue;case 7:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 8:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;
18case 9:if(a!==2)break;o.value&&o.value.length||(o.value=[]),o.value.push(e.string());continue;case 10:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 11:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 12:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 13:if(a!==2)break;(s=e.string()).length?o.format=s:delete o.format;continue;case 14:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.DateInput)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.DateInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(`.DateInput.default: array expected`);n.default=Array(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=String(e.default[t])}if(e.min!=null&&(typeof e.min!=`string`||e.min.length)&&(n.min=String(e.min)),e.max!=null&&(typeof e.max!=`string`||e.max.length)&&(n.max=String(e.max)),e.isRange!=null&&e.isRange&&(n.isRange=!!e.isRange),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(`.DateInput.value: array expected`);n.value=Array(e.value.length);for(let t=0;t<e.value.length;++t)n.value[t]=String(e.value[t])}if(e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.DateInput.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.format!=null&&(typeof e.format!=`string`||e.format.length)&&(n.format=String(e.format)),e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.default=[],n.value=[]),t.defaults&&(n.id=``,n.label=``,n.min=``,n.max=``,n.isRange=!1,n.help=``,n.formId=``,n.setValue=!1,n.disabled=!1,n.labelVisibility=null,n.format=``),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.default&&e.default.length){n.default=Array(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=e.default[t]}if(e.min!=null&&e.hasOwnProperty(`min`)&&(n.min=e.min),e.max!=null&&e.hasOwnProperty(`max`)&&(n.max=e.max),e.isRange!=null&&e.hasOwnProperty(`isRange`)&&(n.isRange=e.isRange),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.value&&e.value.length){n.value=Array(e.value.length);for(let t=0;t<e.value.length;++t)n.value[t]=e.value[t]}return e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.format!=null&&e.hasOwnProperty(`format`)&&(n.format=e.format),e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/DateInput`},e})(),V.DateTimeInput=(()=>{function e(e){if(this.default=[],this.value=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.label=``,e.prototype.default=B.emptyArray,e.prototype.min=``,e.prototype.max=``,e.prototype.help=``,e.prototype.formId=``,e.prototype.value=B.emptyArray,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.format=``,e.prototype.step=B.Long?B.Long.fromBits(0,0,!1):0,e.prototype.isRange=!1,e.prototype.queryParamKey=null;let t;return Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let n=0;n<e.default.length;++n)t.uint32(26).string(e.default[n]);if(e.min!=null&&Object.hasOwnProperty.call(e,`min`)&&t.uint32(34).string(e.min),e.max!=null&&Object.hasOwnProperty.call(e,`max`)&&t.uint32(42).string(e.max),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(50).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(58).string(e.formId),e.value!=null&&e.value.length)for(let n=0;n<e.value.length;++n)t.uint32(66).string(e.value[n]);if(e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(72).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(80).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(90).fork()).ldelim(),e.format!=null&&Object.hasOwnProperty.call(e,`format`)&&t.uint32(98).string(e.format),e.step!=null&&Object.hasOwnProperty.call(e,`step`)&&t.uint32(104).int64(e.step),e.isRange!=null&&Object.hasOwnProperty.call(e,`isRange`)&&t.uint32(112).bool(e.isRange),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(122).string(e.queryParamKey),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.DateTimeInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.default&&o.default.length||(o.default=[]),o.default.push(e.string());continue;case 4:if(a!==2)break;(s=e.string()).length?o.min=s:delete o.min;continue;case 5:if(a!==2)break;(s=e.string()).length?o.max=s:delete o.max;continue;case 6:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 7:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 8:if(a!==2)break;o.value&&o.value.length||(o.value=[]),o.value.push(e.string());continue;
18case 9:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 10:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 11:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 12:if(a!==2)break;(s=e.string()).length?o.format=s:delete o.format;continue;case 13:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.step=s:delete o.step;continue;case 14:if(a!==0)break;(s=e.bool())?o.isRange=s:delete o.isRange;continue;case 15:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.DateTimeInput)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.DateTimeInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(`.DateTimeInput.default: array expected`);n.default=Array(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=String(e.default[t])}if(e.min!=null&&(typeof e.min!=`string`||e.min.length)&&(n.min=String(e.min)),e.max!=null&&(typeof e.max!=`string`||e.max.length)&&(n.max=String(e.max)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(`.DateTimeInput.value: array expected`);n.value=Array(e.value.length);for(let t=0;t<e.value.length;++t)n.value[t]=String(e.value[t])}if(e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.DateTimeInput.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.format!=null&&(typeof e.format!=`string`||e.format.length)&&(n.format=String(e.format)),e.step!=null&&(typeof e.step==`object`?e.step.low||e.step.high:Number(e.step)!==0)&&(B.Long?(n.step=B.Long.fromValue(e.step)).unsigned=!1:typeof e.step==`string`?n.step=parseInt(e.step,10):typeof e.step==`number`?n.step=e.step:typeof e.step==`object`&&(n.step=new B.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber())),e.isRange!=null&&e.isRange&&(n.isRange=!!e.isRange),e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.default=[],n.value=[]),t.defaults){if(n.id=``,n.label=``,n.min=``,n.max=``,n.help=``,n.formId=``,n.setValue=!1,n.disabled=!1,n.labelVisibility=null,n.format=``,B.Long){let e=new B.Long(0,0,!1);n.step=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.step=t.longs===String?`0`:0;n.isRange=!1}if(e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.default&&e.default.length){n.default=Array(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=e.default[t]}if(e.min!=null&&e.hasOwnProperty(`min`)&&(n.min=e.min),e.max!=null&&e.hasOwnProperty(`max`)&&(n.max=e.max),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.value&&e.value.length){n.value=Array(e.value.length);for(let t=0;t<e.value.length;++t)n.value[t]=e.value[t]}return e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.format!=null&&e.hasOwnProperty(`format`)&&(n.format=e.format),e.step!=null&&e.hasOwnProperty(`step`)&&(typeof e.step==`number`?n.step=t.longs===String?String(e.step):e.step:n.step=t.longs===String?B.Long.prototype.toString.call(e.step):t.longs===Number?new B.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber():e.step),e.isRange!=null&&e.hasOwnProperty(`isRange`)&&(n.isRange=e.isRange),e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/DateTimeInput`},e})();var Oo=V.DeckGlJsonChart=(()=>{function e(e){if(this.selectionMode=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.json=``,e.prototype.tooltip=``,e.prototype.id=``,e.prototype.mapboxToken=``,e.prototype.selectionMode=B.emptyArray,e.prototype.formId=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.json!=null&&Object.hasOwnProperty.call(e,`json`)&&t.uint32(10).string(e.json),e.tooltip!=null&&Object.hasOwnProperty.call(e,`tooltip`)&&t.uint32(18).string(e.tooltip),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(42).string(e.id),e.mapboxToken!=null&&Object.hasOwnProperty.call(e,`mapboxToken`)&&t.uint32(50).string(e.mapboxToken),e.selectionMode!=null&&e.selectionMode.length){t.uint32(74).fork();for(let n=0;n<e.selectionMode.length;++n)t.int32(e.selectionMode[n]);t.ldelim()}if(e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(82).string(e.formId),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.DeckGlJsonChart,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.json=s:delete o.json;continue;case 2:if(a!==2)break;(s=e.string()).length?o.tooltip=s:delete o.tooltip;continue;case 5:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 6:if(a!==2)break;(s=e.string()).length?o.mapboxToken=s:delete o.mapboxToken;continue;
18case 9:if(a===2){o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.selectionMode.push(e.int32());continue}if(a!==0)break;o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]),o.selectionMode.push(e.int32());continue;case 10:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.DeckGlJsonChart)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.DeckGlJsonChart;if(e.json!=null&&(typeof e.json!=`string`||e.json.length)&&(n.json=String(e.json)),e.tooltip!=null&&(typeof e.tooltip!=`string`||e.tooltip.length)&&(n.tooltip=String(e.tooltip)),e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.mapboxToken!=null&&(typeof e.mapboxToken!=`string`||e.mapboxToken.length)&&(n.mapboxToken=String(e.mapboxToken)),e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(`.DeckGlJsonChart.selectionMode: array expected`);n.selectionMode=Array(e.selectionMode.length);for(let t=0;t<e.selectionMode.length;++t)switch(e.selectionMode[t]){default:if(typeof e.selectionMode[t]==`number`){n.selectionMode[t]=e.selectionMode[t];break}case`SINGLE_OBJECT`:case 0:n.selectionMode[t]=0;break;case`MULTI_OBJECT`:case 1:n.selectionMode[t]=1;break}}return e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.selectionMode=[]),t.defaults&&(n.json=``,n.tooltip=``,n.id=``,n.mapboxToken=``,n.formId=``),e.json!=null&&e.hasOwnProperty(`json`)&&(n.json=e.json),e.tooltip!=null&&e.hasOwnProperty(`tooltip`)&&(n.tooltip=e.tooltip),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.mapboxToken!=null&&e.hasOwnProperty(`mapboxToken`)&&(n.mapboxToken=e.mapboxToken),e.selectionMode&&e.selectionMode.length){n.selectionMode=Array(e.selectionMode.length);for(let r=0;r<e.selectionMode.length;++r)n.selectionMode[r]=t.enums===String?V.DeckGlJsonChart.SelectionMode[e.selectionMode[r]]===void 0?e.selectionMode[r]:V.DeckGlJsonChart.SelectionMode[e.selectionMode[r]]:e.selectionMode[r]}return e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/DeckGlJsonChart`},e.SelectionMode=(function(){let e={},t=Object.create(e);return t[e[0]=`SINGLE_OBJECT`]=0,t[e[1]=`MULTI_OBJECT`]=1,t})(),e})();V.Delta=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.newElement=null,e.prototype.addBlock=null,e.prototype.newTransient=null,e.prototype.fragmentId=``;let t;return Object.defineProperty(e.prototype,`type`,{get:B.oneOfGetter(t=[`newElement`,`addBlock`,`newTransient`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.newElement!=null&&Object.hasOwnProperty.call(e,`newElement`)&&V.Element.encode(e.newElement,t.uint32(26).fork()).ldelim(),e.addBlock!=null&&Object.hasOwnProperty.call(e,`addBlock`)&&V.Block.encode(e.addBlock,t.uint32(50).fork()).ldelim(),e.fragmentId!=null&&Object.hasOwnProperty.call(e,`fragmentId`)&&t.uint32(66).string(e.fragmentId),e.newTransient!=null&&Object.hasOwnProperty.call(e,`newTransient`)&&V.Transient.encode(e.newTransient,t.uint32(74).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Delta,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 3:if(a!==2)break;o.newElement=V.Element.decode(e,e.uint32(),void 0,r+1,o.newElement),o.type=`newElement`;continue;case 6:if(a!==2)break;o.addBlock=V.Block.decode(e,e.uint32(),void 0,r+1,o.addBlock),o.type=`addBlock`;continue;
18case 9:if(a!==2)break;o.newTransient=V.Transient.decode(e,e.uint32(),void 0,r+1,o.newTransient),o.type=`newTransient`;continue;case 8:if(a!==2)break;(s=e.string()).length?o.fragmentId=s:delete o.fragmentId;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Delta)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Delta;if(e.newElement!=null){if(typeof e.newElement!=`object`)throw TypeError(`.Delta.newElement: object expected`);n.newElement=V.Element.fromObject(e.newElement,t+1)}if(e.addBlock!=null){if(typeof e.addBlock!=`object`)throw TypeError(`.Delta.addBlock: object expected`);n.addBlock=V.Block.fromObject(e.addBlock,t+1)}if(e.newTransient!=null){if(typeof e.newTransient!=`object`)throw TypeError(`.Delta.newTransient: object expected`);n.newTransient=V.Transient.fromObject(e.newTransient,t+1)}return e.fragmentId!=null&&(typeof e.fragmentId!=`string`||e.fragmentId.length)&&(n.fragmentId=String(e.fragmentId)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.fragmentId=``),e.newElement!=null&&e.hasOwnProperty(`newElement`)&&(n.newElement=V.Element.toObject(e.newElement,t),t.oneofs&&(n.type=`newElement`)),e.addBlock!=null&&e.hasOwnProperty(`addBlock`)&&(n.addBlock=V.Block.toObject(e.addBlock,t),t.oneofs&&(n.type=`addBlock`)),e.fragmentId!=null&&e.hasOwnProperty(`fragmentId`)&&(n.fragmentId=e.fragmentId),e.newTransient!=null&&e.hasOwnProperty(`newTransient`)&&(n.newTransient=V.Transient.toObject(e.newTransient,t),t.oneofs&&(n.type=`newTransient`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Delta`},e})();var ko=V.Element=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.heightConfig=null,e.prototype.widthConfig=null,e.prototype.textAlignmentConfig=null,e.prototype.hasOneShotEffect=null,e.prototype.alert=null,e.prototype.dataframe=null,e.prototype.table=null,e.prototype.vegaLiteChart=null,e.prototype.audio=null,e.prototype.audioInput=null,e.prototype.balloons=null,e.prototype.bidiComponent=null,e.prototype.button=null,e.prototype.buttonGroup=null,e.prototype.downloadButton=null,e.prototype.cameraInput=null,e.prototype.chatInput=null,e.prototype.checkbox=null,e.prototype.colorPicker=null,e.prototype.componentInstance=null,e.prototype.dateInput=null,e.prototype.deckGlJsonChart=null,e.prototype.helpInfo=null,e.prototype.empty=null,e.prototype.exception=null,e.prototype.favicon=null,e.prototype.feedback=null,e.prototype.fileUploader=null,e.prototype.graphvizChart=null,e.prototype.html=null,e.prototype.iframe=null,e.prototype.imgs=null,e.prototype.json=null,e.prototype.linkButton=null,e.prototype.markdown=null,e.prototype.metric=null,e.prototype.multiselect=null,e.prototype.numberInput=null,e.prototype.pageLink=null,e.prototype.plotlyChart=null,e.prototype.progress=null,e.prototype.radio=null,e.prototype.selectbox=null,e.prototype.skeleton=null,e.prototype.slider=null,e.prototype.snow=null,e.prototype.space=null,e.prototype.spinner=null,e.prototype.text=null,e.prototype.textArea=null,e.prototype.textInput=null,e.prototype.timeInput=null,e.prototype.dateTimeInput=null,e.prototype.toast=null,e.prototype.video=null,e.prototype.heading=null,e.prototype.code=null,e.prototype.menuButton=null,e.prototype.pagination=null;let t;return Object.defineProperty(e.prototype,`_heightConfig`,{get:B.oneOfGetter(t=[`heightConfig`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_widthConfig`,{get:B.oneOfGetter(t=[`widthConfig`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_textAlignmentConfig`,{get:B.oneOfGetter(t=[`textAlignmentConfig`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_hasOneShotEffect`,{get:B.oneOfGetter(t=[`hasOneShotEffect`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`type`,{get:B.oneOfGetter(t=`alert.dataframe.table.vegaLiteChart.audio.audioInput.balloons.bidiComponent.button.buttonGroup.downloadButton.cameraInput.chatInput.checkbox.colorPicker.componentInstance.dateInput.deckGlJsonChart.helpInfo.empty.exception.favicon.feedback.fileUploader.graphvizChart.html.iframe.imgs.json.linkButton.markdown.metric.multiselect.numberInput.pageLink.plotlyChart.progress.radio.selectbox.skeleton.slider.snow.space.spinner.text.textArea.textInput.timeInput.dateTimeInput.toast.video.heading.code.menuButton.pagination`.split(`.`)),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.text!=null&&Object.hasOwnProperty.call(e,`text`)&&V.Text.encode(e.text,t.uint32(10).fork()).ldelim(),e.empty!=null&&Object.hasOwnProperty.call(e,`empty`)&&V.Empty.encode(e.empty,t.uint32(18).fork()).ldelim(),e.progress!=null&&Object.hasOwnProperty.call(e,`progress`)&&V.Progress.encode(e.progress,t.uint32(42).fork()).ldelim(),e.imgs!=null&&Object.hasOwnProperty.call(e,`imgs`)&&V.ImageList.encode(e.imgs,t.uint32(50).fork()).ldelim(),e.helpInfo!=null&&Object.hasOwnProperty.call(e,`helpInfo`)&&V.Help.encode(e.helpInfo,t.uint32(58).fork()).ldelim(),e.exception!=null&&Object.hasOwnProperty.call(e,`exception`)&&V.Exception.encode(e.exception,t.uint32(66).fork()).ldelim(),e.balloons!=null&&Object.hasOwnProperty.call(e,`balloons`)&&V.Balloons.encode(e.balloons,t.uint32(98).fork()).ldelim(),e.audio!=null&&Object.hasOwnProperty.call(e,`audio`)&&V.Audio.encode(e.audio,t.uint32(106).fork()).ldelim(),e.video!=null&&Object.hasOwnProperty.call(e,`video`)&&V.Video.encode(e.video,t.uint32(114).fork()).ldelim(),e.plotlyChart!=null&&Object.hasOwnProperty.call(e,`plotlyChart`)&&V.PlotlyChart.encode(e.plotlyChart,t.uint32(130).fork()).ldelim(),e.graphvizChart!=null&&Object.hasOwnProperty.call(e,`graphvizChart`)&&V.GraphVizChart.encode(e.graphvizChart,t.uint32(146).fork()).ldelim(),e.button!=null&&Object.hasOwnProperty.call(e,`button`)&&V.Button.encode(e.button,t.uint32(154).fork()).ldelim(),e.checkbox!=null&&Object.hasOwnProperty.call(e,`checkbox`)&&V.Checkbox.encode(e.checkbox,t.uint32(162).fork()).ldelim(),e.slider!=null&&Object.hasOwnProperty.call(e,`slider`)&&V.Slider.encode(e.slider,t.uint32(170).fork()).ldelim(),e.textArea!=null&&Object.hasOwnProperty.call(e,`textArea`)&&V.TextArea.encode(e.textArea,t.uint32(178).fork()).ldelim(),e.radio!=null&&Object.hasOwnProperty.call(e,`radio`)&&V.Radio.encode(e.radio,t.uint32(186).fork()).ldelim(),e.textInput!=null&&Object.hasOwnProperty.call(e,`textInput`)&&V.TextInput.encode(e.textInput,t.uint32(194).fork()).ldelim(),e.selectbox!=null&&Object.hasOwnProperty.call(e,`selectbox`)&&V.Selectbox.encode(e.selectbox,t.uint32(202).fork()).ldelim(),e.timeInput!=null&&Object.hasOwnProperty.call(e,`timeInput`)&&V.TimeInput.encode(e.timeInput,t.uint32(210).fork()).ldelim(),e.dateInput!=null&&Object.hasOwnProperty.call(e,`dateInput`)&&V.DateInput.encode(e.dateInput,t.uint32(218).fork()).ldelim(),e.multiselect!=null&&Object.hasOwnProperty.call(e,`multiselect`)&&V.MultiSelect.encode(e.multiselect,t.uint32(226).fork()).ldelim(),e.markdown!=null&&Object.hasOwnProperty.call(e,`markdown`)&&V.Markdown.encode(e.markdown,t.uint32(234).fork()).ldelim(),e.alert!=null&&Object.hasOwnProperty.call(e,`alert`)&&V.Alert.encode(e.alert,t.uint32(242).fork()).ldelim(),e.json!=null&&Object.hasOwnProperty.call(e,`json`)&&V.Json.encode(e.json,t.uint32(250).fork()).ldelim(),e.numberInput!=null&&Object.hasOwnProperty.call(e,`numberInput`)&&V.NumberInput.encode(e.numberInput,t.uint32(258).fork()).ldelim(),e.fileUploader!=null&&Object.hasOwnProperty.call(e,`fileUploader`)&&V.FileUploader.encode(e.fileUploader,t.uint32(266).fork()).ldelim(),e.deckGlJsonChart!=null&&Object.hasOwnProperty.call(e,`deckGlJsonChart`)&&V.DeckGlJsonChart.encode(e.deckGlJsonChart,t.uint32(274).fork()).ldelim(),e.colorPicker!=null&&Object.hasOwnProperty.call(e,`colorPicker`)&&V.ColorPicker.encode(e.colorPicker,t.uint32(282).fork()).ldelim(),e.favicon!=null&&Object.hasOwnProperty.call(e,`favicon`)&&V.Favicon.encode(e.favicon,t.uint32(290).fork()).ldelim(),e.componentInstance!=null&&Object.hasOwnProperty.call(e,`componentInstance`)&&V.ComponentInstance.encode(e.componentInstance,t.uint32(298).fork()).ldelim(),e.iframe!=null&&Object.hasOwnProperty.call(e,`iframe`)&&V.I
18Frame.encode(e.iframe,t.uint32(306).fork()).ldelim(),e.table!=null&&Object.hasOwnProperty.call(e,`table`)&&V.Table.encode(e.table,t.uint32(314).fork()).ldelim(),e.dataframe!=null&&Object.hasOwnProperty.call(e,`dataframe`)&&V.Dataframe.encode(e.dataframe,t.uint32(322).fork()).ldelim(),e.vegaLiteChart!=null&&Object.hasOwnProperty.call(e,`vegaLiteChart`)&&V.VegaLiteChart.encode(e.vegaLiteChart,t.uint32(330).fork()).ldelim(),e.metric!=null&&Object.hasOwnProperty.call(e,`metric`)&&V.Metric.encode(e.metric,t.uint32(338).fork()).ldelim(),e.downloadButton!=null&&Object.hasOwnProperty.call(e,`downloadButton`)&&V.DownloadButton.encode(e.downloadButton,t.uint32(346).fork()).ldelim(),e.spinner!=null&&Object.hasOwnProperty.call(e,`spinner`)&&V.Spinner.encode(e.spinner,t.uint32(354).fork()).ldelim(),e.cameraInput!=null&&Object.hasOwnProperty.call(e,`cameraInput`)&&V.CameraInput.encode(e.cameraInput,t.uint32(362).fork()).ldelim(),e.snow!=null&&Object.hasOwnProperty.call(e,`snow`)&&V.Snow.encode(e.snow,t.uint32(370).fork()).ldelim(),e.heading!=null&&Object.hasOwnProperty.call(e,`heading`)&&V.Heading.encode(e.heading,t.uint32(378).fork()).ldelim(),e.code!=null&&Object.hasOwnProperty.call(e,`code`)&&V.Code.encode(e.code,t.uint32(386).fork()).ldelim(),e.chatInput!=null&&Object.hasOwnProperty.call(e,`chatInput`)&&V.ChatInput.encode(e.chatInput,t.uint32(394).fork()).ldelim(),e.toast!=null&&Object.hasOwnProperty.call(e,`toast`)&&V.Toast.encode(e.toast,t.uint32(402).fork()).ldelim(),e.linkButton!=null&&Object.hasOwnProperty.call(e,`linkButton`)&&V.LinkButton.encode(e.linkButton,t.uint32(410).fork()).ldelim(),e.skeleton!=null&&Object.hasOwnProperty.call(e,`skeleton`)&&V.Skeleton.encode(e.skeleton,t.uint32(418).fork()).ldelim(),e.pageLink!=null&&Object.hasOwnProperty.call(e,`pageLink`)&&V.PageLink.encode(e.pageLink,t.uint32(426).fork()).ldelim(),e.html!=null&&Object.hasOwnProperty.call(e,`html`)&&V.Html.encode(e.html,t.uint32(434).fork()).ldelim(),e.buttonGroup!=null&&Object.hasOwnProperty.call(e,`buttonGroup`)&&V.ButtonGroup.encode(e.buttonGroup,t.uint32(442).fork()).ldelim(),e.audioInput!=null&&Object.hasOwnProperty.call(e,`audioInput`)&&V.AudioInput.encode(e.audioInput,t.uint32(450).fork()).ldelim(),e.heightConfig!=null&&Object.hasOwnProperty.call(e,`heightConfig`)&&V.streamlit.HeightConfig.encode(e.heightConfig,t.uint32(458).fork()).ldelim(),e.widthConfig!=null&&Object.hasOwnProperty.call(e,`widthConfig`)&&V.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(466).fork()).ldelim(),e.bidiComponent!=null&&Object.hasOwnProperty.call(e,`bidiComponent`)&&V.BidiComponent.encode(e.bidiComponent,t.uint32(474).fork()).ldelim(),e.space!=null&&Object.hasOwnProperty.call(e,`space`)&&V.Space.encode(e.space,t.uint32(482).fork()).ldelim(),e.textAlignmentConfig!=null&&Object.hasOwnProperty.call(e,`textAlignmentConfig`)&&V.streamlit.TextAlignmentConfig.encode(e.textAlignmentConfig,t.uint32(490).fork()).ldelim(),e.dateTimeInput!=null&&Object.hasOwnProperty.call(e,`dateTimeInput`)&&V.DateTimeInput.encode(e.dateTimeInput,t.uint32(498).fork()).ldelim(),e.feedback!=null&&Object.hasOwnProperty.call(e,`feedback`)&&V.Feedback.encode(e.feedback,t.uint32(506).fork()).ldelim(),e.menuButton!=null&&Object.hasOwnProperty.call(e,`menuButton`)&&V.MenuButton.encode(e.menuButton,t.uint32(514).fork()).ldelim(),e.hasOneShotEffect!=null&&Object.hasOwnProperty.call(e,`hasOneShotEffect`)&&t.uint32(520).bool(e.hasOneShotEffect),e.pagination!=null&&Object.hasOwnProperty.call(e,`pagination`)&&V.Pagination.encode(e.pagination,t.uint32(530).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Element;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 57:if(a!==2)break;o.heightConfig=V.streamlit.HeightConfig.decode(e,e.uint32(),void 0,r+1,o.heightConfig),o._heightConfig=`heightConfig`;continue;case 58:if(a!==2)break;o.widthConfig=V.streamlit.WidthConfig.decode(e,e.uint32(),void 0,r+1,o.widthConfig),o._widthConfig=`widthConfig`;continue;case 61:if(a!==2)break;o.textAlignmentConfig=V.streamlit.TextAlignmentConfig.decode(e,e.uint32(),void 0,r+1,o.textAlignmentConfig),o._textAlignmentConfig=`textAlignmentConfig`;continue;case 65:if(a!==0)break;o.hasOneShotEffect=e.bool(),o._hasOneShotEffect=`hasOneShotEffect`;continue;case 30:if(a!==2)break;o.alert=V.Alert.decode(e,e.uint32(),void 0,r+1,o.alert),o.type=`alert`;continue;case 40:if(a!==2)break;o.dataframe=V.Dataframe.decode(e,e.uint32(),void 0,r+1,o.dataframe),o.type=`dataframe`;continue;case 39:if(a!==2)break;o.table=V.Table.decode(e,e.uint32(),void 0,r+1,o.table),o.type=`table`;continue;case 41:if(a!==2)break;o.vegaLiteChart=V.VegaLiteChart.decode(e,e.uint32(),void 0,r+1,o.vegaLiteChart),o.type=`vegaLiteChart`;continue;case 13:if(a!==2)break;o.audio=V.Audio.decode(e,e.uint32(),void 0,r+1,o.audio),o.type=`audio`;continue;case 56:if(a!==2)break;o.audioInput=V.AudioInput.decode(e,e.uint32(),void 0,r+1,o.audioInput),o.type=`audio
18Input`;continue;case 12:if(a!==2)break;o.balloons=V.Balloons.decode(e,e.uint32(),void 0,r+1,o.balloons),o.type=`balloons`;continue;case 59:if(a!==2)break;o.bidiComponent=V.BidiComponent.decode(e,e.uint32(),void 0,r+1,o.bidiComponent),o.type=`bidiComponent`;continue;case 19:if(a!==2)break;o.button=V.Button.decode(e,e.uint32(),void 0,r+1,o.button),o.type=`button`;continue;case 55:if(a!==2)break;o.buttonGroup=V.ButtonGroup.decode(e,e.uint32(),void 0,r+1,o.buttonGroup),o.type=`buttonGroup`;continue;case 43:if(a!==2)break;o.downloadButton=V.DownloadButton.decode(e,e.uint32(),void 0,r+1,o.downloadButton),o.type=`downloadButton`;continue;case 45:if(a!==2)break;o.cameraInput=V.CameraInput.decode(e,e.uint32(),void 0,r+1,o.cameraInput),o.type=`cameraInput`;continue;case 49:if(a!==2)break;o.chatInput=V.ChatInput.decode(e,e.uint32(),void 0,r+1,o.chatInput),o.type=`chatInput`;continue;case 20:if(a!==2)break;o.checkbox=V.Checkbox.decode(e,e.uint32(),void 0,r+1,o.checkbox),o.type=`checkbox`;continue;case 35:if(a!==2)break;o.colorPicker=V.ColorPicker.decode(e,e.uint32(),void 0,r+1,o.colorPicker),o.type=`colorPicker`;continue;case 37:if(a!==2)break;o.componentInstance=V.ComponentInstance.decode(e,e.uint32(),void 0,r+1,o.componentInstance),o.type=`componentInstance`;continue;case 27:if(a!==2)break;o.dateInput=V.DateInput.decode(e,e.uint32(),void 0,r+1,o.dateInput),o.type=`dateInput`;continue;case 34:if(a!==2)break;o.deckGlJsonChart=V.DeckGlJsonChart.decode(e,e.uint32(),void 0,r+1,o.deckGlJsonChart),o.type=`deckGlJsonChart`;continue;case 7:if(a!==2)break;o.helpInfo=V.Help.decode(e,e.uint32(),void 0,r+1,o.helpInfo),o.type=`helpInfo`;continue;case 2:if(a!==2)break;o.empty=V.Empty.decode(e,e.uint32(),void 0,r+1,o.empty),o.type=`empty`;continue;case 8:if(a!==2)break;o.exception=V.Exception.decode(e,e.uint32(),void 0,r+1,o.exception),o.type=`exception`;continue;case 36:if(a!==2)break;o.favicon=V.Favicon.decode(e,e.uint32(),void 0,r+1,o.favicon),o.type=`favicon`;continue;case 63:if(a!==2)break;o.feedback=V.Feedback.decode(e,e.uint32(),void 0,r+1,o.feedback),o.type=`feedback`;continue;case 33:if(a!==2)break;o.fileUploader=V.FileUploader.decode(e,e.uint32(),void 0,r+1,o.fileUploader),o.type=`fileUploader`;continue;case 18:if(a!==2)break;o.graphvizChart=V.GraphVizChart.decode(e,e.uint32(),void 0,r+1,o.graphvizChart),o.type=`graphvizChart`;continue;case 54:if(a!==2)break;o.html=V.Html.decode(e,e.uint32(),void 0,r+1,o.html),o.type=`html`;continue;case 38:if(a!==2)break;o.iframe=V.IFrame.decode(e,e.uint32(),void 0,r+1,o.iframe),o.type=`iframe`;continue;case 6:if(a!==2)break;o.imgs=V.ImageList.decode(e,e.uint32(),void 0,r+1,o.imgs),o.type=`imgs`;continue;case 31:if(a!==2)break;o.json=V.Json.decode(e,e.uint32(),void 0,r+1,o.json),o.type=`json`;continue;case 51:if(a!==2)break;o.linkButton=V.LinkButton.decode(e,e.uint32(),void 0,r+1,o.linkButton),o.type=`linkButton`;continue;case 29:if(a!==2)break;o.markdown=V.Markdown.decode(e,e.uint32(),void 0,r+1,o.markdown),o.type=`markdown`;continue;case 42:if(a!==2)break;o.metric=V.Metric.decode(e,e.uint32(),void 0,r+1,o.metric),o.type=`metric`;continue;case 28:if(a!==2)break;o.multiselect=V.MultiSelect.decode(e,e.uint32(),void 0,r+1,o.multiselect),o.type=`multiselect`;continue;case 32:if(a!==2)break;o.numberInput=V.NumberInput.decode(e,e.uint32(),void 0,r+1,o.numberInput),o.type=`numberInput`;continue;case 53:if(a!==2)break;o.pageLink=V.PageLink.decode(e,e.uint32(),void 0,r+1,o.pageLink),o.type=`pageLink`;continue;case 16:if(a!==2)break;o.plotlyChart=V.PlotlyChart.decode(e,e.uint32(),void 0,r+1,o.plotlyChart),o.type=`plotlyChart`;continue;case 5:if(a!==2)break;o.progress=V.Progress.decode(e,e.uint32(),void 0,r+1,o.progress),o.type=`progress`;continue;case 23:if(a!==2)break;o.radio=V.Radio.decode(e,e.uint32(),void 0,r+1,o.radio),o.type=`radio`;continue;case 25:if(a!==2)break;o.selectbox=V.Selectbox.decode(e,e.uint32(),void 0,r+1,o.selectbox),o.type=`selectbox`;continue;case 52:if(a!==2)break;o.skeleton=V.Skeleton.decode(e,e.uint32(),void 0,r+1,o.skeleton),o.type=`skeleton`;continue;case 21:if(a!==2)break;o.slider=V.Slider.decode(e,e.uint32(),void 0,r+1,o.slider),o.type=`slider`;continue;case 46:if(a!==2)break;o.snow=V.Snow.decode(e,e.uint32(),void 0,r+1,o.snow),o.type=`snow`;continue;case 60:if(a!==2)break;o.space=V.Space.decode(e,e.uint32(),void 0,r+1,o.space),o.type=`space`;continue;case 44:if(a!==2)break;o.spinner=V.Spinner.decode(e,e.uint32(),void 0,r+1,o.spinner),o.type=`spinner`;continue;case 1:if(a!==2)break;o.text=V.Text.decode(e,e.uint32(),void 0,r+1,o.text),o.type=`text`;continue;case 22:if(a!==2)break;o.textArea=V.TextArea.decode(e,e.uint32(),void 0,r+1,o.textArea),o.type=`textArea`;continue;case 24:if(a!==2)break;o.textInput=V.TextInput.decode(e,e.uint32(),void 0,r+1,o.textInput),o.type=`textInput`;continue;case 26:if(a!==2)break;o.timeInput=V.TimeInput.decode(e,e.uint32(),void 0,r+1,o.timeInput),o.type=`timeInput`;continue;case 62:if(a!==2)break;o.dateTimeInput=V.DateTimeInput.decode(e,e.uint32(),void 0,r+1,o.dateTimeInput),o.type=`dateTimeInput`;continue;case 50:if(a!==2)break;o.toast=V.Toast.decode(e,e.uint32(),void 0,r+1,o.toast),o.type=`toast`;continue;case 14:if(a!==2)break;o.video=V.Video.decode(e,e.uint32(),void 0,r+1,o.video),o.type=`video`;continue;case 47:if(a!==2)break;o.heading=V.Heading.decode(e,e.uint32(),void 0,r+1,o.heading),o.type=`heading`;continue;case 48:if(a!==2)break;o.code=V.Code.decode(e,e.uint32(),void 0,r+1,o.code),o.type=`code`;continue;case 64:if(a!==2)break;o.menuButton=V.MenuButton.decode(e,e.uint32(),void 0,r+1,o.menuButton),o.type=`menuButton`;continue;case 66:if(a!==2)break;o.pagination=V.Pagination.decode(e,e.uint32(),void 0,r+1,o.pagination),o.type=`pagination`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Element)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Element;
18if(e.heightConfig!=null){if(typeof e.heightConfig!=`object`)throw TypeError(`.Element.heightConfig: object expected`);n.heightConfig=V.streamlit.HeightConfig.fromObject(e.heightConfig,t+1)}if(e.widthConfig!=null){if(typeof e.widthConfig!=`object`)throw TypeError(`.Element.widthConfig: object expected`);n.widthConfig=V.streamlit.WidthConfig.fromObject(e.widthConfig,t+1)}if(e.textAlignmentConfig!=null){if(typeof e.textAlignmentConfig!=`object`)throw TypeError(`.Element.textAlignmentConfig: object expected`);n.textAlignmentConfig=V.streamlit.TextAlignmentConfig.fromObject(e.textAlignmentConfig,t+1)}if(e.hasOneShotEffect!=null&&(n.hasOneShotEffect=!!e.hasOneShotEffect),e.alert!=null){if(typeof e.alert!=`object`)throw TypeError(`.Element.alert: object expected`);n.alert=V.Alert.fromObject(e.alert,t+1)}if(e.dataframe!=null){if(typeof e.dataframe!=`object`)throw TypeError(`.Element.dataframe: object expected`);n.dataframe=V.Dataframe.fromObject(e.dataframe,t+1)}if(e.table!=null){if(typeof e.table!=`object`)throw TypeError(`.Element.table: object expected`);n.table=V.Table.fromObject(e.table,t+1)}if(e.vegaLiteChart!=null){if(typeof e.vegaLiteChart!=`object`)throw TypeError(`.Element.vegaLiteChart: object expected`);n.vegaLiteChart=V.VegaLiteChart.fromObject(e.vegaLiteChart,t+1)}if(e.audio!=null){if(typeof e.audio!=`object`)throw TypeError(`.Element.audio: object expected`);n.audio=V.Audio.fromObject(e.audio,t+1)}if(e.audioInput!=null){if(typeof e.audioInput!=`object`)throw TypeError(`.Element.audioInput: object expected`);n.audioInput=V.AudioInput.fromObject(e.audioInput,t+1)}if(e.balloons!=null){if(typeof e.balloons!=`object`)throw TypeError(`.Element.balloons: object expected`);n.balloons=V.Balloons.fromObject(e.balloons,t+1)}if(e.bidiComponent!=null){if(typeof e.bidiComponent!=`object`)throw TypeError(`.Element.bidiComponent: object expected`);n.bidiComponent=V.BidiComponent.fromObject(e.bidiComponent,t+1)}if(e.button!=null){if(typeof e.button!=`object`)throw TypeError(`.Element.button: object expected`);n.button=V.Button.fromObject(e.button,t+1)}if(e.buttonGroup!=null){if(typeof e.buttonGroup!=`object`)throw TypeError(`.Element.buttonGroup: object expected`);n.buttonGroup=V.ButtonGroup.fromObject(e.buttonGroup,t+1)}if(e.downloadButton!=null){if(typeof e.downloadButton!=`object`)throw TypeError(`.Element.downloadButton: object expected`);n.downloadButton=V.DownloadButton.fromObject(e.downloadButton,t+1)}if(e.cameraInput!=null){if(typeof e.cameraInput!=`object`)throw TypeError(`.Element.cameraInput: object expected`);n.cameraInput=V.CameraInput.fromObject(e.cameraInput,t+1)}if(e.chatInput!=null){if(typeof e.chatInput!=`object`)throw TypeError(`.Element.chatInput: object expected`);n.chatInput=V.ChatInput.fromObject(e.chatInput,t+1)}if(e.checkbox!=null){if(typeof e.checkbox!=`object`)throw TypeError(`.Element.checkbox: object expected`);n.checkbox=V.Checkbox.fromObject(e.checkbox,t+1)}if(e.colorPicker!=null){if(typeof e.colorPicker!=`object`)throw TypeError(`.Element.colorPicker: object expected`);n.colorPicker=V.ColorPicker.fromObject(e.colorPicker,t+1)}if(e.componentInstance!=null){if(typeof e.componentInstance!=`object`)throw TypeError(`.Element.componentInstance: object expected`);n.componentInstance=V.ComponentInstance.fromObject(e.componentInstance,t+1)}if(e.dateInput!=null){if(typeof e.dateInput!=`object`)throw TypeError(`.Element.dateInput: object expected`);n.dateInput=V.DateInput.fromObject(e.dateInput,t+1)}if(e.deckGlJsonChart!=null){if(typeof e.deckGlJsonChart!=`object`)throw TypeError(`.Element.deckGlJsonChart: object expected`);n.deckGlJsonChart=V.DeckGlJsonChart.fromObject(e.deckGlJsonChart,t+1)}if(e.helpInfo!=null){if(typeof e.helpInfo!=`object`)throw TypeError(`.Element.helpInfo: object expected`);n.helpInfo=V.Help.fromObject(e.helpInfo,t+1)}if(e.empty!=null){if(typeof e.empty!=`object`)throw TypeError(`.Element.empty: object expected`);n.empty=V.Empty.fromObject(e.empty,t+1)}if(e.exception!=null){if(typeof e.exception!=`object`)throw TypeError(`.Element.exception: object expected`);n.exception=V.Exception.fromObject(e.exception,t+1)}if(e.favicon!=null){if(typeof e.favicon!=`object`)throw TypeError(`.Element.favicon: object expected`);n.favicon=V.Favicon.fromObject(e.favicon,t+1)}if(e.feedback!=null){if(typeof e.feedback!=`object`)throw TypeError(`.Element.feedback: object expected`);n.feedback=V.Feedback.fromObject(e.feedback,t+1)}if(e.fileUploader!=null){if(typeof e.fileUploader!=`object`)throw TypeError(`.Element.fileUploader: object expected`);n.fileUploader=V.FileUploader.fromObject(e.fileUploader,t+1)}if(e.graphvizChart!=null){if(typeof e.graphvizChart!=`object`)throw TypeError(`.Element.graphvizChart: object expected`);n.graphvizChart=V.GraphVizChart.fromObject(e.graphvizChart,t+1)}if(e.html!=null){if(typeof e.html!=`object`)throw TypeError(`.Element.html: object expected`);n.html=V.Html.fromObject(e.html,t+1)}if(e.iframe!=null){if(typeof e.iframe!=`object`)throw TypeError(`.Element.iframe: object expected`);n.iframe=V.IFrame.fromObject(e.iframe,t+1)}if(e.imgs!=null){if(typeof e.imgs!=`object`)throw TypeError(`.Element.imgs: object expected`);n.imgs=V.ImageList.fromObject(e.imgs,t+1)}if(e.json!=null){if(typeof e.json!=`object`)throw TypeError(`.Element.json: object expected`);n.json=V.Json.fromObject(e.json,t+1)}if(e.linkButton!=null){if(typeof e.linkButton!=`object`)throw TypeError(`.Element.linkButton: object expected`);n.linkButton=V.LinkButton.fromObject(e.linkButton,t+1)}if(e.markdown!=null){if(typeof e.markdown!=`object`)throw TypeError(`.Element.markdown: object expected`);n.markdown=V.Markdown.fromObject(e.markdown,t+1)}if(e.metric!=null){if(typeof e.metric!=`object`)throw TypeError(`.Element.metric: object expected`);n.metric=V.Metric.fromObject(e.metric,t+1)}if(e.multiselect!=null){if(typeof e.multiselect!=`object`)throw TypeError(`.Element.multiselect: object expected`);n.multiselect=V.MultiSelect.fromObject(e.multiselect,t+1)}if(e.numberInput!=null){if(typeof e.numberInput!=`object`)throw TypeError(`.Element.numberInput: object expected`);n.numberInput=V.NumberInput.fromObject(e.numberInput,t+1)}if(e.pageLink!=null){if(typeof e.pageLink!=`object`)throw TypeError(`.Element.pageLink: object expected`);n.pageLink=V.PageLink.fromObject(e.pageLink,t+1)}if(e.plotlyChart!=null){if(typeof e.plotlyChart!=`object`)throw TypeError(`.Element.plotlyChart: object expected`);n.plotlyChart=V.PlotlyChart.fromObject(e.plotlyChart,t+1)}if(e.progress!=null){if(typeof e.progress!=`object`)throw TypeError(`.Element.progress: object expected`);n.progress=V.Progress.fromObject(e.progress,t+1)}if(e.radio!=null){if(typeof e.radio!=`object`)throw TypeError(`.Element.radio: object expected`);n.radio=V.Radio.fromObject(e.radio,t+1)}if(e.selectbox!=null){if(typeof e.selectbox!=`object`)throw TypeError(`.Element.selectbox: object expected`);n.selectbox=V.Selectbox.fromObject(e.selectbox,t+1)}if(e.skeleton!=null){if(typeof e.skeleton!=`object`)throw TypeError(`.Element.skeleton: object expected`);n.skeleton=V.Skeleton.fromObject(e.skeleton,t+1)}if(e.slider!=null){if(typeof e.slider!=`object`)throw TypeError(`.Element.slider: object expected`);n.slider=V.Slider.fromObject(e.slider,t+1)}if(e.snow!=null){if(typeof e.snow!=`object`)throw TypeError(`.Element.snow: object expected`);n.snow=V.Snow.fromObject(e.snow,t+1)}if(e.space!=null){if(typeof e.space!=`object`)throw TypeError(`.Element.space
18: object expected`);n.space=V.Space.fromObject(e.space,t+1)}if(e.spinner!=null){if(typeof e.spinner!=`object`)throw TypeError(`.Element.spinner: object expected`);n.spinner=V.Spinner.fromObject(e.spinner,t+1)}if(e.text!=null){if(typeof e.text!=`object`)throw TypeError(`.Element.text: object expected`);n.text=V.Text.fromObject(e.text,t+1)}if(e.textArea!=null){if(typeof e.textArea!=`object`)throw TypeError(`.Element.textArea: object expected`);n.textArea=V.TextArea.fromObject(e.textArea,t+1)}if(e.textInput!=null){if(typeof e.textInput!=`object`)throw TypeError(`.Element.textInput: object expected`);n.textInput=V.TextInput.fromObject(e.textInput,t+1)}if(e.timeInput!=null){if(typeof e.timeInput!=`object`)throw TypeError(`.Element.timeInput: object expected`);n.timeInput=V.TimeInput.fromObject(e.timeInput,t+1)}if(e.dateTimeInput!=null){if(typeof e.dateTimeInput!=`object`)throw TypeError(`.Element.dateTimeInput: object expected`);n.dateTimeInput=V.DateTimeInput.fromObject(e.dateTimeInput,t+1)}if(e.toast!=null){if(typeof e.toast!=`object`)throw TypeError(`.Element.toast: object expected`);n.toast=V.Toast.fromObject(e.toast,t+1)}if(e.video!=null){if(typeof e.video!=`object`)throw TypeError(`.Element.video: object expected`);n.video=V.Video.fromObject(e.video,t+1)}if(e.heading!=null){if(typeof e.heading!=`object`)throw TypeError(`.Element.heading: object expected`);n.heading=V.Heading.fromObject(e.heading,t+1)}if(e.code!=null){if(typeof e.code!=`object`)throw TypeError(`.Element.code: object expected`);n.code=V.Code.fromObject(e.code,t+1)}if(e.menuButton!=null){if(typeof e.menuButton!=`object`)throw TypeError(`.Element.menuButton: object expected`);n.menuButton=V.MenuButton.fromObject(e.menuButton,t+1)}if(e.pagination!=null){if(typeof e.pagination!=`object`)throw TypeError(`.Element.pagination: object expected`);n.pagination=V.Pagination.fromObject(e.pagination,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return e.text!=null&&e.hasOwnProperty(`text`)&&(n.text=V.Text.toObject(e.text,t),t.oneofs&&(n.type=`text`)),e.empty!=null&&e.hasOwnProperty(`empty`)&&(n.empty=V.Empty.toObject(e.empty,t),t.oneofs&&(n.type=`empty`)),e.progress!=null&&e.hasOwnProperty(`progress`)&&(n.progress=V.Progress.toObject(e.progress,t),t.oneofs&&(n.type=`progress`)),e.imgs!=null&&e.hasOwnProperty(`imgs`)&&(n.imgs=V.ImageList.toObject(e.imgs,t),t.oneofs&&(n.type=`imgs`)),e.helpInfo!=null&&e.hasOwnProperty(`helpInfo`)&&(n.helpInfo=V.Help.toObject(e.helpInfo,t),t.oneofs&&(n.type=`helpInfo`)),e.exception!=null&&e.hasOwnProperty(`exception`)&&(n.exception=V.Exception.toObject(e.exception,t),t.oneofs&&(n.type=`exception`)),e.balloons!=null&&e.hasOwnProperty(`balloons`)&&(n.balloons=V.Balloons.toObject(e.balloons,t),t.oneofs&&(n.type=`balloons`)),e.audio!=null&&e.hasOwnProperty(`audio`)&&(n.audio=V.Audio.toObject(e.audio,t),t.oneofs&&(n.type=`audio`)),e.video!=null&&e.hasOwnProperty(`video`)&&(n.video=V.Video.toObject(e.video,t),t.oneofs&&(n.type=`video`)),e.plotlyChart!=null&&e.hasOwnProperty(`plotlyChart`)&&(n.plotlyChart=V.PlotlyChart.toObject(e.plotlyChart,t),t.oneofs&&(n.type=`plotlyChart`)),e.graphvizChart!=null&&e.hasOwnProperty(`graphvizChart`)&&(n.graphvizChart=V.GraphVizChart.toObject(e.graphvizChart,t),t.oneofs&&(n.type=`graphvizChart`)),e.button!=null&&e.hasOwnProperty(`button`)&&(n.button=V.Button.toObject(e.button,t),t.oneofs&&(n.type=`button`)),e.checkbox!=null&&e.hasOwnProperty(`checkbox`)&&(n.checkbox=V.Checkbox.toObject(e.checkbox,t),t.oneofs&&(n.type=`checkbox`)),e.slider!=null&&e.hasOwnProperty(`slider`)&&(n.slider=V.Slider.toObject(e.slider,t),t.oneofs&&(n.type=`slider`)),e.textArea!=null&&e.hasOwnProperty(`textArea`)&&(n.textArea=V.TextArea.toObject(e.textArea,t),t.oneofs&&(n.type=`textArea`)),e.radio!=null&&e.hasOwnProperty(`radio`)&&(n.radio=V.Radio.toObject(e.radio,t),t.oneofs&&(n.type=`radio`)),e.textInput!=null&&e.hasOwnProperty(`textInput`)&&(n.textInput=V.TextInput.toObject(e.textInput,t),t.oneofs&&(n.type=`textInput`)),e.selectbox!=null&&e.hasOwnProperty(`selectbox`)&&(n.selectbox=V.Selectbox.toObject(e.selectbox,t),t.oneofs&&(n.type=`selectbox`)),e.timeInput!=null&&e.hasOwnProperty(`timeInput`)&&(n.timeInput=V.TimeInput.toObject(e.timeInput,t),t.oneofs&&(n.type=`timeInput`)),e.dateInput!=null&&e.hasOwnProperty(`dateInput`)&&(n.dateInput=V.DateInput.toObject(e.dateInput,t),t.oneofs&&(n.type=`dateInput`)),e.multiselect!=null&&e.hasOwnProperty(`multiselect`)&&(n.multiselect=V.MultiSelect.toObject(e.multiselect,t),t.oneofs&&(n.type=`multiselect`)),e.markdown!=null&&e.hasOwnProperty(`markdown`)&&(n.markdown=V.Markdown.toObject(e.markdown,t),t.oneofs&&(n.type=`markdown`)),e.alert!=null&&e.hasOwnProperty(`alert`)&&(n.alert=V.Alert.toObject(e.alert,t),t.oneofs&&(n.type=`alert`)),e.json!=null&&e.hasOwnProperty(`json`)&&(n.json=V.Json.toObject(e.json,t),t.oneofs&&(n.type=`json`)),e.numberInput!=null&&e.hasOwnProperty(`numberInput`)&&(n.numberInput=V.NumberInput.toObject(e.numberInput,t),t.oneofs&&(n.type=`numberInput`)),e.fileUploader!=null&&e.hasOwnProperty(`fileUploader`)&&(n.fileUploader=V.FileUploader.toObject(e.fileUploader,t),t.oneofs&&(n.type=`fileUploader`)),e.deckGlJsonChart!=null&&e.hasOwnProperty(`deckGlJsonChart`)&&(n.deckGlJsonChart=V.DeckGlJsonChart.toObject(e.deckGlJsonChart,t),t.oneofs&&(n.type=`deckGlJsonChart`)),e.colorPicker!=null&&e.hasOwnProperty(`colorPicker`)&&(n.colorPicker=V.ColorPicker.toObject(e.colorPicker,t),t.oneofs&&(n.type=`colorPicker`)),e.favicon!=null&&e.hasOwnProperty(`favicon`)&&(n.favicon=V.Favicon.toObject(e.favicon,t),t.oneofs&&(n.type=`favicon`)),e.componentInstance!=null&&e.hasOwnProperty(`componentInstance`)&&(n.componentInstance=V.ComponentInstance.toObject(e.componentInstance,t),t.oneofs&&(n.type=`componentInstance`)),e.iframe!=null&&e.hasOwnProperty(`iframe`)&&(n.iframe=V.IFrame.toObject(e.iframe,t),t.oneofs&&(n.type=`iframe`)),e.table!=null&&e.hasOwnProperty(`table`)&&(n.table=V.Table.toObject(e.table,t),t.oneofs&&(n.type=`table`)),e.dataframe!=null&&e.hasOwnProperty(`dataframe`)&&(n.dataframe=V.Dataframe.toObject(e.dataframe,t),t.oneofs&&(n.type=`dataframe`)),e.vegaLiteChart!=null&&e.hasOwnProperty(`vegaLiteChart`)&&(n.vegaLiteChart=V.VegaLiteChart.toObject(e.vegaLiteChart,t),t.oneofs&&(n.type=`vegaLiteChart`)),e.metric!=null&&e.hasOwnProperty(`metric`)&&(n.metric=V.Metric.toObject(e.metric,t),t.oneofs&&(n.type=`metric`)),e.downloadButton!=null&&e.hasOwnProperty(`downloadButton`)&&(n.downloadButton=V.DownloadButton.toObject(e.downloadButton,t),t.oneofs&&(n.type=`downloadButton`)),e.spinner!=null&&e.hasOwnProperty(`spinner`)&&(n.spinner=V.Spinner.toObject(e.spinner,t),t.oneofs&&(n.type=`spinner`)),e.cameraInput!=null&&e.hasOwnProperty(`cameraInput`)&&(n.cameraInput=V.CameraInput.toObject(e.cameraInput,t),t.oneofs&&(n.type=`cameraInput`)),e.snow!=null&&e.hasOwnProperty(`snow`)&&(n.snow=V.Snow.toObject(e.snow,t),t.oneofs&&(n.type=`snow`)),e.heading!=null&&e.hasOwnProperty(`heading`)&&(n.heading=V.Heading.toObject(e.heading,t),t.oneofs&&(n.type=`heading`)),e.code!=null&&e.hasOwnProperty(`code`)&&(n.code=V.Code.toObject(e.code,t),t.oneofs&&(n.type=`code`)),e.chatInput!=null&&e.hasOwnProperty(`chatInput`)&&(n.chatInput=V.ChatInput.toObject(e.chatInput,t),t.oneofs&&(n.type=`chatInput`)),e.toast!=null&&e.hasOwnProperty(`toast`)&&(n.toast=V.Toast.toObject(e.toast,t),t.oneofs&&(n.type=`toast`)),e.linkButton!=null&&e.hasOwnProperty(`linkButton`)&&(n.linkButton=V.LinkButton.toObject(e.linkButton,t),t.oneofs&&(n.type=`linkButton`)),e.skeleton!=null&&e.hasOwnProperty(`skeleton`)&&(n.skeleton=V.Skeleton.toObject(e.skeleton,t),t.oneofs&&(n.type=`skeleton`)),e.pageLink!=null&&e.hasOwnProperty(`pageLink`)&&(n.pageLink=V.PageLink.toObject(e.pageLink,t),t.oneofs&&(n.type=`pageLink`)),e.html!=null&&e.hasOwnProperty(`html`)&&(n.html=V.Html.toObject(e.html,t),t.oneofs&&(n.type=`html`)),e.buttonGroup!=null&&e.hasOwnProperty(`buttonGroup`)&&(n.buttonGroup=V.ButtonGroup.toObject(e.buttonGroup,t),t.oneofs&&(n.type=`buttonGroup`)),e.audioInput!=null&&e.hasOwnProperty(`audioInput`)&&(n.audioInput=V.AudioInput.toObject(e.audio
18Input,t),t.oneofs&&(n.type=`audioInput`)),e.heightConfig!=null&&e.hasOwnProperty(`heightConfig`)&&(n.heightConfig=V.streamlit.HeightConfig.toObject(e.heightConfig,t),t.oneofs&&(n._heightConfig=`heightConfig`)),e.widthConfig!=null&&e.hasOwnProperty(`widthConfig`)&&(n.widthConfig=V.streamlit.WidthConfig.toObject(e.widthConfig,t),t.oneofs&&(n._widthConfig=`widthConfig`)),e.bidiComponent!=null&&e.hasOwnProperty(`bidiComponent`)&&(n.bidiComponent=V.BidiComponent.toObject(e.bidiComponent,t),t.oneofs&&(n.type=`bidiComponent`)),e.space!=null&&e.hasOwnProperty(`space`)&&(n.space=V.Space.toObject(e.space,t),t.oneofs&&(n.type=`space`)),e.textAlignmentConfig!=null&&e.hasOwnProperty(`textAlignmentConfig`)&&(n.textAlignmentConfig=V.streamlit.TextAlignmentConfig.toObject(e.textAlignmentConfig,t),t.oneofs&&(n._textAlignmentConfig=`textAlignmentConfig`)),e.dateTimeInput!=null&&e.hasOwnProperty(`dateTimeInput`)&&(n.dateTimeInput=V.DateTimeInput.toObject(e.dateTimeInput,t),t.oneofs&&(n.type=`dateTimeInput`)),e.feedback!=null&&e.hasOwnProperty(`feedback`)&&(n.feedback=V.Feedback.toObject(e.feedback,t),t.oneofs&&(n.type=`feedback`)),e.menuButton!=null&&e.hasOwnProperty(`menuButton`)&&(n.menuButton=V.MenuButton.toObject(e.menuButton,t),t.oneofs&&(n.type=`menuButton`)),e.hasOneShotEffect!=null&&e.hasOwnProperty(`hasOneShotEffect`)&&(n.hasOneShotEffect=e.hasOneShotEffect,t.oneofs&&(n._hasOneShotEffect=`hasOneShotEffect`)),e.pagination!=null&&e.hasOwnProperty(`pagination`)&&(n.pagination=V.Pagination.toObject(e.pagination,t),t.oneofs&&(n.type=`pagination`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Element`},e})();V.DownloadButton=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.label=``,e.prototype.default=!1,e.prototype.help=``,e.prototype.formId=``,e.prototype.url=``,e.prototype.disabled=!1,e.prototype.useContainerWidth=!1,e.prototype.type=``,e.prototype.icon=``,e.prototype.ignoreRerun=!1,e.prototype.deferredFileId=null,e.prototype.shortcut=``,e.prototype.iconPosition=0;let t;return Object.defineProperty(e.prototype,`_deferredFileId`,{get:B.oneOfGetter(t=[`deferredFileId`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,`default`)&&t.uint32(24).bool(e.default),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(42).string(e.formId),e.url!=null&&Object.hasOwnProperty.call(e,`url`)&&t.uint32(50).string(e.url),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(56).bool(e.disabled),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,`useContainerWidth`)&&t.uint32(64).bool(e.useContainerWidth),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(74).string(e.type),e.icon!=null&&Object.hasOwnProperty.call(e,`icon`)&&t.uint32(82).string(e.icon),e.ignoreRerun!=null&&Object.hasOwnProperty.call(e,`ignoreRerun`)&&t.uint32(88).bool(e.ignoreRerun),e.deferredFileId!=null&&Object.hasOwnProperty.call(e,`deferredFileId`)&&t.uint32(98).string(e.deferredFileId),e.shortcut!=null&&Object.hasOwnProperty.call(e,`shortcut`)&&t.uint32(106).string(e.shortcut),e.iconPosition!=null&&Object.hasOwnProperty.call(e,`iconPosition`)&&t.uint32(112).int32(e.iconPosition),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.DownloadButton,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==0)break;(s=e.bool())?o.default=s:delete o.default;continue;case 4:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==2)break;(s=e.string()).length?o.url=s:delete o.url;continue;case 7:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 8:if(a!==0)break;(s=e.bool())?o.useContainerWidth=s:delete o.useContainerWidth;continue;
18case 9:if(a!==2)break;(s=e.string()).length?o.type=s:delete o.type;continue;case 10:if(a!==2)break;(s=e.string()).length?o.icon=s:delete o.icon;continue;case 11:if(a!==0)break;(s=e.bool())?o.ignoreRerun=s:delete o.ignoreRerun;continue;case 12:if(a!==2)break;o.deferredFileId=e.string(),o._deferredFileId=`deferredFileId`;continue;case 13:if(a!==2)break;(s=e.string()).length?o.shortcut=s:delete o.shortcut;continue;case 14:if(a!==0)break;(s=e.int32())?o.iconPosition=s:delete o.iconPosition;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.DownloadButton)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.DownloadButton;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.default!=null&&e.default&&(n.default=!!e.default),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=String(e.url)),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.useContainerWidth!=null&&e.useContainerWidth&&(n.useContainerWidth=!!e.useContainerWidth),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=String(e.type)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=String(e.icon)),e.ignoreRerun!=null&&e.ignoreRerun&&(n.ignoreRerun=!!e.ignoreRerun),e.deferredFileId!=null&&(n.deferredFileId=String(e.deferredFileId)),e.shortcut!=null&&(typeof e.shortcut!=`string`||e.shortcut.length)&&(n.shortcut=String(e.shortcut)),e.iconPosition!==0&&(typeof e.iconPosition!=`string`||V.streamlit.ButtonLikeIconPosition[e.iconPosition]!==0))switch(e.iconPosition){default:if(typeof e.iconPosition==`number`){n.iconPosition=e.iconPosition;break}break;case`LEFT`:case 0:n.iconPosition=0;break;case`RIGHT`:case 1:n.iconPosition=1;break}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``,n.label=``,n.default=!1,n.help=``,n.formId=``,n.url=``,n.disabled=!1,n.useContainerWidth=!1,n.type=``,n.icon=``,n.ignoreRerun=!1,n.shortcut=``,n.iconPosition=t.enums===String?`LEFT`:0),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.default!=null&&e.hasOwnProperty(`default`)&&(n.default=e.default),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.url!=null&&e.hasOwnProperty(`url`)&&(n.url=e.url),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.useContainerWidth!=null&&e.hasOwnProperty(`useContainerWidth`)&&(n.useContainerWidth=e.useContainerWidth),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=e.type),e.icon!=null&&e.hasOwnProperty(`icon`)&&(n.icon=e.icon),e.ignoreRerun!=null&&e.hasOwnProperty(`ignoreRerun`)&&(n.ignoreRerun=e.ignoreRerun),e.deferredFileId!=null&&e.hasOwnProperty(`deferredFileId`)&&(n.deferredFileId=e.deferredFileId,t.oneofs&&(n._deferredFileId=`deferredFileId`)),e.shortcut!=null&&e.hasOwnProperty(`shortcut`)&&(n.shortcut=e.shortcut),e.iconPosition!=null&&e.hasOwnProperty(`iconPosition`)&&(n.iconPosition=t.enums===String?V.streamlit.ButtonLikeIconPosition[e.iconPosition]===void 0?e.iconPosition:V.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/DownloadButton`},e})(),V.Empty=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Empty;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}e.skipType(i&7,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Empty)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);return new V.Empty},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Empty`},e})(),V.Exception=(()=>{function e(e){if(this.stackTrace=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.type=``,e.prototype.message=``,e.prototype.messageIsMarkdown=!1,e.prototype.stackTrace=B.emptyArray,e.prototype.isWarning=!1,e.prototype.widthConfig=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(10).string(e.type),e.message!=null&&Object.hasOwnProperty.call(e,`message`)&&t.uint32(18).string(e.message),e.stackTrace!=null&&e.stackTrace.length)for(let n=0;n<e.stackTrace.length;++n)t.uint32(26).string(e.stackTrace[n]);if(e.messageIsMarkdown!=null&&Object.hasOwnProperty.call(e,`messageIsMarkdown`)&&t.uint32(32).bool(e.messageIsMarkdown),e.isWarning!=null&&Object.hasOwnProperty.call(e,`isWarning`)&&t.uint32(40).bool(e.isWarning),e.widthConfig!=null&&Object.hasOwnProperty.call(e,`widthConfig`)&&V.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(50).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Exception,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;
18(s=e.string()).length?o.type=s:delete o.type;continue;case 2:if(a!==2)break;(s=e.string()).length?o.message=s:delete o.message;continue;case 4:if(a!==0)break;(s=e.bool())?o.messageIsMarkdown=s:delete o.messageIsMarkdown;continue;case 3:if(a!==2)break;o.stackTrace&&o.stackTrace.length||(o.stackTrace=[]),o.stackTrace.push(e.string());continue;case 5:if(a!==0)break;(s=e.bool())?o.isWarning=s:delete o.isWarning;continue;case 6:if(a!==2)break;o.widthConfig=V.streamlit.WidthConfig.decode(e,e.uint32(),void 0,r+1,o.widthConfig);continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Exception)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Exception;if(e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=String(e.type)),e.message!=null&&(typeof e.message!=`string`||e.message.length)&&(n.message=String(e.message)),e.messageIsMarkdown!=null&&e.messageIsMarkdown&&(n.messageIsMarkdown=!!e.messageIsMarkdown),e.stackTrace){if(!Array.isArray(e.stackTrace))throw TypeError(`.Exception.stackTrace: array expected`);n.stackTrace=Array(e.stackTrace.length);for(let t=0;t<e.stackTrace.length;++t)n.stackTrace[t]=String(e.stackTrace[t])}if(e.isWarning!=null&&e.isWarning&&(n.isWarning=!!e.isWarning),e.widthConfig!=null){if(typeof e.widthConfig!=`object`)throw TypeError(`.Exception.widthConfig: object expected`);n.widthConfig=V.streamlit.WidthConfig.fromObject(e.widthConfig,t+1)}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.stackTrace=[]),t.defaults&&(n.type=``,n.message=``,n.messageIsMarkdown=!1,n.isWarning=!1,n.widthConfig=null),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=e.type),e.message!=null&&e.hasOwnProperty(`message`)&&(n.message=e.message),e.stackTrace&&e.stackTrace.length){n.stackTrace=Array(e.stackTrace.length);for(let t=0;t<e.stackTrace.length;++t)n.stackTrace[t]=e.stackTrace[t]}return e.messageIsMarkdown!=null&&e.hasOwnProperty(`messageIsMarkdown`)&&(n.messageIsMarkdown=e.messageIsMarkdown),e.isWarning!=null&&e.hasOwnProperty(`isWarning`)&&(n.isWarning=e.isWarning),e.widthConfig!=null&&e.hasOwnProperty(`widthConfig`)&&(n.widthConfig=V.streamlit.WidthConfig.toObject(e.widthConfig,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Exception`},e})(),V.Favicon=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.url=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.url!=null&&Object.hasOwnProperty.call(e,`url`)&&t.uint32(10).string(e.url),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Favicon,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.url=s:delete o.url;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Favicon)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Favicon;return e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=String(e.url)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.url=``),e.url!=null&&e.hasOwnProperty(`url`)&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Favicon`},e})();var Ao=V.Feedback=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.type=0,e.prototype.default=null,e.prototype.disabled=!1,e.prototype.formId=``,e.prototype.value=null,e.prototype.setValue=!1;let t;return Object.defineProperty(e.prototype,`_default`,{get:B.oneOfGetter(t=[`default`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_value`,{get:B.oneOfGetter(t=[`value`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(16).int32(e.type),e.default!=null&&Object.hasOwnProperty.call(e,`default`)&&t.uint32(24).uint32(e.default),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(32).bool(e.disabled),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(48).uint32(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(56).bool(e.setValue),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Feedback,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue;case 3:if(a!==0)break;o.default=e.uint32(),o._default=`default`;continue;case 4:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 5:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==0)break;o.value=e.uint32(),o._value=`value`;continue;case 7:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Feedback)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Feedback;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.type!==0&&(typeof e.type!=`string`||V.Feedback.FeedbackType[e.type]!==0))switch(e.type){default:if(typeof e.type==`number`){n.type=e.type;break}break;case`THUMBS`:case 0:n.type=0;break;case`FACES`:case 1:n.type=1;break;case`STARS`:case 2:n.type=2;break}return e.default!=null&&(n.default=e.default>>>0),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.value!=null&&(n.value=e.value>>>0),e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``,n.type=t.enums===String?`THUMBS`:0,n.disabled=!1,n.formId=``,n.setValue=!1),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=t.enums===String?V.Feedback.FeedbackType[e.type]===void 0?e.type:V.Feedback.FeedbackType[e.type]:e.type),e.default!=null&&e.hasOwnProperty(`default`)&&(n.default=e.default,t.oneofs&&(n._default=`default`)),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=e.value,t.oneofs&&(n._value=`value`)),e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Feedback`},e.FeedbackType=(function(){let e={},t=Object.create(e);return t[e[0]=`THUMBS`]=0,t[e[1]=`FACES`]=1,t[e[2]=`STARS`]=2,t})(),e})();V.FileUploader=(()=>
18{function e(e){if(this.type=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.id=``,e.prototype.label=``,e.prototype.type=B.emptyArray,e.prototype.maxUploadSizeMb=0,e.prototype.multipleFiles=!1,e.prototype.help=``,e.prototype.formId=``,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.acceptDirectory=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.type!=null&&e.type.length)for(let n=0;n<e.type.length;++n)t.uint32(26).string(e.type[n]);if(e.maxUploadSizeMb!=null&&Object.hasOwnProperty.call(e,`maxUploadSizeMb`)&&t.uint32(32).int32(e.maxUploadSizeMb),e.multipleFiles!=null&&Object.hasOwnProperty.call(e,`multipleFiles`)&&t.uint32(48).bool(e.multipleFiles),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(58).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(66).string(e.formId),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(72).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),e.acceptDirectory!=null&&Object.hasOwnProperty.call(e,`acceptDirectory`)&&t.uint32(88).bool(e.acceptDirectory),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.FileUploader,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.type&&o.type.length||(o.type=[]),o.type.push(e.string());continue;case 4:if(a!==0)break;(s=e.int32())?o.maxUploadSizeMb=s:delete o.maxUploadSizeMb;continue;case 6:if(a!==0)break;(s=e.bool())?o.multipleFiles=s:delete o.multipleFiles;continue;case 7:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 8:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 9:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 10:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 11:if(a!==0)break;(s=e.bool())?o.acceptDirectory=s:delete o.acceptDirectory;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.FileUploader)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.FileUploader;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.type){if(!Array.isArray(e.type))throw TypeError(`.FileUploader.type: array expected`);n.type=Array(e.type.length);for(let t=0;t<e.type.length;++t)n.type[t]=String(e.type[t])}if(e.maxUploadSizeMb!=null&&Number(e.maxUploadSizeMb)!==0&&(n.maxUploadSizeMb=e.maxUploadSizeMb|0),e.multipleFiles!=null&&e.multipleFiles&&(n.multipleFiles=!!e.multipleFiles),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.FileUploader.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.acceptDirectory!=null&&e.acceptDirectory&&(n.acceptDirectory=!!e.acceptDirectory),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.type=[]),t.defaults&&(n.id=``,n.label=``,n.maxUploadSizeMb=0,n.multipleFiles=!1,n.help=``,n.formId=``,n.disabled=!1,n.labelVisibility=null,n.acceptDirectory=!1),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.type&&e.type.length){n.type=Array(e.type.length);for(let t=0;t<e.type.length;++t)n.type[t]=e.type[t]}return e.maxUploadSizeMb!=null&&e.hasOwnProperty(`maxUploadSizeMb`)&&(n.maxUploadSizeMb=e.maxUploadSizeMb),e.multipleFiles!=null&&e.hasOwnProperty(`multipleFiles`)&&(n.multipleFiles=e.multipleFiles),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.acceptDirectory!=null&&e.hasOwnProperty(`acceptDirectory`)&&(n.acceptDirectory=e.acceptDirectory),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/FileUploader`},e})(),V.GraphVizChart=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.spec=``,e.prototype.elementId=``,e.prototype.engine=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.spec!=null&&Object.hasOwnProperty.call(e,`spec`)&&t.uint32(10).string(e.spec),e.elementId!=null&&Object.hasOwnProperty.call(e,`elementId`)&&t.uint32(42).string(e.elementId),e.engine!=null&&Object.hasOwnProperty.call(e,`engine`)&&t.uint32(50).string(e.engine),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.GraphVizChart,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.spec=s:delete o.spec;continue;case 5:if(a!==2)break;(s=e.string()).length?o.elementId=s:delete o.elementId;continue;case 6:if(a!==2)break;(s=e.string()).length?o.engine=s:delete o.engine;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.GraphVizChart)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.GraphVizChart;return e.spec!=null&&(typeof e.spec!=`string`||e.spec.length)&&(n.spec=String(e.spec)),e.elementId!=null&&(typeof e.elementId!=`string`||e.elementId.length)&&(n.elementId=String(e.elementId)),e.engine!=null&&(typeof e.engine!=`string`||e.engine.length)&&(n.engine=String(e.engine)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.spec=``,n.elementId=``,n.engine=``),e.spec!=null&&e.hasOwnProperty(`spec`)&&(n.spec=e.spec),e.elementId!=null&&e.hasOwnProperty(`elementId`)&&(n.elementId=e.elementId),e.engine!=null&&e.hasOwnProperty(`engine`)&&(n.engine=e.engine),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/GraphVizChart`},e})(),V.Heading=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.tag=``,e.prototype.anchor=``,e.prototype.body=``,e.prototype.help=``,e.prototype.hideAnchor=!1,e.prototype.divider=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.tag!=null&&Object.hasOwnProperty.call(e,`tag`)&&t.uint32(10).string(e.tag),e.anchor!=null&&Object.hasOwnProperty.call(e,`anchor`)&&t.uint32(18).string(e.anchor),e.body!=null&&Object.hasOwnProperty.call(e,`body`)&&t.uint32(26).string(e.body),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(34).string(e.help),e.hideAnchor!=null&&Object.hasOwnProperty.call(e,`hideAnchor`)&&t.uint32(40).bool(e.hideAnchor),e.divider!=null&&Object.hasOwnProperty.call(e,`divider`)&&t.uint32(50).string(e.divider),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Heading,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.tag=s:delete o.tag;continue;case 2:if(a!==2)break;
18(s=e.string()).length?o.anchor=s:delete o.anchor;continue;case 3:if(a!==2)break;(s=e.string()).length?o.body=s:delete o.body;continue;case 4:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 5:if(a!==0)break;(s=e.bool())?o.hideAnchor=s:delete o.hideAnchor;continue;case 6:if(a!==2)break;(s=e.string()).length?o.divider=s:delete o.divider;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Heading)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Heading;return e.tag!=null&&(typeof e.tag!=`string`||e.tag.length)&&(n.tag=String(e.tag)),e.anchor!=null&&(typeof e.anchor!=`string`||e.anchor.length)&&(n.anchor=String(e.anchor)),e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=String(e.body)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.hideAnchor!=null&&e.hideAnchor&&(n.hideAnchor=!!e.hideAnchor),e.divider!=null&&(typeof e.divider!=`string`||e.divider.length)&&(n.divider=String(e.divider)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.tag=``,n.anchor=``,n.body=``,n.help=``,n.hideAnchor=!1,n.divider=``),e.tag!=null&&e.hasOwnProperty(`tag`)&&(n.tag=e.tag),e.anchor!=null&&e.hasOwnProperty(`anchor`)&&(n.anchor=e.anchor),e.body!=null&&e.hasOwnProperty(`body`)&&(n.body=e.body),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.hideAnchor!=null&&e.hasOwnProperty(`hideAnchor`)&&(n.hideAnchor=e.hideAnchor),e.divider!=null&&e.hasOwnProperty(`divider`)&&(n.divider=e.divider),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Heading`},e})(),V.Help=(()=>{function e(e){if(this.members=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.docString=``,e.prototype.type=``,e.prototype.name=``,e.prototype.value=``,e.prototype.members=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.docString!=null&&Object.hasOwnProperty.call(e,`docString`)&&t.uint32(26).string(e.docString),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(34).string(e.type),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(50).string(e.name),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(58).string(e.value),e.members!=null&&e.members.length)for(let n=0;n<e.members.length;++n)V.Member.encode(e.members[n],t.uint32(66).fork()).ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Help,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 3:if(a!==2)break;(s=e.string()).length?o.docString=s:delete o.docString;continue;case 4:if(a!==2)break;(s=e.string()).length?o.type=s:delete o.type;continue;case 6:if(a!==2)break;(s=e.string()).length?o.name=s:delete o.name;continue;case 7:if(a!==2)break;(s=e.string()).length?o.value=s:delete o.value;continue;case 8:if(a!==2)break;o.members&&o.members.length||(o.members=[]),o.members.push(V.Member.decode(e,e.uint32(),void 0,r+1));continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Help)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Help;if(e.docString!=null&&(typeof e.docString!=`string`||e.docString.length)&&(n.docString=String(e.docString)),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=String(e.type)),e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=String(e.name)),e.value!=null&&(typeof e.value!=`string`||e.value.length)&&(n.value=String(e.value)),e.members){if(!Array.isArray(e.members))throw TypeError(`.Help.members: array expected`);n.members=Array(e.members.length);for(let r=0;r<e.members.length;++r){if(typeof e.members[r]!=`object`)throw TypeError(`.Help.members: object expected`);n.members[r]=V.Member.fromObject(e.members[r],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.members=[]),t.defaults&&(n.docString=``,n.type=``,n.name=``,n.value=``),e.docString!=null&&e.hasOwnProperty(`docString`)&&(n.docString=e.docString),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=e.type),e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=e.value),e.members&&e.members.length){n.members=Array(e.members.length);for(let r=0;r<e.members.length;++r)n.members[r]=V.Member.toObject(e.members[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Help`},e})(),V.Member=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.name=``,e.prototype.type=``,e.prototype.value=null,e.prototype.docString=null;let t;return Object.defineProperty(e.prototype,`contents`,{get:B.oneOfGetter(t=[`value`,`docString`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(10).string(e.name),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(18).string(e.type),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(26).string(e.value),e.docString!=null&&Object.hasOwnProperty.call(e,`docString`)&&t.uint32(34).string(e.docString),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Member,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.name=s:delete o.name;continue;case 2:if(a!==2)break;
18(s=e.string()).length?o.type=s:delete o.type;continue;case 3:if(a!==2)break;o.value=e.string(),o.contents=`value`;continue;case 4:if(a!==2)break;o.docString=e.string(),o.contents=`docString`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Member)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Member;return e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=String(e.name)),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=String(e.type)),e.value!=null&&(n.value=String(e.value)),e.docString!=null&&(n.docString=String(e.docString)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.name=``,n.type=``),e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=e.type),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=e.value,t.oneofs&&(n.contents=`value`)),e.docString!=null&&e.hasOwnProperty(`docString`)&&(n.docString=e.docString,t.oneofs&&(n.contents=`docString`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Member`},e})(),V.Html=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.body=``,e.prototype.unsafeAllowJavascript=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.body!=null&&Object.hasOwnProperty.call(e,`body`)&&t.uint32(10).string(e.body),e.unsafeAllowJavascript!=null&&Object.hasOwnProperty.call(e,`unsafeAllowJavascript`)&&t.uint32(16).bool(e.unsafeAllowJavascript),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Html,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.body=s:delete o.body;continue;case 2:if(a!==0)break;(s=e.bool())?o.unsafeAllowJavascript=s:delete o.unsafeAllowJavascript;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Html)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Html;return e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=String(e.body)),e.unsafeAllowJavascript!=null&&e.unsafeAllowJavascript&&(n.unsafeAllowJavascript=!!e.unsafeAllowJavascript),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.body=``,n.unsafeAllowJavascript=!1),e.body!=null&&e.hasOwnProperty(`body`)&&(n.body=e.body),e.unsafeAllowJavascript!=null&&e.hasOwnProperty(`unsafeAllowJavascript`)&&(n.unsafeAllowJavascript=e.unsafeAllowJavascript),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Html`},e})(),V.IFrame=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.src=null,e.prototype.srcdoc=null,e.prototype.scrolling=!1,e.prototype.tabIndex=null;let t;return Object.defineProperty(e.prototype,`type`,{get:B.oneOfGetter(t=[`src`,`srcdoc`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_tabIndex`,{get:B.oneOfGetter(t=[`tabIndex`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.src!=null&&Object.hasOwnProperty.call(e,`src`)&&t.uint32(10).string(e.src),e.srcdoc!=null&&Object.hasOwnProperty.call(e,`srcdoc`)&&t.uint32(18).string(e.srcdoc),e.scrolling!=null&&Object.hasOwnProperty.call(e,`scrolling`)&&t.uint32(56).bool(e.scrolling),e.tabIndex!=null&&Object.hasOwnProperty.call(e,`tabIndex`)&&t.uint32(64).int32(e.tabIndex),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.IFrame,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.src=e.string(),o.type=`src`;continue;case 2:if(a!==2)break;o.srcdoc=e.string(),o.type=`srcdoc`;continue;case 7:if(a!==0)break;(s=e.bool())?o.scrolling=s:delete o.scrolling;continue;case 8:if(a!==0)break;o.tabIndex=e.int32(),o._tabIndex=`tabIndex`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.IFrame)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.IFrame;return e.src!=null&&(n.src=String(e.src)),e.srcdoc!=null&&(n.srcdoc=String(e.srcdoc)),e.scrolling!=null&&e.scrolling&&(n.scrolling=!!e.scrolling),e.tabIndex!=null&&(n.tabIndex=e.tabIndex|0),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.scrolling=!1),e.src!=null&&e.hasOwnProperty(`src`)&&(n.src=e.src,t.oneofs&&(n.type=`src`)),e.srcdoc!=null&&e.hasOwnProperty(`srcdoc`)&&(n.srcdoc=e.srcdoc,t.oneofs&&(n.type=`srcdoc`)),e.scrolling!=null&&e.hasOwnProperty(`scrolling`)&&(n.scrolling=e.scrolling),e.tabIndex!=null&&e.hasOwnProperty(`tabIndex`)&&(n.tabIndex=e.tabIndex,t.oneofs&&(n._tabIndex=`tabIndex`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/IFrame`},e})(),V.Image=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.url=``,e.prototype.caption=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.caption!=null&&Object.hasOwnProperty.call(e,`caption`)&&t.uint32(18).string(e.caption),e.url!=null&&Object.hasOwnProperty.call(e,`url`)&&t.uint32(26).string(e.url),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Image,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 3:if(a!==2)break;(s=e.string()).length?o.url=s:delete o.url;continue;case 2:if(a!==2)break;(s=e.string()).length?o.caption=s:delete o.caption;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Image)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Image;return e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=String(e.url)),e.caption!=null&&(typeof e.caption!=`
18string`||e.caption.length)&&(n.caption=String(e.caption)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.caption=``,n.url=``),e.caption!=null&&e.hasOwnProperty(`caption`)&&(n.caption=e.caption),e.url!=null&&e.hasOwnProperty(`url`)&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Image`},e})(),V.ImageList=(()=>{function e(e){if(this.imgs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.imgs=B.emptyArray,e.prototype.link=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.imgs!=null&&e.imgs.length)for(let n=0;n<e.imgs.length;++n)V.Image.encode(e.imgs[n],t.uint32(10).fork()).ldelim();if(e.link!=null&&Object.hasOwnProperty.call(e,`link`)&&t.uint32(26).string(e.link),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ImageList,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.imgs&&o.imgs.length||(o.imgs=[]),o.imgs.push(V.Image.decode(e,e.uint32(),void 0,r+1));continue;case 3:if(a!==2)break;(s=e.string()).length?o.link=s:delete o.link;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ImageList)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ImageList;if(e.imgs){if(!Array.isArray(e.imgs))throw TypeError(`.ImageList.imgs: array expected`);n.imgs=Array(e.imgs.length);for(let r=0;r<e.imgs.length;++r){if(typeof e.imgs[r]!=`object`)throw TypeError(`.ImageList.imgs: object expected`);n.imgs[r]=V.Image.fromObject(e.imgs[r],t+1)}}return e.link!=null&&(typeof e.link!=`string`||e.link.length)&&(n.link=String(e.link)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.imgs=[]),t.defaults&&(n.link=``),e.imgs&&e.imgs.length){n.imgs=Array(e.imgs.length);for(let r=0;r<e.imgs.length;++r)n.imgs[r]=V.Image.toObject(e.imgs[r],t)}return e.link!=null&&e.hasOwnProperty(`link`)&&(n.link=e.link),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ImageList`},e})(),V.Json=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.body=``,e.prototype.expanded=!1,e.prototype.maxExpandDepth=null;let t;return Object.defineProperty(e.prototype,`_maxExpandDepth`,{get:B.oneOfGetter(t=[`maxExpandDepth`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.body!=null&&Object.hasOwnProperty.call(e,`body`)&&t.uint32(10).string(e.body),e.expanded!=null&&Object.hasOwnProperty.call(e,`expanded`)&&t.uint32(16).bool(e.expanded),e.maxExpandDepth!=null&&Object.hasOwnProperty.call(e,`maxExpandDepth`)&&t.uint32(24).int32(e.maxExpandDepth),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Json,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.body=s:delete o.body;continue;case 2:if(a!==0)break;(s=e.bool())?o.expanded=s:delete o.expanded;continue;case 3:if(a!==0)break;o.maxExpandDepth=e.int32(),o._maxExpandDepth=`maxExpandDepth`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Json)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Json;return e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=String(e.body)),e.expanded!=null&&e.expanded&&(n.expanded=!!e.expanded),e.maxExpandDepth!=null&&(n.maxExpandDepth=e.maxExpandDepth|0),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.body=``,n.expanded=!1),e.body!=null&&e.hasOwnProperty(`body`)&&(n.body=e.body),e.expanded!=null&&e.hasOwnProperty(`expanded`)&&(n.expanded=e.expanded),e.maxExpandDepth!=null&&e.hasOwnProperty(`maxExpandDepth`)&&(n.maxExpandDepth=e.maxExpandDepth,t.oneofs&&(n._maxExpandDepth=`maxExpandDepth`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Json`},e})(),V.LinkButton=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.id=``,e.prototype.label=``,e.prototype.help=``,e.prototype.url=``,e.prototype.disabled=!1,e.prototype.useContainerWidth=!1,e.prototype.type=``,e.prototype.icon=``,e.prototype.shortcut=``,e.prototype.iconPosition=0,e.prototype.ignoreRerun=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(34).string(e.help),e.url!=null&&Object.hasOwnProperty.call(e,`url`)&&t.uint32(50).string(e.url),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(56).bool(e.disabled),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,`useContainerWidth`)&&t.uint32(64).bool(e.useContainerWidth),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(74).string(e.type),e.icon!=null&&Object.hasOwnProperty.call(e,`icon`)&&t.uint32(82).string(e.icon),e.shortcut!=null&&Object.hasOwnProperty.call(e,`shortcut`)&&t.uint32(90).string(e.shortcut),e.iconPosition!=null&&Object.hasOwnProperty.call(e,`iconPosition`)&&t.uint32(96).int32(e.iconPosition),e.ignoreRerun!=null&&Object.hasOwnProperty.call(e,`ignoreRerun`)&&t.uint32(104).bool(e.ignoreRerun),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.LinkButton,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 4:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 6:if(a!==2)break;(s=e.string()).length?o.url=s:delete o.url;continue;case 7:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 8:if(a!==0)break;(s=e.bool())?o.useContainerWidth=s:delete o.useContainerWidth;continue;
18case 9:if(a!==2)break;(s=e.string()).length?o.type=s:delete o.type;continue;case 10:if(a!==2)break;(s=e.string()).length?o.icon=s:delete o.icon;continue;case 11:if(a!==2)break;(s=e.string()).length?o.shortcut=s:delete o.shortcut;continue;case 12:if(a!==0)break;(s=e.int32())?o.iconPosition=s:delete o.iconPosition;continue;case 13:if(a!==0)break;(s=e.bool())?o.ignoreRerun=s:delete o.ignoreRerun;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.LinkButton)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.LinkButton;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=String(e.url)),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.useContainerWidth!=null&&e.useContainerWidth&&(n.useContainerWidth=!!e.useContainerWidth),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=String(e.type)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=String(e.icon)),e.shortcut!=null&&(typeof e.shortcut!=`string`||e.shortcut.length)&&(n.shortcut=String(e.shortcut)),e.iconPosition!==0&&(typeof e.iconPosition!=`string`||V.streamlit.ButtonLikeIconPosition[e.iconPosition]!==0))switch(e.iconPosition){default:if(typeof e.iconPosition==`number`){n.iconPosition=e.iconPosition;break}break;case`LEFT`:case 0:n.iconPosition=0;break;case`RIGHT`:case 1:n.iconPosition=1;break}return e.ignoreRerun!=null&&e.ignoreRerun&&(n.ignoreRerun=!!e.ignoreRerun),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``,n.label=``,n.help=``,n.url=``,n.disabled=!1,n.useContainerWidth=!1,n.type=``,n.icon=``,n.shortcut=``,n.iconPosition=t.enums===String?`LEFT`:0,n.ignoreRerun=!1),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.url!=null&&e.hasOwnProperty(`url`)&&(n.url=e.url),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.useContainerWidth!=null&&e.hasOwnProperty(`useContainerWidth`)&&(n.useContainerWidth=e.useContainerWidth),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=e.type),e.icon!=null&&e.hasOwnProperty(`icon`)&&(n.icon=e.icon),e.shortcut!=null&&e.hasOwnProperty(`shortcut`)&&(n.shortcut=e.shortcut),e.iconPosition!=null&&e.hasOwnProperty(`iconPosition`)&&(n.iconPosition=t.enums===String?V.streamlit.ButtonLikeIconPosition[e.iconPosition]===void 0?e.iconPosition:V.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),e.ignoreRerun!=null&&e.hasOwnProperty(`ignoreRerun`)&&(n.ignoreRerun=e.ignoreRerun),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/LinkButton`},e})();var jo=V.Markdown=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.body=``,e.prototype.allowHtml=!1,e.prototype.elementType=0,e.prototype.help=``,e.prototype.unterminatedParsing=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.body!=null&&Object.hasOwnProperty.call(e,`body`)&&t.uint32(10).string(e.body),e.allowHtml!=null&&Object.hasOwnProperty.call(e,`allowHtml`)&&t.uint32(16).bool(e.allowHtml),e.elementType!=null&&Object.hasOwnProperty.call(e,`elementType`)&&t.uint32(32).int32(e.elementType),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(42).string(e.help),e.unterminatedParsing!=null&&Object.hasOwnProperty.call(e,`unterminatedParsing`)&&t.uint32(48).bool(e.unterminatedParsing),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Markdown,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.body=s:delete o.body;continue;case 2:if(a!==0)break;(s=e.bool())?o.allowHtml=s:delete o.allowHtml;continue;case 4:if(a!==0)break;(s=e.int32())?o.elementType=s:delete o.elementType;continue;case 5:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 6:if(a!==0)break;(s=e.bool())?o.unterminatedParsing=s:delete o.unterminatedParsing;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Markdown)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Markdown;if(e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=String(e.body)),e.allowHtml!=null&&e.allowHtml&&(n.allowHtml=!!e.allowHtml),e.elementType!==0&&(typeof e.elementType!=`string`||V.Markdown.Type[e.elementType]!==0))switch(e.elementType){default:if(typeof e.elementType==`number`){n.elementType=e.elementType;break}break;case`UNSPECIFIED`:case 0:n.elementType=0;break;case`NATIVE`:case 1:n.elementType=1;break;case`CAPTION`:case 2:n.elementType=2;break;case`CODE`:case 3:n.elementType=3;break;case`LATEX`:case 4:n.elementType=4;break;case`DIVIDER`:case 5:n.elementType=5;break}return e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.unterminatedParsing!=null&&e.unterminatedParsing&&(n.unterminatedParsing=!!e.unterminatedParsing),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.body=``,n.allowHtml=!1,n.elementType=t.enums===String?`UNSPECIFIED`:0,n.help=``,n.unterminatedParsing=!1),e.body!=null&&e.hasOwnProperty(`body`)&&(n.body=e.body),e.allowHtml!=null&&e.hasOwnProperty(`allowHtml`)&&(n.allowHtml=e.allowHtml),e.elementType!=null&&e.hasOwnProperty(`elementType`)&&(n.elementType=t.enums===String?V.Markdown.Type[e.elementType]===void 0?e.elementType:V.Markdown.Type[e.elementType]:e.elementType),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.unterminatedParsing!=null&&e.hasOwnProperty(`unterminatedParsing`)&&(n.unterminatedParsing=e.unterminatedParsing),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Markdown`},e.Type=(function(){let e={},t=Object.create(e);return t[e[0]=`UNSPECIFIED`]=0,t[e[1]=`NATIVE`]=1,t[e[2]=`CAPTION`]=2,t[e[3]=`CODE`]=3,t[e[4]=`LATEX`]=4,t[e[5]=`DIVIDER`]=5,t})(),e})();V.MenuButton=(()=>{function e(e){if(this.options=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.id=``,e.prototype.label=``,e.prototype.options=B.emptyArray,e.prototype.help=``,e.prototype.type=``,e.prototype.disabled=!1,e.prototype.icon=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.options!=null&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(26).string(e.options[n]);if(e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(34).string(e.help),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(42).string(e.type),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(48).bool(e.disabled),e.icon!=null&&Object.hasOwnProperty.call(e,`icon`)&&t.uint32(58).string(e.icon),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.MenuButton,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.options&&o.options.length||(o.options=[]),o.options.push(e.string());continue;case 4:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;
18(s=e.string()).length?o.type=s:delete o.type;continue;case 6:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 7:if(a!==2)break;(s=e.string()).length?o.icon=s:delete o.icon;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.MenuButton)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.MenuButton;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.options){if(!Array.isArray(e.options))throw TypeError(`.MenuButton.options: array expected`);n.options=Array(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=String(e.options[t])}return e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=String(e.type)),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=String(e.icon)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.options=[]),t.defaults&&(n.id=``,n.label=``,n.help=``,n.type=``,n.disabled=!1,n.icon=``),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.options&&e.options.length){n.options=Array(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=e.options[t]}return e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=e.type),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.icon!=null&&e.hasOwnProperty(`icon`)&&(n.icon=e.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/MenuButton`},e})();var Mo=V.Metric=(()=>{function e(e){if(this.chartData=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.label=``,e.prototype.body=``,e.prototype.delta=``,e.prototype.direction=0,e.prototype.color=0,e.prototype.help=``,e.prototype.labelVisibility=null,e.prototype.showBorder=!1,e.prototype.chartData=B.emptyArray,e.prototype.chartType=0,e.prototype.format=``,e.prototype.deltaDescription=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(10).string(e.label),e.body!=null&&Object.hasOwnProperty.call(e,`body`)&&t.uint32(18).string(e.body),e.delta!=null&&Object.hasOwnProperty.call(e,`delta`)&&t.uint32(26).string(e.delta),e.direction!=null&&Object.hasOwnProperty.call(e,`direction`)&&t.uint32(32).int32(e.direction),e.color!=null&&Object.hasOwnProperty.call(e,`color`)&&t.uint32(40).int32(e.color),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(50).string(e.help),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(58).fork()).ldelim(),e.showBorder!=null&&Object.hasOwnProperty.call(e,`showBorder`)&&t.uint32(64).bool(e.showBorder),e.chartData!=null&&e.chartData.length){t.uint32(74).fork();for(let n=0;n<e.chartData.length;++n)t.double(e.chartData[n]);t.ldelim()}if(e.chartType!=null&&Object.hasOwnProperty.call(e,`chartType`)&&t.uint32(80).int32(e.chartType),e.format!=null&&Object.hasOwnProperty.call(e,`format`)&&t.uint32(90).string(e.format),e.deltaDescription!=null&&Object.hasOwnProperty.call(e,`deltaDescription`)&&t.uint32(98).string(e.deltaDescription),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Metric,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 2:if(a!==2)break;(s=e.string()).length?o.body=s:delete o.body;continue;case 3:if(a!==2)break;(s=e.string()).length?o.delta=s:delete o.delta;continue;case 4:if(a!==0)break;(s=e.int32())?o.direction=s:delete o.direction;continue;case 5:if(a!==0)break;(s=e.int32())?o.color=s:delete o.color;continue;case 6:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 7:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 8:if(a!==0)break;(s=e.bool())?o.showBorder=s:delete o.showBorder;continue;
18case 9:if(a===2){o.chartData&&o.chartData.length||(o.chartData=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.chartData.push(e.double());continue}if(a!==1)break;o.chartData&&o.chartData.length||(o.chartData=[]),o.chartData.push(e.double());continue;case 10:if(a!==0)break;(s=e.int32())?o.chartType=s:delete o.chartType;continue;case 11:if(a!==2)break;(s=e.string()).length?o.format=s:delete o.format;continue;case 12:if(a!==2)break;(s=e.string()).length?o.deltaDescription=s:delete o.deltaDescription;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Metric)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Metric;if(e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=String(e.body)),e.delta!=null&&(typeof e.delta!=`string`||e.delta.length)&&(n.delta=String(e.delta)),e.direction!==0&&(typeof e.direction!=`string`||V.Metric.MetricDirection[e.direction]!==0))switch(e.direction){default:if(typeof e.direction==`number`){n.direction=e.direction;break}break;case`DOWN`:case 0:n.direction=0;break;case`UP`:case 1:n.direction=1;break;case`NONE`:case 2:n.direction=2;break}if(e.color!==0&&(typeof e.color!=`string`||V.Metric.MetricColor[e.color]!==0))switch(e.color){default:if(typeof e.color==`number`){n.color=e.color;break}break;case`RED`:case 0:n.color=0;break;case`GREEN`:case 1:n.color=1;break;case`GRAY`:case 2:n.color=2;break;case`ORANGE`:case 3:n.color=3;break;case`YELLOW`:case 4:n.color=4;break;case`BLUE`:case 5:n.color=5;break;case`VIOLET`:case 6:n.color=6;break;case`PRIMARY`:case 7:n.color=7;break}if(e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.Metric.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.showBorder!=null&&e.showBorder&&(n.showBorder=!!e.showBorder),e.chartData){if(!Array.isArray(e.chartData))throw TypeError(`.Metric.chartData: array expected`);n.chartData=Array(e.chartData.length);for(let t=0;t<e.chartData.length;++t)n.chartData[t]=Number(e.chartData[t])}if(e.chartType!==0&&(typeof e.chartType!=`string`||V.Metric.ChartType[e.chartType]!==0))switch(e.chartType){default:if(typeof e.chartType==`number`){n.chartType=e.chartType;break}break;case`LINE`:case 0:n.chartType=0;break;case`BAR`:case 1:n.chartType=1;break;case`AREA`:case 2:n.chartType=2;break}return e.format!=null&&(typeof e.format!=`string`||e.format.length)&&(n.format=String(e.format)),e.deltaDescription!=null&&(typeof e.deltaDescription!=`string`||e.deltaDescription.length)&&(n.deltaDescription=String(e.deltaDescription)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.chartData=[]),t.defaults&&(n.label=``,n.body=``,n.delta=``,n.direction=t.enums===String?`DOWN`:0,n.color=t.enums===String?`RED`:0,n.help=``,n.labelVisibility=null,n.showBorder=!1,n.chartType=t.enums===String?`LINE`:0,n.format=``,n.deltaDescription=``),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.body!=null&&e.hasOwnProperty(`body`)&&(n.body=e.body),e.delta!=null&&e.hasOwnProperty(`delta`)&&(n.delta=e.delta),e.direction!=null&&e.hasOwnProperty(`direction`)&&(n.direction=t.enums===String?V.Metric.MetricDirection[e.direction]===void 0?e.direction:V.Metric.MetricDirection[e.direction]:e.direction),e.color!=null&&e.hasOwnProperty(`color`)&&(n.color=t.enums===String?V.Metric.MetricColor[e.color]===void 0?e.color:V.Metric.MetricColor[e.color]:e.color),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.showBorder!=null&&e.hasOwnProperty(`showBorder`)&&(n.showBorder=e.showBorder),e.chartData&&e.chartData.length){n.chartData=Array(e.chartData.length);for(let r=0;r<e.chartData.length;++r)n.chartData[r]=t.json&&!isFinite(e.chartData[r])?String(e.chartData[r]):e.chartData[r]}return e.chartType!=null&&e.hasOwnProperty(`chartType`)&&(n.chartType=t.enums===String?V.Metric.ChartType[e.chartType]===void 0?e.chartType:V.Metric.ChartType[e.chartType]:e.chartType),e.format!=null&&e.hasOwnProperty(`format`)&&(n.format=e.format),e.deltaDescription!=null&&e.hasOwnProperty(`deltaDescription`)&&(n.deltaDescription=e.deltaDescription),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Metric`},e.MetricDirection=(function(){let e={},t=Object.create(e);return t[e[0]=`DOWN`]=0,t[e[1]=`UP`]=1,t[e[2]=`NONE`]=2,t})(),e.MetricColor=(function(){let e={},t=Object.create(e);return t[e[0]=`RED`]=0,t[e[1]=`GREEN`]=1,t[e[2]=`GRAY`]=2,t[e[3]=`ORANGE`]=3,t[e[4]=`YELLOW`]=4,t[e[5]=`BLUE`]=5,t[e[6]=`VIOLET`]=6,t[e[7]=`PRIMARY`]=7,t})(),e.ChartType=(function(){let e={},t=Object.create(e);return t[e[0]=`LINE`]=0,t[e[1]=`BAR`]=1,t[e[2]=`AREA`]=2,t})(),e})();V.MultiSelect=(()=>{function e(e){if(this.default=[],this.options=[],this.rawValues=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.label=``,e.prototype.default=B.emptyArray,e.prototype.options=B.emptyArray,e.prototype.help=``,e.prototype.formId=``,e.prototype.rawValues=B.emptyArray,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.maxSelections=0,e.prototype.placeholder=``,e.prototype.acceptNewOptions=null,e.prototype.queryParamKey=null,e.prototype.filterMode=0;let t;return Object.defineProperty(e.prototype,`_acceptNewOptions`,{get:B.oneOfGetter(t=[`acceptNewOptions`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.default!=null&&e.default.length){t.uint32(26).fork();for(let n=0;n<e.default.length;++n)t.int32(e.default[n]);t.ldelim()}if(e.options!=null&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);if(e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(42).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(50).string(e.formId),e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(64).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(72).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),e.maxSelections!=null&&Object.hasOwnProperty.call(e,`maxSelections`)&&t.uint32(88).int32(e.maxSelections),e.placeholder!=null&&Object.hasOwnProperty.call(e,`placeholder`)&&t.uint32(98).string(e.placeholder),e.acceptNewOptions!=null&&Object.hasOwnProperty.call(e,`acceptNewOptions`)&&t.uint32(104).bool(e.acceptNewOptions),e.rawValues!=null&&e.rawValues.length)for(let n=0;n<e.rawValues.length;++n)t.uint32(114).string(e.rawValues[n]);if(e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(122).string(e.queryParamKey),e.filterMode!=null&&Object.hasOwnProperty.call(e,`filterMode`)&&t.uint32(128).int32(e.filterMode),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.MultiSelect,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a===2){o.default&&o.default.length||(o.default=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.default.push(e.int32());continue}if(a!==0)break;o.default&&o.default.length||(o.default=[]),o.default.push(e.int32());continue;case 4:if(a!==2)break;o.options&&o.options.length||(o.options=[]),o.options.push(e.string());continue;case 5:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 6:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 14:if(a!==2)break;o.rawValues&&o.rawValues.length||(o.rawValues=[]),o.rawValues.push(e.string());continue;case 8:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;
18case 9:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 10:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 11:if(a!==0)break;(s=e.int32())?o.maxSelections=s:delete o.maxSelections;continue;case 12:if(a!==2)break;(s=e.string()).length?o.placeholder=s:delete o.placeholder;continue;case 13:if(a!==0)break;o.acceptNewOptions=e.bool(),o._acceptNewOptions=`acceptNewOptions`;continue;case 15:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue;case 16:if(a!==0)break;(s=e.int32())?o.filterMode=s:delete o.filterMode;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.MultiSelect)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.MultiSelect;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(`.MultiSelect.default: array expected`);n.default=Array(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=e.default[t]|0}if(e.options){if(!Array.isArray(e.options))throw TypeError(`.MultiSelect.options: array expected`);n.options=Array(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=String(e.options[t])}if(e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.rawValues){if(!Array.isArray(e.rawValues))throw TypeError(`.MultiSelect.rawValues: array expected`);n.rawValues=Array(e.rawValues.length);for(let t=0;t<e.rawValues.length;++t)n.rawValues[t]=String(e.rawValues[t])}if(e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.MultiSelect.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.maxSelections!=null&&Number(e.maxSelections)!==0&&(n.maxSelections=e.maxSelections|0),e.placeholder!=null&&(typeof e.placeholder!=`string`||e.placeholder.length)&&(n.placeholder=String(e.placeholder)),e.acceptNewOptions!=null&&(n.acceptNewOptions=!!e.acceptNewOptions),e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),e.filterMode!==0&&(typeof e.filterMode!=`string`||V.streamlit.SelectWidgetFilterMode[e.filterMode]!==0))switch(e.filterMode){default:if(typeof e.filterMode==`number`){n.filterMode=e.filterMode;break}break;case`FILTER_MODE_FUZZY`:case 0:n.filterMode=0;break;case`FILTER_MODE_CONTAINS`:case 1:n.filterMode=1;break;case`FILTER_MODE_PREFIX`:case 2:n.filterMode=2;break;case`FILTER_MODE_NONE`:case 3:n.filterMode=3;break}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.default=[],n.options=[],n.rawValues=[]),t.defaults&&(n.id=``,n.label=``,n.help=``,n.formId=``,n.setValue=!1,n.disabled=!1,n.labelVisibility=null,n.maxSelections=0,n.placeholder=``,n.filterMode=t.enums===String?`FILTER_MODE_FUZZY`:0),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.default&&e.default.length){n.default=Array(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=e.default[t]}if(e.options&&e.options.length){n.options=Array(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=e.options[t]}if(e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.maxSelections!=null&&e.hasOwnProperty(`maxSelections`)&&(n.maxSelections=e.maxSelections),e.placeholder!=null&&e.hasOwnProperty(`placeholder`)&&(n.placeholder=e.placeholder),e.acceptNewOptions!=null&&e.hasOwnProperty(`acceptNewOptions`)&&(n.acceptNewOptions=e.acceptNewOptions,t.oneofs&&(n._acceptNewOptions=`acceptNewOptions`)),e.rawValues&&e.rawValues.length){n.rawValues=Array(e.rawValues.length);for(let t=0;t<e.rawValues.length;++t)n.rawValues[t]=e.rawValues[t]}return e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),e.filterMode!=null&&e.hasOwnProperty(`filterMode`)&&(n.filterMode=t.enums===String?V.streamlit.SelectWidgetFilterMode[e.filterMode]===void 0?e.filterMode:V.streamlit.SelectWidgetFilterMode[e.filterMode]:e.filterMode),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/MultiSelect`},e})();var No=V.NumberInput=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.label=``,e.prototype.formId=``,e.prototype.format=``,e.prototype.hasMin=!1,e.prototype.hasMax=!1,e.prototype.dataType=0,e.prototype.default=null,e.prototype.step=0,e.prototype.min=0,e.prototype.max=0,e.prototype.help=``,e.prototype.value=null,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.placeholder=``,e.prototype.icon=``,e.prototype.queryParamKey=null;let t;return Object.defineProperty(e.prototype,`_default`,{get:B.oneOfGetter(t=[`default`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_value`,{get:B.oneOfGetter(t=[`value`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(26).string(e.formId),e.format!=null&&Object.hasOwnProperty.call(e,`format`)&&t.uint32(66).string(e.format),e.hasMin!=null&&Object.hasOwnProperty.call(e,`hasMin`)&&t.uint32(88).bool(e.hasMin),e.hasMax!=null&&Object.hasOwnProperty.call(e,`hasMax`)&&t.uint32(96).bool(e.hasMax),e.dataType!=null&&Object.hasOwnProperty.call(e,`dataType`)&&t.uint32(104).int32(e.dataType),e.default!=null&&Object.hasOwnProperty.call(e,`default`)&&t.uint32(113).double(e.default),e.step!=null&&Object.hasOwnProperty.call(e,`step`)&&t.uint32(121).double(e.step),e.min!=null&&Object.hasOwnProperty.call(e,`min`)&&t.uint32(129).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,`max`)&&t.uint32(137).double(e.max),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(146).string(e.help),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(153).double(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(160).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(168).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(178).fork()).ldelim(),e.placeholder!=null&&Object.hasOwnProperty.call(e,`placeholder`)&&t.uint32(186).string(e.placeholder),e.icon!=null&&Object.hasOwnProperty.call(e,`icon`)&&t.uint32(194).string(e.icon),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(202).string(e.queryParamKey),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.NumberInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 8:if(a!==2)break;(s=e.string()).length?o.format=s:delete o.format;continue;case 11:if(a!==0)break;(s=e.bool())?o.hasMin=s:delete o.hasMin;continue;case 12:if(a!==0)break;(s=e.bool())?o.hasMax=s:delete o.hasMax;continue;case 13:if(a!==0)break;(s=e.int32())?o.dataType=s:delete o.dataType;continue;case 14:if(a!==1)break;o.default=e.double(),o._default=`default`;continue;case 15:if(a!==1)break;(s=e.double())===0?delete o.step:o.step=s;continue;case 16:if(a!==1)break;(s=e.double())===0?delete o.min:o.min=s;continue;case 17:if(a!==1)break;(s=e.double())===0?delete o.max:o.max=s;continue;case 18:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 19:if(a!==1)break;o.value=e.double(),o._value=`value`;continue;case 20:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 21:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 22:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 23:if(a!==2)break;(s=e.string()).length?o.placeholder=s:delete o.placeholder;continue;case 24:if(a!==2)break;(s=e.string()).length?o.icon=s:delete o.icon;continue;case 25:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.NumberInput)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.NumberInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.format!=null&&(typeof e.format!=`string`||e.format.length)&&(n.format=String(e.format)),e.hasMin!=null&&e.hasMin&&(n.hasMin=!!e.hasMin),e.hasMax!=null&&e.hasMax&&(n.hasMax=!!e.hasMax),e.dataType!==0&&(typeof e.dataType!=`string`||V.NumberInput.DataType[e.dataType]!==0))switch(e.dataType){default:if(typeof e.dataType==`number`){n.dataType=e.dataType;break}break;case`INT`:case 0:n.dataType=0;break;case`FLOAT`:case 1:n.dataType=1;break}if(e.default!=null&&(n.default=Number(e.default)),e.step!=null&&Number(e.step)!==0&&(n.step=Number(e.step)),e.min!=null&&Number(e.min)!==0&&(n.min=Number(e.min)),e.max!=null&&Number(e.max)!==0&&(n.max=Number(e.max)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.value!=null&&(n.value=Number(e.value)),e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.NumberInput.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.placeholder!=null&&(typeof e.placeholder!=`string`||e.placeholder.length)&&(n.placeholder=String(e.placeholder)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=String(e.icon)),e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``,n.label=``,n.formId=``,n.format=``,n.hasMin=!1,n.hasMax=!1,n.dataType=t.enums===String?`INT`:0,n.step=0,n.min=0,n.max=0,n.help=``,n.setValue=!1,n.disabled=!1,n.labelVisibility=null,n.placeholder=``,n.icon=``),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.format!=null&&e.hasOwnProperty(`format`)&&(n.format=e.format),e.hasMin!=null&&e.hasOwnProperty(`hasMin`)&&(n.hasMin=e.hasMin),e.hasMax!=null&&e.hasOwnProperty(`hasMax`)&&(n.hasMax=e.hasMax),e.dataType!=null&&e.hasOwnProperty(`dataType`)&&(n.dataType=t.enums===String?V.NumberInput.DataType[e.dataType]===void 0?e.dataType:V.NumberInput.DataType[e.dataType]:e.dataType),e.default!=null&&e.hasOwnProperty(`default`)&&(n.default=t.json&&!isFinite(e.default)?String(e.default):e.default,t.oneofs&&(n._default=`default`)),e.step!=null&&e.hasOwnProperty(`step`)&&(n.step=t.json&&!isFinite(e.step)?String(e.step):e.step),e.min!=null&&e.hasOwnProperty(`min`)&&(n.min=t.json&&!isFinite(e.min)?String(e.min):e.min),e.max!=null&&e.hasOwnProperty(`max`)&&(n.max=t.json&&!isFinite(e.max)?String(e.max):e.max),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(n._value=`value`)),e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.placeholder!=null&&e.hasOwnProperty(`placeholder`)&&(n.placeholder=e.placeholder),e.icon!=null&&e.hasOwnProperty(`icon`)&&(n.icon=e.icon),e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/NumberInput`},e.DataType=(function(){let e={},t=Object.create(e);return t[e[0]=`INT`]=0,t[e[1]=`FLOAT`]=1,t})(),e})();V.PageLink=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.page=``,e.prototype.label=``,e.prototype.icon=``,e.prototype.pageScriptHash=``,e.prototype.help=``,e.prototype.useContainerWidth=null,e.prototype.disabled=!1,e.prototype.external=!1,e.prototype.queryString=``,e.prototype.iconPosition=0;let t;return Object.defineProperty(e.prototype,`_useContainerWidth`,{get:B.oneOfGetter(t=[`useContainerWidth`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.page!=null&&Object.hasOwnProperty.call(e,`page`)&&t.uint32(10).string(e.page),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.icon!=null&&Object.hasOwnProperty.call(e,`icon`)&&t.uint32(26).string(e.icon),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,`pageScriptHash`)&&t.uint32(34).string(e.pageScriptHash),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(42).string(e.help),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,`useContainerWidth`)&&t.uint32(48).bool(e.useContainerWidth),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(56).bool(e.disabled),e.external!=null&&Object.hasOwnProperty.call(e,`external`)&&t.uint32(64).bool(e.external),e.queryString!=null&&Object.hasOwnProperty.call(e,`queryString`)&&t.uint32(74).string(e.queryString),e.iconPosition!=null&&Object.hasOwnProperty.call(e,`iconPosition`)&&t.uint32(80).int32(e.iconPosition),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.PageLink,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.page=s:delete o.page;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;(s=e.string()).length?o.icon=s:delete o.icon;continue;case 4:if(a!==2)break;(s=e.string()).length?o.pageScriptHash=s:delete o.pageScriptHash;continue;case 5:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 6:if(a!==0)break;o.useContainerWidth=e.bool(),o._useContainerWidth=`useContainerWidth`;continue;case 7:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 8:if(a!==0)break;(s=e.b
18ool())?o.external=s:delete o.external;continue;case 9:if(a!==2)break;(s=e.string()).length?o.queryString=s:delete o.queryString;continue;case 10:if(a!==0)break;(s=e.int32())?o.iconPosition=s:delete o.iconPosition;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.PageLink)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.PageLink;if(e.page!=null&&(typeof e.page!=`string`||e.page.length)&&(n.page=String(e.page)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=String(e.icon)),e.pageScriptHash!=null&&(typeof e.pageScriptHash!=`string`||e.pageScriptHash.length)&&(n.pageScriptHash=String(e.pageScriptHash)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.useContainerWidth!=null&&(n.useContainerWidth=!!e.useContainerWidth),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.external!=null&&e.external&&(n.external=!!e.external),e.queryString!=null&&(typeof e.queryString!=`string`||e.queryString.length)&&(n.queryString=String(e.queryString)),e.iconPosition!==0&&(typeof e.iconPosition!=`string`||V.streamlit.ButtonLikeIconPosition[e.iconPosition]!==0))switch(e.iconPosition){default:if(typeof e.iconPosition==`number`){n.iconPosition=e.iconPosition;break}break;case`LEFT`:case 0:n.iconPosition=0;break;case`RIGHT`:case 1:n.iconPosition=1;break}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.page=``,n.label=``,n.icon=``,n.pageScriptHash=``,n.help=``,n.disabled=!1,n.external=!1,n.queryString=``,n.iconPosition=t.enums===String?`LEFT`:0),e.page!=null&&e.hasOwnProperty(`page`)&&(n.page=e.page),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.icon!=null&&e.hasOwnProperty(`icon`)&&(n.icon=e.icon),e.pageScriptHash!=null&&e.hasOwnProperty(`pageScriptHash`)&&(n.pageScriptHash=e.pageScriptHash),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.useContainerWidth!=null&&e.hasOwnProperty(`useContainerWidth`)&&(n.useContainerWidth=e.useContainerWidth,t.oneofs&&(n._useContainerWidth=`useContainerWidth`)),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.external!=null&&e.hasOwnProperty(`external`)&&(n.external=e.external),e.queryString!=null&&e.hasOwnProperty(`queryString`)&&(n.queryString=e.queryString),e.iconPosition!=null&&e.hasOwnProperty(`iconPosition`)&&(n.iconPosition=t.enums===String?V.streamlit.ButtonLikeIconPosition[e.iconPosition]===void 0?e.iconPosition:V.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/PageLink`},e})(),V.Pagination=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.numPages=0,e.prototype.default=0,e.prototype.maxVisiblePages=null,e.prototype.disabled=!1,e.prototype.formId=``,e.prototype.value=0,e.prototype.setValue=!1,e.prototype.queryParamKey=null;let t;return Object.defineProperty(e.prototype,`_maxVisiblePages`,{get:B.oneOfGetter(t=[`maxVisiblePages`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.numPages!=null&&Object.hasOwnProperty.call(e,`numPages`)&&t.uint32(16).uint32(e.numPages),e.default!=null&&Object.hasOwnProperty.call(e,`default`)&&t.uint32(24).uint32(e.default),e.maxVisiblePages!=null&&Object.hasOwnProperty.call(e,`maxVisiblePages`)&&t.uint32(32).uint32(e.maxVisiblePages),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(40).bool(e.disabled),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(50).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(56).uint32(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(64).bool(e.setValue),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(74).string(e.queryParamKey),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Pagination,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==0)break;(s=e.uint32())?o.numPages=s:delete o.numPages;continue;case 3:if(a!==0)break;(s=e.uint32())?o.default=s:delete o.default;continue;case 4:if(a!==0)break;o.maxVisiblePages=e.uint32(),o._maxVisiblePages=`maxVisiblePages`;continue;case 5:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 6:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 7:if(a!==0)break;(s=e.uint32())?o.value=s:delete o.value;continue;case 8:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;
18case 9:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Pagination)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Pagination;return e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.numPages!=null&&Number(e.numPages)!==0&&(n.numPages=e.numPages>>>0),e.default!=null&&Number(e.default)!==0&&(n.default=e.default>>>0),e.maxVisiblePages!=null&&(n.maxVisiblePages=e.maxVisiblePages>>>0),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.value!=null&&Number(e.value)!==0&&(n.value=e.value>>>0),e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``,n.numPages=0,n.default=0,n.disabled=!1,n.formId=``,n.value=0,n.setValue=!1),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.numPages!=null&&e.hasOwnProperty(`numPages`)&&(n.numPages=e.numPages),e.default!=null&&e.hasOwnProperty(`default`)&&(n.default=e.default),e.maxVisiblePages!=null&&e.hasOwnProperty(`maxVisiblePages`)&&(n.maxVisiblePages=e.maxVisiblePages,t.oneofs&&(n._maxVisiblePages=`maxVisiblePages`)),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=e.value),e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Pagination`},e})();var Po=V.PlotlyChart=(()=>{function e(e){if(this.selectionMode=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.theme=``,e.prototype.id=``,e.prototype.selectionMode=B.emptyArray,e.prototype.formId=``,e.prototype.spec=``,e.prototype.config=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.theme!=null&&Object.hasOwnProperty.call(e,`theme`)&&t.uint32(50).string(e.theme),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(58).string(e.id),e.selectionMode!=null&&e.selectionMode.length){t.uint32(66).fork();for(let n=0;n<e.selectionMode.length;++n)t.int32(e.selectionMode[n]);t.ldelim()}if(e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(74).string(e.formId),e.spec!=null&&Object.hasOwnProperty.call(e,`spec`)&&t.uint32(82).string(e.spec),e.config!=null&&Object.hasOwnProperty.call(e,`config`)&&t.uint32(90).string(e.config),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.PlotlyChart,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 6:if(a!==2)break;(s=e.string()).length?o.theme=s:delete o.theme;continue;case 7:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 8:if(a===2){o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.selectionMode.push(e.int32());continue}if(a!==0)break;o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]),o.selectionMode.push(e.int32());continue;case 9:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 10:if(a!==2)break;(s=e.string()).length?o.spec=s:delete o.spec;continue;case 11:if(a!==2)break;(s=e.string()).length?o.config=s:delete o.config;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.PlotlyChart)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.PlotlyChart;if(e.theme!=null&&(typeof e.theme!=`string`||e.theme.length)&&(n.theme=String(e.theme)),e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(`.PlotlyC
18hart.selectionMode: array expected`);n.selectionMode=Array(e.selectionMode.length);for(let t=0;t<e.selectionMode.length;++t)switch(e.selectionMode[t]){default:if(typeof e.selectionMode[t]==`number`){n.selectionMode[t]=e.selectionMode[t];break}case`POINTS`:case 0:n.selectionMode[t]=0;break;case`BOX`:case 1:n.selectionMode[t]=1;break;case`LASSO`:case 2:n.selectionMode[t]=2;break}}return e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.spec!=null&&(typeof e.spec!=`string`||e.spec.length)&&(n.spec=String(e.spec)),e.config!=null&&(typeof e.config!=`string`||e.config.length)&&(n.config=String(e.config)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.selectionMode=[]),t.defaults&&(n.theme=``,n.id=``,n.formId=``,n.spec=``,n.config=``),e.theme!=null&&e.hasOwnProperty(`theme`)&&(n.theme=e.theme),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.selectionMode&&e.selectionMode.length){n.selectionMode=Array(e.selectionMode.length);for(let r=0;r<e.selectionMode.length;++r)n.selectionMode[r]=t.enums===String?V.PlotlyChart.SelectionMode[e.selectionMode[r]]===void 0?e.selectionMode[r]:V.PlotlyChart.SelectionMode[e.selectionMode[r]]:e.selectionMode[r]}return e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.spec!=null&&e.hasOwnProperty(`spec`)&&(n.spec=e.spec),e.config!=null&&e.hasOwnProperty(`config`)&&(n.config=e.config),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/PlotlyChart`},e.SelectionMode=(function(){let e={},t=Object.create(e);return t[e[0]=`POINTS`]=0,t[e[1]=`BOX`]=1,t[e[2]=`LASSO`]=2,t})(),e})();V.Progress=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.value=0,e.prototype.text=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(8).uint32(e.value),e.text!=null&&Object.hasOwnProperty.call(e,`text`)&&t.uint32(18).string(e.text),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Progress,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.uint32())?o.value=s:delete o.value;continue;case 2:if(a!==2)break;(s=e.string()).length?o.text=s:delete o.text;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Progress)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Progress;return e.value!=null&&Number(e.value)!==0&&(n.value=e.value>>>0),e.text!=null&&(typeof e.text!=`string`||e.text.length)&&(n.text=String(e.text)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.value=0,n.text=``),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=e.value),e.text!=null&&e.hasOwnProperty(`text`)&&(n.text=e.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Progress`},e})(),V.Radio=(()=>{function e(e){if(this.options=[],this.captions=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.label=``,e.prototype.default=null,e.prototype.options=B.emptyArray,e.prototype.help=``,e.prototype.formId=``,e.prototype.rawValue=null,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.horizontal=!1,e.prototype.labelVisibility=null,e.prototype.captions=B.emptyArray,e.prototype.queryParamKey=null;let t;return Object.defineProperty(e.prototype,`_default`,{get:B.oneOfGetter(t=[`default`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_rawValue`,{get:B.oneOfGetter(t=[`rawValue`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,`default`)&&t.uint32(24).int32(e.default),e.options!=null&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);if(e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(42).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(50).string(e.formId),e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(64).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(72).bool(e.disabled),e.horizontal!=null&&Object.hasOwnProperty.call(e,`horizontal`)&&t.uint32(80).bool(e.horizontal),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(90).fork()).ldelim(),e.captions!=null&&e.captions.length)for(let n=0;n<e.captions.length;++n)t.uint32(98).string(e.captions[n]);if(e.rawValue!=null&&Object.hasOwnProperty.call(e,`rawValue`)&&t.uint32(106).string(e.rawValue),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(114).string(e.queryParamKey),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Radio,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==0)break;o.default=e.int32(),o._default=`default`;continue;case 4:if(a!==2)break;o.options&&o.options.length||(o.options=[]),o.options.push(e.string());continue;case 5:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 6:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 13:if(a!==2)break;o.rawValue=e.string(),o._rawValue=`rawValue`;continue;case 8:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;
18case 9:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 10:if(a!==0)break;(s=e.bool())?o.horizontal=s:delete o.horizontal;continue;case 11:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 12:if(a!==2)break;o.captions&&o.captions.length||(o.captions=[]),o.captions.push(e.string());continue;case 14:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Radio)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Radio;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.default!=null&&(n.default=e.default|0),e.options){if(!Array.isArray(e.options))throw TypeError(`.Radio.options: array expected`);n.options=Array(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=String(e.options[t])}if(e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.rawValue!=null&&(n.rawValue=String(e.rawValue)),e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.horizontal!=null&&e.horizontal&&(n.horizontal=!!e.horizontal),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.Radio.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.captions){if(!Array.isArray(e.captions))throw TypeError(`.Radio.captions: array expected`);n.captions=Array(e.captions.length);for(let t=0;t<e.captions.length;++t)n.captions[t]=String(e.captions[t])}return e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.options=[],n.captions=[]),t.defaults&&(n.id=``,n.label=``,n.help=``,n.formId=``,n.setValue=!1,n.disabled=!1,n.horizontal=!1,n.labelVisibility=null),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.default!=null&&e.hasOwnProperty(`default`)&&(n.default=e.default,t.oneofs&&(n._default=`default`)),e.options&&e.options.length){n.options=Array(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=e.options[t]}if(e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.horizontal!=null&&e.hasOwnProperty(`horizontal`)&&(n.horizontal=e.horizontal),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.captions&&e.captions.length){n.captions=Array(e.captions.length);for(let t=0;t<e.captions.length;++t)n.captions[t]=e.captions[t]}return e.rawValue!=null&&e.hasOwnProperty(`rawValue`)&&(n.rawValue=e.rawValue,t.oneofs&&(n._rawValue=`rawValue`)),e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Radio`},e})(),V.Selectbox=(()=>{function e(e){if(this.options=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.label=``,e.prototype.default=null,e.prototype.options=B.emptyArray,e.prototype.help=``,e.prototype.formId=``,e.prototype.rawValue=null,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.placeholder=``,e.prototype.acceptNewOptions=null,e.prototype.queryParamKey=null,e.prototype.filterMode=0;let t;return Object.defineProperty(e.prototype,`_default`,{get:B.oneOfGetter(t=[`default`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_rawValue`,{get:B.oneOfGetter(t=[`rawValue`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_acceptNewOptions`,{get:B.oneOfGetter(t=[`acceptNewOptions`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,`default`)&&t.uint32(24).int32(e.default),e.options!=null&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);if(e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(42).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(50).string(e.formId),e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(64).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(72).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),e.placeholder!=null&&Object.hasOwnProperty.call(e,`placeholder`)&&t.uint32(90).string(e.placeholder),e.acceptNewOptions!=null&&Object.hasOwnProperty.call(e,`acceptNewOptions`)&&t.uint32(96).bool(e.acceptNewOptions),e.rawValue!=null&&Object.hasOwnProperty.call(e,`rawValue`)&&t.uint32(106).string(e.rawValue),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(114).string(e.queryParamKey),e.filterMode!=null&&Object.hasOwnProperty.call(e,`filterMode`)&&t.uint32(120).int32(e.filterMode),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Selectbox,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==0)break;o.default=e.int32(),o._default=`default`;continue;case 4:if(a!==2)break;o.options&&o.options.length||(o.options=[]),o.options.push(e.string());continue;case 5:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 6:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 13:if(a!==2)break;o.rawValue=e.string(),o._rawValue=`rawValue`;continue;case 8:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;
18case 9:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 10:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 11:if(a!==2)break;(s=e.string()).length?o.placeholder=s:delete o.placeholder;continue;case 12:if(a!==0)break;o.acceptNewOptions=e.bool(),o._acceptNewOptions=`acceptNewOptions`;continue;case 14:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue;case 15:if(a!==0)break;(s=e.int32())?o.filterMode=s:delete o.filterMode;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Selectbox)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Selectbox;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.default!=null&&(n.default=e.default|0),e.options){if(!Array.isArray(e.options))throw TypeError(`.Selectbox.options: array expected`);n.options=Array(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=String(e.options[t])}if(e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.rawValue!=null&&(n.rawValue=String(e.rawValue)),e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.Selectbox.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.placeholder!=null&&(typeof e.placeholder!=`string`||e.placeholder.length)&&(n.placeholder=String(e.placeholder)),e.acceptNewOptions!=null&&(n.acceptNewOptions=!!e.acceptNewOptions),e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),e.filterMode!==0&&(typeof e.filterMode!=`string`||V.streamlit.SelectWidgetFilterMode[e.filterMode]!==0))switch(e.filterMode){default:if(typeof e.filterMode==`number`){n.filterMode=e.filterMode;break}break;case`FILTER_MODE_FUZZY`:case 0:n.filterMode=0;break;case`FILTER_MODE_CONTAINS`:case 1:n.filterMode=1;break;case`FILTER_MODE_PREFIX`:case 2:n.filterMode=2;break;case`FILTER_MODE_NONE`:case 3:n.filterMode=3;break}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.options=[]),t.defaults&&(n.id=``,n.label=``,n.help=``,n.formId=``,n.setValue=!1,n.disabled=!1,n.labelVisibility=null,n.placeholder=``,n.filterMode=t.enums===String?`FILTER_MODE_FUZZY`:0),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.default!=null&&e.hasOwnProperty(`default`)&&(n.default=e.default,t.oneofs&&(n._default=`default`)),e.options&&e.options.length){n.options=Array(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=e.options[t]}return e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.placeholder!=null&&e.hasOwnProperty(`placeholder`)&&(n.placeholder=e.placeholder),e.acceptNewOptions!=null&&e.hasOwnProperty(`acceptNewOptions`)&&(n.acceptNewOptions=e.acceptNewOptions,t.oneofs&&(n._acceptNewOptions=`acceptNewOptions`)),e.rawValue!=null&&e.hasOwnProperty(`rawValue`)&&(n.rawValue=e.rawValue,t.oneofs&&(n._rawValue=`rawValue`)),e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),e.filterMode!=null&&e.hasOwnProperty(`filterMode`)&&(n.filterMode=t.enums===String?V.streamlit.SelectWidgetFilterMode[e.filterMode]===void 0?e.filterMode:V.streamlit.SelectWidgetFilterMode[e.filterMode]:e.filterMode),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Selectbox`},e})();var Fo=V.Skeleton=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.style=0,e.prototype.height=null;let t;return Object.defineProperty(e.prototype,`_height`,{get:B.oneOfGetter(t=[`height`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.style!=null&&Object.hasOwnProperty.call(e,`style`)&&t.uint32(8).int32(e.style),e.height!=null&&Object.hasOwnProperty.call(e,`height`)&&t.uint32(16).int32(e.height),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Skeleton,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.int32())?o.style=s:delete o.style;continue;case 2:if(a!==0)break;
18o.height=e.int32(),o._height=`height`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Skeleton)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Skeleton;if(e.style!==0&&(typeof e.style!=`string`||V.Skeleton.SkeletonStyle[e.style]!==0))switch(e.style){default:if(typeof e.style==`number`){n.style=e.style;break}break;case`ELEMENT`:case 0:n.style=0;break;case`APP`:case 1:n.style=1;break}return e.height!=null&&(n.height=e.height|0),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.style=t.enums===String?`ELEMENT`:0),e.style!=null&&e.hasOwnProperty(`style`)&&(n.style=t.enums===String?V.Skeleton.SkeletonStyle[e.style]===void 0?e.style:V.Skeleton.SkeletonStyle[e.style]:e.style),e.height!=null&&e.hasOwnProperty(`height`)&&(n.height=e.height,t.oneofs&&(n._height=`height`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Skeleton`},e.SkeletonStyle=(function(){let e={},t=Object.create(e);return t[e[0]=`ELEMENT`]=0,t[e[1]=`APP`]=1,t})(),e})(),Io=V.Slider=(()=>{function e(e){if(this.default=[],this.value=[],this.options=[],this.rawValue=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.formId=``,e.prototype.label=``,e.prototype.format=``,e.prototype.dataType=0,e.prototype.default=B.emptyArray,e.prototype.min=0,e.prototype.max=0,e.prototype.step=0,e.prototype.value=B.emptyArray,e.prototype.setValue=!1,e.prototype.options=B.emptyArray,e.prototype.help=``,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.type=0,e.prototype.rawValue=B.emptyArray,e.prototype.queryParamKey=null;let t;return Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(18).string(e.formId),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(26).string(e.label),e.format!=null&&Object.hasOwnProperty.call(e,`format`)&&t.uint32(34).string(e.format),e.dataType!=null&&Object.hasOwnProperty.call(e,`dataType`)&&t.uint32(40).int32(e.dataType),e.default!=null&&e.default.length){t.uint32(50).fork();for(let n=0;n<e.default.length;++n)t.double(e.default[n]);t.ldelim()}if(e.min!=null&&Object.hasOwnProperty.call(e,`min`)&&t.uint32(57).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,`max`)&&t.uint32(65).double(e.max),e.step!=null&&Object.hasOwnProperty.call(e,`step`)&&t.uint32(73).double(e.step),e.value!=null&&e.value.length){t.uint32(82).fork();for(let n=0;n<e.value.length;++n)t.double(e.value[n]);t.ldelim()}if(e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(88).bool(e.setValue),e.options!=null&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(106).string(e.options[n]);if(e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(114).string(e.help),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(120).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(130).fork()).ldelim(),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(136).int32(e.type),e.rawValue!=null&&e.rawValue.length)for(let n=0;n<e.rawValue.length;++n)t.uint32(146).string(e.rawValue[n]);if(e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(154).string(e.queryParamKey),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Slider,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 3:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 4:if(a!==2)break;(s=e.string()).length?o.format=s:delete o.format;continue;case 5:if(a!==0)break;(s=e.int32())?o.dataType=s:delete o.dataType;continue;case 6:if(a===2){o.default&&o.default.length||(o.default=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.default.push(e.double());continue}if(a!==1)break;o.default&&o.default.length||(o.default=[]),o.default.push(e.double());continue;case 7:if(a!==1)break;(s=e.double())===0?delete o.min:o.min=s;continue;case 8:if(a!==1)break;(s=e.double())===0?delete o.max:o.max=s;continue;
18case 9:if(a!==1)break;(s=e.double())===0?delete o.step:o.step=s;continue;case 10:if(a===2){o.value&&o.value.length||(o.value=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.value.push(e.double());continue}if(a!==1)break;o.value&&o.value.length||(o.value=[]),o.value.push(e.double());continue;case 11:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 13:if(a!==2)break;o.options&&o.options.length||(o.options=[]),o.options.push(e.string());continue;case 14:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 15:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 16:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 17:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue;case 18:if(a!==2)break;o.rawValue&&o.rawValue.length||(o.rawValue=[]),o.rawValue.push(e.string());continue;case 19:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Slider)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Slider;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.format!=null&&(typeof e.format!=`string`||e.format.length)&&(n.format=String(e.format)),e.dataType!==0&&(typeof e.dataType!=`string`||V.Slider.DataType[e.dataType]!==0))switch(e.dataType){default:if(typeof e.dataType==`number`){n.dataType=e.dataType;break}break;case`INT`:case 0:n.dataType=0;break;case`FLOAT`:case 1:n.dataType=1;break;case`DATETIME`:case 2:n.dataType=2;break;case`DATE`:case 3:n.dataType=3;break;case`TIME`:case 4:n.dataType=4;break}if(e.default){if(!Array.isArray(e.default))throw TypeError(`.Slider.default: array expected`);n.default=Array(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=Number(e.default[t])}if(e.min!=null&&Number(e.min)!==0&&(n.min=Number(e.min)),e.max!=null&&Number(e.max)!==0&&(n.max=Number(e.max)),e.step!=null&&Number(e.step)!==0&&(n.step=Number(e.step)),e.value){if(!Array.isArray(e.value))throw TypeError(`.Slider.value: array expected`);n.value=Array(e.value.length);for(let t=0;t<e.value.length;++t)n.value[t]=Number(e.value[t])}if(e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.options){if(!Array.isArray(e.options))throw TypeError(`.Slider.options: array expected`);n.options=Array(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=String(e.options[t])}if(e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.Slider.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.type!==0&&(typeof e.type!=`string`||V.Slider.Type[e.type]!==0))switch(e.type){default:if(typeof e.type==`number`){n.type=e.type;break}break;case`UNSPECIFIED`:case 0:n.type=0;break;case`SLIDER`:case 1:n.type=1;break;case`SELECT_SLIDER`:case 2:n.type=2;break}if(e.rawValue){if(!Array.isArray(e.rawValue))throw TypeError(`.Slider.rawValue: array expected`);n.rawValue=Array(e.rawValue.length);for(let t=0;t<e.rawValue.length;++t)n.rawValue[t]=String(e.rawValue[t])}return e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.default=[],n.value=[],n.options=[],n.rawValue=[]),t.defaults&&(n.id=``,n.formId=``,n.label=``,n.format=``,n.dataType=t.enums===String?`INT`:0,n.min=0,n.max=0,n.step=0,n.setValue=!1,n.help=``,n.disabled=!1,n.labelVisibility=null,n.type=t.enums===String?`UNSPECIFIED`:0),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.format!=null&&e.hasOwnProperty(`format`)&&(n.format=e.format),e.dataType!=null&&e.hasOwnProperty(`dataType`)&&(n.dataType=t.enums===String?V.Slider.DataType[e.dataType]===void 0?e.dataType:V.Slider.DataType[e.dataType]:e.dataType),e.default&&e.default.length){n.default=Array(e.default.length);for(let r=0;r<e.default.length;++r)n.default[r]=t.json&&!isFinite(e.default[r])?String(e.default[r]):e.default[r]}if(e.min!=null&&e.hasOwnProperty(`min`)&&(n.min=t.json&&!isFinite(e.min)?String(e.min):e.min),e.max!=null&&e.hasOwnProperty(`max`)&&(n.max=t.json&&!isFinite(e.max)?String(e.max):e.max),e.step!=null&&e.hasOwnProperty(`step`)&&(n.step=t.json&&!isFinite(e.step)?String(e.step):e.step),e.value&&e.value.length){n.value=Array(e.value.length);for(let r=0;r<e.value.length;++r)n.value[r]=t.json&&!isFinite(e.value[r])?String(e.value[r]):e.value[r]}if(e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.options&&e.options.length){n.options=Array(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=e.options[t]}if(e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=t.enums===String?V.Slider.Type[e.type]===void 0?e.type:V.Slider.Type[e.type]:e.type),e.rawValue&&e.rawValue.length){n.rawValue=Array(e.rawValue.length);for(let t=0;t<e.rawValue.length;++t)n.rawValue[t]=e.rawValue[t]}return e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Slider`},e.DataType=(function(){let e={},t=Object.create(e);return t[e[0]=`INT`]=0,t[e[1]=`FLOAT`]=1,t[e[2]=`DATETIME`]=2,t[e[3]=`DATE`]=3,t[e[4]=`TIME`]=4,t})(),e.Type=(function(){let e={},t=Object.create(e);return t[e[0]=`UNSPECIFIED`]=0,t[e[1]=`SLIDER`]=1,t[e[2]=`SELECT_SLIDER`]=2,t})(),e})();V.Snow=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.show=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.show!=null&&Object.hasOwnProperty.call(e,`show`)&&t.uint32(8).bool(e.show),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Snow,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.bool())?o.show=s:delete o.show;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Snow)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Snow;return e.show!=null&&e.show&&(n.show=!!e.show),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.show=!1),e.show!=null&&e.hasOwnProperty(`show`)&&(n.show=e.show),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Snow`},e})(),V.Space=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Space;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}e.skipType(i&7,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Space)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);return new V.Space},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Space`},e})(),V.Spinner=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.text=``,e.prototype.cache=!1,e.prototype.showTime=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.text!=null&&Object.hasOwnProperty.call(e,`text`)&&t.uint32(10).string(e.text),e.cache!=null&&Object.hasOwnProperty.call(e,`cache`)&&t.uint32(16).bool(e.cache),e.showTime!=null&&Object.hasOwnProperty.call(e,`showTime`)&&t.uint32(24).bool(e.showTime),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Spinner,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.text=s:delete o.text;continue;case 2:if(a!==0)break;(s=e.bool())?o.cache=s:delete o.cache;continue;case 3:if(a!==0)break;(s=e.bool())?o.showTime=s:delete o.showTime;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Spinner)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Spinner;return e.text!=null&&(typeof e.text!=`string`||e.text.length)&&(n.text=String(e.text)),e.cache!=null&&e.cache&&(n.cache=!!e.cache),e.showTime!=null&&e.showTime&&(n.showTime=!!e.showTime),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.text=``,n.cache=!1,n.showTime=!1),e.text!=null&&e.hasOwnProperty(`text`)&&(n.text=e.text),e.cache!=null&&e.hasOwnProperty(`cache`)&&(n.cache=e.cache),e.showTime!=null&&e.hasOwnProperty(`showTime`)&&(n.showTime=e.showTime),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Spinner`},e})();var Lo=V.Table=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.arrowData=null,e.prototype.borderMode=0,e.prototype.hideIndex=!1,e.prototype.hideHeader=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.arrowData!=null&&Object.hasOwnProperty.call(e,`arrowData`)&&V.ArrowData.encode(e.arrowData,t.uint32(10).fork()).ldelim(),e.borderMode!=null&&Object.hasOwnProperty.call(e,`borderMode`)&&t.uint32(16).int32(e.borderMode),e.hideIndex!=null&&Object.hasOwnProperty.call(e,`hideIndex`)&&t.uint32(24).bool(e.hideIndex),e.hideHeader!=null&&Object.hasOwnProperty.call(e,`hideHeader`)&&t.uint32(32).bool(e.hideHeader),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Table,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.arrowData=V.ArrowData.decode(e,e.uint32(),void 0,r+1,o.arrowData);continue;case 2:if(a!==0)break;(s=e.int32())?o.borderMode=s:delete o.borderMode;continue;case 3:if(a!==0)break;(s=e.bool())?o.hideIndex=s:delete o.hideIndex;continue;case 4:if(a!==0)break;(s=e.bool())?o.hideHeader=s:delete o.hideHeader;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Table)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Table;if(e.arrowData!=null){if(typeof e.arrowData!=`object`)throw TypeError(`.Table.arrowData: object expected`);n.arrowData=V.ArrowData.fromObject(e.arrowData,t+1)}if(e.borderMode!==0&&(typeof e.borderMode!=`string`||V.Table.BorderMode[e.borderMode]!==0))switch(e.borderMode){default:if(typeof e.borderMode==`number`){n.borderMode=e.borderMode;break}break;case`ALL`:case 0:n.borderMode=0;break;case`NONE`:case 1:n.borderMode=1;break;case`HORIZONTAL`:case 2:n.borderMode=2;break}return e.hideIndex!=null&&e.hideIndex&&(n.hideIndex=!!e.hideIndex),e.hideHeader!=null&&e.hideHeader&&(n.hideHeader=!!e.hideHeader),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.arrowData=null,n.borderMode=t.enums===String?`ALL`:0,n.hideIndex=!1,n.hideHeader=!1),e.arrowData!=null&&e.hasOwnProperty(`arrowData`)&&(n.arrowData=V.ArrowData.toObject(e.arrowData,t)),e.borderMode!=null&&e.hasOwnProperty(`borderMode`)&&(n.borderMode=t.enums===String?V.Table.BorderMode[e.borderMode]===void 0?e.borderMode:V.Table.BorderMode[e.borderMode]:e.borderMode),e.hideIndex!=null&&e.hasOwnProperty(`hideIndex`)&&(n.hideIndex=e.hideIndex),e.hideHeader!=null&&e.hasOwnProperty(`hideHeader`)&&(n.hideHeader=e.hideHeader),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Table`},e.BorderMode=(function(){let e={},t=Object.create(e);return t[e[0]=`ALL`]=0,t[e[1]=`NONE`]=1,t[e[2]=`HORIZONTAL`]=2,t})(),e})();V.Text=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.body=``,e.prototype.help=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.body!=null&&Object.hasOwnProperty.call(e,`body`)&&t.uint32(10).string(e.body),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(18).string(e.help),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Text,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.body=s:delete o.body;continue;case 2:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Text)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Text;return e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=String(e.body)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.body=``,n.help=``),e.body!=null&&e.hasOwnProperty(`body`)&&(n.body=e.body),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Text`},e})(),V.TextArea=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.label=``,e.prototype.default=null,e.prototype.maxChars=0,
18e.prototype.help=``,e.prototype.formId=``,e.prototype.value=null,e.prototype.setValue=!1,e.prototype.placeholder=``,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.queryParamKey=null;let t;return Object.defineProperty(e.prototype,`_default`,{get:B.oneOfGetter(t=[`default`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_value`,{get:B.oneOfGetter(t=[`value`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,`default`)&&t.uint32(26).string(e.default),e.maxChars!=null&&Object.hasOwnProperty.call(e,`maxChars`)&&t.uint32(40).uint32(e.maxChars),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(50).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(58).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(66).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(72).bool(e.setValue),e.placeholder!=null&&Object.hasOwnProperty.call(e,`placeholder`)&&t.uint32(82).string(e.placeholder),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(88).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(98).fork()).ldelim(),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(106).string(e.queryParamKey),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.TextArea,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.default=e.string(),o._default=`default`;continue;case 5:if(a!==0)break;(s=e.uint32())?o.maxChars=s:delete o.maxChars;continue;case 6:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 7:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 8:if(a!==2)break;o.value=e.string(),o._value=`value`;continue;case 9:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 10:if(a!==2)break;(s=e.string()).length?o.placeholder=s:delete o.placeholder;continue;case 11:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 12:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 13:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.TextArea)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.TextArea;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.default!=null&&(n.default=String(e.default)),e.maxChars!=null&&Number(e.maxChars)!==0&&(n.maxChars=e.maxChars>>>0),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.value!=null&&(n.value=String(e.value)),e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.placeholder!=null&&(typeof e.placeholder!=`string`||e.placeholder.length)&&(n.placeholder=String(e.placeholder)),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.TextArea.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``,n.label=``,n.maxChars=0,n.help=``,n.formId=``,n.setValue=!1,n.placeholder=``,n.disabled=!1,n.labelVisibility=null),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.default!=null&&e.hasOwnProperty(`default`)&&(n.default=e.default,t.oneofs&&(n._default=`default`)),e.maxChars!=null&&e.hasOwnProperty(`maxChars`)&&(n.maxChars=e.maxChars),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=e.value,t.oneofs&&(n._value=`value`)),e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.placeholder!=null&&e.hasOwnProperty(`placeholder`)&&(n.placeholder=e.placeholder),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/TextArea`},e})();var Ro=V.TextInput=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.label=``,e.prototype.default=null,e.prototype.type=0,e.prototype.maxChars=0,e.prototype.help=``,e.prototype.formId=``,e.prototype.value=null,e.prototype.setValue=!1,e.prototype.autocomplete=``,e.prototype.placeholder=``,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.icon=``,e.prototype.queryParamKey=null;let t;return Object.defineProperty(e.prototype,`_default`,{get:B.oneOfGetter(t=[`default`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_value`,{get:B.oneOfGetter(t=[`value`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,`default`)&&t.uint32(26).string(e.default),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(32).int32(e.type),e.maxChars!=null&&Object.hasOwnProperty.call(e,`maxChars`)&&t.uint32(40).uint32(e.maxChars),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(50).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(58).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(66).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(72).bool(e.setValue),e.autocomplete!=null&&Object.hasOwnProperty.call(e,`autocomplete`)&&t.uint32(82).string(e.autocomplete),e.placeholder!=null&&Object.hasOwnProperty.call(e,`placeholder`)&&t.uint32(90).string(e.placeholder),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(96).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(106).fork()).ldelim(),e.icon!=null&&Object.hasOwnProperty.call(e,`icon`)&&t.uint32(114).string(e.icon),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(122).string(e.queryParamKey),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.TextInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.default=e.string(),o._default=`default`;continue;case 4:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue;case 5:if(a!==0)break;(s=e.uint32())?o.maxChars=s:delete o.maxChars;continue;case 6:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 7:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 8:if(a!==2)break;o.value=e.string(),o._value=`value`;continue;
18case 9:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 10:if(a!==2)break;(s=e.string()).length?o.autocomplete=s:delete o.autocomplete;continue;case 11:if(a!==2)break;(s=e.string()).length?o.placeholder=s:delete o.placeholder;continue;case 12:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 13:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 14:if(a!==2)break;(s=e.string()).length?o.icon=s:delete o.icon;continue;case 15:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.TextInput)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.TextInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.default!=null&&(n.default=String(e.default)),e.type!==0&&(typeof e.type!=`string`||V.TextInput.Type[e.type]!==0))switch(e.type){default:if(typeof e.type==`number`){n.type=e.type;break}break;case`DEFAULT`:case 0:n.type=0;break;case`PASSWORD`:case 1:n.type=1;break}if(e.maxChars!=null&&Number(e.maxChars)!==0&&(n.maxChars=e.maxChars>>>0),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.value!=null&&(n.value=String(e.value)),e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.autocomplete!=null&&(typeof e.autocomplete!=`string`||e.autocomplete.length)&&(n.autocomplete=String(e.autocomplete)),e.placeholder!=null&&(typeof e.placeholder!=`string`||e.placeholder.length)&&(n.placeholder=String(e.placeholder)),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.TextInput.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=String(e.icon)),e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.id=``,n.label=``,n.type=t.enums===String?`DEFAULT`:0,n.maxChars=0,n.help=``,n.formId=``,n.setValue=!1,n.autocomplete=``,n.placeholder=``,n.disabled=!1,n.labelVisibility=null,n.icon=``),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.default!=null&&e.hasOwnProperty(`default`)&&(n.default=e.default,t.oneofs&&(n._default=`default`)),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=t.enums===String?V.TextInput.Type[e.type]===void 0?e.type:V.TextInput.Type[e.type]:e.type),e.maxChars!=null&&e.hasOwnProperty(`maxChars`)&&(n.maxChars=e.maxChars),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=e.value,t.oneofs&&(n._value=`value`)),e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.autocomplete!=null&&e.hasOwnProperty(`autocomplete`)&&(n.autocomplete=e.autocomplete),e.placeholder!=null&&e.hasOwnProperty(`placeholder`)&&(n.placeholder=e.placeholder),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.icon!=null&&e.hasOwnProperty(`icon`)&&(n.icon=e.icon),e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/TextInput`},e.Type=(function(){let e={},t=Object.create(e);return t[e[0]=`DEFAULT`]=0,t[e[1]=`PASSWORD`]=1,t})(),e})();V.TimeInput=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.id=``,e.prototype.label=``,e.prototype.default=null,e.prototype.help=``,e.prototype.formId=``,e.prototype.value=null,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.step=B.Long?B.Long.fromBits(0,0,!1):0,e.prototype.queryParamKey=null;let t;return Object.defineProperty(e.prototype,`_default`,{get:B.oneOfGetter(t=[`default`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_value`,{get:B.oneOfGetter(t=[`value`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_queryParamKey`,{get:B.oneOfGetter(t=[`queryParamKey`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,`default`)&&t.uint32(26).string(e.default),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(50).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,`setValue`)&&t.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,`disabled`)&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,`labelVisibility`)&&V.LabelVisibility.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),e.step!=null&&Object.hasOwnProperty.call(e,`step`)&&t.uint32(80).int64(e.step),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(90).string(e.queryParamKey),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.TimeInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.default=e.string(),o._default=`default`;continue;case 4:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==2)break;o.value=e.string(),o._value=`value`;continue;case 7:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 8:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;
18case 9:if(a!==2)break;o.labelVisibility=V.LabelVisibility.decode(e,e.uint32(),void 0,r+1,o.labelVisibility);continue;case 10:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.step=s:delete o.step;continue;case 11:if(a!==2)break;o.queryParamKey=e.string(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.TimeInput)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.TimeInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.default!=null&&(n.default=String(e.default)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),e.value!=null&&(n.value=String(e.value)),e.setValue!=null&&e.setValue&&(n.setValue=!!e.setValue),e.disabled!=null&&e.disabled&&(n.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!=`object`)throw TypeError(`.TimeInput.labelVisibility: object expected`);n.labelVisibility=V.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.step!=null&&(typeof e.step==`object`?e.step.low||e.step.high:Number(e.step)!==0)&&(B.Long?(n.step=B.Long.fromValue(e.step)).unsigned=!1:typeof e.step==`string`?n.step=parseInt(e.step,10):typeof e.step==`number`?n.step=e.step:typeof e.step==`object`&&(n.step=new B.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber())),e.queryParamKey!=null&&(n.queryParamKey=String(e.queryParamKey)),n},e.toObject=function(e,t){t||={};let n={};if(t.defaults)if(n.id=``,n.label=``,n.help=``,n.formId=``,n.setValue=!1,n.disabled=!1,n.labelVisibility=null,B.Long){let e=new B.Long(0,0,!1);n.step=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.step=t.longs===String?`0`:0;return e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.default!=null&&e.hasOwnProperty(`default`)&&(n.default=e.default,t.oneofs&&(n._default=`default`)),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=e.value,t.oneofs&&(n._value=`value`)),e.setValue!=null&&e.hasOwnProperty(`setValue`)&&(n.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty(`disabled`)&&(n.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty(`labelVisibility`)&&(n.labelVisibility=V.LabelVisibility.toObject(e.labelVisibility,t)),e.step!=null&&e.hasOwnProperty(`step`)&&(typeof e.step==`number`?n.step=t.longs===String?String(e.step):e.step:n.step=t.longs===String?B.Long.prototype.toString.call(e.step):t.longs===Number?new B.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber():e.step),e.queryParamKey!=null&&e.hasOwnProperty(`queryParamKey`)&&(n.queryParamKey=e.queryParamKey,t.oneofs&&(n._queryParamKey=`queryParamKey`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/TimeInput`},e})(),V.Toast=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.body=``,e.prototype.icon=``,e.prototype.duration=null;let t;return Object.defineProperty(e.prototype,`_duration`,{get:B.oneOfGetter(t=[`duration`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.body!=null&&Object.hasOwnProperty.call(e,`body`)&&t.uint32(10).string(e.body),e.icon!=null&&Object.hasOwnProperty.call(e,`icon`)&&t.uint32(18).string(e.icon),e.duration!=null&&Object.hasOwnProperty.call(e,`duration`)&&t.uint32(24).int32(e.duration),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Toast,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.body=s:delete o.body;continue;case 2:if(a!==2)break;(s=e.string()).length?o.icon=s:delete o.icon;continue;case 3:if(a!==0)break;o.duration=e.int32(),o._duration=`duration`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Toast)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Toast;return e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=String(e.body)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=String(e.icon)),e.duration!=null&&(n.duration=e.duration|0),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.body=``,n.icon=``),e.body!=null&&e.hasOwnProperty(`body`)&&(n.body=e.body),e.icon!=null&&e.hasOwnProperty(`icon`)&&(n.icon=e.icon),e.duration!=null&&e.hasOwnProperty(`duration`)&&(n.duration=e.duration,t.oneofs&&(n._duration=`duration`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Toast`},e})(),V.VegaLiteChart=(()=>{function e(e){if(this.datasets=[],this.selectionMode=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.spec=``,e.prototype.data=null,e.prototype.datasets=B.emptyArray,e.prototype.useContainerWidth=!1,e.prototype.theme=``,e.prototype.id=``,e.prototype.selectionMode=B.emptyArray,e.prototype.formId=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.spec!=null&&Object.hasOwnProperty.call(e,`spec`)&&t.uint32(10).string(e.spec),e.data!=null&&Object.hasOwnProperty.call(e,`data`)&&V.ArrowData.encode(e.data,t.uint32(18).fork()).ldelim(),e.datasets!=null&&e.datasets.length)for(let n=0;n<e.datasets.length;++n)V.ArrowNamedDataSet.encode(e.datasets[n],t.uint32(34).fork()).ldelim();if(e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,`useContainerWidth`)&&t.uint32(40).bool(e.useContainerWidth),e.theme!=null&&Object.hasOwnProperty.call(e,`theme`)&&t.uint32(50).string(e.theme),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(58).string(e.id),e.selectionMode!=null&&e.selectionMode.length)for(let n=0;n<e.selectionMode.length;++n)t.uint32(66).string(e.selectionMode[n]);if(e.formId!=null&&Object.hasOwnProperty.call(e,`formId`)&&t.uint32(74).string(e.formId),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.VegaLiteChart,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.spec=s:delete o.spec;continue;case 2:if(a!==2)break;o.data=V.ArrowData.decode(e,e.uint32(),void 0,r+1,o.data);continue;case 4:if(a!==2)break;o.datasets&&o.datasets.length||(o.datasets=[]),o.datasets.push(V.ArrowNamedDataSet.decode(e,e.uint32(),void 0,r+1));continue;case 5:if(a!==0)break;(s=e.bool())?o.useContainerWidth=s:delete o.useContainerWidth;continue;case 6:if(a!==2)break;(s=e.string()).length?o.theme=s:delete o.theme;continue;case 7:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 8:if(a!==2)break;o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]),o.selectionMode.push(e.string());continue;
18case 9:if(a!==2)break;(s=e.string()).length?o.formId=s:delete o.formId;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.VegaLiteChart)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.VegaLiteChart;if(e.spec!=null&&(typeof e.spec!=`string`||e.spec.length)&&(n.spec=String(e.spec)),e.data!=null){if(typeof e.data!=`object`)throw TypeError(`.VegaLiteChart.data: object expected`);n.data=V.ArrowData.fromObject(e.data,t+1)}if(e.datasets){if(!Array.isArray(e.datasets))throw TypeError(`.VegaLiteChart.datasets: array expected`);n.datasets=Array(e.datasets.length);for(let r=0;r<e.datasets.length;++r){if(typeof e.datasets[r]!=`object`)throw TypeError(`.VegaLiteChart.datasets: object expected`);n.datasets[r]=V.ArrowNamedDataSet.fromObject(e.datasets[r],t+1)}}if(e.useContainerWidth!=null&&e.useContainerWidth&&(n.useContainerWidth=!!e.useContainerWidth),e.theme!=null&&(typeof e.theme!=`string`||e.theme.length)&&(n.theme=String(e.theme)),e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(`.VegaLiteChart.selectionMode: array expected`);n.selectionMode=Array(e.selectionMode.length);for(let t=0;t<e.selectionMode.length;++t)n.selectionMode[t]=String(e.selectionMode[t])}return e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=String(e.formId)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.datasets=[],n.selectionMode=[]),t.defaults&&(n.spec=``,n.data=null,n.useContainerWidth=!1,n.theme=``,n.id=``,n.formId=``),e.spec!=null&&e.hasOwnProperty(`spec`)&&(n.spec=e.spec),e.data!=null&&e.hasOwnProperty(`data`)&&(n.data=V.ArrowData.toObject(e.data,t)),e.datasets&&e.datasets.length){n.datasets=Array(e.datasets.length);for(let r=0;r<e.datasets.length;++r)n.datasets[r]=V.ArrowNamedDataSet.toObject(e.datasets[r],t)}if(e.useContainerWidth!=null&&e.hasOwnProperty(`useContainerWidth`)&&(n.useContainerWidth=e.useContainerWidth),e.theme!=null&&e.hasOwnProperty(`theme`)&&(n.theme=e.theme),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.selectionMode&&e.selectionMode.length){n.selectionMode=Array(e.selectionMode.length);for(let t=0;t<e.selectionMode.length;++t)n.selectionMode[t]=e.selectionMode[t]}return e.formId!=null&&e.hasOwnProperty(`formId`)&&(n.formId=e.formId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/VegaLiteChart`},e})(),V.SubtitleTrack=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.label=``,e.prototype.url=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(10).string(e.label),e.url!=null&&Object.hasOwnProperty.call(e,`url`)&&t.uint32(18).string(e.url),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.SubtitleTrack,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 2:if(a!==2)break;(s=e.string()).length?o.url=s:delete o.url;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.SubtitleTrack)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.SubtitleTrack;return e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=String(e.url)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.label=``,n.url=``),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.url!=null&&e.hasOwnProperty(`url`)&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/SubtitleTrack`},e})();var zo=V.Video=(()=>{function e(e){if(this.subtitles=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.url=``,e.prototype.startTime=0,e.prototype.type=0,e.prototype.subtitles=B.emptyArray,e.prototype.endTime=0,e.prototype.loop=!1,e.prototype.autoplay=!1,e.prototype.muted=!1,e.prototype.id=``,e.prototype.widthConfig=null;let t;return Object.defineProperty(e.prototype,`_widthConfig`,{get:B.oneOfGetter(t=[`widthConfig`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.startTime!=null&&Object.hasOwnProperty.call(e,`startTime`)&&t.uint32(24).int32(e.startTime),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(40).int32(e.type),e.url!=null&&Object.hasOwnProperty.call(e,`url`)&&t.uint32(50).string(e.url),e.subtitles!=null&&e.subtitles.length)for(let n=0;n<e.subtitles.length;++n)V.SubtitleTrack.encode(e.subtitles[n],t.uint32(58).fork()).ldelim();if(e.endTime!=null&&Object.hasOwnProperty.call(e,`endTime`)&&t.uint32(64).int32(e.endTime),e.loop!=null&&Object.hasOwnProperty.call(e,`loop`)&&t.uint32(72).bool(e.loop),e.autoplay!=null&&Object.hasOwnProperty.call(e,`autoplay`)&&t.uint32(80).bool(e.autoplay),e.muted!=null&&Object.hasOwnProperty.call(e,`muted`)&&t.uint32(88).bool(e.muted),e.id!=null&&Object.hasOwnProperty.call(e,`id`)&&t.uint32(98).string(e.id),e.widthConfig!=null&&Object.hasOwnProperty.call(e,`widthConfig`)&&V.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(106).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Video,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 6:if(a!==2)break;(s=e.string()).length?o.url=s:delete o.url;continue;case 3:if(a!==0)break;(s=e.int32())?o.startTime=s:delete o.startTime;continue;case 5:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue;case 7:if(a!==2)break;o.subtitles&&o.subtitles.length||(o.subtitles=[]),o.subtitles.push(V.SubtitleTrack.decode(e,e.uint32(),void 0,r+1));continue;case 8:if(a!==0)break;(s=e.int32())?o.endTime=s:delete o.endTime;continue;
18case 9:if(a!==0)break;(s=e.bool())?o.loop=s:delete o.loop;continue;case 10:if(a!==0)break;(s=e.bool())?o.autoplay=s:delete o.autoplay;continue;case 11:if(a!==0)break;(s=e.bool())?o.muted=s:delete o.muted;continue;case 12:if(a!==2)break;(s=e.string()).length?o.id=s:delete o.id;continue;case 13:if(a!==2)break;o.widthConfig=V.streamlit.WidthConfig.decode(e,e.uint32(),void 0,r+1,o.widthConfig),o._widthConfig=`widthConfig`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Video)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Video;if(e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=String(e.url)),e.startTime!=null&&Number(e.startTime)!==0&&(n.startTime=e.startTime|0),e.type!==0&&(typeof e.type!=`string`||V.Video.Type[e.type]!==0))switch(e.type){default:if(typeof e.type==`number`){n.type=e.type;break}break;case`UNUSED`:case 0:n.type=0;break;case`NATIVE`:case 1:n.type=1;break;case`YOUTUBE_IFRAME`:case 2:n.type=2;break}if(e.subtitles){if(!Array.isArray(e.subtitles))throw TypeError(`.Video.subtitles: array expected`);n.subtitles=Array(e.subtitles.length);for(let r=0;r<e.subtitles.length;++r){if(typeof e.subtitles[r]!=`object`)throw TypeError(`.Video.subtitles: object expected`);n.subtitles[r]=V.SubtitleTrack.fromObject(e.subtitles[r],t+1)}}if(e.endTime!=null&&Number(e.endTime)!==0&&(n.endTime=e.endTime|0),e.loop!=null&&e.loop&&(n.loop=!!e.loop),e.autoplay!=null&&e.autoplay&&(n.autoplay=!!e.autoplay),e.muted!=null&&e.muted&&(n.muted=!!e.muted),e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=String(e.id)),e.widthConfig!=null){if(typeof e.widthConfig!=`object`)throw TypeError(`.Video.widthConfig: object expected`);n.widthConfig=V.streamlit.WidthConfig.fromObject(e.widthConfig,t+1)}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.subtitles=[]),t.defaults&&(n.startTime=0,n.type=t.enums===String?`UNUSED`:0,n.url=``,n.endTime=0,n.loop=!1,n.autoplay=!1,n.muted=!1,n.id=``),e.startTime!=null&&e.hasOwnProperty(`startTime`)&&(n.startTime=e.startTime),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=t.enums===String?V.Video.Type[e.type]===void 0?e.type:V.Video.Type[e.type]:e.type),e.url!=null&&e.hasOwnProperty(`url`)&&(n.url=e.url),e.subtitles&&e.subtitles.length){n.subtitles=Array(e.subtitles.length);for(let r=0;r<e.subtitles.length;++r)n.subtitles[r]=V.SubtitleTrack.toObject(e.subtitles[r],t)}return e.endTime!=null&&e.hasOwnProperty(`endTime`)&&(n.endTime=e.endTime),e.loop!=null&&e.hasOwnProperty(`loop`)&&(n.loop=e.loop),e.autoplay!=null&&e.hasOwnProperty(`autoplay`)&&(n.autoplay=e.autoplay),e.muted!=null&&e.hasOwnProperty(`muted`)&&(n.muted=e.muted),e.id!=null&&e.hasOwnProperty(`id`)&&(n.id=e.id),e.widthConfig!=null&&e.hasOwnProperty(`widthConfig`)&&(n.widthConfig=V.streamlit.WidthConfig.toObject(e.widthConfig,t),t.oneofs&&(n._widthConfig=`widthConfig`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Video`},e.Type=(function(){let e={},t=Object.create(e);return t[e[0]=`UNUSED`]=0,t[e[1]=`NATIVE`]=1,t[e[2]=`YOUTUBE_IFRAME`]=2,t})(),e})();V.Transient=(()=>{function e(e){if(this.elements=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.elements=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.elements!=null&&e.elements.length)for(let n=0;n<e.elements.length;++n)V.Element.encode(e.elements[n],t.uint32(10).fork()).ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Transient;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.elements&&o.elements.length||(o.elements=[]),o.elements.push(V.Element.decode(e,e.uint32(),void 0,r+1));continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Transient)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Transient;if(e.elements){if(!Array.isArray(e.elements))throw TypeError(`.Transient.elements: array expected`);n.elements=Array(e.elements.length);for(let r=0;r<e.elements.length;++r){if(typeof e.elements[r]!=`object`)throw TypeError(`.Transient.elements: object expected`);n.elements[r]=V.Element.fromObject(e.elements[r],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.elements=[]),e.elements&&e.elements.length){n.elements=Array(e.elements.length);for(let r=0;r<e.elements.length;++r)n.elements[r]=V.Element.toObject(e.elements[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Transient`},e})();var Bo=V.ForwardMsg=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.hash=``,e.prototype.metadata=null,e.prototype.newSession=null,e.prototype.delta=null,e.prototype.pageInfoChanged=null,e.prototype.page
18ConfigChanged=null,e.prototype.scriptFinished=null,e.prototype.gitInfoChanged=null,e.prototype.pageProfile=null,e.prototype.sessionStatusChanged=null,e.prototype.sessionEvent=null,e.prototype.navigation=null,e.prototype.pageNotFound=null,e.prototype.fileUrlsResponse=null,e.prototype.autoRerun=null,e.prototype.logo=null,e.prototype.authRedirect=null,e.prototype.parentMessage=null,e.prototype.refHash=null,e.prototype.heartbeatAck=null,e.prototype.backendOperationResponse=null,e.prototype.debugLastBackmsgId=``;let t;return Object.defineProperty(e.prototype,`type`,{get:B.oneOfGetter(t=[`newSession`,`delta`,`pageInfoChanged`,`pageConfigChanged`,`scriptFinished`,`gitInfoChanged`,`pageProfile`,`sessionStatusChanged`,`sessionEvent`,`navigation`,`pageNotFound`,`fileUrlsResponse`,`autoRerun`,`logo`,`authRedirect`,`parentMessage`,`refHash`,`heartbeatAck`,`backendOperationResponse`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.hash!=null&&Object.hasOwnProperty.call(e,`hash`)&&t.uint32(10).string(e.hash),e.metadata!=null&&Object.hasOwnProperty.call(e,`metadata`)&&V.ForwardMsgMetadata.encode(e.metadata,t.uint32(18).fork()).ldelim(),e.newSession!=null&&Object.hasOwnProperty.call(e,`newSession`)&&V.NewSession.encode(e.newSession,t.uint32(34).fork()).ldelim(),e.delta!=null&&Object.hasOwnProperty.call(e,`delta`)&&V.Delta.encode(e.delta,t.uint32(42).fork()).ldelim(),e.scriptFinished!=null&&Object.hasOwnProperty.call(e,`scriptFinished`)&&t.uint32(48).int32(e.scriptFinished),e.sessionStatusChanged!=null&&Object.hasOwnProperty.call(e,`sessionStatusChanged`)&&V.SessionStatus.encode(e.sessionStatusChanged,t.uint32(74).fork()).ldelim(),e.sessionEvent!=null&&Object.hasOwnProperty.call(e,`sessionEvent`)&&V.SessionEvent.encode(e.sessionEvent,t.uint32(82).fork()).ldelim(),e.refHash!=null&&Object.hasOwnProperty.call(e,`refHash`)&&t.uint32(90).string(e.refHash),e.pageInfoChanged!=null&&Object.hasOwnProperty.call(e,`pageInfoChanged`)&&V.PageInfo.encode(e.pageInfoChanged,t.uint32(98).fork()).ldelim(),e.pageConfigChanged!=null&&Object.hasOwnProperty.call(e,`pageConfigChanged`)&&V.PageConfig.encode(e.pageConfigChanged,t.uint32(106).fork()).ldelim(),e.gitInfoChanged!=null&&Object.hasOwnProperty.call(e,`gitInfoChanged`)&&V.GitInfo.encode(e.gitInfoChanged,t.uint32(114).fork()).ldelim(),e.pageNotFound!=null&&Object.hasOwnProperty.call(e,`pageNotFound`)&&V.PageNotFound.encode(e.pageNotFound,t.uint32(122).fork()).ldelim(),e.debugLastBackmsgId!=null&&Object.hasOwnProperty.call(e,`debugLastBackmsgId`)&&t.uint32(138).string(e.debugLastBackmsgId),e.pageProfile!=null&&Object.hasOwnProperty.call(e,`pageProfile`)&&V.PageProfile.encode(e.pageProfile,t.uint32(146).fork()).ldelim(),e.fileUrlsResponse!=null&&Object.hasOwnProperty.call(e,`fileUrlsResponse`)&&V.FileURLsResponse.encode(e.fileUrlsResponse,t.uint32(154).fork()).ldelim(),e.parentMessage!=null&&Object.hasOwnProperty.call(e,`parentMessage`)&&V.ParentMessage.encode(e.parentMessage,t.uint32(162).fork()).ldelim(),e.autoRerun!=null&&Object.hasOwnProperty.call(e,`autoRerun`)&&V.AutoRerun.encode(e.autoRerun,t.uint32(170).fork()).ldelim(),e.logo!=null&&Object.hasOwnProperty.call(e,`logo`)&&V.Logo.encode(e.logo,t.uint32(178).fork()).ldelim(),e.navigation!=null&&Object.hasOwnProperty.call(e,`navigation`)&&V.Navigation.encode(e.navigation,t.uint32(186).fork()).ldelim(),e.authRedirect!=null&&Object.hasOwnProperty.call(e,`authRedirect`)&&V.AuthRedirect.encode(e.authRedirect,t.uint32(194).fork()).ldelim(),e.heartbeatAck!=null&&Object.hasOwnProperty.call(e,`heartbeatAck`)&&t.uint32(208).bool(e.heartbeatAck),e.backendOperationResponse!=null&&Object.hasOwnProperty.call(e,`backendOperationResponse`)&&V.BackendOperationResponse.encode(e.backendOperationResponse,t.uint32(218).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ForwardMsg,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.hash=s:delete o.hash;continue;case 2:if(a!==2)break;o.metadata=V.ForwardMsgMetadata.decode(e,e.uint32(),void 0,r+1,o.metadata);continue;case 4:if(a!==2)break;o.newSession=V.NewSession.decode(e,e.uint32(),void 0,r+1,o.newSession),o.type=`newSession`;continue;case 5:if(a!==2)break;o.delta=V.Delta.decode(e,e.uint32(),void 0,r+1,o.delta),o.type=`delta`;continue;case 12:if(a!==2)break;o.pageInfoChanged=V.PageInfo.decode(e,e.uint32(),void 0,r+1,o.pageInfoChanged),o.type=`pageInfoChanged`;continue;case 13:if(a!==2)break;o.pageConfigChanged=V.PageConfig.decode(e,e.uint32(),void 0,r+1,o.pageConfigChanged),o.type=`pageConfigChanged`;continue;case 6:if(a!==0)break;o.scriptFinished=e.int32(),o.type=`scriptFinished`;continue;case 14:if(a!==2)break;o.gitInfoChanged=V.GitInfo.decode(e,e.uint32(),void 0,r+1,o.gitInfoChanged),o.type=`gitInfoChanged`;continue;case 18:if(a!==2)break;o.pageProfile=V.PageProfile.decode(e,e.uint32(),void 0,r+1,o.pageProfile),o.type=`pageProfile`;continue;
18case 9:if(a!==2)break;o.sessionStatusChanged=V.SessionStatus.decode(e,e.uint32(),void 0,r+1,o.sessionStatusChanged),o.type=`sessionStatusChanged`;continue;case 10:if(a!==2)break;o.sessionEvent=V.SessionEvent.decode(e,e.uint32(),void 0,r+1,o.sessionEvent),o.type=`sessionEvent`;continue;case 23:if(a!==2)break;o.navigation=V.Navigation.decode(e,e.uint32(),void 0,r+1,o.navigation),o.type=`navigation`;continue;case 15:if(a!==2)break;o.pageNotFound=V.PageNotFound.decode(e,e.uint32(),void 0,r+1,o.pageNotFound),o.type=`pageNotFound`;continue;case 19:if(a!==2)break;o.fileUrlsResponse=V.FileURLsResponse.decode(e,e.uint32(),void 0,r+1,o.fileUrlsResponse),o.type=`fileUrlsResponse`;continue;case 21:if(a!==2)break;o.autoRerun=V.AutoRerun.decode(e,e.uint32(),void 0,r+1,o.autoRerun),o.type=`autoRerun`;continue;case 22:if(a!==2)break;o.logo=V.Logo.decode(e,e.uint32(),void 0,r+1,o.logo),o.type=`logo`;continue;case 24:if(a!==2)break;o.authRedirect=V.AuthRedirect.decode(e,e.uint32(),void 0,r+1,o.authRedirect),o.type=`authRedirect`;continue;case 20:if(a!==2)break;o.parentMessage=V.ParentMessage.decode(e,e.uint32(),void 0,r+1,o.parentMessage),o.type=`parentMessage`;continue;case 11:if(a!==2)break;o.refHash=e.string(),o.type=`refHash`;continue;case 26:if(a!==0)break;o.heartbeatAck=e.bool(),o.type=`heartbeatAck`;continue;case 27:if(a!==2)break;o.backendOperationResponse=V.BackendOperationResponse.decode(e,e.uint32(),void 0,r+1,o.backendOperationResponse),o.type=`backendOperationResponse`;continue;case 17:if(a!==2)break;(s=e.string()).length?o.debugLastBackmsgId=s:delete o.debugLastBackmsgId;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ForwardMsg)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ForwardMsg;if(e.hash!=null&&(typeof e.hash!=`string`||e.hash.length)&&(n.hash=String(e.hash)),e.metadata!=null){if(typeof e.metadata!=`object`)throw TypeError(`.ForwardMsg.metadata: object expected`);n.metadata=V.ForwardMsgMetadata.fromObject(e.metadata,t+1)}if(e.newSession!=null){if(typeof e.newSession!=`object`)throw TypeError(`.ForwardMsg.newSession: object expected`);n.newSession=V.NewSession.fromObject(e.newSession,t+1)}if(e.delta!=null){if(typeof e.delta!=`object`)throw TypeError(`.ForwardMsg.delta: object expected`);n.delta=V.Delta.fromObject(e.delta,t+1)}if(e.pageInfoChanged!=null){if(typeof e.pageInfoChanged!=`object`)throw TypeError(`.ForwardMsg.pageInfoChanged: object expected`);n.pageInfoChanged=V.PageInfo.fromObject(e.pageInfoChanged,t+1)}if(e.pageConfigChanged!=null){if(typeof e.pageConfigChanged!=`object`)throw TypeError(`.ForwardMsg.pageConfigChanged: object expected`);n.pageConfigChanged=V.PageConfig.fromObject(e.pageConfigChanged,t+1)}switch(e.scriptFinished){default:if(typeof e.scriptFinished==`number`){n.scriptFinished=e.scriptFinished;break}break;case`FINISHED_SUCCESSFULLY`:case 0:n.scriptFinished=0;break;case`FINISHED_WITH_COMPILE_ERROR`:case 1:n.scriptFinished=1;break;case`FINISHED_EARLY_FOR_RERUN`:case 2:n.scriptFinished=2;break;case`FINISHED_FRAGMENT_RUN_SUCCESSFULLY`:case 3:n.scriptFinished=3;break}if(e.gitInfoChanged!=null){if(typeof e.gitInfoChanged!=`object`)throw TypeError(`.ForwardMsg.gitInfoChanged: object expected`);n.gitInfoChanged=V.GitInfo.fromObject(e.gitInfoChanged,t+1)}if(e.pageProfile!=null){if(typeof e.pageProfile!=`object`)throw TypeError(`.ForwardMsg.pageProfile: object expected`);n.pageProfile=V.PageProfile.fromObject(e.pageProfile,t+1)}if(e.sessionStatusChanged!=null){if(typeof e.sessionStatusChanged!=`object`)throw TypeError(`.ForwardMsg.sessionStatusChanged: object expected`);n.sessionStatusChanged=V.SessionStatus.fromObject(e.sessionStatusChanged,t+1)}if(e.sessionEvent!=null){if(typeof e.sessionEvent!=`object`)throw TypeError(`.ForwardMsg.sessionEvent: object expected`);n.sessionEvent=V.SessionEvent.fromObject(e.sessionEvent,t+1)}if(e.navigation!=null){if(typeof e.navigation!=`object`)throw TypeError(`.ForwardMsg.navigation: object expected`);n.navigation=V.Navigation.fromObject(e.navigation,t+1)}if(e.pageNotFound!=null){if(typeof e.pageNotFound!=`object`)throw TypeError(`.ForwardMsg.pageNotFound: object expected`);n.pageNotFound=V.PageNotFound.fromObject(e.pageNotFound,t+1)}if(e.fileUrlsResponse!=null){if(typeof e.fileUrlsResponse!=`object`)throw TypeError(`.ForwardMsg.fileUrlsResponse: object expected`);n.fileUrlsResponse=V.FileURLsResponse.fromObject(e.fileUrlsResponse,t+1)}if(e.autoRerun!=null){if(typeof e.autoRerun!=`object`)throw TypeError(`.ForwardMsg.autoRerun: object expected`);n.autoRerun=V.AutoRerun.fromObject(e.autoRerun,t+1)}if(e.logo!=null){if(typeof e.logo!=`object`)throw TypeError(`.ForwardMsg.logo: object expected`);n.logo=V.Logo.fromObject(e.logo,t+1)}if(e.authRedirect!=null){if(typeof e.authRedirect!=`object`)throw TypeError(`.ForwardMsg.authRedirect: object expected`);n.authRedirect=V.AuthRedirect.fromObject(e.authRedirect,t+1)}if(e.parentMessage!=null){if(typeof e.parentMessage!=`object`)throw TypeError(`.ForwardMsg.parentMessage: object expected`);n.parentMessage=V.ParentMessage.fromObject(e.parentMessage,t+1)}if(e.refHash!=null&&(n.refHash=String(e.refHash)),e.heartbeatAck!=null&&(n.heartbeatAck=!!e.heartbeatAck),e.backendOperationResponse!=null){if(typeof e.backendOperationResponse!=`object`)throw TypeError(`.ForwardMsg.backendOperationResponse: object expected`);n.backendOperationResponse=V.BackendOperationResponse.fromObject(e.backendOperationResponse,t+1)}
18return e.debugLastBackmsgId!=null&&(typeof e.debugLastBackmsgId!=`string`||e.debugLastBackmsgId.length)&&(n.debugLastBackmsgId=String(e.debugLastBackmsgId)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.hash=``,n.metadata=null,n.debugLastBackmsgId=``),e.hash!=null&&e.hasOwnProperty(`hash`)&&(n.hash=e.hash),e.metadata!=null&&e.hasOwnProperty(`metadata`)&&(n.metadata=V.ForwardMsgMetadata.toObject(e.metadata,t)),e.newSession!=null&&e.hasOwnProperty(`newSession`)&&(n.newSession=V.NewSession.toObject(e.newSession,t),t.oneofs&&(n.type=`newSession`)),e.delta!=null&&e.hasOwnProperty(`delta`)&&(n.delta=V.Delta.toObject(e.delta,t),t.oneofs&&(n.type=`delta`)),e.scriptFinished!=null&&e.hasOwnProperty(`scriptFinished`)&&(n.scriptFinished=t.enums===String?V.ForwardMsg.ScriptFinishedStatus[e.scriptFinished]===void 0?e.scriptFinished:V.ForwardMsg.ScriptFinishedStatus[e.scriptFinished]:e.scriptFinished,t.oneofs&&(n.type=`scriptFinished`)),e.sessionStatusChanged!=null&&e.hasOwnProperty(`sessionStatusChanged`)&&(n.sessionStatusChanged=V.SessionStatus.toObject(e.sessionStatusChanged,t),t.oneofs&&(n.type=`sessionStatusChanged`)),e.sessionEvent!=null&&e.hasOwnProperty(`sessionEvent`)&&(n.sessionEvent=V.SessionEvent.toObject(e.sessionEvent,t),t.oneofs&&(n.type=`sessionEvent`)),e.refHash!=null&&e.hasOwnProperty(`refHash`)&&(n.refHash=e.refHash,t.oneofs&&(n.type=`refHash`)),e.pageInfoChanged!=null&&e.hasOwnProperty(`pageInfoChanged`)&&(n.pageInfoChanged=V.PageInfo.toObject(e.pageInfoChanged,t),t.oneofs&&(n.type=`pageInfoChanged`)),e.pageConfigChanged!=null&&e.hasOwnProperty(`pageConfigChanged`)&&(n.pageConfigChanged=V.PageConfig.toObject(e.pageConfigChanged,t),t.oneofs&&(n.type=`pageConfigChanged`)),e.gitInfoChanged!=null&&e.hasOwnProperty(`gitInfoChanged`)&&(n.gitInfoChanged=V.GitInfo.toObject(e.gitInfoChanged,t),t.oneofs&&(n.type=`gitInfoChanged`)),e.pageNotFound!=null&&e.hasOwnProperty(`pageNotFound`)&&(n.pageNotFound=V.PageNotFound.toObject(e.pageNotFound,t),t.oneofs&&(n.type=`pageNotFound`)),e.debugLastBackmsgId!=null&&e.hasOwnProperty(`debugLastBackmsgId`)&&(n.debugLastBackmsgId=e.debugLastBackmsgId),e.pageProfile!=null&&e.hasOwnProperty(`pageProfile`)&&(n.pageProfile=V.PageProfile.toObject(e.pageProfile,t),t.oneofs&&(n.type=`pageProfile`)),e.fileUrlsResponse!=null&&e.hasOwnProperty(`fileUrlsResponse`)&&(n.fileUrlsResponse=V.FileURLsResponse.toObject(e.fileUrlsResponse,t),t.oneofs&&(n.type=`fileUrlsResponse`)),e.parentMessage!=null&&e.hasOwnProperty(`parentMessage`)&&(n.parentMessage=V.ParentMessage.toObject(e.parentMessage,t),t.oneofs&&(n.type=`parentMessage`)),e.autoRerun!=null&&e.hasOwnProperty(`autoRerun`)&&(n.autoRerun=V.AutoRerun.toObject(e.autoRerun,t),t.oneofs&&(n.type=`autoRerun`)),e.logo!=null&&e.hasOwnProperty(`logo`)&&(n.logo=V.Logo.toObject(e.logo,t),t.oneofs&&(n.type=`logo`)),e.navigation!=null&&e.hasOwnProperty(`navigation`)&&(n.navigation=V.Navigation.toObject(e.navigation,t),t.oneofs&&(n.type=`navigation`)),e.authRedirect!=null&&e.hasOwnProperty(`authRedirect`)&&(n.authRedirect=V.AuthRedirect.toObject(e.authRedirect,t),t.oneofs&&(n.type=`authRedirect`)),e.heartbeatAck!=null&&e.hasOwnProperty(`heartbeatAck`)&&(n.heartbeatAck=e.heartbeatAck,t.oneofs&&(n.type=`heartbeatAck`)),e.backendOperationResponse!=null&&e.hasOwnProperty(`backendOperationResponse`)&&(n.backendOperationResponse=V.BackendOperationResponse.toObject(e.backendOperationResponse,t),t.oneofs&&(n.type=`backendOperationResponse`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ForwardMsg`},e.ScriptFinishedStatus=(function(){let e={},t=Object.create(e);return t[e[0]=`FINISHED_SUCCESSFULLY`]=0,t[e[1]=`FINISHED_WITH_COMPILE_ERROR`]=1,t[e[2]=`FINISHED_EARLY_FOR_RERUN`]=2,t[e[3]=`FINISHED_FRAGMENT_RUN_SUCCESSFULLY`]=3,t})(),e})();V.BackendOperationResponse=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.requestId=``,e.prototype.errorMsg=``,e.prototype.deferredFile=null;let t;return Object.defineProperty(e.prototype,`payload`,{get:B.oneOfGetter(t=[`deferredFile`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.requestId!=null&&Object.hasOwnProperty.call(e,`requestId`)&&t.uint32(10).string(e.requestId),e.errorMsg!=null&&Object.hasOwnProperty.call(e,`errorMsg`)&&t.uint32(18).string(e.errorMsg),e.deferredFile!=null&&Object.hasOwnProperty.call(e,`deferredFile`)&&V.DeferredFileResponsePayload.encode(e.deferredFile,t.uint32(26).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.BackendOperationResponse,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.requestId=s:delete o.requestId;continue;case 2:if(a!==2)break;(s=e.string()).length?o.errorMsg=s:delete o.errorMsg;continue;case 3:if(a!==2)break;o.deferredFile=V.DeferredFileResponsePayload.decode(e,e.uint32(),void 0,r+1,o.deferredFile),o.payload=`deferredFile`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.BackendOperationResponse)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.BackendOperationResponse;if(e.requestId!=null&&(typeof e.requestId!=`string`||e.requestId.length)&&(n.requestId=String(e.requestId)),e.errorMsg!=null&&(typeof e.errorMsg!=`string`||e.errorMsg.length)&&(n.errorMsg=String(e.errorMsg)),e.deferredFile!=null){if(typeof e.deferredFile!=`object`)throw TypeError(`.BackendOperationResponse.deferredFile: object expected`);n.deferredFile=V.DeferredFileResponsePayload.fromObject(e.deferredFile,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.requestId=``,n.errorMsg=``),e.requestId!=null&&e.hasOwnProperty(`requestId`)&&(n.requestId=e.requestId),e.errorMsg!=null&&e.hasOwnProperty(`errorMsg`)&&(n.errorMsg=e.errorMsg),e.deferredFile!=null&&e.hasOwnProperty(`deferredFile`)&&(n.deferredFile=V.DeferredFileResponsePayload.toObject(e.deferredFile,t),t.oneofs&&(n.payload=`deferredFile`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Backen
18dOperationResponse`},e})(),V.DeferredFileResponsePayload=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.url=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.url!=null&&Object.hasOwnProperty.call(e,`url`)&&t.uint32(10).string(e.url),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.DeferredFileResponsePayload,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.url=s:delete o.url;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.DeferredFileResponsePayload)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.DeferredFileResponsePayload;return e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=String(e.url)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.url=``),e.url!=null&&e.hasOwnProperty(`url`)&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/DeferredFileResponsePayload`},e})();var Vo=V.ForwardMsgMetadata=(()=>{function e(e){if(this.deltaPath=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.cacheable=!1,e.prototype.deltaPath=B.emptyArray,e.prototype.activeScriptHash=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.cacheable!=null&&Object.hasOwnProperty.call(e,`cacheable`)&&t.uint32(8).bool(e.cacheable),e.deltaPath!=null&&e.deltaPath.length){t.uint32(18).fork();for(let n=0;n<e.deltaPath.length;++n)t.uint32(e.deltaPath[n]);t.ldelim()}if(e.activeScriptHash!=null&&Object.hasOwnProperty.call(e,`activeScriptHash`)&&t.uint32(34).string(e.activeScriptHash),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ForwardMsgMetadata,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.bool())?o.cacheable=s:delete o.cacheable;continue;case 2:if(a===2){o.deltaPath&&o.deltaPath.length||(o.deltaPath=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.deltaPath.push(e.uint32());continue}if(a!==0)break;o.deltaPath&&o.deltaPath.length||(o.deltaPath=[]),o.deltaPath.push(e.uint32());continue;case 4:if(a!==2)break;(s=e.string()).length?o.activeScriptHash=s:delete o.activeScriptHash;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ForwardMsgMetadata)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ForwardMsgMetadata;if(e.cacheable!=null&&e.cacheable&&(n.cacheable=!!e.cacheable),e.deltaPath){if(!Array.isArray(e.deltaPath))throw TypeError(`.ForwardMsgMetadata.deltaPath: array expected`);n.deltaPath=Array(e.deltaPath.length);for(let t=0;t<e.deltaPath.length;++t)n.deltaPath[t]=e.deltaPath[t]>>>0}return e.activeScriptHash!=null&&(typeof e.activeScriptHash!=`string`||e.activeScriptHash.length)&&(n.activeScriptHash=String(e.activeScriptHash)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.deltaPath=[]),t.defaults&&(n.cacheable=!1,n.activeScriptHash=``),e.cacheable!=null&&e.hasOwnProperty(`cacheable`)&&(n.cacheable=e.cacheable),e.deltaPath&&e.deltaPath.length){n.deltaPath=Array(e.deltaPath.length);for(let t=0;t<e.deltaPath.length;++t)n.deltaPath[t]=e.deltaPath[t]}return e.activeScriptHash!=null&&e.hasOwnProperty(`activeScriptHash`)&&(n.activeScriptHash=e.activeScriptHash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ForwardMsgMetadata`},e})(),Ho=V.ForwardMsgList=(()=>{function e(e){if(this.messages=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.messages=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.messages!=null&&e.messages.length)for(let n=0;n<e.messages.length;++n)V.ForwardMsg.encode(e.messages[n],t.uint32(10).fork()).ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ForwardMsgList;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.messages&&o.messages.length||(o.messages=[]),o.messages.push(V.ForwardMsg.decode(e,e.uint32(),void 0,r+1));continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ForwardMsgList)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ForwardMsgList;if(e.messages){if(!Array.isArray(e.messages))throw TypeError(`.ForwardMsgList.messages: array expected`);n.messages=Array(e.messages.length);for(let r=0;r<e.messages.length;++r){if(typeof e.messages[r]!=`object`)throw TypeError(`.ForwardMsgList.messages: object expected`);n.messages[r]=V.ForwardMsg.fromObject(e.messages[r],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.messages=[]),e.messages&&e.messages.length){n.messages=Array(e.messages.length);for(let r=0;r<e.messages.length;++r)n.messages[r]=V.ForwardMsg.toObject(e.messages[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ForwardMsgList`},e})(),Uo=V.GitInfo=(()=>{function e(e){if(this.untrackedFiles=[],this.uncommittedFiles=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.repository=``,e.prototype.branch=``,e.prototype.module=``,e.prototype.untrackedFiles=B.emptyArray,e.prototype.uncommittedFiles=B.emptyArray,e.prototype.state=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.repository!=null&&Object.hasOwnProperty.call(e,`repository`)&&t.uint32(10).string(e.repository),e.branch!=null&&Object.hasOwnProperty.call(e,`branch`)&&t.uint32(18).string(e.branch),e.module!=null&&Object.hasOwnProperty.call(e,`module`)&&t.uint32(26).string(e.module),e.untrackedFiles!=null&&e.untrackedFiles.length)for(let n=0;n<e.untrackedFiles.length;++n)t.uint32(34).string(e.untrackedFiles[n]);if(e.uncommittedFiles!=null&&e.uncommittedFiles.length)for(let n=0;n<e.uncommittedFiles.length;++n)t.uint32(42).string(e.uncommittedFiles[n]);if(e.state!=null&&Object.hasOwnProperty.call(e,`state`)&&t.uint32(48).int32(e.state),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.GitInfo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.repository=s:delete o.repository;continue;case 2:if(a!==2)break;(s=e.string()).length?o.branch=s:delete o.branch;continue;case 3:if(a!==2)break;(s=e.string()).length?o.module=s:delete o.module;continue;case 4:if(a!==2)break;o.untrackedFiles&&o.untrackedFiles.length||(o.untrackedFiles=[]),o.untrackedFiles.push(e.string());continue;case 5:if(a!==2)break;o.uncommittedFiles&&o.uncommittedFiles.length||(o.uncommittedFiles=[]),o.uncommittedFiles.push(e.string());continue;case 6:if(a!==0)break;(s=e.int32())?o.state=s:delete o.state;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.GitInfo)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.GitInfo;if(e.repository!=null&&(typeof e.repository!=`string`||e.repository.length)&&(n.repository=String(e.repository)
18),e.branch!=null&&(typeof e.branch!=`string`||e.branch.length)&&(n.branch=String(e.branch)),e.module!=null&&(typeof e.module!=`string`||e.module.length)&&(n.module=String(e.module)),e.untrackedFiles){if(!Array.isArray(e.untrackedFiles))throw TypeError(`.GitInfo.untrackedFiles: array expected`);n.untrackedFiles=Array(e.untrackedFiles.length);for(let t=0;t<e.untrackedFiles.length;++t)n.untrackedFiles[t]=String(e.untrackedFiles[t])}if(e.uncommittedFiles){if(!Array.isArray(e.uncommittedFiles))throw TypeError(`.GitInfo.uncommittedFiles: array expected`);n.uncommittedFiles=Array(e.uncommittedFiles.length);for(let t=0;t<e.uncommittedFiles.length;++t)n.uncommittedFiles[t]=String(e.uncommittedFiles[t])}if(e.state!==0&&(typeof e.state!=`string`||V.GitInfo.GitStates[e.state]!==0))switch(e.state){default:if(typeof e.state==`number`){n.state=e.state;break}break;case`DEFAULT`:case 0:n.state=0;break;case`HEAD_DETACHED`:case 1:n.state=1;break;case`AHEAD_OF_REMOTE`:case 2:n.state=2;break}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.untrackedFiles=[],n.uncommittedFiles=[]),t.defaults&&(n.repository=``,n.branch=``,n.module=``,n.state=t.enums===String?`DEFAULT`:0),e.repository!=null&&e.hasOwnProperty(`repository`)&&(n.repository=e.repository),e.branch!=null&&e.hasOwnProperty(`branch`)&&(n.branch=e.branch),e.module!=null&&e.hasOwnProperty(`module`)&&(n.module=e.module),e.untrackedFiles&&e.untrackedFiles.length){n.untrackedFiles=Array(e.untrackedFiles.length);for(let t=0;t<e.untrackedFiles.length;++t)n.untrackedFiles[t]=e.untrackedFiles[t]}if(e.uncommittedFiles&&e.uncommittedFiles.length){n.uncommittedFiles=Array(e.uncommittedFiles.length);for(let t=0;t<e.uncommittedFiles.length;++t)n.uncommittedFiles[t]=e.uncommittedFiles[t]}return e.state!=null&&e.hasOwnProperty(`state`)&&(n.state=t.enums===String?V.GitInfo.GitStates[e.state]===void 0?e.state:V.GitInfo.GitStates[e.state]:e.state),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/GitInfo`},e.GitStates=(function(){let e={},t=Object.create(e);return t[e[0]=`DEFAULT`]=0,t[e[1]=`HEAD_DETACHED`]=1,t[e[2]=`AHEAD_OF_REMOTE`]=2,t})(),e})(),Wo=V.Logo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.image=``,e.prototype.link=``,e.prototype.iconImage=``,e.prototype.size=``,e.prototype.imageType=0,e.prototype.iconImageType=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.image!=null&&Object.hasOwnProperty.call(e,`image`)&&t.uint32(10).string(e.image),e.link!=null&&Object.hasOwnProperty.call(e,`link`)&&t.uint32(18).string(e.link),e.iconImage!=null&&Object.hasOwnProperty.call(e,`iconImage`)&&t.uint32(26).string(e.iconImage),e.size!=null&&Object.hasOwnProperty.call(e,`size`)&&t.uint32(34).string(e.size),e.imageType!=null&&Object.hasOwnProperty.call(e,`imageType`)&&t.uint32(40).int32(e.imageType),e.iconImageType!=null&&Object.hasOwnProperty.call(e,`iconImageType`)&&t.uint32(48).int32(e.iconImageType),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Logo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.image=s:delete o.image;continue;case 2:if(a!==2)break;(s=e.string()).length?o.link=s:delete o.link;continue;case 3:if(a!==2)break;(s=e.string()).length?o.iconImage=s:delete o.iconImage;continue;case 4:if(a!==2)break;(s=e.string()).length?o.size=s:delete o.size;continue;case 5:if(a!==0)break;(s=e.int32())?o.imageType=s:delete o.imageType;continue;case 6:if(a!==0)break;(s=e.int32())?o.iconImageType=s:delete o.iconImageType;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Logo)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Logo;if(e.image!=null&&(typeof e.image!=`string`||e.image.length)&&(n.image=String(e.image)),e.link!=null&&(typeof e.link!=`string`||e.link.length)&&(n.link=String(e.link)),e.iconImage!=null&&(typeof e.iconImage!=`string`||e.iconImage.length)&&(n.iconImage=String(e.iconImage)),e.size!=null&&(typeof e.size!=`string`||e.size.length)&&(n.size=String(e.size)),e.imageType!==0&&(typeof e.imageType!=`string`||V.Logo.ImageType[e.imageType]!==0))switch(e.imageType){default:if(typeof e.imageType==`number`){n.imageType=e.imageType;break}break;case`IMAGE`:case 0:n.imageType=0;break;case`EMOJI`:case 1:n.imageType=1;break;case`ICON`:case 2:n.imageType=2;break}if(e.iconImageType!==0&&(typeof e.iconImageType!=`string`||V.Logo.ImageType[e.iconImageType]!==0))switch(e.iconImageType){default:if(typeof e.iconImageType==`number`){n.iconImageType=e.iconImageType;break}break;case`IMAGE`:case 0:n.iconImageType=0;break;case`EMOJI`:case 1:n.iconImageType=1;break;case`ICON`:case 2:n.iconImageType=2;break}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.image=``,n.link=``,n.iconImage=``,n.size=``,n.imageType=t.enums===String?`IMAGE`:0,n.iconImageType=t.enums===String?`IMAGE`:0),e.image!=null&&e.hasOwnProperty(`image`)&&(n.image=e.image),e.link!=null&&e.hasOwnProperty(`link`)&&(n.link=e.link),e.iconImage!=null&&e.hasOwnProperty(`iconImage`)&&(n.iconImage=e.iconImage),e.size!=null&&e.hasOwnProperty(`size`)&&(n.size=e.size),e.imageType!=null&&e.hasOwnProperty(`imageType`)&&(n.imageType=t.enums===String?V.Logo.ImageType[e.imageType]===void 0?e.imageType:V.Logo.ImageType[e.imageType]:e.imageType),e.iconImageType!=null&&e.hasOwnProperty(`iconImageType`)&&(n.iconImageType=t.enums===String?V.Logo.ImageType[e.iconImageType]===void 0?e.iconImageType:V.Logo.ImageType[e.iconImageType]:e.iconImageType),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Logo`},e.ImageType=(function(){let e={},t=Object.create(e);return t[e[0]=`IMAGE`]=0,t[e[1]=`EMOJI`]=1,t[e[2]=`ICON`]=2,t})(),e})(),Go=V.Navigation=(()=>{function e(e){if(this.sections=[],this.appPages=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.sections=B.emptyArray,e.prototype.appPages=B.emptyArray,e.prototype.position=0,e.prototype.pageScriptHash=``,e.prototype.expanded=!1,e.prototype.visibleItems=null;let t;return Object.defineProperty(e.prototype,`_visibleItems`,{get:B.oneOfGetter(t=[`visibleItems`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.sections!=null&&e.sections.length)for(let n=0;n<e.sections.length;++n)t.uint32(10).string(e.sections[n]);if(e.appPages!=null&&e.appPages.length)for(let n=0;n<e.appPages.length;++n)V.AppPage.encode(e.appPages[n],t.uint32(18).fork()).ldelim();if(e.position!=null&&Object.hasOwnProperty.call(e,`position`)&&t.uint32(24).int32(e.position),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,`pageScriptHash`)&&t.uint32(34).string(e.pageScriptHash),e.expanded!=null&&Object.hasOwnProperty.call(e,`expanded`)&&t.uint32(40).bool(e.expanded),e.visibleItems!=null&&Object.hasOwnProperty.call(e,`visibleItems`)&&t.uint32(48).uint32(e.visibleItems),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Navigation,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.sections&&o.sections.length||(o.sections=[]),o.sections.push(e.string());continue;case 2:if(a!==2)break;o.appPages&&o.appPages.length||(o.appPages=[]),o.appPages.push(V.AppPage.decode(e,e.uint32(),void 0,r+1));continue;case 3:if(a!==0)break;(s=e.int32())?o.position=s:delete o.position;continue;case 4:if(a!==2)break;(s=e.string()).length?o.pageScriptHash=s:delete o.pageScriptHash;continue;case 5:if(a!==0)break;(s=e.bool())?o.expanded=s:delete o.expanded;continue;case 6:if(a!==0)break;o.visibleItems=e.uint32(),o._visibleItems=`visibleItems`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Navigation)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Navigation;if(e.sections){if(!Array.isArray(e.sections))throw TypeError(`.Navigation.sections: array expected`);n.sections=Array(e.sections.length);for(let t=0;t<e.sections.length;++t)n.sections[t]=String(e.sections[t])}if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(`.Navigation.appPages: array expected`);n.appPages=Array(e.appPages.length);for(let r=0;r<e.appPages.length;++r){if(typeof e.appPages[r]!=`object`)throw TypeError(`.Navigation.appPages: object expected`);n.appPages[r]=V.AppPage.fromObject(e.appPages[r],t+1)}}if(e.position!==0&&(typeof e.position!=`string`||V.Navigation.Position[e.position]!==0))switch(e.position){default:if(typeof e.position==`number`){n.position=e.position;break}break;case`HIDDEN`:case 0:n.position=0;break;case`SIDEBAR`:case 1:n.position=1;break;case`TOP`:case 2:n.position=2;break}return e.pageScriptHash!=null&&(typeof e.pageScriptHash!=`string`||e.pageScriptHash.length)&&(n.pageScriptHash=String(e.pageScriptHash)),e.expanded!=null&&e.expanded&&(n.expanded=!!e.expanded),e.visibleItems!=null&&(n.visibleItems=e.visibleItems>>>0),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.sections=[],n.appPages=[]),t.defaults&&(n.position=t.enums===String?`HIDDEN`:0,n.pageScriptHash=``,n.expanded=!1),e.sections&&e.sections.length){n.sections=Array(e.sections.length);for(let t=0;t<e.sections.length;++t)n.sections[t]=e.sections[t]}if(e.appPages&&e.appPages.length){n.appPages=Array(e.appPages.length);for(let r=0;r<e.appPages.length;++r)n.appPages[r]=V.AppPage.toObject(e.appPages[r],t)}return e.position!=null&&e.hasOwnProperty(`position`)&&(n.position=t.enums===String?V.Navigation.Position[e.position]===void 0?e.position:V.Navigation.Position[e.position]:e.position),e.pageScriptHash!=null&&e.hasOwnProperty(`pageScriptHash`)&&(n.pageScriptHash=e.pageScriptHash),e.expanded!=null&&e.hasOwnProperty(`expanded`)&&(n.expanded=e.expanded),e.visibleItems!=null&&e.hasOwnProperty(`visibleItems`)&&(n.visibleItems=e.visibleItems,t.oneofs&&(n._visibleItems=`visibleItems`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Navigation`},e.Position=(function(){let e={},t=Object.create(e);return t[e[0]=`HIDDEN`]=0,t[e[1]=`SIDEBAR`]=1,t[e[2]=`TOP`]=2,t})(),e})();V.NewSession=(()=>{function e(e){if(this.appPages=[],this.fragmentIdsThisRun=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.initialize=null,e.prototype.scriptRunId=``,e.prototype.name=``,e.prototype.mainScriptPath=``,e.prototype.config=null,e.prototype.customTheme=null,e.prototype.appPages=B.emptyArray,e.prototype.pageScriptHash=``,e.prototype.fragmentIdsThisRun=B.emptyArray,e.prototype.mainScriptHash=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.initialize!=null&&Object.hasOwnProperty.call(e,`initialize`)&&V.Initialize.encode(e.initialize,t.uint32(10).fork()).ldelim(),e.scriptRunId!=null&&Object.hasOwnProperty.call(e,`scriptRunId`)&&t.uint32(18).string(e.scriptRunId),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(26).string(e.name),e.mainScriptPath!=null&&Object.hasOwnProperty.call(e,`mainScriptPath`)&&t.uint32(34).string(e.mainScriptPath),e.config!=null&&Object.hasOwnProperty.call(e,`config`)&&V.Config.encode(e.config,t.uint32(50).fork()).ldelim(),e.customTheme!=null&&Object.hasOwnProperty.call(e,`customTheme`)&&V.CustomThemeConfig.encode(e.customTheme,t.uint32(58).fork()).ldelim(),e.appPages!=null&&e.appPages.length)for(let n=0;n<e.appPages.length;++n)V.AppPage.encode(e.appPages[n],t.uint32(66).fork()).ldelim();if(e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,`pageScriptHash`)&&t.uint32(74).string(e.pageScriptHash),e.fragmentIdsThisRun!=null&&e.fragmentIdsThisRun.length)for(let n=0;n<e.fragmentIdsThisRun.length;++n)t.uint32(82).string(e.fragmentIdsThisRun[n]);if(e.mainScriptHash!=null&&Object.hasOwnProperty.call(e,`mainScriptHash`)&&t.uint32(90).string(e.mainScriptHash),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.NewSession,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.initialize=V.Initialize.decode(e,e.uint32(),void 0,r+1,o.initialize);continue;case 2:if(a!==2)break;(s=e.string()).length?o.scriptRunId=s:delete o.scriptRunId;continue;case 3:if(a!==2)break;(s=e.string()).length?o.name=s:delete o.name;continue;case 4:if(a!==2)break;(s=e.string()).length?o.mainScriptPath=s:delete o.mainScriptPath;continue;case 6:if(a!==2)break;o.config=V.Config.decode(e,e.uint32(),void 0,r+1,o.config);continue;case 7:if(a!==2)break;o.customTheme=V.CustomThemeConfig.decode(e,e.uint32(),void 0,r+1,o.customTheme);continue;case 8:if(a!==2)break;o.appPages&&o.appPages.length||(o.appPages=[]),o.appPages.push(V.AppPage.decode(e,e.uint32(),void 0,r+1));continue;
18case 9:if(a!==2)break;(s=e.string()).length?o.pageScriptHash=s:delete o.pageScriptHash;continue;case 10:if(a!==2)break;o.fragmentIdsThisRun&&o.fragmentIdsThisRun.length||(o.fragmentIdsThisRun=[]),o.fragmentIdsThisRun.push(e.string());continue;case 11:if(a!==2)break;(s=e.string()).length?o.mainScriptHash=s:delete o.mainScriptHash;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.NewSession)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.NewSession;if(e.initialize!=null){if(typeof e.initialize!=`object`)throw TypeError(`.NewSession.initialize: object expected`);n.initialize=V.Initialize.fromObject(e.initialize,t+1)}if(e.scriptRunId!=null&&(typeof e.scriptRunId!=`string`||e.scriptRunId.length)&&(n.scriptRunId=String(e.scriptRunId)),e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=String(e.name)),e.mainScriptPath!=null&&(typeof e.mainScriptPath!=`string`||e.mainScriptPath.length)&&(n.mainScriptPath=String(e.mainScriptPath)),e.config!=null){if(typeof e.config!=`object`)throw TypeError(`.NewSession.config: object expected`);n.config=V.Config.fromObject(e.config,t+1)}if(e.customTheme!=null){if(typeof e.customTheme!=`object`)throw TypeError(`.NewSession.customTheme: object expected`);n.customTheme=V.CustomThemeConfig.fromObject(e.customTheme,t+1)}if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(`.NewSession.appPages: array expected`);n.appPages=Array(e.appPages.length);for(let r=0;r<e.appPages.length;++r){if(typeof e.appPages[r]!=`object`)throw TypeError(`.NewSession.appPages: object expected`);n.appPages[r]=V.AppPage.fromObject(e.appPages[r],t+1)}}if(e.pageScriptHash!=null&&(typeof e.pageScriptHash!=`string`||e.pageScriptHash.length)&&(n.pageScriptHash=String(e.pageScriptHash)),e.fragmentIdsThisRun){if(!Array.isArray(e.fragmentIdsThisRun))throw TypeError(`.NewSession.fragmentIdsThisRun: array expected`);n.fragmentIdsThisRun=Array(e.fragmentIdsThisRun.length);for(let t=0;t<e.fragmentIdsThisRun.length;++t)n.fragmentIdsThisRun[t]=String(e.fragmentIdsThisRun[t])}return e.mainScriptHash!=null&&(typeof e.mainScriptHash!=`string`||e.mainScriptHash.length)&&(n.mainScriptHash=String(e.mainScriptHash)),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.appPages=[],n.fragmentIdsThisRun=[]),t.defaults&&(n.initialize=null,n.scriptRunId=``,n.name=``,n.mainScriptPath=``,n.config=null,n.customTheme=null,n.pageScriptHash=``,n.mainScriptHash=``),e.initialize!=null&&e.hasOwnProperty(`initialize`)&&(n.initialize=V.Initialize.toObject(e.initialize,t)),e.scriptRunId!=null&&e.hasOwnProperty(`scriptRunId`)&&(n.scriptRunId=e.scriptRunId),e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),e.mainScriptPath!=null&&e.hasOwnProperty(`mainScriptPath`)&&(n.mainScriptPath=e.mainScriptPath),e.config!=null&&e.hasOwnProperty(`config`)&&(n.config=V.Config.toObject(e.config,t)),e.customTheme!=null&&e.hasOwnProperty(`customTheme`)&&(n.customTheme=V.CustomThemeConfig.toObject(e.customTheme,t)),e.appPages&&e.appPages.length){n.appPages=Array(e.appPages.length);for(let r=0;r<e.appPages.length;++r)n.appPages[r]=V.AppPage.toObject(e.appPages[r],t)}if(e.pageScriptHash!=null&&e.hasOwnProperty(`pageScriptHash`)&&(n.pageScriptHash=e.pageScriptHash),e.fragmentIdsThisRun&&e.fragmentIdsThisRun.length){n.fragmentIdsThisRun=Array(e.fragmentIdsThisRun.length);for(let t=0;t<e.fragmentIdsThisRun.length;++t)n.fragmentIdsThisRun[t]=e.fragmentIdsThisRun[t]}return e.mainScriptHash!=null&&e.hasOwnProperty(`mainScriptHash`)&&(n.mainScriptHash=e.mainScriptHash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/NewSession`},e})(),V.Initialize=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.userInfo=null,e.prototype.environmentInfo=null,e.prototype.sessionStatus=null,e.prototype.sessionId=``,e.prototype.isHello=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.userInfo!=null&&Object.hasOwnProperty.call(e,`userInfo`)&&V.UserInfo.encode(e.userInfo,t.uint32(10).fork()).ldelim(),e.environmentInfo!=null&&Object.hasOwnProperty.call(e,`environmentInfo`)&&V.EnvironmentInfo.encode(e.environmentInfo,t.uint32(26).fork()).ldelim(),e.sessionStatus!=null&&Object.hasOwnProperty.call(e,`sessionStatus`)&&V.SessionStatus.encode(e.sessionStatus,t.uint32(34).fork()).ldelim(),e.sessionId!=null&&Object.hasOwnProperty.call(e,`sessionId`)&&t.uint32(50).string(e.sessionId),e.isHello!=null&&Object.hasOwnProperty.call(e,`isHello`)&&t.uint32(56).bool(e.isHello),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Initialize,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.userInfo=V.UserInfo.decode(e,e.uint32(),void 0,r+1,o.userInfo);continue;case 3:if(a!==2)break;o.environmentInfo=V.EnvironmentInfo.decode(e,e.uint32(),void 0,r+1,o.environmentInfo);continue;case 4:if(a!==2)break;o.sessionStatus=V.SessionStatus.decode(e,e.uint32(),void 0,r+1,o.sessionStatus);continue;case 6:if(a!==2)break;(s=e.string()).length?o.sessionId=s:delete o.sessionId;continue;case 7:if(a!==0)break;(s=e.bool())?o.isHello=s:delete o.isHello;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Initialize)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Initialize;if(e.userInfo!=null){if(typeof e.userInfo!=`object`)throw TypeError(`.Initialize.userInfo: object expected`);n.userInfo=V.UserInfo.fromObject(e.userInfo,t+1)}if(e.environmentInfo!=null){if(typeof e.environmentInfo!=`object`)throw TypeError(`.Initialize.environmentInfo: object expected`);n.environmentInfo=V.EnvironmentInfo.fromObject(e.environmentInfo,t+1)}if(e.sessionStatus!=null){if(typeof e.sessionStatus!=`object`)throw TypeError(`.Initialize.sessionStatus: object expected`);n.sessionStatus=V.SessionStatus.fromObject(e.sessionStatus,t+1)}return e.sessionId!=null&&(typeof e.sessionId!=`string`||e.sessionId.length)&&(n.sessionId=String(e.sessionId)),e.isHello!=null&&e.isHello&&(n.isHello=!!e.isHello),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.userInfo=null,n.environmentInfo=null,n.sessionStatus=null,n.sessionId=``,n.isHello=!1),e.userInfo!=null&&e.hasOwnProperty(`userInfo`)&&(n.userInfo=V.UserInfo.toObject(e.userInfo,t)),e.environmentInfo!=null&&e.hasOwnProperty(`environmentInfo`)&&(n.environmentInfo=V.EnvironmentInfo.toObject(e.environmentInfo,t)),e.sessionStatus!=null&&e.hasOwnProperty(`sessionStatus`)&&(n.sessionStatus=V.SessionStatus.toObject(e.sessionStatus,t)),e.sessionId!=null&&e.hasOwnProperty(`sessionId`)&&(n.sessionId=e.sessionId),e.isHello!=null&&e.hasOwnProperty(`isHello`)&&(n.isHello=e.isHello),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Initialize`},e})();var Ko=V.Config=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.gatherUsageStats=!1,e.prototype.maxCachedMessageAge=0,e.prototype.allowRunOnSave=!1,e.prototype.hideTopBar=!1,e.prototype.hideSidebarNav=!1,e.prototype.toolbarMode=0,e.prototype.showErrorLinks=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.gatherUsageStats!=null&&Object.hasOwnProperty.call(e,`gatherUsageStats`)&&t.uint32(16).bool(e.gatherUsageStats),e.maxCachedMessageAge!=null&&Object.hasOwnProperty.call(e,`maxCachedMessageAge`)&&t.uint32(24).int32(e.maxCachedMessageAge),e.allowRunOnSave!=null&&Object.hasOwnProperty.call(e,`allowRunOnSave`)&&t.uint32(40).bool(e.allowRunOnSave),e.hideTopBar!=null&&Object.hasOwnProperty.call(e,`hideTopBar`)&&t.uint32(48).bool(e.hideTopBar),e.hideSidebarNav!=null&&Object.hasOwnProperty.call(e,`hideSidebarNav`)&&t.uint32(56).bool(e.hideSidebarNav),e.toolbarMode!=null&&Object.hasOwnProperty.call(e,`toolbarMode`)&&t.uint32(64).int32(e.toolbarMode),e.showErrorLinks!=null&&Object.hasOwnProperty.call(e,`showErrorLinks`)&&t.uint32(72).int32(e.showErrorLinks),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Config,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 2:if(a!==0)break;(s=e.bool())?o.gatherUsageStats=s:delete o.gatherUsageStats;continue;case 3:if(a!==0)break;(s=e.int32())?o.maxCachedMessageAge=s:delete o.maxCachedMessageAge;continue;case 5:if(a!==0)break;(s=e.bool())?o.allowRunOnSave=s:delete o.allowRunOnSave;continue;case 6:if(a!==0)break;(s=e.bool())?o.hideTopBar=s:delete o.hideTopBar;continue;case 7:if(a!==0)break;(s=e.bool())?o.hideSidebarNav=s:delete o.hideSidebarNav;continue;case 8:if(a!==0)break;(s=e.int32())?o.toolbarMode=s:delete o.toolbarMode;continue;
18case 9:if(a!==0)break;(s=e.int32())?o.showErrorLinks=s:delete o.showErrorLinks;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Config)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Config;if(e.gatherUsageStats!=null&&e.gatherUsageStats&&(n.gatherUsageStats=!!e.gatherUsageStats),e.maxCachedMessageAge!=null&&Number(e.maxCachedMessageAge)!==0&&(n.maxCachedMessageAge=e.maxCachedMessageAge|0),e.allowRunOnSave!=null&&e.allowRunOnSave&&(n.allowRunOnSave=!!e.allowRunOnSave),e.hideTopBar!=null&&e.hideTopBar&&(n.hideTopBar=!!e.hideTopBar),e.hideSidebarNav!=null&&e.hideSidebarNav&&(n.hideSidebarNav=!!e.hideSidebarNav),e.toolbarMode!==0&&(typeof e.toolbarMode!=`string`||V.Config.ToolbarMode[e.toolbarMode]!==0))switch(e.toolbarMode){default:if(typeof e.toolbarMode==`number`){n.toolbarMode=e.toolbarMode;break}break;case`AUTO`:case 0:n.toolbarMode=0;break;case`DEVELOPER`:case 1:n.toolbarMode=1;break;case`VIEWER`:case 2:n.toolbarMode=2;break;case`MINIMAL`:case 3:n.toolbarMode=3;break}if(e.showErrorLinks!==0&&(typeof e.showErrorLinks!=`string`||V.Config.ShowErrorLinks[e.showErrorLinks]!==0))switch(e.showErrorLinks){default:if(typeof e.showErrorLinks==`number`){n.showErrorLinks=e.showErrorLinks;break}break;case`SHOW_ERROR_LINKS_UNSPECIFIED`:case 0:n.showErrorLinks=0;break;case`SHOW_ERROR_LINKS_AUTO`:case 1:n.showErrorLinks=1;break;case`SHOW_ERROR_LINKS_TRUE`:case 2:n.showErrorLinks=2;break;case`SHOW_ERROR_LINKS_FALSE`:case 3:n.showErrorLinks=3;break}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.gatherUsageStats=!1,n.maxCachedMessageAge=0,n.allowRunOnSave=!1,n.hideTopBar=!1,n.hideSidebarNav=!1,n.toolbarMode=t.enums===String?`AUTO`:0,n.showErrorLinks=t.enums===String?`SHOW_ERROR_LINKS_UNSPECIFIED`:0),e.gatherUsageStats!=null&&e.hasOwnProperty(`gatherUsageStats`)&&(n.gatherUsageStats=e.gatherUsageStats),e.maxCachedMessageAge!=null&&e.hasOwnProperty(`maxCachedMessageAge`)&&(n.maxCachedMessageAge=e.maxCachedMessageAge),e.allowRunOnSave!=null&&e.hasOwnProperty(`allowRunOnSave`)&&(n.allowRunOnSave=e.allowRunOnSave),e.hideTopBar!=null&&e.hasOwnProperty(`hideTopBar`)&&(n.hideTopBar=e.hideTopBar),e.hideSidebarNav!=null&&e.hasOwnProperty(`hideSidebarNav`)&&(n.hideSidebarNav=e.hideSidebarNav),e.toolbarMode!=null&&e.hasOwnProperty(`toolbarMode`)&&(n.toolbarMode=t.enums===String?V.Config.ToolbarMode[e.toolbarMode]===void 0?e.toolbarMode:V.Config.ToolbarMode[e.toolbarMode]:e.toolbarMode),e.showErrorLinks!=null&&e.hasOwnProperty(`showErrorLinks`)&&(n.showErrorLinks=t.enums===String?V.Config.ShowErrorLinks[e.showErrorLinks]===void 0?e.showErrorLinks:V.Config.ShowErrorLinks[e.showErrorLinks]:e.showErrorLinks),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Config`},e.ToolbarMode=(function(){let e={},t=Object.create(e);return t[e[0]=`AUTO`]=0,t[e[1]=`DEVELOPER`]=1,t[e[2]=`VIEWER`]=2,t[e[3]=`MINIMAL`]=3,t})(),e.ShowErrorLinks=(function(){let e={},t=Object.create(e);return t[e[0]=`SHOW_ERROR_LINKS_UNSPECIFIED`]=0,t[e[1]=`SHOW_ERROR_LINKS_AUTO`]=1,t[e[2]=`SHOW_ERROR_LINKS_TRUE`]=2,t[e[3]=`SHOW_ERROR_LINKS_FALSE`]=3,t})(),e})(),qo=V.CustomThemeConfig=(()=>{function e(e){if(this.fontFaces=[],this.fontSources=[],this.headingFontSizes=[],this.headingFontWeights=[],this.chartCategoricalColors=[],this.chartSequentialColors=[],this.chartDivergingColors=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.primaryColor=``,e.prototype.secondaryBackgroundColor=``,e.prototype.backgroundColor=``,e.prototype.textColor=``,e.prototype.base=0,e.prototype.headingFont=``,e.prototype.bodyFont=``,e.prototype.codeFont=``,e.prototype.fontFaces=B.emptyArray,e.prototype.fontSources=B.emptyArray,e.prototype.baseRadius=null,e.prototype.buttonRadius=null,e.prototype.borderColor=null,e.prototype.dataframeBorderColor=null,e.prototype.showWidgetBorder=null,e.prototype.linkColor=null,e.prototype.linkUnderline=null,e.prototype.baseFontSize=null,e.prototype.baseFontWeight=null,e.prototype.codeFontWeight=null,e.prototype.codeFontSize=null,e.prototype.headingFontSizes=B.emptyArray,e.prototype.headingFontWeights=B.emptyArray,e.prototype.showSidebarBorder=null,e.prototype.codeTextColor=null,e.prototype.codeBackgroun
18dColor=null,e.prototype.dataframeHeaderBackgroundColor=null,e.prototype.chartCategoricalColors=B.emptyArray,e.prototype.chartSequentialColors=B.emptyArray,e.prototype.chartDivergingColors=B.emptyArray,e.prototype.redColor=null,e.prototype.orangeColor=null,e.prototype.yellowColor=null,e.prototype.blueColor=null,e.prototype.greenColor=null,e.prototype.violetColor=null,e.prototype.grayColor=null,e.prototype.redBackgroundColor=null,e.prototype.orangeBackgroundColor=null,e.prototype.yellowBackgroundColor=null,e.prototype.blueBackgroundColor=null,e.prototype.greenBackgroundColor=null,e.prototype.violetBackgroundColor=null,e.prototype.grayBackgroundColor=null,e.prototype.redTextColor=null,e.prototype.orangeTextColor=null,e.prototype.yellowTextColor=null,e.prototype.blueTextColor=null,e.prototype.greenTextColor=null,e.prototype.violetTextColor=null,e.prototype.grayTextColor=null,e.prototype.metricValueFontSize=null,e.prototype.metricValueFontWeight=null,e.prototype.sidebar=null,e.prototype.light=null,e.prototype.dark=null;let t;return Object.defineProperty(e.prototype,`_baseRadius`,{get:B.oneOfGetter(t=[`baseRadius`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_buttonRadius`,{get:B.oneOfGetter(t=[`buttonRadius`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_borderColor`,{get:B.oneOfGetter(t=[`borderColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_dataframeBorderColor`,{get:B.oneOfGetter(t=[`dataframeBorderColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_showWidgetBorder`,{get:B.oneOfGetter(t=[`showWidgetBorder`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_linkColor`,{get:B.oneOfGetter(t=[`linkColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_linkUnderline`,{get:B.oneOfGetter(t=[`linkUnderline`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_baseFontSize`,{get:B.oneOfGetter(t=[`baseFontSize`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_baseFontWeight`,{get:B.oneOfGetter(t=[`baseFontWeight`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_codeFontWeight`,{get:B.oneOfGetter(t=[`codeFontWeight`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_codeFontSize`,{get:B.oneOfGetter(t=[`codeFontSize`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_showSidebarBorder`,{get:B.oneOfGetter(t=[`showSidebarBorder`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_codeTextColor`,{get:B.oneOfGetter(t=[`codeTextColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_codeBackgroundColor`,{get:B.oneOfGetter(t=[`codeBackgroundColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_dataframeHeaderBackgroundColor`,{get:B.oneOfGetter(t=[`dataframeHeaderBackgroundColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_redColor`,{get:B.oneOfGetter(t=[`redColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_orangeColor`,{get:B.oneOfGetter(t=[`orangeColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_yellowColor`,{get:B.oneOfGetter(t=[`yellowColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_blueColor`,{get:B.oneOfGetter(t=[`blueColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_greenColor`,{get:B.oneOfGetter(t=[`greenColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_violetColor`,{get:B.oneOfGetter(t=[`violetColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_grayColor`,{get:B.oneOfGetter(t=[`grayColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_redBackgroundColor`,{get:B.oneOfGetter(t=[`redBackgroundColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_orangeBackgroundColor`,{get:B.oneOfGetter(t=[`orangeBackgroundColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_yellowBackgroundColor`,{get:B.oneOfGetter(t=[`yellowBackgroundColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_blueBackgroundColor`,{get:B.oneOfGetter(t=[`blueBackgroundColor`]),set:B.oneOfSetter(t)}
18),Object.defineProperty(e.prototype,`_greenBackgroundColor`,{get:B.oneOfGetter(t=[`greenBackgroundColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_violetBackgroundColor`,{get:B.oneOfGetter(t=[`violetBackgroundColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_grayBackgroundColor`,{get:B.oneOfGetter(t=[`grayBackgroundColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_redTextColor`,{get:B.oneOfGetter(t=[`redTextColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_orangeTextColor`,{get:B.oneOfGetter(t=[`orangeTextColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_yellowTextColor`,{get:B.oneOfGetter(t=[`yellowTextColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_blueTextColor`,{get:B.oneOfGetter(t=[`blueTextColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_greenTextColor`,{get:B.oneOfGetter(t=[`greenTextColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_violetTextColor`,{get:B.oneOfGetter(t=[`violetTextColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_grayTextColor`,{get:B.oneOfGetter(t=[`grayTextColor`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_metricValueFontSize`,{get:B.oneOfGetter(t=[`metricValueFontSize`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_metricValueFontWeight`,{get:B.oneOfGetter(t=[`metricValueFontWeight`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_sidebar`,{get:B.oneOfGetter(t=[`sidebar`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_light`,{get:B.oneOfGetter(t=[`light`]),set:B.oneOfSetter(t)}),Object.defineProperty(e.prototype,`_dark`,{get:B.oneOfGetter(t=[`dark`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.primaryColor!=null&&Object.hasOwnProperty.call(e,`primaryColor`)&&t.uint32(10).string(e.primaryColor),e.secondaryBackgroundColor!=null&&Object.hasOwnProperty.call(e,`secondaryBackgroundColor`)&&t.uint32(18).string(e.secondaryBackgroundColor),e.backgroundColor!=null&&Object.hasOwnProperty.call(e,`backgroundColor`)&&t.uint32(26).string(e.backgroundColor),e.textColor!=null&&Object.hasOwnProperty.call(e,`textColor`)&&t.uint32(34).string(e.textColor),e.base!=null&&Object.hasOwnProperty.call(e,`base`)&&t.uint32(48).int32(e.base),e.headingFont!=null&&Object.hasOwnProperty.call(e,`headingFont`)&&t.uint32(98).string(e.headingFont),e.bodyFont!=null&&Object.hasOwnProperty.call(e,`bodyFont`)&&t.uint32(106).string(e.bodyFont),e.codeFont!=null&&Object.hasOwnProperty.call(e,`codeFont`)&&t.uint32(114).string(e.codeFont),e.fontFaces!=null&&e.fontFaces.length)for(let n=0;n<e.fontFaces.length;++n)V.FontFace.encode(e.fontFaces[n],t.uint32(122).fork()).ldelim();if(e.baseRadius!=null&&Object.hasOwnProperty.call(e,`baseRadius`)&&t.uint32(146).string(e.baseRadius),e.borderColor!=null&&Object.hasOwnProperty.call(e,`borderColor`)&&t.uint32(154).string(e.borderColor),e.showWidgetBorder!=null&&Object.hasOwnProperty.call(e,`showWidgetBorder`)&&t.uint32(160).bool(e.showWidgetBorder),e.linkColor!=null&&Object.hasOwnProperty.call(e,`linkColor`)&&t.uint32(170).string(e.linkColor),e.baseFontSize!=null&&Object.hasOwnProperty.call(e,`baseFontSize`)&&t.uint32(176).int32(e.baseFontSize),e.showSidebarBorder!=null&&Object.hasOwnProperty.call(e,`showSidebarBorder`)&&t.uint32(184).bool(e.showSidebarBorder),e.sidebar!=null&&Object.hasOwnProperty.call(e,`sidebar`)&&V.CustomThemeConfig.encode(e.sidebar,t.uint32(194).fork()).ldelim(),e.codeBackgroundColor!=null&&Object.hasOwnProperty.call(e,`codeBackgroundColor`)&&t.uint32(202).string(e.codeBackgroundColor),e.buttonRadius!=null&&Object.hasOwnProperty.call(e,`buttonRadius`)&&t.uint32(210).string(e.buttonRadius),e.dataframeBorderColor!=null&&Object.hasOwnProperty.call(e,`dataframeBorderColor`)&&t.uint32(218).string(e.dataframeBorderColor),e.codeFontSize!=null&&Object.hasOwnProperty.call(e,`codeFontSize`)&&t.uint32(226).string(e.codeFontSize),e.linkUnderline!=null&&Object.hasOwnProperty.call(e,`linkUnderline`)&&t.uint32(232).bool(e.linkUnderline),e.baseFontWeight!=null&&Object.hasOwnProperty.call(e,`baseFontWeight`)&&t.uint32(240).int32(e.baseFontWeight),e.dataframeHeaderBackgroun
18dColor!=null&&Object.hasOwnProperty.call(e,`dataframeHeaderBackgroundColor`)&&t.uint32(250).string(e.dataframeHeaderBackgroundColor),e.codeFontWeight!=null&&Object.hasOwnProperty.call(e,`codeFontWeight`)&&t.uint32(256).int32(e.codeFontWeight),e.chartCategoricalColors!=null&&e.chartCategoricalColors.length)for(let n=0;n<e.chartCategoricalColors.length;++n)t.uint32(266).string(e.chartCategoricalColors[n]);if(e.headingFontWeights!=null&&e.headingFontWeights.length){t.uint32(274).fork();for(let n=0;n<e.headingFontWeights.length;++n)t.int32(e.headingFontWeights[n]);t.ldelim()}if(e.headingFontSizes!=null&&e.headingFontSizes.length)for(let n=0;n<e.headingFontSizes.length;++n)t.uint32(282).string(e.headingFontSizes[n]);if(e.chartSequentialColors!=null&&e.chartSequentialColors.length)for(let n=0;n<e.chartSequentialColors.length;++n)t.uint32(290).string(e.chartSequentialColors[n]);if(e.fontSources!=null&&e.fontSources.length)for(let n=0;n<e.fontSources.length;++n)V.FontSource.encode(e.fontSources[n],t.uint32(298).fork()).ldelim();if(e.redColor!=null&&Object.hasOwnProperty.call(e,`redColor`)&&t.uint32(306).string(e.redColor),e.orangeColor!=null&&Object.hasOwnProperty.call(e,`orangeColor`)&&t.uint32(314).string(e.orangeColor),e.yellowColor!=null&&Object.hasOwnProperty.call(e,`yellowColor`)&&t.uint32(322).string(e.yellowColor),e.blueColor!=null&&Object.hasOwnProperty.call(e,`blueColor`)&&t.uint32(330).string(e.blueColor),e.greenColor!=null&&Object.hasOwnProperty.call(e,`greenColor`)&&t.uint32(338).string(e.greenColor),e.violetColor!=null&&Object.hasOwnProperty.call(e,`violetColor`)&&t.uint32(346).string(e.violetColor),e.grayColor!=null&&Object.hasOwnProperty.call(e,`grayColor`)&&t.uint32(354).string(e.grayColor),e.redBackgroundColor!=null&&Object.hasOwnProperty.call(e,`redBackgroundColor`)&&t.uint32(362).string(e.redBackgroundColor),e.orangeBackgroundColor!=null&&Object.hasOwnProperty.call(e,`orangeBackgroundColor`)&&t.uint32(370).string(e.orangeBackgroundColor),e.yellowBackgroundColor!=null&&Object.hasOwnProperty.call(e,`yellowBackgroundColor`)&&t.uint32(378).string(e.yellowBackgroundColor),e.blueBackgroundColor!=null&&Object.hasOwnProperty.call(e,`blueBackgroundColor`)&&t.uint32(386).string(e.blueBackgroundColor),e.greenBackgroundColor!=null&&Object.hasOwnProperty.call(e,`greenBackgroundColor`)&&t.uint32(394).string(e.green
18BackgroundColor),e.violetBackgroundColor!=null&&Object.hasOwnProperty.call(e,`violetBackgroundColor`)&&t.uint32(402).string(e.violetBackgroundColor),e.grayBackgroundColor!=null&&Object.hasOwnProperty.call(e,`grayBackgroundColor`)&&t.uint32(410).string(e.grayBackgroundColor),e.redTextColor!=null&&Object.hasOwnProperty.call(e,`redTextColor`)&&t.uint32(418).string(e.redTextColor),e.orangeTextColor!=null&&Object.hasOwnProperty.call(e,`orangeTextColor`)&&t.uint32(426).string(e.orangeTextColor),e.yellowTextColor!=null&&Object.hasOwnProperty.call(e,`yellowTextColor`)&&t.uint32(434).string(e.yellowTextColor),e.blueTextColor!=null&&Object.hasOwnProperty.call(e,`blueTextColor`)&&t.uint32(442).string(e.blueTextColor),e.greenTextColor!=null&&Object.hasOwnProperty.call(e,`greenTextColor`)&&t.uint32(450).string(e.greenTextColor),e.violetTextColor!=null&&Object.hasOwnProperty.call(e,`violetTextColor`)&&t.uint32(458).string(e.violetTextColor),e.grayTextColor!=null&&Object.hasOwnProperty.call(e,`grayTextColor`)&&t.uint32(466).str
18ing(e.grayTextColor),e.codeTextColor!=null&&Object.hasOwnProperty.call(e,`codeTextColor`)&&t.uint32(474).string(e.codeTextColor),e.light!=null&&Object.hasOwnProperty.call(e,`light`)&&V.CustomThemeConfig.encode(e.light,t.uint32(482).fork()).ldelim(),e.dark!=null&&Object.hasOwnProperty.call(e,`dark`)&&V.CustomThemeConfig.encode(e.dark,t.uint32(490).fork()).ldelim(),e.chartDivergingColors!=null&&e.chartDivergingColors.length)for(let n=0;n<e.chartDivergingColors.length;++n)t.uint32(498).string(e.chartDivergingColors[n]);if(e.metricValueFontSize!=null&&Object.hasOwnProperty.call(e,`metricValueFontSize`)&&t.uint32(514).string(e.metricValueFontSize),e.metricValueFontWeight!=null&&Object.hasOwnProperty.call(e,`metricValueFontWeight`)&&t.uint32(520).int32(e.metricValueFontWeight),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.CustomThemeConfig,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.primaryColor=s:delete o.primaryColor;continue;case 2:if(a!==2)break;(s=e.string()).length?o.secondaryBackgroundColor=s:delete o.secondaryBackgroundColor;continue;case 3:if(a!==2)break;(s=e.string()).length?o.backgroundColor=s:delete o.backgroundColor;continue;case 4:if(a!==2)break;(s=e.string()).length?o.textColor=s:delete o.textColor;continue;case 6:if(a!==0)break;(s=e.int32())?o.base=s:delete o.base;continue;case 12:if(a!==2)break;(s=e.string()).length?o.headingFont=s:delete o.headingFont;continue;case 13:if(a!==2)break;(s=e.string()).length?o.bodyFont=s:delete o.bodyFont;continue;case 14:if(a!==2)break;(s=e.string()).length?o.codeFont=s:delete o.codeFont;continue;case 15:if(a!==2)break;o.fontFaces&&o.fontFaces.length||(o.fontFaces=[]),o.fontFaces.push(V.FontFace.decode(e,e.uint32(),void 0,r+1));continue;case 37:if(a!==2)break;o.fontSources&&o.fontSources.length||(o.fontSources=[]),o.fontSources.push(V.FontSource.decode(e,e.uint32(),void 0,r+1));continue;case 18:if(a!==2)break;o.baseRadius=e.string(),o._baseRadius=`baseRadius`;continue;case 26:if(a!==2)break;o.buttonRadius=e.string(),o._buttonRadius=`buttonRadius`;continue;case 19:if(a!==2)break;o.borderColor=e.string(),o._borderColor=`borderColor`;continue;case 27:if(a!==2)break;o.dataframeBorderColor=e.string(),o._dataframeBorderColor=`dataframeBorderColor`;continue;case 20:if(a!==0)break;o.showWidgetBorder=e.bool(),o._showWidgetBorder=`showWidgetBorder`;continue;case 21:if(a!==2)break;o.linkColor=e.string(),o._linkColor=`linkColor`;continue;case 29:if(a!==0)break;o.linkUnderline=e.bool(),o._linkUnderline=`linkUnderline`;continue;case 22:if(a!==0)break;o.baseFontSize=e.int32(),o._baseFontSize=`baseFontSize`;continue;case 30:if(a!==0)break;o.baseFontWeight=e.int32(),o._baseFontWeight=`baseFontWeight`;continue;case 32:if(a!==0)break;o.codeFontWeight=e.int32(),o._codeFontWeight=`codeFontWeight`;continue;case 28:if(a!==2)break;o.codeFontSize=e.string(),o._codeFontSize=`codeFontSize`;continue;case 35:if(a!==2)break;o.headingFontSizes&&o.headingFontSizes.length||(o.headingFontSizes=[]),o.headingFontSizes.push(e.string());continue;case 34:if(a===2){o.headingFontWeights&&o.headingFontWeights.length||(o.headingFontWeights=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.headingFontWeights.push(e.int32());continue}if(a!==0)break;o.headingFontWeights&&o.headingFontWeights.length||(o.headingFontWeights=[]),o.headingFontWeights.push(e.int32());continue;case 23:if(a!==0)break;o.showSidebarBorder=e.bool(),o._showSidebarBorder=`showSidebarBorder`;continue;case 59:if(a!==2)break;o.codeTextColor=e.string(),o._codeTextColor=`codeTextColor`;continue;case 25:if(a!==2)break;o.codeBackgroundColor=e.string(),o._codeBackgroundColor=`codeBackgroundColor`;continue;case 31:if(a!==2)break;o.dataframeHeaderBackgroundColor=e.string(),o._dataframeHeaderBackgroundColor=`dataframeHeaderBackgroun
18dColor`;continue;case 33:if(a!==2)break;o.chartCategoricalColors&&o.chartCategoricalColors.length||(o.chartCategoricalColors=[]),o.chartCategoricalColors.push(e.string());continue;case 36:if(a!==2)break;o.chartSequentialColors&&o.chartSequentialColors.length||(o.chartSequentialColors=[]),o.chartSequentialColors.push(e.string());continue;case 62:if(a!==2)break;o.chartDivergingColors&&o.chartDivergingColors.length||(o.chartDivergingColors=[]),o.chartDivergingColors.push(e.string());continue;case 38:if(a!==2)break;o.redColor=e.string(),o._redColor=`redColor`;continue;case 39:if(a!==2)break;o.orangeColor=e.string(),o._orangeColor=`orangeColor`;continue;case 40:if(a!==2)break;o.yellowColor=e.string(),o._yellowColor=`yellowColor`;continue;case 41:if(a!==2)break;o.blueColor=e.string(),o._blueColor=`blueColor`;continue;case 42:if(a!==2)break;o.greenColor=e.string(),o._greenColor=`greenColor`;continue;case 43:if(a!==2)break;o.violetColor=e.string(),o._violetColor=`violetColor`;continue;case 44:if(a!==2)break;o.grayColor=e.string(),o._grayColor=`grayColor`;continue;case 45:if(a!==2)break;o.redBackgroundColor=e.string(),o._redBackgroundColor=`redBackgroundColor`;continue;case 46:if(a!==2)break;o.orangeBackgroundColor=e.string(),o._orangeBackgroundColor=`orangeBackgroundColor`;continue;case 47:if(a!==2)break;o.yellowBackgroundColor=e.string(),o._yellowBackgroundColor=`yellowBackgroundColor`;continue;case 48:if(a!==2)break;o.blueBackgroundColor=e.string(),o._blueBackgroundColor=`blueBackgroundColor`;continue;case 49:if(a!==2)break;o.greenBackgroundColor=e.string(),o._greenBackgroundColor=`greenBackgroundColor`;continue;case 50:if(a!==2)break;o.violetBackgroundColor=e.string(),o._violetBackgroundColor=`violetBackgroundColor`;continue;case 51:if(a!==2)break;o.grayBackgroundColor=e.string(),o._grayBackgroundColor=`grayBackgroundColor`;continue;case 52:if(a!==2)break;o.redTextColor=e.string(),o._redTextColor=`redTextColor`;continue;case 53:if(a!==2)break;o.orangeTextColor=e.string(),o._orangeTextColor=`orangeTextColor`;continue;case 54:if(a!==2)break;o.yellowTextColor=e.string(),o._yellowTextColor=`yellowTextColor`;continue;case 55:if(a!==2)break;o.blueTextColor=e.string(),o._blueTextColor=`blueTextColor`;continue;case 56:if(a!==2)break;o.greenTextColor=e.string(),o._greenTextColor=`greenTextColor`;continue;case 57:if(a!==2)break;o.violetTextColor=e.string(),o._violetTextColor=`violetTextColor`;continue;case 58:if(a!==2)break;o.grayTextColor=e.string(),o._grayTextColor=`grayTextColor`;continue;case 64:if(a!==2)break;o.metricValueFontSize=e.string(),o._metricValueFontSize=`metricValueFontSize`;continue;case 65:if(a!==0)break;o.metricValueFontWeight=e.int32(),o._metricValueFontWeight=`metricValueFontWeight`;continue;case 24:if(a!==2)break;o.sidebar=V.CustomThemeConfig.decode(e,e.uint32(),void 0,r+1,o.sidebar),o._sidebar=`sidebar`;continue;case 60:if(a!==2)break;o.light=V.CustomThemeConfig.decode(e,e.uint32(),void 0,r+1,o.light),o._light=`light`;continue;case 61:if(a!==2)break;o.dark=V.CustomThemeConfig.decode(e,e.uint32(),void 0,r+1,o.dark),o._dark=`dark`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.CustomThemeConfig)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.CustomThemeConfig;if(e.primaryColor!=null&&(typeof e.primaryColor!=`string`||e.primaryColor.length)&&(n.primaryColor=String(e.primaryColor)),e.secondaryBackgroundColor!=null&&(typeof e.secondaryBackgroundColor!=`string`||e.secondaryBackgroundColor.length)&&(n.secondaryBackgroundColor=String(e.secondaryBackgroundColor)),e.backgroundColor!=null&&(typeof e.backgroundColor!=`string`||e.backgroundColor.length)&&(n.backgroundColor=String(e.backgroundColor)),e.textColor!=null&&(typeof e.textColor!=`string`||e.textColor.length)&&(n.textColor=String(e.textColor)),e.base!==0&&(typeof e.base!=`string`||V.CustomThemeConfig.BaseTheme[e.base]!==0))switch(e.base){default:if(typeof e.base==`number`){n.base=e.base;break}break;case`LIGHT`:case 0:n.base=0;break;case`DARK`:case 1:n.base=1;break}if(e.headingFont!=null&&(typeof e.headingFont!=`string`||e.headingFont.length)&&(n.headingFont=String(e.headingFont)),e.bodyFont!=null&&(typeof e.bodyFont!=`string`||e.bodyFont.length)&&(n.body
18Font=String(e.bodyFont)),e.codeFont!=null&&(typeof e.codeFont!=`string`||e.codeFont.length)&&(n.codeFont=String(e.codeFont)),e.fontFaces){if(!Array.isArray(e.fontFaces))throw TypeError(`.CustomThemeConfig.fontFaces: array expected`);n.fontFaces=Array(e.fontFaces.length);for(let r=0;r<e.fontFaces.length;++r){if(typeof e.fontFaces[r]!=`object`)throw TypeError(`.CustomThemeConfig.fontFaces: object expected`);n.fontFaces[r]=V.FontFace.fromObject(e.fontFaces[r],t+1)}}if(e.fontSources){if(!Array.isArray(e.fontSources))throw TypeError(`.CustomThemeConfig.fontSources: array expected`);n.fontSources=Array(e.fontSources.length);for(let r=0;r<e.fontSources.length;++r){if(typeof e.fontSources[r]!=`object`)throw TypeError(`.CustomThemeConfig.fontSources: object expected`);n.fontSources[r]=V.FontSource.fromObject(e.fontSources[r],t+1)}}if(e.baseRadius!=null&&(n.baseRadius=String(e.baseRadius)),e.buttonRadius!=null&&(n.buttonRadius=String(e.buttonRadius)),e.borderColor!=null&&(n.borderColor=String(e.borderColor)),e.dataframeBorderColor!=null&&(n.dataframeBorderColor=String(e.dataframeBorderColor)),e.showWidgetBorder!=null&&(n.showWidgetBorder=!!e.showWidgetBorder),e.linkColor!=null&&(n.linkColor=String(e.linkColor)),e.linkUnderline!=null&&(n.linkUnderline=!!e.linkUnderline),e.baseFontSize!=null&&(n.baseFontSize=e.baseFontSize|0),e.baseFontWeight!=null&&(n.baseFontWeight=e.baseFontWeight|0),e.codeFontWeight!=null&&(n.codeFontWeight=e.codeFontWeight|0),e.codeFontSize!=null&&(n.codeFontSize=String(e.codeFontSize)),e.headingFontSizes){if(!Array.isArray(e.headingFontSizes))throw TypeError(`.CustomThemeConfig.headingFontSizes: array expected`);n.headingFontSizes=Array(e.headingFontSizes.length);for(let t=0;t<e.headingFontSizes.length;++t)n.headingFontSizes[t]=String(e.headingFontSizes[t])}if(e.headingFontWeights){if(!Array.isArray(e.headingFontWeights))throw TypeError(`.CustomThemeConfig.headingFontWeights: array expected`);n.headingFontWeights=Array(e.headingFontWeights.length);for(let t=0;t<e.headingFontWeights.length;++t)n.headingFontWeights[t]=e.headingFontWeights[t]|0}if(e.showSidebarBorder!=null&&(n.showSidebarBorder=!!e.showSidebarBorder),e.codeTextColor!=null&&(n.codeTextColor=String(e.codeTextColor)),e.codeBackgroundColor!=null&&(n.codeBackgroundColor=String(e.codeBackgroundColor)),e.dataframeHeaderBackgroundColor!=null&&(n.dataframeHeaderBackgroundColor=String(e.dataframeHeaderBackgroundColor)),e.chartCategoricalColors){if(!Array.isArray(e.chartCategoricalColors))throw TypeError(`.CustomThemeConfig.chartCategoricalColors: array expected`);n.chartCategoricalColors=Array(e.chartCategoricalColors.length);for(let t=0;t<e.chartCategoricalColors.length;++t)n.chartCategoricalColors[t]=String(e.chartCategoricalColors[t])}if(e.chartSequentialColors){if(!Array.isArray(e.chartSequentialColors))throw TypeError(`.CustomThemeConfig.chartSequentialColors: array expected`);n.chartSequentialColors=Array(e.chartSequentialColors.length);for(let t=0;t<e.chartSequentialColors.length;++t)n.chartSequentialColors[t]=String(e.chartSequentialColors[t])}if(e.chartDivergingColors){if(!Array.isArray(e.chartDivergingColors))throw TypeError(`.CustomThemeConfig.chartDivergingColors: array expected`);n.chartDivergingColors=Array(e.chartDivergingColors.length);for(let t=0;t<e.chartDivergingColors.length;++t)n.chartDivergingColors[t]=String(e.chartDivergingColors[t])}if(e.redColor!=null&&(n.redColor=String(e.redColor)),e.orangeColor!=null&&(n.orangeColor=String(e.orangeColor)),e.yellowColor!=null&&(n.yellowColor=String(e.yellowColor)),e.blueColor!=null&&(n.blueColor=String(e.blueColor)),e.greenColor!=null&&(n.greenColor=String(e.greenColor)),e.violetColor!=null&&(n.violetColor=String(e.violetColor)),e.grayColor!=null&&(n.grayColor=String(e.grayColor)),e.redBackgroundColor!=null&&(n.redBackgroundColor=String(e.redBackgroundColor)),e.orangeBackgroundColor!=null&&(n.orangeBackgroundColor=String(e.orangeBackgroundColor)),e.yellowBackgroundColor!=null&&(n.yellowBackgroundColor=String(e.yellowBackgroundColor)),e.blueBackgroundColor!=null&&(n.blueBackgroundColor=String(e.blueBackgroun
18dColor)),e.greenBackgroundColor!=null&&(n.greenBackgroundColor=String(e.greenBackgroundColor)),e.violetBackgroundColor!=null&&(n.violetBackgroundColor=String(e.violetBackgroundColor)),e.grayBackgroundColor!=null&&(n.grayBackgroundColor=String(e.grayBackgroundColor)),e.redTextColor!=null&&(n.redTextColor=String(e.redTextColor)),e.orangeTextColor!=null&&(n.orangeTextColor=String(e.orangeTextColor)),e.yellowTextColor!=null&&(n.yellowTextColor=String(e.yellowTextColor)),e.blueTextColor!=null&&(n.blueTextColor=String(e.blueTextColor)),e.greenTextColor!=null&&(n.greenTextColor=String(e.greenTextColor)),e.violetTextColor!=null&&(n.violetTextColor=String(e.violetTextColor)),e.grayTextColor!=null&&(n.grayTextColor=String(e.grayTextColor)),e.metricValueFontSize!=null&&(n.metricValueFontSize=String(e.metricValueFontSize)),e.metricValueFontWeight!=null&&(n.metricValueFontWeight=e.metricValueFontWeight|0),e.sidebar!=null){if(typeof e.sidebar!=`object`)throw TypeError(`.CustomThemeConfig.sidebar: object expected`);n.sidebar=V.CustomThemeConfig.fromObject(e.sidebar,t+1)}if(e.light!=null){if(typeof e.light!=`object`)throw TypeError(`.CustomThemeConfig.light: object expected`);n.light=V.CustomThemeConfig.fromObject(e.light,t+1)}if(e.dark!=null){if(typeof e.dark!=`object`)throw TypeError(`.CustomThemeConfig.dark: object expected`);n.dark=V.CustomThemeConfig.fromObject(e.dark,t+1)}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.fontFaces=[],n.chartCategoricalColors=[],n.headingFontWeights=[],n.headingFontSizes=[],n.chartSequentialColors=[],n.fontSources=[],n.chartDivergingColors=[]),t.defaults&&(n.primaryColor=``,n.secondaryBackgroundColor=``,n.backgroundColor=``,n.textColor=``,n.base=t.enums===String?`LIGHT`:0,n.headingFont=``,n.bodyFont=``,n.codeFont=``),e.primaryColor!=null&&e.hasOwnProperty(`primaryColor`)&&(n.primaryColor=e.primaryColor),e.secondaryBackgroundColor!=null&&e.hasOwnProperty(`secondaryBackgroundColor`)&&(n.secondaryBackgroundColor=e.secondaryBackgroundColor),e.backgroundColor!=null&&e.hasOwnProperty(`backgroundColor`)&&(n.backgroundColor=e.backgroundColor),e.textColor!=null&&e.hasOwnProperty(`textColor`)&&(n.textColor=e.textColor),e.base!=null&&e.hasOwnProperty(`base`)&&(n.base=t.enums===String?V.CustomThemeConfig.BaseTheme[e.base]===void 0?e.base:V.CustomThemeConfig.BaseTheme[e.base]:e.base),e.headingFont!=null&&e.hasOwnProperty(`headingFont`)&&(n.headingFont=e.headingFont),e.bodyFont!=null&&e.hasOwnProperty(`bodyFont`)&&(n.bodyFont=e.bodyFont),e.codeFont!=null&&e.hasOwnProperty(`codeFont`)&&(n.codeFont=e.codeFont),e.fontFaces&&e.fontFaces.length){n.fontFaces=Array(e.fontFaces.length);for(let r=0;r<e.fontFaces.length;++r)n.fontFaces[r]=V.FontFace.toObject(e.fontFaces[r],t)}if(e.baseRadius!=null&&e.hasOwnProperty(`baseRadius`)&&(n.baseRadius=e.baseRadius,t.oneofs&&(n._baseRadius=`baseRadius`)),e.borderColor!=null&&e.hasOwnProperty(`borderColor`)&&(n.borderColor=e.borderColor,t.oneofs&&(n._borderColor=`borderColor`)),e.showWidgetBorder!=null&&e.hasOwnProperty(`showWidgetBorder`)&&(n.showWidgetBorder=e.showWidgetBorder,t.oneofs&&(n._showWidgetBorder=`showWidgetBorder`)),e.linkColor!=null&&e.hasOwnProperty(`linkColor`)&&(n.linkColor=e.linkColor,t.oneofs&&(n._linkColor=`linkColor`)),e.baseFontSize!=null&&e.hasOwnProperty(`baseFontSize`)&&(n.baseFontSize=e.baseFontSize,t.oneofs&&(n._baseFontSize=`baseFontSize`)),e.showSidebarBorder!=null&&e.hasOwnProperty(`showSidebarBorder`)&&(n.showSidebarBorder=e.showSidebarBorder,t.oneofs&&(n._showSidebarBorder=`showSidebarBorder`)),e.sidebar!=null&&e.hasOwnProperty(`sidebar`)&&(n.sidebar=V.CustomThemeConfig.toObject(e.sidebar,t),t.oneofs&&(n._sidebar=`sidebar`)),e.codeBackgroundColor!=null&&e.hasOwnProperty(`codeBackgroundColor`)&&(n.codeBackgroundColor=e.codeBackgroundColor,t.oneofs&&(n._codeBackgroundColor=`codeBackgroundColor`)),e.buttonRadius!=null&&e.hasOwnProperty(`buttonRadius`)&&(n.buttonRadius=e.buttonRadius,t.oneofs&&(n._buttonRadius=`buttonRadius`)),e.dataframeBorderColor!=null&&e.hasOwnProperty(`dataframeBorderColor`)&&(n.dataframeBorderColor=e.dataframeBorderColor,t.oneofs&&(n._dataframeBorderColor=`dataframeBorderColor`)),e.codeFontSize!=null&&e.hasOwnProperty(`codeFontSize`)&&(n.codeFontSize=e.codeFontSize,t.oneofs&&(n._codeFontSize=`codeFontSize`)),e.linkUnderline!=null&&e.hasOwnProperty(`linkUnderline`)&&(n.linkUnderline=e.linkUnderline,t.oneofs&&(n._linkUnderline=`linkUnderline`)),e.baseFontWeight!=null&&e.hasOwnProperty(`baseFontWeight`)&&(n.baseFontWeight=e.baseFontWeight,t.oneofs&&(n._baseFontWeight=`baseFontWeight`)),e.dataframeHeaderBackgroun
18dColor!=null&&e.hasOwnProperty(`dataframeHeaderBackgroundColor`)&&(n.dataframeHeaderBackgroundColor=e.dataframeHeaderBackgroundColor,t.oneofs&&(n._dataframeHeaderBackgroundColor=`dataframeHeaderBackgroundColor`)),e.codeFontWeight!=null&&e.hasOwnProperty(`codeFontWeight`)&&(n.codeFontWeight=e.codeFontWeight,t.oneofs&&(n._codeFontWeight=`codeFontWeight`)),e.chartCategoricalColors&&e.chartCategoricalColors.length){n.chartCategoricalColors=Array(e.chartCategoricalColors.length);for(let t=0;t<e.chartCategoricalColors.length;++t)n.chartCategoricalColors[t]=e.chartCategoricalColors[t]}if(e.headingFontWeights&&e.headingFontWeights.length){n.headingFontWeights=Array(e.headingFontWeights.length);for(let t=0;t<e.headingFontWeights.length;++t)n.headingFontWeights[t]=e.headingFontWeights[t]}if(e.headingFontSizes&&e.headingFontSizes.length){n.headingFontSizes=Array(e.headingFontSizes.length);for(let t=0;t<e.headingFontSizes.length;++t)n.headingFontSizes[t]=e.headingFontSizes[t]}if(e.chartSequentialColors&&e.chartSequentialColors.length){n.chartSequentialColors=Array(e.chartSequentialColors.length);for(let t=0;t<e.chartSequentialColors.length;++t)n.chartSequentialColors[t]=e.chartSequentialColors[t]}if(e.fontSources&&e.fontSources.length){n.fontSources=Array(e.fontSources.length);for(let r=0;r<e.fontSources.length;++r)n.fontSources[r]=V.FontSource.toObject(e.fontSources[r],t)}if(e.redColor!=null&&e.hasOwnProperty(`redColor`)&&(n.redColor=e.redColor,t.oneofs&&(n._redColor=`redColor`)),e.orangeColor!=null&&e.hasOwnProperty(`orangeColor`)&&(n.orangeColor=e.orangeColor,t.oneofs&&(n._orangeColor=`orangeColor`)),e.yellowColor!=null&&e.hasOwnProperty(`yellowColor`)&&(n.yellowColor=e.yellowColor,t.oneofs&&(n._yellowColor=`yellowColor`)),e.blueColor!=null&&e.hasOwnProperty(`blueColor`)&&(n.blueColor=e.blueColor,t.oneofs&&(n._blueColor=`blueColor`)),e.greenColor!=null&&e.hasOwnProperty(`greenColor`)&&(n.greenColor=e.greenColor,t.oneofs&&(n._greenColor=`greenColor`)),e.violetColor!=null&&e.hasOwnProperty(`violetColor`)&&(n.violetColor=e.violetColor,t.oneofs&&(n._violetColor=`violetColor`)),e.grayColor!=null&&e.hasOwnProperty(`grayColor`)&&(n.grayColor=e.grayColor,t.oneofs&&(n._grayColor=`grayColor`)),e.redBackgroundColor!=null&&e.hasOwnProperty(`redBackgroundColor`)&&(n.redBackgroundColor=e.redBackgroundColor,t.oneofs&&(n._redBackgroundColor=`redBackgroundColor`)),e.orangeBackgroundColor!=null&&e.hasOwnProperty(`orangeBackgroundColor`)&&(n.orangeBackgroundColor=e.orangeBackgroundColor,t.oneofs&&(n._orangeBackgroundColor=`orangeBackgroundColor`)),e.yellowBackgroundColor!=null&&e.hasOwnProperty(`yellowBackgroundColor`)&&(n.yellowBackgroundColor=e.yellowBackgroundColor,t.oneofs&&(n._yellowBackgroundColor=`yellowBackgroundColor`)),e.blueBackgroundColor!=null&&e.hasOwnProperty(`blueBackgroundColor`)&&(n.blueBackgroundColor=e.blueBackgroundColor,t.oneofs&&(n._blueBackgroundColor=`blueBackgroundColor`)),e.greenBackgroundColor!=null&&e.hasOwnProperty(`greenBackgroundColor`)&&(n.greenBackgroundColor=e.greenBackgroundColor,t.oneofs&&(n._greenBackgroundColor=`greenBackgroundColor`)),e.violetBackgroundColor!=null&&e.hasOwnProperty(`violetBackgroundColor`)&&(n.violetBackgroundColor=e.violetBackgroundColor,t.oneofs&&(n._violetBackgroundColor=`violetBackgroundColor`)),e.grayBackgroundColor!=null&&e.hasOwnProperty(`grayBackgroundColor`)&&(n.grayBackgroundColor=e.grayBackgroundColor,t.oneofs&&(n._grayBackgroundColor=`grayBackgroundColor`)),e.redTextColor!=null&&e.hasOwnProperty(`redTextColor`)&&(n.redTextColor=e.redTextColor,t.oneofs&&(n._redTextColor=`redTextColor`)),e.orangeTextColor!=null&&e.hasOwnProperty(`orangeTextColor`)&&(n.orangeTextColor=e.orangeTextColor,t.oneofs&&(n._orangeTextColor=`orangeTextColor`)),e.yellowTextColor!=null&&e.hasOwnProperty(`yellowTextColor`)&&(n.yellowTextColor=e.yellowTextColor,t.oneofs&&(n._yellowTextColor=`yellowTextColor`)),e.blueTextColor!=null&&e.hasOwnProperty(`blueTextColor`)&&(n.blueTextColor=e.blueTextColor,t.oneofs&&(n._blueTextColor=`blueTextColor`)),e.greenTextColor!=null&&e.hasOwnProperty(`greenTextColor`)&&(n.greenTextColor=e.greenTextColor,t.oneofs&&(n._greenTextColor=`greenTextColor`)),e.violetTextColor!=null&&e.hasOwnProperty(`violetTextColor`)&&(n.violetTextColor=e.violetTextColor,t.oneofs&&(n._violetTextColor=`violetTextColor`)),e.grayTextColor!=null&&e.hasOwnProperty(`grayTextColor`)&&(n.grayTextColor=e.grayTextColor,t.oneofs&&(n._grayTextColor=`grayTextColor`)),e.codeTextColor!=null&&e.hasOwnProperty(`codeTextColor`)&&(n.codeTextColor=e.codeTextColor,t.oneofs&&(n._codeTextColor=`codeTextColor`)),e.light!=null&&e.hasOwnProperty(`light`)&&(n.light=V.CustomThemeConfig.toObject(e.light,t),t.oneofs&&(n._light=`light`)),e.dark!=null&&e.hasOwnProperty(`dark`)&&(n.dark=V.CustomThemeConfig.toObject(e.dark,t),t.oneofs&&(n._dark=`dark`)),e.chartDivergingColors&&e.chartDivergingColors.length){n.chartDivergingColors=Array(e.chartDivergingColors.length);for(let t=0;t<e.chartDivergingColors.length;++t)n.chartDivergingColors[t]=e.chartDivergingColors[t]}return e.metricValueFontSize!=null&&e.hasOwnProperty(`metricValueFontSize`)&&(n.metricValueFontSize=e.metricValueFontSize,t.oneofs&&(n._metricValueFontSize=`metricValueFontSize`)),e.metricValueFontWeight!=null&&e.hasOwnProperty(`metricValueFontWeight`)&&(n.metricValueFontWeight=e.metricValueFontWeight,t.oneofs&&(n._metricValueFontWeight=`metricValueFontWeight`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/CustomThemeConfig`},e.BaseTheme=(function(){let e={},t=Object.create(e);return t[e[0]=`LIGHT`]=0,t[e[1]=`DARK`]=1,t})(),e})();V.FontFace=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.url=``,e.prototype.family=``,e.prototype.weightRange=``,e.prototype.style=``,e.prototype.unicodeRange=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.url!=null&&Object.hasOwnProperty.call(e,`url`)&&t.uint32(10).string(e.url),e.fam
18ily!=null&&Object.hasOwnProperty.call(e,`family`)&&t.uint32(18).string(e.family),e.style!=null&&Object.hasOwnProperty.call(e,`style`)&&t.uint32(34).string(e.style),e.weightRange!=null&&Object.hasOwnProperty.call(e,`weightRange`)&&t.uint32(42).string(e.weightRange),e.unicodeRange!=null&&Object.hasOwnProperty.call(e,`unicodeRange`)&&t.uint32(50).string(e.unicodeRange),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.FontFace,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.url=s:delete o.url;continue;case 2:if(a!==2)break;(s=e.string()).length?o.family=s:delete o.family;continue;case 5:if(a!==2)break;(s=e.string()).length?o.weightRange=s:delete o.weightRange;continue;case 4:if(a!==2)break;(s=e.string()).length?o.style=s:delete o.style;continue;case 6:if(a!==2)break;(s=e.string()).length?o.unicodeRange=s:delete o.unicodeRange;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.FontFace)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.FontFace;return e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=String(e.url)),e.family!=null&&(typeof e.family!=`string`||e.family.length)&&(n.family=String(e.family)),e.weightRange!=null&&(typeof e.weightRange!=`string`||e.weightRange.length)&&(n.weightRange=String(e.weightRange)),e.style!=null&&(typeof e.style!=`string`||e.style.length)&&(n.style=String(e.style)),e.unicodeRange!=null&&(typeof e.unicodeRange!=`string`||e.unicodeRange.length)&&(n.unicodeRange=String(e.unicodeRange)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.url=``,n.family=``,n.style=``,n.weightRange=``,n.unicodeRange=``),e.url!=null&&e.hasOwnProperty(`url`)&&(n.url=e.url),e.family!=null&&e.hasOwnProperty(`family`)&&(n.family=e.family),e.style!=null&&e.hasOwnProperty(`style`)&&(n.style=e.style),e.weightRange!=null&&e.hasOwnProperty(`weightRange`)&&(n.weightRange=e.weightRange),e.unicodeRange!=null&&e.hasOwnProperty(`unicodeRange`)&&(n.unicodeRange=e.unicodeRange),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/FontFace`},e})(),V.FontSource=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.configName=``,e.prototype.sourceUrl=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.configName!=null&&Object.hasOwnProperty.call(e,`configName`)&&t.uint32(10).string(e.configName),e.sourceUrl!=null&&Object.hasOwnProperty.call(e,`sourceUrl`)&&t.uint32(18).string(e.sourceUrl),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.FontSource,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.configName=s:delete o.configName;continue;case 2:if(a!==2)break;(s=e.string()).length?o.sourceUrl=s:delete o.sourceUrl;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.FontSource)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.FontSource;return e.configName!=null&&(typeof e.configName!=`string`||e.configName.length)&&(n.configName=String(e.configName)),e.sourceUrl!=null&&(typeof e.sourceUrl!=`string`||e.sourceUrl.length)&&(n.sourceUrl=String(e.sourceUrl)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.configName=``,n.sourceUrl=``),e.configName!=null&&e.hasOwnProperty(`configName`)&&(n.configName=e.configName),e.sourceUrl!=null&&e.hasOwnProperty(`sourceUrl`)&&(n.sourceUrl=e.sourceUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/FontSource`},e})(),V.UserInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.installationId=``,e.prototype.installationIdV3=``,e.prototype.installationIdV4=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.installationId!=null&&Object.hasOwnProperty.call(e,`installationId`)&&t.uint32(10).string(e.installationId),e.installationIdV3!=null&&Object.hasOwnProperty.call(e,`installationIdV3`)&&t.uint32(42).string(e.installationIdV3),e.installationIdV4!=null&&Object.hasOwnProperty.call(e,`installationIdV4`)&&t.uint32(50).string(e.installationIdV4),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.UserInfo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.installationId=s:delete o.installationId;continue;case 5:if(a!==2)break;(s=e.string()).length?o.installationIdV3=s:delete o.installationIdV3;continue;case 6:if(a!==2)break;(s=e.string()).length?o.installationIdV4=s:delete o.installationIdV4;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.UserInfo)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.UserInfo;return e.installationId!=null&&(typeof e.installationId!=`string`||e.installationId.length)&&(n.installationId=String(e.installationId)),e.installationIdV3!=null&&(typeof e.installationIdV3!=`string`||e.installationIdV3.length)&&(n.installationIdV3=String(e.installationIdV3)),e.installationIdV4!=null&&(typeof e.installationIdV4!=`string`||e.installationIdV4.length)&&(n.installationIdV4=String(e.installationIdV4)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.installationId=``,n.installationIdV3=``,n.installationIdV4=``),e.installationId!=null&&e.hasOwnProperty(`installationId`)&&(n.installationId=e.installationId),e.installationIdV3!=null&&e.hasOwnProperty(`installationIdV3`)&&(n.installationIdV3=e.installationIdV3),e.installationIdV4!=null&&e.hasOwnProperty(`installationIdV4`)&&(n.installationIdV4=e.installationIdV4),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/UserInfo`},e})(),V.EnvironmentInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.streamlitVersion=``,e.prototype.pythonVersion=``,e.prototype.serverOs=``,e.prototype.hasDisplay=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.streamlitVersion!=null&&Object.hasOwnProperty.call(e,`streamlitVersion`)&&t.uint32(10).string(e.streamlitVersion),e.pythonVersion!=null&&Object.hasOwnProperty.call(e,`pythonVersion`)&&t.uint32(18).string(e.pythonVersion),e.serverOs!=null&&Object.hasOwnProperty.call(e,`serverOs`)&&t.uint32(26).string(e.serverOs),e.hasDisplay!=null&&Object.hasOwnProperty.call(e,`hasDisplay`)&&t.uint32(32).bool(e.hasDisplay),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.EnvironmentInfo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.streamlitVersion=s:delete o.streamlitVersion;continue;case 2:if(a!==2)break;(s=e.string()).length?o.pythonVersion=s:delete o.pythonVersion;continue;case 3:if(a!==2)break;(s=e.string()).length?o.serverOs=s:delete o.serverOs;continue;case 4:if(a!==0)break;(s=e.bool())?o.hasDisplay=s:delete o.hasDisplay;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.EnvironmentInfo)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.EnvironmentInfo;return e.streamlitVersion!=null&&(typeof e.streamlitVersion!=`string`||e.streamlitVersion.length)&&(n.streamlitVersion=String(e.streamlitVersion)),e.pythonVersion!=null&&(typeof e.pythonVersion!=`string`||e.pythonVersion.length)&&(n.pythonVersion=String(e.pythonVersion)),e.serverOs!=null&&(typeof e.serverOs!=`string`||e.serverOs.length)&&(n.serverOs=String(e.serverOs)),e.hasDisplay!=null&&e.hasDisplay&&(n.hasDisplay=!!e.hasDisplay),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.streamlitVersion=``,n.pythonVersion=``,n.serverOs=``,n.hasDisplay=!1),e.streamlitVersion!=null&&e.hasOwnProperty(`streamlitVersion`)&&(n.streamlitVersion=e.streamlitVersion),e.pythonVersion!=null&&e.hasOwnProperty(`pythonVersion`)&&(n.pythonVersion=e.pythonVersion),e.serverOs!=null&&e.hasOwnProperty(`serverOs`)&&(n.serverOs=e.serverOs),e.hasDisplay!=null&&e.hasOwnProperty(`hasDisplay`)&&(n.hasDisplay=e.hasDisplay),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/EnvironmentInfo`},e})(),V.SessionStatus=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.runOnSave=!1,e.prototype.scriptIsRunning=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.runOnSave!=null&&Object.hasOwnProperty.call(e,`runOnSave`)&&t.uint32(8).bool(e.runOnSave),e.scriptIsRunning!=null&&Object.hasOwnProperty.call(e,`scriptIsRunning`)&&t.uint32(16).bool(e.scriptIsRunning),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.SessionStatus,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.bool())?o.runOnSave=s:delete o.runOnSave;continue;case 2:if(a!==0)break;(s=e.bool())?o.scriptIsRunning=s:delete o.scriptIsRunning;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.SessionStatus)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.SessionStatus;return e.runOnSave!=null&&e.runOnSave&&(n.runOnSave=!!e.runOnSave),e.scriptIsRunning!=null&&e.scriptIsRunning&&(n.scriptIsRunning=!!e.scriptIsRunning),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.runOnSave=!1,n.scriptIsRunning=!1),e.runOnSave!=null&&e.hasOwnProperty(`runOnSave`)&&(n.runOnSave=e.runOnSave),e.scriptIsRunning!=null&&e.hasOwnProperty(`scriptIsRunning`)&&(n.scriptIsRunning=e.scriptIsRunning),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/SessionStatus`},e})();var Jo=V.PageConfig=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.title=``,e.prototype.favicon=``,e.prototype.layout=0,e.prototype.initialSidebarState=0,e.prototype.menuItems=null,e.prototype.initialSidebarWidth=null;let t;return Object.defineProperty(e.prototype,`_initialSidebarWidth`,{get:B.oneOfGetter(t=[`initialSidebarWidth`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.title!=null&&Object.hasOwnProperty.call(e,`title`)&&t.uint32(10).string(e.title),e.favicon!=null&&Object.hasOwnProperty.call(e,`favicon`)&&t.uint32(18).string(e.favicon),e.layout!=null&&Object.hasOwnProperty.call(e,`layout`)&&t.uint32(24).int32(e.layout),e.initialSidebarState!=null&&Object.hasOwnProperty.call(e,`initialSidebarState`)&&t.uint32(32).int32(e.initialSidebarState),e.menuItems!=null&&Object.hasOwnProperty.call(e,`menuItems`)&&V.PageConfig.MenuItems.encode(e.menuItems,t.uint32(42).fork()).ldelim(),e.initialSidebarWidth!=null&&Object.hasOwnProperty.call(e,`initialSidebarWidth`)&&V.PageConfig.SidebarWidthConfig.encode(e.initialSidebarWidth,t.uint32(50).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.PageConfig,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.title=s:delete o.title;continue;case 2:if(a!==2)break;(s=e.string()).length?o.favicon=s:delete o.favicon;continue;case 3:if(a!==0)break;(s=e.int32())?o.layout=s:delete o.layout;continue;case 4:if(a!==0)break;(s=e.int32())?o.initialSidebarState=s:delete o.initialSidebarState;continue;case 5:if(a!==2)break;o.menuItems=V.PageConfig.MenuItems.decode(e,e.uint32(),void 0,r+1,o.menuItems);continue;case 6:if(a!==2)break;o.initialSidebarWidth=V.PageConfig.SidebarWidthConfig.decode(e,e.uint32(),void 0,r+1,o.initialSidebarWidth),o._initialSidebarWidth=`initialSidebarWidth`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.PageConfig)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.PageConfig;if(e.title!=null&&(typeof e.title!=`string`||e.title.length)&&(n.title=String(e.title)),e.favicon!=null&&(typeof e.favicon!=`string`||e.favicon.length)&&(n.favicon=String(e.favicon)),e.layout!==0&&(typeof e.layout!=`string`||V.PageConfig.Layout[e.layout]!==0))switch(e.layout){default:if(typeof e.layout==`number`){n.layout=e.layout;break}break;case`CENTERED`:case 0:n.layout=0;break;case`WIDE`:case 1:n.layout=1;break;case`LAYOUT_UNSET`:case 2:n.layout=2;break}if(e.initialSidebarState!==0&&(typeof e.initialSidebarState!=`string`||V.PageConfig.SidebarState[e.initialSidebarState]!==0))switch(e.initialSidebarState){default:if(typeof e.initialSidebarState==`number`){n.initialSidebarState=e.initialSidebarState;break}break;case`AUTO`:case 0:n.initialSidebarState=0;break;case`EXPANDED`:case 1:n.initialSidebarState=1;break;case`COLLAPSED`:case 2:n.initialSidebarState=2;break;case`SIDEBAR_UNSET`:case 3:n.initialSidebarState=3;break}if(e.menuItems!=null){if(typeof e.menuItems!=`object`)throw TypeError(`.PageConfig.menuItems: object expected`);n.menuItems=V.PageConfig.MenuItems.fromObject(e.menuItems,t+1)}if(e.initialSidebarWidth!=null){if(typeof e.initialSidebarWidth!=`object`)throw TypeError(`.PageConfig.initialSidebarWidth: object expected`);n.initialSidebarWidth=V.PageConfig.SidebarWidthConfig.fromObject(e.initialSidebarWidth,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.title=``,n.favicon=``,n.layout=t.enums===String?`CENTERED`:0,n.initialSidebarS
18tate=t.enums===String?`AUTO`:0,n.menuItems=null),e.title!=null&&e.hasOwnProperty(`title`)&&(n.title=e.title),e.favicon!=null&&e.hasOwnProperty(`favicon`)&&(n.favicon=e.favicon),e.layout!=null&&e.hasOwnProperty(`layout`)&&(n.layout=t.enums===String?V.PageConfig.Layout[e.layout]===void 0?e.layout:V.PageConfig.Layout[e.layout]:e.layout),e.initialSidebarState!=null&&e.hasOwnProperty(`initialSidebarState`)&&(n.initialSidebarState=t.enums===String?V.PageConfig.SidebarState[e.initialSidebarState]===void 0?e.initialSidebarState:V.PageConfig.SidebarState[e.initialSidebarState]:e.initialSidebarState),e.menuItems!=null&&e.hasOwnProperty(`menuItems`)&&(n.menuItems=V.PageConfig.MenuItems.toObject(e.menuItems,t)),e.initialSidebarWidth!=null&&e.hasOwnProperty(`initialSidebarWidth`)&&(n.initialSidebarWidth=V.PageConfig.SidebarWidthConfig.toObject(e.initialSidebarWidth,t),t.oneofs&&(n._initialSidebarWidth=`initialSidebarWidth`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/PageConfig`},e.MenuItems=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.getHelpUrl=``,e.prototype.hideGetHelp=!1,e.prototype.reportABugUrl=``,e.prototype.hideReportABug=!1,e.prototype.aboutSectionMd=``,e.prototype.clearAboutMd=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.getHelpUrl!=null&&Object.hasOwnProperty.call(e,`getHelpUrl`)&&t.uint32(10).string(e.getHelpUrl),e.hideGetHelp!=null&&Object.hasOwnProperty.call(e,`hideGetHelp`)&&t.uint32(16).bool(e.hideGetHelp),e.reportABugUrl!=null&&Object.hasOwnProperty.call(e,`reportABugUrl`)&&t.uint32(26).string(e.reportABugUrl),e.hideReportABug!=null&&Object.hasOwnProperty.call(e,`hideReportABug`)&&t.uint32(32).bool(e.hideReportABug),e.aboutSectionMd!=null&&Object.hasOwnProperty.call(e,`aboutSectionMd`)&&t.uint32(42).string(e.aboutSectionMd),e.clearAboutMd!=null&&Object.hasOwnProperty.call(e,`clearAboutMd`)&&t.uint32(48).bool(e.clearAboutMd),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.PageConfig.MenuItems,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.getHelpUrl=s:delete o.getHelpUrl;continue;case 2:if(a!==0)break;(s=e.bool())?o.hideGetHelp=s:delete o.hideGetHelp;continue;case 3:if(a!==2)break;(s=e.string()).length?o.reportABugUrl=s:delete o.reportABugUrl;continue;case 4:if(a!==0)break;(s=e.bool())?o.hideReportABug=s:delete o.hideReportABug;continue;case 5:if(a!==2)break;(s=e.string()).length?o.aboutSectionMd=s:delete o.aboutSectionMd;continue;case 6:if(a!==0)break;(s=e.bool())?o.clearAboutMd=s:delete o.clearAboutMd;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.PageConfig.MenuItems)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.PageConfig.MenuItems;return e.getHelpUrl!=null&&(typeof e.getHelpUrl!=`string`||e.getHelpUrl.length)&&(n.getHelpUrl=String(e.getHelpUrl)),e.hideGetHelp!=null&&e.hideGetHelp&&(n.hideGetHelp=!!e.hideGetHelp),e.reportABugUrl!=null&&(typeof e.reportABugUrl!=`string`||e.reportABugUrl.length)&&(n.reportABugUrl=String(e.reportABugUrl)),e.hideReportABug!=null&&e.hideReportABug&&(n.hideReportABug=!!e.hideReportABug),e.aboutSectionMd!=null&&(typeof e.aboutSectionMd!=`string`||e.aboutSectionMd.length)&&(n.aboutSectionMd=String(e.aboutSectionMd)),e.clearAboutMd!=null&&e.clearAboutMd&&(n.clearAboutMd=!!e.clearAboutMd),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.getHelpUrl=``,n.hideGetHelp=!1,n.reportABugUrl=``,n.hideReportABug=!1,n.aboutSectionMd=``,n.clearAboutMd=!1),e.getHelpUrl!=null&&e.hasOwnProperty(`getHelpUrl`)&&(n.getHelpUrl=e.getHelpUrl),e.hideGetHelp!=null&&e.hasOwnProperty(`hideGetHelp`)&&(n.hideGetHelp=e.hideGetHelp),e.reportABugUrl!=null&&e.hasOwnProperty(`reportABugUrl`)&&(n.reportABugUrl=e.reportABugUrl),e.hideReportABug!=null&&e.hasOwnProperty(`hideReportABug`)&&(n.hideReportABug=e.hideReportABug),e.aboutSectionMd!=null&&e.hasOwnProperty(`aboutSectionMd`)&&(n.aboutSectionMd=e.aboutSectionMd),e.clearAboutMd!=null&&e.hasOwnProperty(`clearAboutMd`)&&(n.clearAboutMd=e.clearAboutMd),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/PageConfig.MenuItems`},e})(),e.Layout=(function(){let e={},t=Object.create(e);return t[e[0]=`CENTERED`]=0,t[e[1]=`WIDE`]=1,t[e[2]=`LAYOUT_UNSET`]=2,t})(),e.SidebarState=(function(){let e={},t=Object.create(e);return t[e[0]=`AUTO`]=0,t[e[1]=`EXPANDED`]=1,t[e[2]=`COLLAPSED`]=2,t[e[3]=`SIDEBAR_UNSET`]=3,t})(),e.SidebarWidthConfig=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.pixelWidth=null;let t;return Object.defineProperty(e.prototype,`widthSpec`,{get:B.oneOfGetter(t=[`pixelWidth`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.pixelWidth!=null&&Object.hasOwnProperty.call(e,`pixelWidth`)&&t.uint32(8).uint32(e.pixelWidth),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.PageConfig.SidebarWidthConfig;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;o.pixelWidth=e.uint32(),o.widthSpec=`pixelWidth`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.PageConfig.SidebarWidthConfig)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.PageConfig.SidebarWidthConfig;return e.pixelWidth!=null&&(n.pixelWidth=e.pixelWidth>>>0),n},e.toObject=function(e,t){t||={};let n={};return e.pixelWidth!=null&&e.hasOwnProperty(`pixelWidth`)&&(n.pixelWidth=e.pixelWidth,t.oneofs&&(n.widthSpec=`pixelWidth`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/PageConfig.SidebarWidthConfig`},e})(),e})();V.PageInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.queryString=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.queryString!=null&&Object.hasOwnProperty.call(e,`queryString`)&&t.uint32(10).string(e.queryString),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.PageInfo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.queryString=s:delete o.queryString;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.PageInfo)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.PageInfo;return e.queryString!=null&&(typeof e.queryString!=`string`||e.queryString.length)&&(n.queryString=String(e.queryString)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.queryString=``),e.queryString!=null&&e.hasOwnProperty(`queryString`)&&(n.queryString=e.queryString),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/PageInfo`},e})(),V.PageNotFound=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.pageName=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.pageName!=null&&Object.hasOwnProperty.call(e,`pageName`)&&t.uint32(10).string(e.pageName),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.PageNotFound,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.pageName=s:delete o.pageName;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.PageNotFound)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.PageNotFound;return e.pageName!=null&&(typeof e.pageName!=`string`||e.pageName.length)&&(n.pageName=String(e.pageName)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.pageName=``),e.pageName!=null&&e.hasOwnProperty(`pageName`)&&(n.pageName=e.pageName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/PageNotFound`},e})();var Yo=V.PageProfile=(()=>{function e(e){if(this.commands=[],this.config=[],this.attributions=[],this.installedSkills=[],this.installedAgents=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.commands=B.emptyArray,e.prototype.execTime=B.Long?B.Long.fromBits(0,0,!1):0,e.prototype.prepTime=B.Long?B.Long.fromBits(0,0,!1):0,e.prototype.config=B.emptyArray,e.prototype.uncaughtException=``,e.prototype.attributions=B.emptyArray,e.prototype.os=``,e.prototype.timezone=``,e.prototype.headless=!1,e.prototype.isFragmentRun=!1,e.prototype.serverMode=``,e.prototype.installedSkills=B.emptyArray,e.prototype.installedAgents=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.commands!=null&&e.commands.length)for(let n=0;n<e.commands.length;++n)V.Command.encode(e.commands[n],t.uint32(10).fork()).ldelim();if(e.execTime!=null&&Object.hasOwnProperty.call(e,`execTime`)&&t.uint32(16).int64(e.execTime),e.prepTime!=null&&Object.hasOwnProperty.call(e,`prepTime`)&&t.uint32(24).int64(e.prepTime),e.config!=null&&e.config.length)for(let n=0;n<e.config.length;++n)t.uint32(42).string(e.config[n]);if(e.uncaughtException!=null&&Object.hasOwnProperty.call(e,`uncaughtException`)&&t.uint32(50).string(e.uncaughtException),e.attributions!=null&&e.attributions.length)for(let n=0;n<e.attributions.length;++n)t.uint32(58).string(e.attributions[n]);if(e.os!=null&&Object.hasOwnProperty.call(e,`os`)&&t.uint32(66).string(e.os),e.t
18imezone!=null&&Object.hasOwnProperty.call(e,`timezone`)&&t.uint32(74).string(e.timezone),e.headless!=null&&Object.hasOwnProperty.call(e,`headless`)&&t.uint32(80).bool(e.headless),e.isFragmentRun!=null&&Object.hasOwnProperty.call(e,`isFragmentRun`)&&t.uint32(88).bool(e.isFragmentRun),e.serverMode!=null&&Object.hasOwnProperty.call(e,`serverMode`)&&t.uint32(98).string(e.serverMode),e.installedSkills!=null&&e.installedSkills.length)for(let n=0;n<e.installedSkills.length;++n)t.uint32(106).string(e.installedSkills[n]);if(e.installedAgents!=null&&e.installedAgents.length)for(let n=0;n<e.installedAgents.length;++n)t.uint32(114).string(e.installedAgents[n]);if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.PageProfile,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.commands&&o.commands.length||(o.commands=[]),o.commands.push(V.Command.decode(e,e.uint32(),void 0,r+1));continue;case 2:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.execTime=s:delete o.execTime;continue;case 3:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.prepTime=s:delete o.prepTime;continue;case 5:if(a!==2)break;o.config&&o.config.length||(o.config=[]),o.config.push(e.string());continue;case 6:if(a!==2)break;(s=e.string()).length?o.uncaughtException=s:delete o.uncaughtException;continue;case 7:if(a!==2)break;o.attributions&&o.attributions.length||(o.attributions=[]),o.attributions.push(e.string());continue;case 8:if(a!==2)break;(s=e.string()).length?o.os=s:delete o.os;continue;case 9:if(a!==2)break;(s=e.string()).length?o.timezone=s:delete o.timezone;continue;case 10:if(a!==0)break;(s=e.bool())?o.headless=s:delete o.headless;continue;case 11:if(a!==0)break;(s=e.bool())?o.isFragmentRun=s:delete o.isFragmentRun;continue;case 12:if(a!==2)break;(s=e.string()).length?o.serverMode=s:delete o.serverMode;continue;case 13:if(a!==2)break;o.installedSkills&&o.installedSkills.length||(o.installedSkills=[]),o.installedSkills.push(e.string());continue;case 14:if(a!==2)break;o.installedAgents&&o.installedAgents.length||(o.installedAgents=[]),o.installedAgents.push(e.string());continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.PageProfile)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.PageProfile;if(e.commands){if(!Array.isArray(e.commands))throw TypeError(`.PageProfile.commands: array expected`);n.commands=Array(e.commands.length);for(let r=0;r<e.commands.length;++r){if(typeof e.commands[r]!=`object`)throw TypeError(`.PageProfile.commands: object expected`);n.commands[r]=V.Command.fromObject(e.commands[r],t+1)}}if(e.execTime!=null&&(typeof e.execTime==`object`?e.execTime.low||e.execTime.high:Number(e.execTime)!==0)&&(B.Long?(n.execTime=B.Long.fromValue(e.execTime)).unsigned=!1:typeof e.execTime==`string`?n.execTime=parseInt(e.execTime,10):typeof e.execTime==`number`?n.execTime=e.execTime:typeof e.execTime==`object`&&(n.execTime=new B.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber())),e.prepTime!=null&&(typeof e.prepTime==`object`?e.prepTime.low||e.prepTime.high:Number(e.prepTime)!==0)&&(B.Long?(n.prepTime=B.Long.fromValue(e.prepTime)).unsigned=!1:typeof e.prepTime==`string`?n.prepTime=parseInt(e.prepTime,10):typeof e.prepTime==`number`?n.prepTime=e.prepTime:typeof e.prepTime==`object`&&(n.prepTime=new B.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber())),e.config){if(!Array.isArray(e.config))throw TypeError(`.PageProfile.config: array expected`);n.config=Array(e.config.length);for(let t=0;t<e.config.length;++t)n.config[t]=String(e.config[t])}if(e.uncaughtException!=null&&(typeof e.uncaughtException!=`string`||e.uncaughtException.length)&&(n.uncaughtException=String(e.uncaughtException)),e.attributions){if(!Array.isArray(e.attributions))throw TypeError(`.PageProfile.attributions: array expected`);n.attributions=Array(e.attributions.length);for(let t=0;t<e.attributions.length;++t)n.attributions[t]=String(e.attributions[t])}if(e.os!=null&&(typeof e.os!=`string`||e.os.length)&&(n.os=String(e.os)),e.timezone!=null&&(typeof e.timezone!=`string`||e.timezone.length)&&(n.timezone=String(e.timezone)),e.headless!=null&&e.headless&&(n.headless=!!e.headless),e.isFragmentRun!=null&&e.isFragmentRun&&(n.isFragmentRun=!!e.isFragmentRun),e.serverMode!=null&&(typeof e.serverMode!=`string`||e.serverMode.length)&&(n.serverMode=String(e.serverMode)),e.installedSkills){if(!Array.isArray(e.installedSkills))throw TypeError(`.PageProfile.installedSkills: array expected`);n.installedSkills=Array(e.installedSkills.length);for(let t=0;t<e.installedSkills.length;++t)n.installedSkills[t]=String(e.installedSkills[t])}if(e.installedAgents){if(!Array.isArray(e.installedAgents))throw TypeError(`.PageProfile.installedAgents: array expected`);n.installedAgents=Array(e.installedAgents.length);for(let t=0;t<e.installedAgents.length;++t)n.installedAgents[t]=String(e.installedAgents[t])}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.commands=[],n.config=[],n.attributions=[],n.installedSkills=[],n.installedAgents=[]),t.defaults){if(B.Long){let e=new B.Long(0,0,!1);n.execTime=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.execTime=t.longs===String?`0`:0;if(B.Long){let e=new B.Long(0,0,!1);n.prepTime=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.prepTime=t.longs===String?`0`:0;
18n.uncaughtException=``,n.os=``,n.timezone=``,n.headless=!1,n.isFragmentRun=!1,n.serverMode=``}if(e.commands&&e.commands.length){n.commands=Array(e.commands.length);for(let r=0;r<e.commands.length;++r)n.commands[r]=V.Command.toObject(e.commands[r],t)}if(e.execTime!=null&&e.hasOwnProperty(`execTime`)&&(typeof e.execTime==`number`?n.execTime=t.longs===String?String(e.execTime):e.execTime:n.execTime=t.longs===String?B.Long.prototype.toString.call(e.execTime):t.longs===Number?new B.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber():e.execTime),e.prepTime!=null&&e.hasOwnProperty(`prepTime`)&&(typeof e.prepTime==`number`?n.prepTime=t.longs===String?String(e.prepTime):e.prepTime:n.prepTime=t.longs===String?B.Long.prototype.toString.call(e.prepTime):t.longs===Number?new B.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){n.config=Array(e.config.length);for(let t=0;t<e.config.length;++t)n.config[t]=e.config[t]}if(e.uncaughtException!=null&&e.hasOwnProperty(`uncaughtException`)&&(n.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){n.attributions=Array(e.attributions.length);for(let t=0;t<e.attributions.length;++t)n.attributions[t]=e.attributions[t]}if(e.os!=null&&e.hasOwnProperty(`os`)&&(n.os=e.os),e.timezone!=null&&e.hasOwnProperty(`timezone`)&&(n.timezone=e.timezone),e.headless!=null&&e.hasOwnProperty(`headless`)&&(n.headless=e.headless),e.isFragmentRun!=null&&e.hasOwnProperty(`isFragmentRun`)&&(n.isFragmentRun=e.isFragmentRun),e.serverMode!=null&&e.hasOwnProperty(`serverMode`)&&(n.serverMode=e.serverMode),e.installedSkills&&e.installedSkills.length){n.installedSkills=Array(e.installedSkills.length);for(let t=0;t<e.installedSkills.length;++t)n.installedSkills[t]=e.installedSkills[t]}if(e.installedAgents&&e.installedAgents.length){n.installedAgents=Array(e.installedAgents.length);for(let t=0;t<e.installedAgents.length;++t)n.installedAgents[t]=e.installedAgents[t]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/PageProfile`},e})();V.Argument=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.k=``,e.prototype.t=``,e.prototype.m=``,e.prototype.p=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.k!=null&&Object.hasOwnProperty.call(e,`k`)&&t.uint32(10).string(e.k),e.t!=null&&Object.hasOwnProperty.call(e,`t`)&&t.uint32(18).string(e.t),e.m!=null&&Object.hasOwnProperty.call(e,`m`)&&t.uint32(26).string(e.m),e.p!=null&&Object.hasOwnProperty.call(e,`p`)&&t.uint32(40).int32(e.p),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Argument,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.k=s:delete o.k;continue;case 2:if(a!==2)break;(s=e.string()).length?o.t=s:delete o.t;continue;case 3:if(a!==2)break;(s=e.string()).length?o.m=s:delete o.m;continue;case 5:if(a!==0)break;(s=e.int32())?o.p=s:delete o.p;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Argument)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Argument;return e.k!=null&&(typeof e.k!=`string`||e.k.length)&&(n.k=String(e.k)),e.t!=null&&(typeof e.t!=`string`||e.t.length)&&(n.t=String(e.t)),e.m!=null&&(typeof e.m!=`string`||e.m.length)&&(n.m=String(e.m)),e.p!=null&&Number(e.p)!==0&&(n.p=e.p|0),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.k=``,n.t=``,n.m=``,n.p=0),e.k!=null&&e.hasOwnProperty(`k`)&&(n.k=e.k),e.t!=null&&e.hasOwnProperty(`t`)&&(n.t=e.t),e.m!=null&&e.hasOwnProperty(`m`)&&(n.m=e.m),e.p!=null&&e.hasOwnProperty(`p`)&&(n.p=e.p),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Argument`},e})(),V.Command=(()=>{function e(e){if(this.args=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.name=``,e.prototype.args=B.emptyArray,e.prototype.time=B.Long?B.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(10).string(e.name),e.args!=null&&e.args.length)for(let n=0;n<e.args.length;++n)V.Argument.encode(e.args[n],t.uint32(18).fork()).ldelim();if(e.time!=null&&Object.hasOwnProperty.call(e,`time`)&&t.uint32(32).int64(e.time),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.Command,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.name=s:delete o.name;continue;case 2:if(a!==2)break;o.args&&o.args.length||(o.args=[]),o.args.push(V.Argument.decode(e,e.uint32(),void 0,r+1));continue;case 4:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.time=s:delete o.time;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.Command)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.Command;if(e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=String(e.name)),e.args){if(!Array.isArray(e.args))throw TypeError(`.Command.args: array expected`);n.args=Array(e.args.length);for(let r=0;r<e.args.length;++r){if(typeof e.args[r]!=`object`)throw TypeError(`.Command.args: object expected`);n.args[r]=V.Argument.fromObject(e.args[r],t+1)}}return e.time!=null&&(typeof e.time==`object`?e.time.low||e.time.high:Number(e.time)!==0)&&(B.Long?(n.time=B.Long.fromValue(e.time)).unsigned=!1:typeof e.time==`string`?n.time=parseInt(e.time,10):typeof e.time==`number`?n.time=e.time:typeof e.time==`object`&&(n.time=new B.LongBits(e.time.low>>>0,e.time.high>
18>>0).toNumber())),n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.args=[]),t.defaults)if(n.name=``,B.Long){let e=new B.Long(0,0,!1);n.time=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.time=t.longs===String?`0`:0;if(e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),e.args&&e.args.length){n.args=Array(e.args.length);for(let r=0;r<e.args.length;++r)n.args[r]=V.Argument.toObject(e.args[r],t)}return e.time!=null&&e.hasOwnProperty(`time`)&&(typeof e.time==`number`?n.time=t.longs===String?String(e.time):e.time:n.time=t.longs===String?B.Long.prototype.toString.call(e.time):t.longs===Number?new B.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber():e.time),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/Command`},e})(),V.ParentMessage=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.message=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.message!=null&&Object.hasOwnProperty.call(e,`message`)&&t.uint32(10).string(e.message),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.ParentMessage,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.message=s:delete o.message;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.ParentMessage)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.ParentMessage;return e.message!=null&&(typeof e.message!=`string`||e.message.length)&&(n.message=String(e.message)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.message=``),e.message!=null&&e.hasOwnProperty(`message`)&&(n.message=e.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/ParentMessage`},e})(),V.SessionEvent=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.scriptChangedOnDisk=null,e.prototype.scriptWasManuallyStopped=null,e.prototype.scriptCompilationException=null;let t;return Object.defineProperty(e.prototype,`type`,{get:B.oneOfGetter(t=[`scriptChangedOnDisk`,`scriptWasManuallyStopped`,`scriptCompilationException`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.scriptChangedOnDisk!=null&&Object.hasOwnProperty.call(e,`scriptChangedOnDisk`)&&t.uint32(8).bool(e.scriptChangedOnDisk),e.scriptWasManuallyStopped!=null&&Object.hasOwnProperty.call(e,`scriptWasManuallyStopped`)&&t.uint32(16).bool(e.scriptWasManuallyStopped),e.scriptCompilationException!=null&&Object.hasOwnProperty.call(e,`scriptCompilationException`)&&V.Exception.encode(e.scriptCompilationException,t.uint32(26).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.SessionEvent;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;o.scriptChangedOnDisk=e.bool(),o.type=`scriptChangedOnDisk`;continue;case 2:if(a!==0)break;o.scriptWasManuallyStopped=e.bool(),o.type=`scriptWasManuallyStopped`;continue;case 3:if(a!==2)break;o.scriptCompilationException=V.Exception.decode(e,e.uint32(),void 0,r+1,o.scriptCompilationException),o.type=`scriptCompilationException`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.SessionEvent)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.SessionEvent;if(e.scriptChangedOnDisk!=null&&(n.scriptChangedOnDisk=!!e.scriptChangedOnDisk),e.scriptWasManuallyStopped!=null&&(n.scriptWasManuallyStopped=!!e.scriptWasManuallyStopped),e.scriptCompilationException!=null){if(typeof e.scriptCompilationException!=`object`)throw TypeError(`.SessionEvent.scriptCompilationException: object expected`);n.scriptCompilationException=V.Exception.fromObject(e.scriptCompilationException,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return e.scriptChangedOnDisk!=null&&e.hasOwnProperty(`scriptChangedOnDisk`)&&(n.scriptChangedOnDisk=e.scriptChangedOnDisk,t.oneofs&&(n.type=`scriptChangedOnDisk`)),e.scriptWasManuallyStopped!=null&&e.hasOwnProperty(`scriptWasManuallyStopped`)&&(n.scriptWasManuallyStopped=e.scriptWasManuallyStopped,t.oneofs&&(n.type=`scriptWasManuallyStopped`)),e.scriptCompilationException!=null&&e.hasOwnProperty(`scriptCompilationException`)&&(n.scriptCompilationException=V.Exception.toObject(e.scriptCompilationException,t),t.oneofs&&(n.type=`scriptCompilationException`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/SessionEvent`},e})();var Xo=V.MetricsEvent=(()=>{function e(e){if(this.commands=[],this.config=[],this.attributions=[],this.installedSkills=[],this.installedAgents=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.event=``,e.prototype.anonymousId=``,e.prototype.machineIdV3=``,e.prototype.machineIdV4=``,e.prototype.reportHash=``,e.prototype.dev=!1,e.prototype.source=``,e.prototype.streamlitVersion=``,e.prototype.isHello=!1,e.prototype.appId=``,e.prototype.sessionId=``,e.prototype.pythonVersion=``,e.prototype.serverOs=``,e.prototype.hasDisplay=!1,e.prototype.isWebdriver=!1,e.prototype.hostedAt=``,e.prototype.owner=``,e.prototype.repo=``,e.prototype.branch=``,e.prototype.mainModule=``,e.prototype.creatorId=``,e.prototype.contextPageUrl=``,e.prototype.contextPageTitle=``,e.prototype.contextPagePath=``,e.prototype.contextPageReferrer=``,e.prototype.contextPageSearch=``,e.prototype.contextLocale=``,e.prototype.contextUserAgent=``,e.prototype.label=``,e.prototype.commands=B.emptyArray,e.prototype.execTime=B.Long?B.Long.fromBits(0,0,!1):0,e.prototype.prepTime=B.Long?B.Long.fromBits(0,0,!1):0,e.prototype.config=B.emptyArray,e.prototype.uncaughtException=``,e.prototype.attributions=B.emptyArray,e.prototype.os=``,e.prototype.timezone=``,e.prototype.headless=!1,e.prototype.isFragmentRun=!1,e.prototype.numPages=B.Long?B.Long.fromBits(0,0,!1):0,e.prototype.pageScriptHash=``,e.prototype.activeTheme=``,e.prototype.totalLoadTime=B.Long?B.Long.fromBits(0,0,!1):0,e.prototype.browserInfo=null,e.prototype.serverMode=``,e.prototype.installedSkills=B.emptyArray,e.prototype.installedAgents=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.event!=null&&Object.hasOwnProperty.call(e,`event`)&&t.uint32(10).string(e.event),e.anonymousId!=null&&Object.hasOwnProperty.call(e,`anonymousId`)&&t.uint32(18).string(e.anonymousId),e.machineIdV3!=null&&Object.hasOwnProperty.call(e,`machineIdV3`)&&t.uint32(26).string(e.machineIdV3),e.reportHash!=null&&Object.hasOwnProperty.call(e,`reportHash`)&&t.uint32(34).string(e.reportHash),e.dev!=null&&Object.hasOwnProperty.call(e,`dev`)&&t.uint32(40).bool(e.dev),e.source!=null&&Object.hasOwnProperty.call(e,`source`)&&t.uint32(50).string(e.source),e.streamlitVersion!=null&&Object.hasOwnProperty.call(e,`streamlitVersion`)&&t.uint32(58).string(e.streamlitVersion),e.isHello!=null&&Object.hasOwnProperty.call(e,`isHello`)&&t.uint32(64).bool(e.isHello),e.hostedAt!=null&&Object.hasOwnProperty.call(e,`hostedAt`)&&t.uint32(74).string(e.hostedAt),e.owner!=null&&Object.hasOwnProperty.call(e,`owner`)&&t.uint32(82).string(e.owner),e.repo!=null&&Object.hasOwnProperty.call(e,`repo`)&&t.uint32(90).string(e.repo),e.branch!=null&&Object.hasOwnProperty.call(e,`branch`)&&t.uint32(98).string(e.branch),e.mainModule!=null&&Object.hasOwnProperty.call(e,`mainModule`)&&t.uint32(106).string(e.mainModule),e.creatorId!=null&&Object.hasOwnProperty.call(e,`creatorId`)&&t.uint32(114).string(e.creatorId),e.contextPageUrl!=null&&Object.hasOwnProperty.call(e,`contextPageUrl`)&&t.uint32(122).string(e.contextPageUrl),e.contextPageTitle!=null&&Object.hasOwnProperty.call(e,`contextPageTitle`)&&t.uint32(130).string(e.contextPageTitle),e.contextPagePath!=null&&Object.hasOwnProperty.call(e,`contextPagePath`)&&t.uint32(138).string(e.contextPagePath),e.contextPageReferrer!=null&&Object.hasOwnProperty.call(e,`contextPageReferrer`)&&t.uint32(146).string(e.contextPageReferrer),e.contextPageSearch!=null&&Object.hasOwnProperty.call(e,`contextPageSearch`)&&t.uint32(154).string(e.contextPageSearch),e.contextLocale!=null&&Object.hasOwnProperty.call(e,`contextLocale`)&&t.uint32(162).string(e.contextLocale),e.contextUserAgent!=null&&Object.hasOwnProperty.call(e,`contextUserAgent`)&&t.uint32(170).string(e.contextUserAgent),e.label!=null&&Object.hasOwnProperty.call(e,`label`)&&t.uint32(178).string(e.label),e.commands!=null&&e.commands.length)for(let n=0;n<e.commands.length;++n)V.Command.encode(e.commands[n],t.uint32(186).fork()).ldelim();if(e.execTime!=null&&Object.hasOwnProperty.call(e,`execTime`)&&t.uint32(192).int64(e.execTime),e.prepTime!=null&&Object.hasOwnProperty.call(e,`prepTime`)&&t.uint32(200).int64(e.prepTime),e.config!=null&&e.config.length)for(let n=0;n<e.config.length;++n)t.uint32(210).string(e.config[n]);if(e.uncaughtException!=null&&Object.hasOwnProperty.call(e,`uncaughtException`)&&t.uint32(218).string(e.uncaughtException),e.attributions!=null&&e.attributions.length)for(let n=0;n<e.attributions.length;++n)t.uint32(226).string(e.attributions[n]);if(e.os!=null&&Object.hasOwnProperty.call(e,`os`)&&t.uint32(234).string(e.os),e.t
18imezone!=null&&Object.hasOwnProperty.call(e,`timezone`)&&t.uint32(242).string(e.timezone),e.headless!=null&&Object.hasOwnProperty.call(e,`headless`)&&t.uint32(248).bool(e.headless),e.isFragmentRun!=null&&Object.hasOwnProperty.call(e,`isFragmentRun`)&&t.uint32(256).bool(e.isFragmentRun),e.appId!=null&&Object.hasOwnProperty.call(e,`appId`)&&t.uint32(266).string(e.appId),e.numPages!=null&&Object.hasOwnProperty.call(e,`numPages`)&&t.uint32(272).int64(e.numPages),e.sessionId!=null&&Object.hasOwnProperty.call(e,`sessionId`)&&t.uint32(282).string(e.sessionId),e.pythonVersion!=null&&Object.hasOwnProperty.call(e,`pythonVersion`)&&t.uint32(290).string(e.pythonVersion),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,`pageScriptHash`)&&t.uint32(298).string(e.pageScriptHash),e.activeTheme!=null&&Object.hasOwnProperty.call(e,`activeTheme`)&&t.uint32(306).string(e.activeTheme),e.totalLoadTime!=null&&Object.hasOwnProperty.call(e,`totalLoadTime`)&&t.uint32(312).int64(e.totalLoadTime),e.browserInfo!=null&&Object.hasOwnProperty.call(e,`browserInfo`)&&V.BrowserInfo.encode(e.browserInfo,t.uint32(322).fork()).ldelim(),e.machineIdV4!=null&&Object.hasOwnProperty.call(e,`machineIdV4`)&&t.uint32(330).string(e.machineIdV4),e.serverOs!=null&&Object.hasOwnProperty.call(e,`serverOs`)&&t.uint32(338).string(e.serverOs),e.hasDisplay!=null&&Object.hasOwnProperty.call(e,`hasDisplay`)&&t.uint32(344).bool(e.hasDisplay),e.isWebdriver!=null&&Object.hasOwnProperty.call(e,`isWebdriver`)&&t.uint32(352).bool(e.isWebdriver),e.serverMode!=null&&Object.hasOwnProperty.call(e,`serverMode`)&&t.uint32(362).string(e.serverMode),e.installedSkills!=null&&e.installedSkills.length)for(let n=0;n<e.installedSkills.length;++n)t.uint32(370).string(e.installedSkills[n]);if(e.installedAgents!=null&&e.installedAgents.length)for(let n=0;n<e.installedAgents.length;++n)t.uint32(378).string(e.installedAgents[n]);if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.MetricsEvent,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.event=s:delete o.event;continue;case 2:if(a!==2)break;(s=e.string()).length?o.anonymousId=s:delete o.anonymousId;continue;case 3:if(a!==2)break;(s=e.string()).length?o.machineIdV3=s:delete o.machineIdV3;continue;case 41:if(a!==2)break;(s=e.string()).length?o.machineIdV4=s:delete o.machineIdV4;continue;case 4:if(a!==2)break;(s=e.string()).length?o.reportHash=s:delete o.reportHash;continue;case 5:if(a!==0)break;(s=e.bool())?o.dev=s:delete o.dev;continue;case 6:if(a!==2)break;(s=e.string()).length?o.source=s:delete o.source;continue;case 7:if(a!==2)break;(s=e.string()).length?o.streamlitVersion=s:delete o.streamlitVersion;continue;case 8:if(a!==0)break;(s=e.bool())?o.isHello=s:delete o.isHello;continue;case 33:if(a!==2)break;(s=e.string()).length?o.appId=s:delete o.appId;continue;case 35:if(a!==2)break;(s=e.string()).length?o.sessionId=s:delete o.sessionId;continue;case 36:if(a!==2)break;(s=e.string()).length?o.pythonVersion=s:delete o.pythonVersion;continue;case 42:if(a!==2)break;(s=e.string()).length?o.serverOs=s:delete o.serverOs;continue;case 43:if(a!==0)break;(s=e.bool())?o.hasDisplay=s:delete o.hasDisplay;continue;case 44:if(a!==0)break;(s=e.bool())?o.isWebdriver=s:delete o.isWebdriver;continue;case 9:if(a!==2)break;(s=e.string()).length?o.hostedAt=s:delete o.hostedAt;continue;case 10:if(a!==2)break;(s=e.string()).length?o.owner=s:delete o.owner;continue;case 11:if(a!==2)break;(s=e.string()).length?o.repo=s:delete o.repo;continue;case 12:if(a!==2)break;(s=e.string()).length?o.branch=s:delete o.branch;continue;case 13:if(a!==2)break;(s=e.string()).length?o.mainModule=s:delete o.mainModule;continue;case 14:if(a!==2)break;(s=e.string()).length?o.creatorId=s:delete o.creatorId;continue;case 15:if(a!==2)break;(s=e.string()).length?o.contextPageUrl=s:delete o.contextPageUrl;continue;case 16:if(a!==2)break;(s=e.string()).length?o.contextPageTitle=s:delete o.contextPageTitle;continue;case 17:if(a!==2)break;(s=e.string()).length?o.contextPagePath=s:delete o.contextPagePath;continue;case 18:if(a!==2)break;(s=e.string()).length?o.contextPageReferrer=s:delete o.contextPageReferrer;continue;case 19:if(a!==2)break;(s=e.string()).length?o.contextPageSearch=s:delete o.contextPageSearch;continue;case 20:if(a!==2)break;(s=e.string()).length?o.contextLocale=s:delete o.contextLocale;continue;case 21:if(a!==2)break;(s=e.string()).length?o.contextUserAgent=s:delete o.contextUserAgent;continue;case 22:if(a!==2)break;(s=e.string()).length?o.label=s:delete o.label;continue;case 23:if(a!==2)break;o.commands&&o.commands.length||(o.commands=[]),o.commands.push(V.C
18ommand.decode(e,e.uint32(),void 0,r+1));continue;case 24:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.execTime=s:delete o.execTime;continue;case 25:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.prepTime=s:delete o.prepTime;continue;case 26:if(a!==2)break;o.config&&o.config.length||(o.config=[]),o.config.push(e.string());continue;case 27:if(a!==2)break;(s=e.string()).length?o.uncaughtException=s:delete o.uncaughtException;continue;case 28:if(a!==2)break;o.attributions&&o.attributions.length||(o.attributions=[]),o.attributions.push(e.string());continue;case 29:if(a!==2)break;(s=e.string()).length?o.os=s:delete o.os;continue;case 30:if(a!==2)break;(s=e.string()).length?o.timezone=s:delete o.timezone;continue;case 31:if(a!==0)break;(s=e.bool())?o.headless=s:delete o.headless;continue;case 32:if(a!==0)break;(s=e.bool())?o.isFragmentRun=s:delete o.isFragmentRun;continue;case 34:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.numPages=s:delete o.numPages;continue;case 37:if(a!==2)break;(s=e.string()).length?o.pageScriptHash=s:delete o.pageScriptHash;continue;case 38:if(a!==2)break;(s=e.string()).length?o.activeTheme=s:delete o.activeTheme;continue;case 39:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.totalLoadTime=s:delete o.totalLoadTime;continue;case 40:if(a!==2)break;o.browserInfo=V.BrowserInfo.decode(e,e.uint32(),void 0,r+1,o.browserInfo);continue;case 45:if(a!==2)break;(s=e.string()).length?o.serverMode=s:delete o.serverMode;continue;case 46:if(a!==2)break;o.installedSkills&&o.installedSkills.length||(o.installedSkills=[]),o.installedSkills.push(e.string());continue;case 47:if(a!==2)break;o.installedAgents&&o.installedAgents.length||(o.installedAgents=[]),o.installedAgents.push(e.string());continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.MetricsEvent)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.MetricsEvent;if(e.event!=null&&(typeof e.event!=`string`||e.event.length)&&(n.event=String(e.event)),e.anonymousId!=null&&(typeof e.anonymousId!=`string`||e.anonymousId.length)&&(n.anonymousId=String(e.anonymousId)),e.machineIdV3!=null&&(typeof e.machineIdV3!=`string`||e.machineIdV3.length)&&(n.machineIdV3=String(e.machineIdV3)),e.machineIdV4!=null&&(typeof e.machineIdV4!=`string`||e.machineIdV4.length)&&(n.machineIdV4=String(e.machineIdV4)),e.reportHash!=null&&(typeof e.reportHash!=`string`||e.reportHash.length)&&(n.reportHash=String(e.reportHash)),e.dev!=null&&e.dev&&(n.dev=!!e.dev),e.source!=null&&(typeof e.source!=`string`||e.source.length)&&(n.source=String(e.source)),e.streamlitVersion!=null&&(typeof e.streamlitVersion!=`string`||e.streamlitVersion.length)&&(n.streamlitVersion=String(e.streamlitVersion)),e.isHello!=null&&e.isHello&&(n.isHello=!!e.isHello),e.appId!=null&&(typeof e.appId!=`string`||e.appId.length)&&(n.appId=String(e.appId)),e.sessionId!=null&&(typeof e.sessionId!=`string`||e.sessionId.length)&&(n.sessionId=String(e.sessionId)),e.pythonVersion!=null&&(typeof e.pythonVersion!=`string`||e.pythonVersion.length)&&(n.pythonVersion=String(e.pythonVersion)),e.serverOs!=null&&(typeof e.serverOs!=`string`||e.serverOs.length)&&(n.serverOs=String(e.serverOs)),e.hasDisplay!=null&&e.hasDisplay&&(n.hasDisplay=!!e.hasDisplay),e.isWebdriver!=null&&e.isWebdriver&&(n.isWebdriver=!!e.isWebdriver),e.hostedAt!=null&&(typeof e.hostedAt!=`string`||e.hostedAt.length)&&(n.hostedAt=String(e.hostedAt)),e.owner!=null&&(typeof e.owner!=`string`||e.owner.length)&&(n.owner=String(e.owner)),e.repo!=null&&(typeof e.repo!=`string`||e.repo.length)&&(n.repo=String(e.repo)),e.branch!=null&&(typeof e.branch!=`string`||e.branch.length)&&(n.branch=String(e.branch)),e.mainModule!=null&&(typeof e.mainModule!=`string`||e.mainModule.length)&&(n.mainModule=String(e.mainModule)),e.creatorId!=null&&(typeof e.creatorId!=`string`||e.creatorId.length)&&(n.creatorId=String(e.creatorId)),e.contextPageUrl!=null&&(typeof e.contextPageUrl!=`string`||e.contextPageUrl.length)&&(n.contextPageUrl=String(e.contextPageUrl)),e.contextPageTitle!=null&&(typeof e.contextPageTitle!=`string`||e.contextPageTitle.length)&&(n.contextPageTitle=String(e.contextPageTitle)),e.contextPagePath!=null&&(typeof e.contextPagePath!=`string`||e.contextPagePath.length)&&(n.contextPagePath=String(e.contextPagePath)),e.contextPageReferrer!=null&&(typeof e.contextPageReferrer!=`string`||e.contextPageReferrer.length)&&(n.contextPageReferrer=String(e.contextPageReferrer)),e.contextPageSearch!=null&&(typeof e.contextPageSearch!=`string`||e.contextPageSearch.length)&&(n.contextPageSearch=String(e.contextPageSearch)),e.contextLocale!=null&&(typeof e.contextLocale!=`string`||e.contextLocale.length)&&(n.contextLocale=String(e.contextLocale)),e.contextUserAgent!=null&&(typeof e.contextUserAgent!=`string`||e.contextUserAgent.length)&&(n.contextUserAgent=String(e.contextUserAgent)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=String(e.label)),e.commands){if(!Array.isArray(e.commands))throw TypeError(`.MetricsEvent.commands: array expected`);n.commands=Array(e.commands.length);for(let r=0;r<e.commands.length;++r){if(typeof e.commands[r]!=`object`)throw TypeError(`.MetricsEvent.commands: object expected`);n.commands[r]=V.Command.fromObject(e.commands[r],t+1)}}if(e.execTime!=null&&(typeof e.execTime==`object`?e.execTime.low||e.execTime.high:Number(e.execTime)!==0)&&(B.Long?(n.execTime=B.Long.fromValue(e.execTime)).unsigned=!1:typeof e.execTime==`string`?n.execTime=parseInt(e.execTime,10):typeof e.execTime==`number`?n.execTime=e.execTime:typeof e.execTime==`object`&&(n.execTime=new B.LongBits(e.execTime.low>>>0,e.execTime.high>
18>>0).toNumber())),e.prepTime!=null&&(typeof e.prepTime==`object`?e.prepTime.low||e.prepTime.high:Number(e.prepTime)!==0)&&(B.Long?(n.prepTime=B.Long.fromValue(e.prepTime)).unsigned=!1:typeof e.prepTime==`string`?n.prepTime=parseInt(e.prepTime,10):typeof e.prepTime==`number`?n.prepTime=e.prepTime:typeof e.prepTime==`object`&&(n.prepTime=new B.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber())),e.config){if(!Array.isArray(e.config))throw TypeError(`.MetricsEvent.config: array expected`);n.config=Array(e.config.length);for(let t=0;t<e.config.length;++t)n.config[t]=String(e.config[t])}if(e.uncaughtException!=null&&(typeof e.uncaughtException!=`string`||e.uncaughtException.length)&&(n.uncaughtException=String(e.uncaughtException)),e.attributions){if(!Array.isArray(e.attributions))throw TypeError(`.MetricsEvent.attributions: array expected`);n.attributions=Array(e.attributions.length);for(let t=0;t<e.attributions.length;++t)n.attributions[t]=String(e.attributions[t])}if(e.os!=null&&(typeof e.os!=`string`||e.os.length)&&(n.os=String(e.os)),e.timezone!=null&&(typeof e.timezone!=`string`||e.timezone.length)&&(n.timezone=String(e.timezone)),e.headless!=null&&e.headless&&(n.headless=!!e.headless),e.isFragmentRun!=null&&e.isFragmentRun&&(n.isFragmentRun=!!e.isFragmentRun),e.numPages!=null&&(typeof e.numPages==`object`?e.numPages.low||e.numPages.high:Number(e.numPages)!==0)&&(B.Long?(n.numPages=B.Long.fromValue(e.numPages)).unsigned=!1:typeof e.numPages==`string`?n.numPages=parseInt(e.numPages,10):typeof e.numPages==`number`?n.numPages=e.numPages:typeof e.numPages==`object`&&(n.numPages=new B.LongBits(e.numPages.low>>>0,e.numPages.high>>>0).toNumber())),e.pageScriptHash!=null&&(typeof e.pageScriptHash!=`string`||e.pageScriptHash.length)&&(n.pageScriptHash=String(e.pageScriptHash)),e.activeTheme!=null&&(typeof e.activeTheme!=`string`||e.activeTheme.length)&&(n.activeTheme=String(e.activeTheme)),e.totalLoadTime!=null&&(typeof e.totalLoadTime==`object`?e.totalLoadTime.low||e.totalLoadTime.high:Number(e.totalLoadTime)!==0)&&(B.Long?(n.totalLoadTime=B.Long.fromValue(e.totalLoadTime)).unsigned=!1:typeof e.totalLoadTime==`string`?n.totalLoadTime=parseInt(e.totalLoadTime,10):typeof e.totalLoadTime==`number`?n.totalLoadTime=e.totalLoadTime:typeof e.totalLoadTime==`object`&&(n.totalLoadTime=new B.LongBits(e.totalLoadTime.low>>>0,e.totalLoadTime.high>>>0).toNumber())),e.browserInfo!=null){if(typeof e.browserInfo!=`object`)throw TypeError(`.MetricsEvent.browserInfo: object expected`);n.browserInfo=V.BrowserInfo.fromObject(e.browserInfo,t+1)}if(e.serverMode!=null&&(typeof e.serverMode!=`string`||e.serverMode.length)&&(n.serverMode=String(e.serverMode)),e.installedSkills){if(!Array.isArray(e.installedSkills))throw TypeError(`.MetricsEvent.installedSkills: array expected`);n.installedSkills=Array(e.installedSkills.length);for(let t=0;t<e.installedSkills.length;++t)n.installedSkills[t]=String(e.installedSkills[t])}if(e.installedAgents){if(!Array.isArray(e.installedAgents))throw TypeError(`.MetricsEvent.installedAgents: array expected`);n.installedAgents=Array(e.installedAgents.length);for(let t=0;t<e.installedAgents.length;++t)n.installedAgents[t]=String(e.installedAgents[t])}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.commands=[],n.config=[],n.attributions=[],n.installedSkills=[],n.installedAgents=[]),t.defaults){if(n.event=``,n.anonymousId=``,n.machineIdV3=``,n.reportHash=``,n.dev=!1,n.source=``,n.streamlitVersion=``,n.isHello=!1,n.hostedAt=``,n.owner=``,n.repo=``,n.branch=``,n.mainModule=``,n.creatorId=``,n.contextPageUrl=``,n.contextPageTitle=``,n.contextPagePath=``,n.contextPageReferrer=``,n.contextPageSearch=``,n.contextLocale=``,n.contextUserAgent=``,n.label=``,B.Long){let e=new B.Long(0,0,!1);n.execTime=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.execTime=t.longs===String?`0`:0;if(B.Long){let e=new B.Long(0,0,!1);n.prepTime=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.prepTime=t.longs===String?`0`:0;if(n.uncaughtException=``,n.os=``,n.timezone=``,n.headless=!1,n.isFragmentRun=!1,n.appId=``,B.Long){let e=new B.Long(0,0,!1);n.numPages=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.numPages=t.longs===String?`0`:0;if(n.sessionId=``,n.pythonVersion=``,n.pageScriptHash=``,n.activeTheme=``,B.Long){let e=new B.Long(0,0,!1);n.totalLoadTime=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.totalLoadTime=t.longs===String?`0`:0;
18n.browserInfo=null,n.machineIdV4=``,n.serverOs=``,n.hasDisplay=!1,n.isWebdriver=!1,n.serverMode=``}if(e.event!=null&&e.hasOwnProperty(`event`)&&(n.event=e.event),e.anonymousId!=null&&e.hasOwnProperty(`anonymousId`)&&(n.anonymousId=e.anonymousId),e.machineIdV3!=null&&e.hasOwnProperty(`machineIdV3`)&&(n.machineIdV3=e.machineIdV3),e.reportHash!=null&&e.hasOwnProperty(`reportHash`)&&(n.reportHash=e.reportHash),e.dev!=null&&e.hasOwnProperty(`dev`)&&(n.dev=e.dev),e.source!=null&&e.hasOwnProperty(`source`)&&(n.source=e.source),e.streamlitVersion!=null&&e.hasOwnProperty(`streamlitVersion`)&&(n.streamlitVersion=e.streamlitVersion),e.isHello!=null&&e.hasOwnProperty(`isHello`)&&(n.isHello=e.isHello),e.hostedAt!=null&&e.hasOwnProperty(`hostedAt`)&&(n.hostedAt=e.hostedAt),e.owner!=null&&e.hasOwnProperty(`owner`)&&(n.owner=e.owner),e.repo!=null&&e.hasOwnProperty(`repo`)&&(n.repo=e.repo),e.branch!=null&&e.hasOwnProperty(`branch`)&&(n.branch=e.branch),e.mainModule!=null&&e.hasOwnProperty(`mainModule`)&&(n.mainModule=e.mainModule),e.creatorId!=null&&e.hasOwnProperty(`creatorId`)&&(n.creatorId=e.creatorId),e.contextPageUrl!=null&&e.hasOwnProperty(`contextPageUrl`)&&(n.contextPageUrl=e.contextPageUrl),e.contextPageTitle!=null&&e.hasOwnProperty(`contextPageTitle`)&&(n.contextPageTitle=e.contextPageTitle),e.contextPagePath!=null&&e.hasOwnProperty(`contextPagePath`)&&(n.contextPagePath=e.contextPagePath),e.contextPageReferrer!=null&&e.hasOwnProperty(`contextPageReferrer`)&&(n.contextPageReferrer=e.contextPageReferrer),e.contextPageSearch!=null&&e.hasOwnProperty(`contextPageSearch`)&&(n.contextPageSearch=e.contextPageSearch),e.contextLocale!=null&&e.hasOwnProperty(`contextLocale`)&&(n.contextLocale=e.contextLocale),e.contextUserAgent!=null&&e.hasOwnProperty(`contextUserAgent`)&&(n.contextUserAgent=e.contextUserAgent),e.label!=null&&e.hasOwnProperty(`label`)&&(n.label=e.label),e.commands&&e.commands.length){n.commands=Array(e.commands.length);for(let r=0;r<e.commands.length;++r)n.commands[r]=V.Command.toObject(e.commands[r],t)}if(e.execTime!=null&&e.hasOwnProperty(`execTime`)&&(typeof e.execTime==`number`?n.execTime=t.longs===String?String(e.execTime):e.execTime:n.execTime=t.longs===String?B.Long.prototype.toString.call(e.execTime):t.longs===Number?new B.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber():e.execTime),e.prepTime!=null&&e.hasOwnProperty(`prepTime`)&&(typeof e.prepTime==`number`?n.prepTime=t.longs===String?String(e.prepTime):e.prepTime:n.prepTime=t.longs===String?B.Long.prototype.toString.call(e.prepTime):t.longs===Number?new B.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){n.config=Array(e.config.length);for(let t=0;t<e.config.length;++t)n.config[t]=e.config[t]}if(e.uncaughtException!=null&&e.hasOwnProperty(`uncaughtException`)&&(n.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){n.attributions=Array(e.attributions.length);for(let t=0;t<e.attributions.length;++t)n.attributions[t]=e.attributions[t]}if(e.os!=null&&e.hasOwnProperty(`os`)&&(n.os=e.os),e.timezone!=null&&e.hasOwnProperty(`timezone`)&&(n.timezone=e.timezone),e.headless!=null&&e.hasOwnProperty(`headless`)&&(n.headless=e.headless),e.isFragmentRun!=null&&e.hasOwnProperty(`isFragmentRun`)&&(n.isFragmentRun=e.isFragmentRun),e.appId!=null&&e.hasOwnProperty(`appId`)&&(n.appId=e.appId),e.numPages!=null&&e.hasOwnProperty(`numPages`)&&(typeof e.numPages==`number`?n.numPages=t.longs===String?String(e.numPages):e.numPages:n.numPages=t.longs===String?B.Long.prototype.toString.call(e.numPages):t.longs===Number?new B.LongBits(e.numPages.low>>>0,e.numPages.high>>>0).toNumber():e.numPages),e.sessionId!=null&&e.hasOwnProperty(`sessionId`)&&(n.sessionId=e.sessionId),e.pythonVersion!=null&&e.hasOwnProperty(`pythonVersion`)&&(n.pythonVersion=e.pythonVersion),e.pageScriptHash!=null&&e.hasOwnProperty(`pageScriptHash`)&&(n.pageScriptHash=e.pageScriptHash),e.activeTheme!=null&&e.hasOwnProperty(`activeTheme`)&&(n.activeTheme=e.activeTheme),e.totalLoadTime!=null&&e.hasOwnProperty(`totalLoadTime`)&&(typeof e.totalLoadTime==`number`?n.totalLoadTime=t.longs===String?String(e.totalLoadTime):e.totalLoadTime:n.totalLoadTime=t.longs===String?B.Long.prototype.toString.call(e.totalLoadTime):t.longs===Number?new B.LongBits(e.totalLoadTime.low>>>0,e.totalLoadTime.high>
18>>0).toNumber():e.totalLoadTime),e.browserInfo!=null&&e.hasOwnProperty(`browserInfo`)&&(n.browserInfo=V.BrowserInfo.toObject(e.browserInfo,t)),e.machineIdV4!=null&&e.hasOwnProperty(`machineIdV4`)&&(n.machineIdV4=e.machineIdV4),e.serverOs!=null&&e.hasOwnProperty(`serverOs`)&&(n.serverOs=e.serverOs),e.hasDisplay!=null&&e.hasOwnProperty(`hasDisplay`)&&(n.hasDisplay=e.hasDisplay),e.isWebdriver!=null&&e.hasOwnProperty(`isWebdriver`)&&(n.isWebdriver=e.isWebdriver),e.serverMode!=null&&e.hasOwnProperty(`serverMode`)&&(n.serverMode=e.serverMode),e.installedSkills&&e.installedSkills.length){n.installedSkills=Array(e.installedSkills.length);for(let t=0;t<e.installedSkills.length;++t)n.installedSkills[t]=e.installedSkills[t]}if(e.installedAgents&&e.installedAgents.length){n.installedAgents=Array(e.installedAgents.length);for(let t=0;t<e.installedAgents.length;++t)n.installedAgents[t]=e.installedAgents[t]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/MetricsEvent`},e})();V.BrowserInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.browserName=``,e.prototype.browserVersion=``,e.prototype.deviceType=``,e.prototype.os=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.browserName!=null&&Object.hasOwnProperty.call(e,`browserName`)&&t.uint32(10).string(e.browserName),e.browserVersion!=null&&Object.hasOwnProperty.call(e,`browserVersion`)&&t.uint32(18).string(e.browserVersion),e.deviceType!=null&&Object.hasOwnProperty.call(e,`deviceType`)&&t.uint32(26).string(e.deviceType),e.os!=null&&Object.hasOwnProperty.call(e,`os`)&&t.uint32(34).string(e.os),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.BrowserInfo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.browserName=s:delete o.browserName;continue;case 2:if(a!==2)break;(s=e.string()).length?o.browserVersion=s:delete o.browserVersion;continue;case 3:if(a!==2)break;(s=e.string()).length?o.deviceType=s:delete o.deviceType;continue;case 4:if(a!==2)break;(s=e.string()).length?o.os=s:delete o.os;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.BrowserInfo)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.BrowserInfo;return e.browserName!=null&&(typeof e.browserName!=`string`||e.browserName.length)&&(n.browserName=String(e.browserName)),e.browserVersion!=null&&(typeof e.browserVersion!=`string`||e.browserVersion.length)&&(n.browserVersion=String(e.browserVersion)),e.deviceType!=null&&(typeof e.deviceType!=`string`||e.deviceType.length)&&(n.deviceType=String(e.deviceType)),e.os!=null&&(typeof e.os!=`string`||e.os.length)&&(n.os=String(e.os)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.browserName=``,n.browserVersion=``,n.deviceType=``,n.os=``),e.browserName!=null&&e.hasOwnProperty(`browserName`)&&(n.browserName=e.browserName),e.browserVersion!=null&&e.hasOwnProperty(`browserVersion`)&&(n.browserVersion=e.browserVersion),e.deviceType!=null&&e.hasOwnProperty(`deviceType`)&&(n.deviceType=e.deviceType),e.os!=null&&e.hasOwnProperty(`os`)&&(n.os=e.os),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/BrowserInfo`},e})(),V.openmetrics=(()=>{let e={};return e.MetricSet=(function(){function e(e){if(this.metricFamilies=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.metricFamilies=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.metricFamilies!=null&&e.metricFamilies.length)for(let n=0;n<e.metricFamilies.length;++n)V.openmetrics.MetricFamily.encode(e.metricFamilies[n],t.uint32(10).fork()).ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.MetricSet;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.metricFamilies&&o.metricFamilies.length||(o.metricFamilies=[]),o.metricFamilies.push(V.openmetrics.MetricFamily.decode(e,e.uint32(),void 0,r+1));continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.MetricSet)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.MetricSet;
18if(e.metricFamilies){if(!Array.isArray(e.metricFamilies))throw TypeError(`.openmetrics.MetricSet.metricFamilies: array expected`);n.metricFamilies=Array(e.metricFamilies.length);for(let r=0;r<e.metricFamilies.length;++r){if(typeof e.metricFamilies[r]!=`object`)throw TypeError(`.openmetrics.MetricSet.metricFamilies: object expected`);n.metricFamilies[r]=V.openmetrics.MetricFamily.fromObject(e.metricFamilies[r],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.metricFamilies=[]),e.metricFamilies&&e.metricFamilies.length){n.metricFamilies=Array(e.metricFamilies.length);for(let r=0;r<e.metricFamilies.length;++r)n.metricFamilies[r]=V.openmetrics.MetricFamily.toObject(e.metricFamilies[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.MetricSet`},e})(),e.MetricFamily=(function(){function e(e){if(this.metrics=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.name=``,e.prototype.type=0,e.prototype.unit=``,e.prototype.help=``,e.prototype.metrics=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(10).string(e.name),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(16).int32(e.type),e.unit!=null&&Object.hasOwnProperty.call(e,`unit`)&&t.uint32(26).string(e.unit),e.help!=null&&Object.hasOwnProperty.call(e,`help`)&&t.uint32(34).string(e.help),e.metrics!=null&&e.metrics.length)for(let n=0;n<e.metrics.length;++n)V.Metric.encode(e.metrics[n],t.uint32(42).fork()).ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.MetricFamily,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.name=s:delete o.name;continue;case 2:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue;case 3:if(a!==2)break;(s=e.string()).length?o.unit=s:delete o.unit;continue;case 4:if(a!==2)break;(s=e.string()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;o.metrics&&o.metrics.length||(o.metrics=[]),o.metrics.push(V.Metric.decode(e,e.uint32(),void 0,r+1));continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.MetricFamily)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.MetricFamily;if(e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=String(e.name)),e.type!==0&&(typeof e.type!=`string`||V.openmetrics.MetricType[e.type]!==0))switch(e.type){default:if(typeof e.type==`number`){n.type=e.type;break}break;case`UNKNOWN`:case 0:n.type=0;break;case`GAUGE`:case 1:n.type=1;break;case`COUNTER`:case 2:n.type=2;break;case`STATE_SET`:case 3:n.type=3;break;case`INFO`:case 4:n.type=4;break;case`HISTOGRAM`:case 5:n.type=5;break;case`GAUGE_HISTOGRAM`:case 6:n.type=6;break;case`SUMMARY`:case 7:n.type=7;break}if(e.unit!=null&&(typeof e.unit!=`string`||e.unit.length)&&(n.unit=String(e.unit)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=String(e.help)),e.metrics){if(!Array.isArray(e.metrics))throw TypeError(`.openmetrics.MetricFamily.metrics: array expected`);n.metrics=Array(e.metrics.length);for(let r=0;r<e.metrics.length;++r){if(typeof e.metrics[r]!=`object`)throw TypeError(`.openmetrics.MetricFamily.metrics: object expected`);n.metrics[r]=V.Metric.fromObject(e.metrics[r],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.metrics=[]),t.defaults&&(n.name=``,n.type=t.enums===String?`UNKNOWN`:0,n.unit=``,n.help=``),e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=t.enums===String?V.openmetrics.MetricType[e.type]===void 0?e.type:V.openmetrics.MetricType[e.type]:e.type),e.unit!=null&&e.hasOwnProperty(`unit`)&&(n.unit=e.unit),e.help!=null&&e.hasOwnProperty(`help`)&&(n.help=e.help),e.metrics&&e.metrics.length){n.metrics=Array(e.metrics.length);for(let r=0;r<e.metrics.length;++r)n.metrics[r]=V.Metric.toObject(e.metrics[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.MetricFamily`},e})(),e.MetricType=(function(){let e={},t=Object.create(e);return t[e[0]=`UNKNOWN`]=0,t[e[1]=`GAUGE`]=1,t[e[2]=`COUNTER`]=2,t[e[3]=`STATE_SET`]=3,t[e[4]=`INFO`]=4,t[e[5]=`HISTOGRAM`]=5,t[e[6]=`GAUGE_HISTOGRAM`]=6,t[e[7]=`SUMMARY`]=7,t})(),e.Metric=(function(){function e(e){if(this.labels=[],this.metricPoints=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.labels=B.emptyArray,e.prototype.metricPoints=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.labels!=null&&e.labels.length)for(let n=0;n<e.labels.length;++n)V.openmetrics.Label.encode(e.labels[n],t.uint32(10).fork()).ldelim();if(e.metricPoints!=null&&e.metricPoints.length)for(let n=0;n<e.metricPoints.length;++n)V.openmetrics.MetricPoint.encode(e.metricPoints[n],t.uint32(18).fork()).ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.Metric;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.labels&&o.labels.length||(o.labels=[]),o.labels.push(V.openmetrics.Label.decode(e,e.uint32(),void 0,r+1));continue;case 2:if(a!==2)break;o.metricPoints&&o.metricPoints.length||(o.metricPoints=[]),o.metricPoints.push(V.openmetrics.MetricPoint.decode(e,e.uint32(),void 0,r+1));continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.Metric)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.Metric;if(e.labels){if(!Array.isArray(e.labels))throw TypeError(`.openmetrics.Metric.labels: array expected`);n.labels=Array(e.labels.length);for(let r=0;r<e.labels.length;++r){if(typeof e.labels[r]!=`object`)throw TypeError(`.openmetrics.Metric.labels: object expected`);n.labels[r]=V.openmetrics.Label.fromObject(e.labels[r],t+1)}}if(e.metricPoints){if(!Array.isArray(e.metricPoints))throw TypeError(`.openmetrics.Metric.metricPoints: array expected`);n.metricPoints=Array(e.metricPoints.length);for(let r=0;r<e.metricPoints.length;++r){if(typeof e.metricPoints[r]!=`object`)throw TypeError(`.openmetrics.Metric.metricPoints: object expected`);n.metricPoints[r]=V.openmetrics.MetricPoint.fromObject(e.metricPoints[r],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.labels=[],n.metricPoints=[]),e.labels&&e.labels.length){n.labels=Array(e.labels.length);for(let r=0;r<e.labels.length;++r)n.labels[r]=V.openmetrics.Label.toObject(e.labels[r],t)}if(e.metricPoints&&e.metricPoints.length){n.metricPoints=Array(e.metricPoints.length);for(let r=0;r<e.metricPoints.length;++r)n.metricPoints[r]=V.openmetrics.MetricPoint.toObject(e.metricPoints[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.Metric`},e})(),e.Label=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.name=``,e.prototype.value=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(10).string(e.name),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(18).string(e.value),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.Label,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.string()).length?o.name=s:delete o.name;continue;case 2:if(a!==2)break;(s=e.string()).length?o.value=s:delete o.value;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.Label)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.Label;return e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=String(e.name)),e.value!=null&&(typeof e.value!=`string`||e.value.length)&&(n.value=String(e.value)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.name=``,n.value=``),e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.Label`},e})(),e.MetricPoint=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.unknownValue=null,e.prototype.gaugeValue=null,e.prototype.counterValue=null,e.prototype.histogramValue=null,e.prototype.stateSetValue=null,e.prototype.infoValue=null,e.prototype.summaryValue=null,e.prototype.timestamp=null;let t;return Object.defineProperty(e.prototype,`value`,{get:B.oneOfGetter(t=[`unknownValue`,`gaugeValue`,`counterValue`,`histogramValue`,`stateSetValue`,`infoValue`,`summaryValue`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.unknownValue!=null&&Object.hasOwnProperty.call(e,`unknownValue`)&&V.openmetrics.UnknownValue.encode(e.unknownValue,t.uint32(10).fork()).ldelim(),e.gauge
18Value!=null&&Object.hasOwnProperty.call(e,`gaugeValue`)&&V.openmetrics.GaugeValue.encode(e.gaugeValue,t.uint32(18).fork()).ldelim(),e.counterValue!=null&&Object.hasOwnProperty.call(e,`counterValue`)&&V.openmetrics.CounterValue.encode(e.counterValue,t.uint32(26).fork()).ldelim(),e.histogramValue!=null&&Object.hasOwnProperty.call(e,`histogramValue`)&&V.openmetrics.HistogramValue.encode(e.histogramValue,t.uint32(34).fork()).ldelim(),e.stateSetValue!=null&&Object.hasOwnProperty.call(e,`stateSetValue`)&&V.openmetrics.StateSetValue.encode(e.stateSetValue,t.uint32(42).fork()).ldelim(),e.infoValue!=null&&Object.hasOwnProperty.call(e,`infoValue`)&&V.openmetrics.InfoValue.encode(e.infoValue,t.uint32(50).fork()).ldelim(),e.summaryValue!=null&&Object.hasOwnProperty.call(e,`summaryValue`)&&V.openmetrics.SummaryValue.encode(e.summaryValue,t.uint32(58).fork()).ldelim(),e.timestamp!=null&&Object.hasOwnProperty.call(e,`timestamp`)&&V.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(66).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.MetricPoint;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.unknownValue=V.openmetrics.UnknownValue.decode(e,e.uint32(),void 0,r+1,o.unknownValue),o.value=`unknownValue`;continue;case 2:if(a!==2)break;o.gaugeValue=V.openmetrics.GaugeValue.decode(e,e.uint32(),void 0,r+1,o.gaugeValue),o.value=`gaugeValue`;continue;case 3:if(a!==2)break;o.counterValue=V.openmetrics.CounterValue.decode(e,e.uint32(),void 0,r+1,o.counterValue),o.value=`counterValue`;continue;case 4:if(a!==2)break;o.histogramValue=V.openmetrics.HistogramValue.decode(e,e.uint32(),void 0,r+1,o.histogramValue),o.value=`histogramValue`;continue;case 5:if(a!==2)break;o.stateSetValue=V.openmetrics.StateSetValue.decode(e,e.uint32(),void 0,r+1,o.stateSetValue),o.value=`stateSetValue`;continue;case 6:if(a!==2)break;o.infoValue=V.openmetrics.InfoValue.decode(e,e.uint32(),void 0,r+1,o.infoValue),o.value=`infoValue`;continue;case 7:if(a!==2)break;o.summaryValue=V.openmetrics.SummaryValue.decode(e,e.uint32(),void 0,r+1,o.summaryValue),o.value=`summaryValue`;continue;case 8:if(a!==2)break;o.timestamp=V.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1,o.timestamp);continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.MetricPoint)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.MetricPoint;if(e.unknownValue!=null){if(typeof e.unknownValue!=`object`)throw TypeError(`.openmetrics.MetricPoint.unknownValue: object expected`);n.unknownValue=V.openmetrics.UnknownValue.fromObject(e.unknownValue,t+1)}if(e.gaugeValue!=null){if(typeof e.gaugeValue!=`object`)throw TypeError(`.openmetrics.MetricPoint.gaugeValue: object expected`);n.gaugeValue=V.openmetrics.GaugeValue.fromObject(e.gaugeValue,t+1)}if(e.counterValue!=null){if(typeof e.counterValue!=`object`)throw TypeError(`.openmetrics.MetricPoint.counterValue: object expected`);n.counterValue=V.openmetrics.CounterValue.fromObject(e.counterValue,t+1)}if(e.histogramValue!=null){if(typeof e.histogramValue!=`object`)throw TypeError(`.openmetrics.MetricPoint.histogramValue: object expected`);n.histogramValue=V.openmetrics.HistogramValue.fromObject(e.histogramValue,t+1)}if(e.stateSetValue!=null){if(typeof e.stateSetValue!=`object`)throw TypeError(`.openmetrics.MetricPoint.stateSetValue: object expected`);n.stateSetValue=V.openmetrics.StateSetValue.fromObject(e.stateSetValue,t+1)}if(e.infoValue!=null){if(typeof e.infoValue!=`object`)throw TypeError(`.openmetrics.MetricPoint.infoValue: object expected`);n.infoValue=V.openmetrics.InfoValue.fromObject(e.infoValue,t+1)}if(e.summaryValue!=null){if(typeof e.summaryValue!=`object`)throw TypeError(`.openmetrics.MetricPoint.summaryValue: object expected`);n.summaryValue=V.openmetrics.SummaryValue.fromObject(e.summaryValue,t+1)}if(e.timestamp!=null){if(typeof e.timestamp!=`object`)throw TypeError(`.openmetrics.MetricPoint.timestamp: object expected`);n.timestamp=V.google.protobuf.Timestamp.fromObject(e.timestamp,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.timestamp=null),e.unknownValue!=null&&e.hasOwnProperty(`unknownValue`)&&(n.unknownValue=V.openmetrics.UnknownValue.toObject(e.unknownValue,t),t.oneofs&&(n.value=`unknownValue`)),e.gauge
18Value!=null&&e.hasOwnProperty(`gaugeValue`)&&(n.gaugeValue=V.openmetrics.GaugeValue.toObject(e.gaugeValue,t),t.oneofs&&(n.value=`gaugeValue`)),e.counterValue!=null&&e.hasOwnProperty(`counterValue`)&&(n.counterValue=V.openmetrics.CounterValue.toObject(e.counterValue,t),t.oneofs&&(n.value=`counterValue`)),e.histogramValue!=null&&e.hasOwnProperty(`histogramValue`)&&(n.histogramValue=V.openmetrics.HistogramValue.toObject(e.histogramValue,t),t.oneofs&&(n.value=`histogramValue`)),e.stateSetValue!=null&&e.hasOwnProperty(`stateSetValue`)&&(n.stateSetValue=V.openmetrics.StateSetValue.toObject(e.stateSetValue,t),t.oneofs&&(n.value=`stateSetValue`)),e.infoValue!=null&&e.hasOwnProperty(`infoValue`)&&(n.infoValue=V.openmetrics.InfoValue.toObject(e.infoValue,t),t.oneofs&&(n.value=`infoValue`)),e.summaryValue!=null&&e.hasOwnProperty(`summaryValue`)&&(n.summaryValue=V.openmetrics.SummaryValue.toObject(e.summaryValue,t),t.oneofs&&(n.value=`summaryValue`)),e.timestamp!=null&&e.hasOwnProperty(`timestamp`)&&(n.timestamp=V.google.protobuf.Timestamp.toObject(e.timestamp,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.MetricPoint`},e})(),e.UnknownValue=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.doubleValue=null,e.prototype.intValue=null;let t;return Object.defineProperty(e.prototype,`value`,{get:B.oneOfGetter(t=[`doubleValue`,`intValue`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.doubleValue!=null&&Object.hasOwnProperty.call(e,`doubleValue`)&&t.uint32(9).double(e.doubleValue),e.intValue!=null&&Object.hasOwnProperty.call(e,`intValue`)&&t.uint32(16).int64(e.intValue),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.UnknownValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;o.doubleValue=e.double(),o.value=`doubleValue`;continue;case 2:if(a!==0)break;o.intValue=e.int64(),o.value=`intValue`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.UnknownValue)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.UnknownValue;return e.doubleValue!=null&&(n.doubleValue=Number(e.doubleValue)),e.intValue!=null&&(B.Long?(n.intValue=B.Long.fromValue(e.intValue)).unsigned=!1:typeof e.intValue==`string`?n.intValue=parseInt(e.intValue,10):typeof e.intValue==`number`?n.intValue=e.intValue:typeof e.intValue==`object`&&(n.intValue=new B.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),n},e.toObject=function(e,t){t||={};let n={};return e.doubleValue!=null&&e.hasOwnProperty(`doubleValue`)&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.value=`doubleValue`)),e.intValue!=null&&e.hasOwnProperty(`intValue`)&&(typeof e.intValue==`number`?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?B.Long.prototype.toString.call(e.intValue):t.longs===Number?new B.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.value=`intValue`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.UnknownValue`},e})(),e.GaugeValue=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.doubleValue=null,e.prototype.intValue=null;let t;return Object.defineProperty(e.prototype,`value`,{get:B.oneOfGetter(t=[`doubleValue`,`intValue`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.doubleValue!=null&&Object.hasOwnProperty.call(e,`doubleValue`)&&t.uint32(9).double(e.doubleValue),e.intValue!=null&&Object.hasOwnProperty.call(e,`intValue`)&&t.uint32(16).int64(e.intValue),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.GaugeValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;o.doubleValue=e.double(),o.value=`doubleValue`;continue;case 2:if(a!==0)break;o.intValue=e.int64(),o.value=`intValue`;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.GaugeValue)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.GaugeValue;return e.doubleValue!=null&&(n.doubleValue=Number(e.doubleValue)),e.intValue!=null&&(B.Long?(n.intValue=B.Long.fromValue(e.intValue)).unsigned=!1:typeof e.intValue==`string`?n.intValue=parseInt(e.intValue,10):typeof e.intValue==`number`?n.intValue=e.intValue:typeof e.intValue==`object`&&(n.intValue=new B.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),n},e.toObject=function(e,t){t||={};let n={};return e.doubleValue!=null&&e.hasOwnProperty(`doubleValue`)&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.value=`doubleValue`)),e.intValue!=null&&e.hasOwnProperty(`intValue`)&&(typeof e.intValue==`number`?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?B.Long.prototype.toString.call(e.intValue):t.longs===Number?new B.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.value=`intValue`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.GaugeValue`},e})(),e.CounterValue=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.created=null,e.prototype.exemplar=null;let t;return Object.defineProperty(e.prototype,`total`,{get:B.oneOfGetter(t=[`doubleValue`,`intValue`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.doubleValue!=null&&Object.hasOwnProperty.call(e,`doubleValue`)&&t.uint32(9).double(e.doubleValue),e.intValue!=null&&Object.hasOwnProperty.call(e,`intValue`)&&t.uint32(16).uint64(e.intValue),e.created!=null&&Object.hasOwnProperty.call(e,`created`)&&V.google.protobuf.Timestamp.encode(e.created,t.uint32(26).fork()).ldelim(),e.exemplar!=null&&Object.hasOwnProperty.call(e,`exemplar`)&&V.openmetrics.Exemplar.encode(e.exemplar,t.uint32(34).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.CounterValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;o.doubleValue=e.double(),o.total=`doubleValue`;continue;case 2:if(a!==0)break;o.intValue=e.uint64(),o.total=`intValue`;continue;case 3:if(a!==2)break;o.created=V.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1,o.created);continue;case 4:if(a!==2)break;o.exemplar=V.openmetrics.Exemplar.decode(e,e.uint32(),void 0,r+1,o.exemplar);continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.CounterValue)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.CounterValue;if(e.doubleValue!=null&&(n.doubleValue=Number(e.doubleValue)),e.intValue!=null&&(B.Long?(n.intValue=B.Long.fromValue(e.intValue)).unsigned=!0:typeof e.intValue==`string`?n.intValue=parseInt(e.intValue,10):typeof e.intValue==`number`?n.intValue=e.intValue:typeof e.intValue==`object`&&(n.intValue=new B.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber(!0))),e.created!=null){if(typeof e.created!=`object`)throw TypeError(`.openmetrics.CounterValue.created: object expected`);n.created=V.google.protobuf.Timestamp.fromObject(e.created,t+1)}if(e.exemplar!=null){if(typeof e.exemplar!=`object`)throw TypeError(`.openmetrics.CounterValue.exemplar: object expected`);n.exemplar=V.openmetrics.Exemplar.fromObject(e.exemplar,t+1)}return n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.created=null,n.exemplar=null),e.doubleValue!=null&&e.hasOwnProperty(`doubleValue`)&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.total=`doubleValue`)),e.intValue!=null&&e.hasOwnProperty(`intValue`)&&(typeof e.intValue==`number`?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?B.Long.prototype.toString.call(e.intValue):t.longs===Number?new B.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber(!0):e.intValue,t.oneofs&&(n.total=`intValue`)),e.created!=null&&e.hasOwnProperty(`created`)&&(n.created=V.google.protobuf.Timestamp.toObject(e.created,t)),e.exemplar!=null&&e.hasOwnProperty(`exemplar`)&&(n.exemplar=V.openmetrics.Exemplar.toObject(e.exemplar,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.CounterValue`},e})(),e.HistogramValue=(function(){function e(e){if(this.buckets=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.count=B.Long?B.Long.fromBits(0,0,!0):0,e.prototype.created=null,e.prototype.buckets=B.emptyArray;let t;return Object.defineProperty(e.prototype,`sum`,{get:B.oneOfGetter(t=[`doubleValue`,`intValue`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.doubleValue!=null&&Object.hasOwnProperty.call(e,`doubleValue`)&&t.uint32(9).double(e.doubleValue),e.intValue!=null&&Object.hasOwnProperty.call(e,`intValue`)&&t.uint32(16).int64(e.intValue),e.count!=null&&Object.hasOwnProperty.call(e,`count`)&&t.uint32(24).uint64(e.count),e.created!=null&&Object.hasOwnProperty.call(e,`created`)&&V.google.protobuf.Timestamp.encode(e.created,t.uint32(34).fork()).ldelim(),e.buckets!=null&&e.buckets.length)for(let n=0;n<e.buckets.length;++n)V.openmetrics.HistogramValue.Bucket.encode(e.buckets[n],t.uint32(42).fork()).ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.HistogramValue,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;o.doubleValue=e.double(),o.sum=`doubleValue`;continue;case 2:if(a!==0)break;o.intValue=e.int64(),o.sum=`intValue`;continue;case 3:if(a!==0)break;(typeof(s=e.uint64())==`object`?s.low||s.high:s!==0)?o.count=s:delete o.count;continue;case 4:if(a!==2)break;o.created=V.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1,o.created);continue;case 5:if(a!==2)break;o.buckets&&o.buckets.length||(o.buckets=[]),o.buckets.push(V.openmetrics.HistogramValue.Bucket.decode(e,e.uint32(),void 0,r+1));continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.HistogramValue)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.HistogramValue;if(e.doubleValue!=null&&(n.doubleValue=Number(e.doubleValue)),e.intValue!=null&&(B.Long?(n.intValue=B.Long.fromValue(e.intValue)).unsigned=!1:typeof e.intValue==`string`?n.intValue=parseInt(e.intValue,10):typeof e.intValue==`number`?n.intValue=e.intValue:typeof e.intValue==`object`&&(n.intValue=new B.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),e.count!=null&&(typeof e.count==`object`?e.count.low||e.count.high:Number(e.count)!==0)&&(B.Long?(n.count=B.Long.fromValue(e.count)).unsigned=!0:typeof e.count==`string`?n.count=parseInt(e.count,10):typeof e.count==`number`?n.count=e.count:typeof e.count==`object`&&(n.count=new B.LongBits(e.count.low>>>0,e.count.high>
18>>0).toNumber(!0))),e.created!=null){if(typeof e.created!=`object`)throw TypeError(`.openmetrics.HistogramValue.created: object expected`);n.created=V.google.protobuf.Timestamp.fromObject(e.created,t+1)}if(e.buckets){if(!Array.isArray(e.buckets))throw TypeError(`.openmetrics.HistogramValue.buckets: array expected`);n.buckets=Array(e.buckets.length);for(let r=0;r<e.buckets.length;++r){if(typeof e.buckets[r]!=`object`)throw TypeError(`.openmetrics.HistogramValue.buckets: object expected`);n.buckets[r]=V.openmetrics.HistogramValue.Bucket.fromObject(e.buckets[r],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.buckets=[]),t.defaults){if(B.Long){let e=new B.Long(0,0,!0);n.count=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.count=t.longs===String?`0`:0;n.created=null}if(e.doubleValue!=null&&e.hasOwnProperty(`doubleValue`)&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.sum=`doubleValue`)),e.intValue!=null&&e.hasOwnProperty(`intValue`)&&(typeof e.intValue==`number`?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?B.Long.prototype.toString.call(e.intValue):t.longs===Number?new B.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.sum=`intValue`)),e.count!=null&&e.hasOwnProperty(`count`)&&(typeof e.count==`number`?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?B.Long.prototype.toString.call(e.count):t.longs===Number?new B.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),e.created!=null&&e.hasOwnProperty(`created`)&&(n.created=V.google.protobuf.Timestamp.toObject(e.created,t)),e.buckets&&e.buckets.length){n.buckets=Array(e.buckets.length);for(let r=0;r<e.buckets.length;++r)n.buckets[r]=V.openmetrics.HistogramValue.Bucket.toObject(e.buckets[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.HistogramValue`},e.Bucket=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.count=B.Long?B.Long.fromBits(0,0,!0):0,e.prototype.upperBound=0,e.prototype.exemplar=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.count!=null&&Object.hasOwnProperty.call(e,`count`)&&t.uint32(8).uint64(e.count),e.upperBound!=null&&Object.hasOwnProperty.call(e,`upperBound`)&&t.uint32(17).double(e.upperBound),e.exemplar!=null&&Object.hasOwnProperty.call(e,`exemplar`)&&V.openmetrics.Exemplar.encode(e.exemplar,t.uint32(26).fork()).ldelim(),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.HistogramValue.Bucket,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(typeof(s=e.uint64())==`object`?s.low||s.high:s!==0)?o.count=s:delete o.count;continue;case 2:if(a!==1)break;(s=e.double())===0?delete o.upperBound:o.upperBound=s;continue;case 3:if(a!==2)break;o.exemplar=V.openmetrics.Exemplar.decode(e,e.uint32(),void 0,r+1,o.exemplar);continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.HistogramValue.Bucket)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.HistogramValue.Bucket;if(e.count!=null&&(typeof e.count==`object`?e.count.low||e.count.high:Number(e.count)!==0)&&(B.Long?(n.count=B.Long.fromValue(e.count)).unsigned=!0:typeof e.count==`string`?n.count=parseInt(e.count,10):typeof e.count==`number`?n.count=e.count:typeof e.count==`object`&&(n.count=new B.LongBits(e.count.low>>>0,e.count.high>
18>>0).toNumber(!0))),e.upperBound!=null&&Number(e.upperBound)!==0&&(n.upperBound=Number(e.upperBound)),e.exemplar!=null){if(typeof e.exemplar!=`object`)throw TypeError(`.openmetrics.HistogramValue.Bucket.exemplar: object expected`);n.exemplar=V.openmetrics.Exemplar.fromObject(e.exemplar,t+1)}return n},e.toObject=function(e,t){t||={};let n={};if(t.defaults){if(B.Long){let e=new B.Long(0,0,!0);n.count=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.count=t.longs===String?`0`:0;n.upperBound=0,n.exemplar=null}return e.count!=null&&e.hasOwnProperty(`count`)&&(typeof e.count==`number`?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?B.Long.prototype.toString.call(e.count):t.longs===Number?new B.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),e.upperBound!=null&&e.hasOwnProperty(`upperBound`)&&(n.upperBound=t.json&&!isFinite(e.upperBound)?String(e.upperBound):e.upperBound),e.exemplar!=null&&e.hasOwnProperty(`exemplar`)&&(n.exemplar=V.openmetrics.Exemplar.toObject(e.exemplar,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.HistogramValue.Bucket`},e})(),e})(),e.Exemplar=(function(){function e(e){if(this.label=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.value=0,e.prototype.timestamp=null,e.prototype.label=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(9).double(e.value),e.timestamp!=null&&Object.hasOwnProperty.call(e,`timestamp`)&&V.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(18).fork()).ldelim(),e.label!=null&&e.label.length)for(let n=0;n<e.label.length;++n)V.openmetrics.Label.encode(e.label[n],t.uint32(26).fork()).ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.Exemplar,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;(s=e.double())===0?delete o.value:o.value=s;continue;case 2:if(a!==2)break;o.timestamp=V.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1,o.timestamp);continue;case 3:if(a!==2)break;o.label&&o.label.length||(o.label=[]),o.label.push(V.openmetrics.Label.decode(e,e.uint32(),void 0,r+1));continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.Exemplar)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.Exemplar;if(e.value!=null&&Number(e.value)!==0&&(n.value=Number(e.value)),e.timestamp!=null){if(typeof e.timestamp!=`object`)throw TypeError(`.openmetrics.Exemplar.timestamp: object expected`);n.timestamp=V.google.protobuf.Timestamp.fromObject(e.timestamp,t+1)}if(e.label){if(!Array.isArray(e.label))throw TypeError(`.openmetrics.Exemplar.label: array expected`);n.label=Array(e.label.length);for(let r=0;r<e.label.length;++r){if(typeof e.label[r]!=`object`)throw TypeError(`.openmetrics.Exemplar.label: object expected`);n.label[r]=V.openmetrics.Label.fromObject(e.label[r],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.label=[]),t.defaults&&(n.value=0,n.timestamp=null),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),e.timestamp!=null&&e.hasOwnProperty(`timestamp`)&&(n.timestamp=V.google.protobuf.Timestamp.toObject(e.timestamp,t)),e.label&&e.label.length){n.label=Array(e.label.length);for(let r=0;r<e.label.length;++r)n.label[r]=V.openmetrics.Label.toObject(e.label[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.Exemplar`},e})(),e.StateSetValue=(function(){function e(e){if(this.states=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.states=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.states!=null&&e.states.length)for(let n=0;n<e.states.length;++n)V.openmetrics.StateSetValue.State.encode(e.states[n],t.uint32(10).fork()).ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.StateSetValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.states&&o.states.length||(o.states=[]),o.states.push(V.openmetrics.StateSetValue.State.decode(e,e.uint32(),void 0,r+1));continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.StateSetValue)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.StateSetValue;if(e.states){if(!Array.isArray(e.states))throw TypeError(`.openmetrics.StateSetValue.states: array expected`);n.states=Array(e.states.length);for(let r=0;r<e.states.length;++r){if(typeof e.states[r]!=`object`)throw TypeError(`.openmetrics.StateSetValue.states: object expected`);n.states[r]=V.openmetrics.StateSetValue.State.fromObject(e.states[r],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.states=[]),e.states&&e.states.length){n.states=Array(e.states.length);for(let r=0;r<e.states.length;++r)n.states[r]=V.openmetrics.StateSetValue.State.toObject(e.states[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.StateSetValue`},e.State=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.enabled=!1,e.prototype.name=``,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.enabled!=null&&Object.hasOwnProperty.call(e,`enabled`)&&t.uint32(8).bool(e.enabled),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(18).string(e.name),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.StateSetValue.State,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.bool())?o.enabled=s:delete o.enabled;continue;case 2:if(a!==2)break;(s=e.string()).length?o.name=s:delete o.name;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.StateSetValue.State)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.StateSetValue.State;return e.enabled!=null&&e.enabled&&(n.enabled=!!e.enabled),e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=String(e.name)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.enabled=!1,n.name=``),e.enabled!=null&&e.hasOwnProperty(`enabled`)&&(n.enabled=e.enabled),e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.StateSetValue.State`},e})(),e})(),e.InfoValue=(function(){function e(e){if(this.info=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.info=B.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.info!=null&&e.info.length)for(let n=0;n<e.info.length;++n)V.openmetrics.Label.encode(e.info[n],t.uint32(10).fork()).ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.InfoValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.info&&o.info.length||(o.info=[]),o.info.push(V.openmetrics.Label.decode(e,e.uint32(),void 0,r+1));continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.InfoValue)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.InfoValue;if(e.info){if(!Array.isArray(e.info))throw TypeError(`.openmetrics.InfoValue.info: array expected`);n.info=Array(e.info.length);for(let r=0;r<e.info.length;++r){if(typeof e.info[r]!=`object`)throw TypeError(`.openmetrics.InfoValue.info: object expected`);n.info[r]=V.openmetrics.Label.fromObject(e.info[r],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.info=[]),e.info&&e.info.length){n.info=Array(e.info.length);for(let r=0;r<e.info.length;++r)n.info[r]=V.openmetrics.Label.toObject(e.info[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.InfoValue`},e})(),e.SummaryValue=(function(){function e(e){if(this.quantile=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.count=B.Long?B.Long.fromBits(0,0,!0):0,e.prototype.created=null,e.prototype.quantile=B.emptyArray;let t;return Object.defineProperty(e.prototype,`sum`,{get:B.oneOfGetter(t=[`doubleValue`,`intValue`]),set:B.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.doubleValue!=null&&Object.hasOwnProperty.call(e,`doubleValue`)&&t.uint32(9).double(e.doubleValue),e.intValue!=null&&Object.hasOwnProperty.call(e,`intValue`)&&t.uint32(16).int64(e.intValue),e.count!=null&&Object.hasOwnProperty.call(e,`count`)&&t.uint32(24).uint64(e.count),e.created!=null&&Object.hasOwnProperty.call(e,`created`)&&V.google.protobuf.Timestamp.encode(e.created,t.uint32(34).fork()).ldelim(),e.quantile!=null&&e.quantile.length)for(let n=0;n<e.quantile.length;++n)V.openmetrics.SummaryValue.Quantile.encode(e.quantile[n],t.uint32(42).fork()).ldelim();if(e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.SummaryValue,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;o.doubleValue=e.double(),o.sum=`doubleValue`;continue;case 2:if(a!==0)break;o.intValue=e.int64(),o.sum=`intValue`;continue;case 3:if(a!==0)break;(typeof(s=e.uint64())==`object`?s.low||s.high:s!==0)?o.count=s:delete o.count;continue;case 4:if(a!==2)break;o.created=V.google.protobuf.Timestamp.decode(e,e.uint32(),void 0,r+1,o.created);continue;case 5:if(a!==2)break;o.quantile&&o.quantile.length||(o.quantile=[]),o.quantile.push(V.openmetrics.SummaryValue.Quantile.decode(e,e.uint32(),void 0,r+1));continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.SummaryValue)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.SummaryValue;if(e.doubleValue!=null&&(n.doubleValue=Number(e.doubleValue)),e.intValue!=null&&(B.Long?(n.intValue=B.Long.fromValue(e.intValue)).unsigned=!1:typeof e.intValue==`string`?n.intValue=parseInt(e.intValue,10):typeof e.intValue==`number`?n.intValue=e.intValue:typeof e.intValue==`object`&&(n.intValue=new B.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),e.count!=null&&(typeof e.count==`object`?e.count.low||e.count.high:Number(e.count)!==0)&&(B.Long?(n.count=B.Long.fromValue(e.count)).unsigned=!0:typeof e.count==`string`?n.count=parseInt(e.count,10):typeof e.count==`number`?n.count=e.count:typeof e.count==`object`&&(n.count=new B.LongBits(e.count.low>>>0,e.count.high>
18>>0).toNumber(!0))),e.created!=null){if(typeof e.created!=`object`)throw TypeError(`.openmetrics.SummaryValue.created: object expected`);n.created=V.google.protobuf.Timestamp.fromObject(e.created,t+1)}if(e.quantile){if(!Array.isArray(e.quantile))throw TypeError(`.openmetrics.SummaryValue.quantile: array expected`);n.quantile=Array(e.quantile.length);for(let r=0;r<e.quantile.length;++r){if(typeof e.quantile[r]!=`object`)throw TypeError(`.openmetrics.SummaryValue.quantile: object expected`);n.quantile[r]=V.openmetrics.SummaryValue.Quantile.fromObject(e.quantile[r],t+1)}}return n},e.toObject=function(e,t){t||={};let n={};if((t.arrays||t.defaults)&&(n.quantile=[]),t.defaults){if(B.Long){let e=new B.Long(0,0,!0);n.count=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.count=t.longs===String?`0`:0;n.created=null}if(e.doubleValue!=null&&e.hasOwnProperty(`doubleValue`)&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.sum=`doubleValue`)),e.intValue!=null&&e.hasOwnProperty(`intValue`)&&(typeof e.intValue==`number`?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?B.Long.prototype.toString.call(e.intValue):t.longs===Number?new B.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.sum=`intValue`)),e.count!=null&&e.hasOwnProperty(`count`)&&(typeof e.count==`number`?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?B.Long.prototype.toString.call(e.count):t.longs===Number?new B.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),e.created!=null&&e.hasOwnProperty(`created`)&&(n.created=V.google.protobuf.Timestamp.toObject(e.created,t)),e.quantile&&e.quantile.length){n.quantile=Array(e.quantile.length);for(let r=0;r<e.quantile.length;++r)n.quantile[r]=V.openmetrics.SummaryValue.Quantile.toObject(e.quantile[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.SummaryValue`},e.Quantile=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.quantile=0,e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.quantile!=null&&Object.hasOwnProperty.call(e,`quantile`)&&t.uint32(9).double(e.quantile),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(17).double(e.value),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.openmetrics.SummaryValue.Quantile,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;(s=e.double())===0?delete o.quantile:o.quantile=s;continue;case 2:if(a!==1)break;(s=e.double())===0?delete o.value:o.value=s;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.openmetrics.SummaryValue.Quantile)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.openmetrics.SummaryValue.Quantile;return e.quantile!=null&&Number(e.quantile)!==0&&(n.quantile=Number(e.quantile)),e.value!=null&&Number(e.value)!==0&&(n.value=Number(e.value)),n},e.toObject=function(e,t){t||={};let n={};return t.defaults&&(n.quantile=0,n.value=0),e.quantile!=null&&e.hasOwnProperty(`quantile`)&&(n.quantile=t.json&&!isFinite(e.quantile)?String(e.quantile):e.quantile),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/openmetrics.SummaryValue.Quantile`},e})(),e})(),e})(),V.google=(()=>{let e={};return e.protobuf=(function(){let e={};return e.Timestamp=(function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}return e.prototype.seconds=B.Long?B.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||=z.create(),e.seconds!=null&&Object.hasOwnProperty.call(e,`seconds`)&&t.uint32(8).int64(e.seconds),e.nanos!=null&&Object.hasOwnProperty.call(e,`nanos`)&&t.uint32(16).int32(e.nanos),e.$unknowns!=null&&Object.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof R||(e=R.create(e)),r===void 0&&(r=0),r>R.recursionLimit)throw Error(`max depth exceeded`);let a=t===void 0?e.len:e.pos+t,o=i||new V.google.protobuf.Timestamp,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=void 0;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.seconds=s:delete o.seconds;continue;case 2:if(a!==0)break;(s=e.int32())?o.nanos=s:delete o.nanos;continue}e.skipType(a,r,i),B.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos))}if(n!==void 0)throw Error(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof V.google.protobuf.Timestamp)return e;if(t===void 0&&(t=0),t>B.recursionLimit)throw Error(`max depth exceeded`);let n=new V.google.protobuf.Timestamp;return e.seconds!=null&&(typeof e.seconds==`object`?e.seconds.low||e.seconds.high:Number(e.seconds)!==0)&&(B.Long?(n.seconds=B.Long.fromValue(e.seconds)).unsigned=!1:typeof e.seconds==`string`?n.seconds=parseInt(e.seconds,10):typeof e.seconds==`number`?n.seconds=e.seconds:typeof e.seconds==`object`&&(n.seconds=new B.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),e.nanos!=null&&Number(e.nanos)!==0&&(n.nanos=e.nanos|0),n},e.toObject=function(e,t){t||={};let n={};if(t.defaults){if(B.Long){let e=new B.Long(0,0,!1);n.seconds=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.seconds=t.longs===String?`0`:0;
18n.nanos=0}return e.seconds!=null&&e.hasOwnProperty(`seconds`)&&(typeof e.seconds==`number`?n.seconds=t.longs===String?String(e.seconds):e.seconds:n.seconds=t.longs===String?B.Long.prototype.toString.call(e.seconds):t.longs===Number?new B.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),e.nanos!=null&&e.hasOwnProperty(`nanos`)&&(n.nanos=e.nanos),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,L.default.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/google.protobuf.Timestamp`},e})(),e})(),e})(),V.RootContainer=(()=>{let e={},t=Object.create(e);return t[e[0]=`MAIN`]=0,t[e[1]=`SIDEBAR`]=1,t[e[2]=`EVENT`]=2,t[e[3]=`BOTTOM`]=3,t})();var Zo=(e,t)=>(e=e.replace(/((?<![\p{Uppercase_Letter}\d])[\p{Uppercase_Letter}\d](?![\p{Uppercase_Letter}\d]))/gu,e=>e.toLowerCase()),e.replace(/(?<!\p{Uppercase_Letter})(\p{Uppercase_Letter}+)(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,(e,n,r)=>n+t+r.toLowerCase()));function Qo(e,{separator:t=`_`,preserveConsecutiveUppercase:n=!1}={}){if(!(typeof e==`string`&&typeof t==`string`))throw TypeError("The `text` and `separator` arguments should be of type `string`");if(e.length<2)return n?e:e.toLowerCase();let r=`$1${t}$2`,i=e.replace(/([\p{Lowercase_Letter}\d])(\p{Uppercase_Letter})/gu,r);return n?Zo(i,t):i.replace(/(\p{Uppercase_Letter})(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,r).toLowerCase()}var $o,es=o((()=>{$o=typeof global==`object`&&global&&global.Object===Object&&global})),ts,ns,rs=o((()=>{es(),ts=typeof self==`object`&&self&&self.Object===Object&&self,ns=$o||ts||Function(`return this`)()})),is,as=o((()=>{rs(),is=ns.Symbol}));function os(e){var t=cs.call(e,us),n=e[us];try{e[us]=void 0;var r=!0}catch{}var i=ls.call(e);return r&&(t?e[us]=n:delete e[us]),i}var ss,cs,ls,us,ds=o((()=>{as(),ss=Object.prototype,cs=ss.hasOwnProperty,ls=ss.toString,us=is?is.toStringTag:void 0}));function fs(e){return ps.call(e)}var ps,ms=o((()=>{ps=Object.prototype.toString}));function hs(e){return e==null?e===void 0?_s:gs:vs&&vs in Object(e)?os(e):fs(e)}var gs,_s,vs,ys=o((()=>{as(),ds(),ms(),gs=`[object Null]`,_s=`[object Undefined]`,vs=is?is.toStringTag:void 0}));function bs(e){return typeof e==`object`&&!!e}var xs=o((()=>{}));function Ss(e){return typeof e==`symbol`||bs(e)&&hs(e)==Cs}var Cs,ws=o((()=>{ys(),xs(),Cs=`[object Symbol]`}));function Ts(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Es=o((()=>{})),Ds,Os=o((()=>{Ds=Array.isArray}));function ks(e){if(typeof e==`string`)return e;if(Ds(e))return Ts(e,ks)+``;if(Ss(e))return Ms?Ms.call(e):``;var t=e+``;return t==`0`&&1/e==-As?`-0`:t}var As,js,Ms,Ns=o((()=>{as(),Es(),Os(),ws(),As=1/0,js=is?is.prototype:void 0,Ms=js?js.toString:void 0})),Ps=/\s/;function Fs(e){for(var t=e.length;t--&&Ps.test(e.charAt(t)););return t}var Is=/^\s+/;function Ls(e){return e&&e.slice(0,Fs(e)+1).replace(Is,``)}function Rs(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var zs=o((()=>{}));zs(),ws();var Bs=NaN,Vs=/^[-+]0x[0-9a-f]+$/i,Hs=/^0b[01]+$/i,Us=/^0o[0-7]+$/i,Ws=parseInt;function Gs(e){if(typeof e==`number`)return e;if(Ss(e))return Bs;if(Rs(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Rs(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Ls(e);var n=Hs.test(e);return n||Us.test(e)?Ws(e.slice(2),n?2:8):Vs.test(e)?Bs:+e}var Ks=1/0,qs=17976931348623157e292;function Js(e){return e?(e=Gs(e),e===Ks||e===-Ks?(e<0?-1:1)*qs:e===e?e:0):e===0?e:0}function Ys(e){var t=Js(e),n=t%1;return t===t?n?t-n:t:0}function Xs(e){return e}var Zs=o((()=>{}));function Qs(e){if(!Rs(e))return!1;var t=hs(e);return t==ec||t==tc||t==$s||t==nc}var $s,ec,tc,nc,rc=o((()=>{ys(),zs(),$s=`[object AsyncFunction]`,ec=`[object Function]`,tc=`[object GeneratorFunction]`,nc=`[object Proxy]`})),ic,ac=o((()=>{rs(),ic=ns[`__core-js_shared__`]}));function oc(e){return!!sc&&sc in e}var sc,cc=o((()=>{ac(),sc=function(){var e=/[^.]+$/.exec(ic&&ic.keys&&ic.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}()}));function lc(e){if(e!=null){try{return uc.call(e)}catch{}try{return e+``}catch{}}return``}var uc,dc=o((()=>{uc=Function.prototype.toString}));function fc(e){return!Rs(e)||oc(e)?!1:(Qs(e)?yc:mc).test(lc(e))}var pc,mc,hc,gc,_c,vc,yc,bc=o((()=>{rc(),cc(),zs(),dc(),pc=/[\\^$.*+?()[\]{}|]/g,mc=/^\[object .+?Constructor\]$/,hc=Function.prototype,gc=Object.prototype,_c=hc.toString,vc=gc.hasOwnProperty,yc=RegExp(`^`+_c.call(vc).replace(pc,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`)}));function H(e,t){return e?.[t]}var xc=o((()=>{}));function Sc(e,t){var n=H(e,t);return fc(n)?n:void 0}var Cc=o((()=>{bc(),xc()})),wc,Tc=o((()=>{Cc(),rs(),wc=Sc(ns,`WeakMap`)})),Ec,Dc,Oc=o((()=>{zs(),Ec=Object.create,Dc=function(){function e(){}return function(t){if(!Rs(t))return{};if(Ec)return Ec(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}()}));Zs(),Oc();function kc(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ac(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var jc=o((()=>{}));jc();var Mc=800,Nc=16,Pc=Date.now;function Fc(e){var t=0,n=0;return function(){var r=Pc(),i=Nc-(r-n);if(n=r,i>0){if(++t>=Mc)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ic(e){return function(){return e}}var Lc,Rc=o((()=>{Cc(),Lc=function(){try{var e=Sc(Object,`defineProperty`);return e({},``,{}),e}catch{}}()}));Rc();var zc=Fc(Lc?function(e,t){return Lc(e,`toString`,{configurable:!0,enumerable:!1,value:
vendor: 7,252 bytes, line 18
18Ic(t),writable:!0})}:Xs);function Bc(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Vc=o((()=>{}));function Hc(e,t){var n=typeof e;return t??=Uc,!!t&&(n==`number`||n!=`symbol`&&Wc.test(e))&&e>-1&&e%1==0&&e<t}var Uc,Wc,Gc=o((()=>{Uc=9007199254740991,Wc=/^(?:0|[1-9]\d*)$/}));function Kc(e,t,n){t==`__proto__`&&Lc?Lc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var qc=o((()=>{Rc()}));function Jc(e,t){return e===t||e!==e&&t!==t}var Yc=o((()=>{}));function Xc(e,t,n){var r=e[t];(!(Zc.call(e,t)&&Jc(r,n))||n===void 0&&!(t in e))&&Kc(e,t,n)}var Zc,Qc=o((()=>{qc(),Yc(),Zc=Object.prototype.hasOwnProperty}));function $c(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?Kc(n,s,c):Xc(n,s,c)}return n}var el=o((()=>{Qc(),qc()}));Gc(),el();var tl=Math.max;function nl(e,t,n){return t=tl(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=tl(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),kc(e,this,s)}}Zs();function rl(e,t){return zc(nl(e,t,Xs),e+``)}function il(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=al}var al,ol=o((()=>{al=9007199254740991}));function sl(e){return e!=null&&il(e.length)&&!Qs(e)}var cl=o((()=>{rc(),ol()}));Yc(),cl(),zs();function ll(e,t,n){if(!Rs(n))return!1;var r=typeof t;return(r==`number`?sl(n)&&Hc(t,n.length):r==`string`&&t in n)?Jc(n[t],e):!1}function ul(e){return rl(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&ll(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}function dl(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||fl)}var fl,pl=o((()=>{fl=Object.prototype}));function ml(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var hl=o((()=>{}));function gl(e){return bs(e)&&hs(e)==_l}var _l,vl=o((()=>{ys(),xs(),_l=`[object Arguments]`})),yl,bl,xl,Sl,Cl=o((()=>{vl(),xs(),yl=Object.prototype,bl=yl.hasOwnProperty,xl=yl.propertyIsEnumerable,Sl=gl(function(){return arguments}())?gl:function(e){return bs(e)&&bl.call(e,`callee`)&&!xl.call(e,`callee`)}}));function wl(){return!1}var Tl=o((()=>{})),El,Dl,Ol,kl,Al=o((()=>{rs(),Tl(),El=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Dl=El&&typeof module==`object`&&module&&!module.nodeType&&module,Ol=Dl&&Dl.exports===El?ns.Buffer:void 0,kl=(Ol?Ol.isBuffer:void 0)||wl}));function jl(e){return bs(e)&&il(e.length)&&!!nu[hs(e)]}var Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql,$l,eu,tu,nu,ru=o((()=>{ys(),ol(),xs(),Ml=`[object Arguments]`,Nl=`[object Array]`,Pl=`[object Boolean]`,Fl=`[object Date]`,Il=`[object Error]`,Ll=`[object Function]`,Rl=`[object Map]`,zl=`[object Number]`,Bl=`[object Object]`,Vl=`[object RegExp]`,Hl=`[object Set]`,Ul=`[object String]`,Wl=`[object WeakMap]`,Gl=`[object ArrayBuffer]`,Kl=`[object DataView]`,ql=`[object Float32Array]`,Jl=`[object Float64Array]`,Yl=`[object Int8Array]`,Xl=`[object Int16Array]`,Zl=`[object Int32Array]`,Ql=`[object Uint8Array]`,$l=`[object Uint8ClampedArray]`,eu=`[object Uint16Array]`,tu=`[object Uint32Array]`,nu={},nu[ql]=nu[Jl]=nu[Yl]=nu[Xl]=nu[Zl]=nu[Ql]=nu[$l]=nu[eu]=nu[tu]=!0,nu[Ml]=nu[Nl]=nu[Gl]=nu[Pl]=nu[Kl]=nu[Fl]=nu[Il]=nu[Ll]=nu[Rl]=nu[zl]=nu[Bl]=nu[Vl]=nu[Hl]=nu[Ul]=nu[Wl]=!1}));function iu(e){return function(t){return e(t)}}var au=o((()=>{})),ou,su,cu,lu,uu=o((()=>{es(),ou=typeof exports==`object`&&exports&&!exports.nodeType&&exports,su=ou&&typeof module==`object`&&module&&!module.nodeType&&module,cu=su&&su.exports===ou&&$o.process,lu=function(){try{return su&&su.require&&su.require(`util`).types||cu&&cu.binding&&cu.binding(`util`)}catch{}}()})),du,fu,pu=o((()=>{ru(),au(),uu(),du=lu&&lu.isTypedArray,fu=du?iu(du):jl}));function mu(e,t){var n=Ds(e),r=!n&&Sl(e),i=!n&&!r&&kl(e),a=!n&&!r&&!i&&fu(e),o=n||r||i||a,s=o?ml(e.length,String):[],c=s.length;for(var l in e)(t||hu.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Hc(l,c)))&&s.push(l);return s}var hu,gu=o((()=>{hl(),Cl(),Os(),Al(),Gc(),pu(),hu=Object.prototype.hasOwnProperty}));function _u(e,t){return function(n){return e(t(n))}}var vu=o((()=>{})),yu,bu=o((()=>{vu(),yu=_u(Object.keys,Object)}));function xu(e){if(!dl(e))return yu(e);var t=[];for(var n in Object(e))Su.call(e,n)&&n!=`constructor`&&t.push(n);return t}var Su,Cu=o((()=>{pl(),bu(),Su=Object.prototype.hasOwnProperty}));function wu(e){return sl(e)?mu(e):xu(e)}var Tu=o((()=>{gu(),Cu(),cl()}));function Eu(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Du=o((()=>{}));function Ou(e){if(!Rs(e))return Eu(e);var t=dl(e),n=[];for(var r in e)r==`constructor`&&(t||!ku.call(e,r))||n.push(r);return n}var ku,Au=o((()=>{zs(),pl(),Du(),ku=Object.prototype.hasOwnProperty}));function ju(e){return sl(e)?mu(e,!0):Ou(e)}var Mu=o((()=>{gu(),Au(),cl()}));function Nu(e,t){if(Ds(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Ss(e)?!0:Fu.test(e)||!Pu.test(e)||t!=null&&e in Object(t)}var Pu,Fu,Iu=o((()=>{Os(),ws(),Pu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fu=/^\w*$/})),Lu,Ru=o((()=>{Cc(),Lu=Sc(Object,`create`)}));function tee(){this.__data__=Lu?Lu(null):{},this.size=0}var zu=o((()=>{Ru()}));function Bu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var nee=o((()=>{}));function ree(e){var t=this.__data__;if(Lu){var n=t[e];return n===Vu?void 0:n}return Hu.call(t,e)?t[e]:void 0}var Vu,Hu,Uu=o((()=>{Ru(),Vu=`__lodash_hash_undefined__`,Hu=Object.prototype.hasOwnProperty}));function Wu(e){var t=this.__data__;return Lu?t[e]!==void 0:Gu.call(t,e)}var Gu,Ku=o((()=>{Ru(),Gu=Object.prototype.hasOwnProperty}));function qu(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Lu&&t===void 0?Ju:t,this}var Ju,iee=o((()=>{Ru(),Ju=`__lodash_hash_undefined__`}));function Yu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var aee=o((()=>{zu(),nee(),Uu(),Ku(),iee(),Yu.prototype.clear=tee,Yu.prototype.delete=Bu,Yu.prototype.get=ree,Yu.prototype.has=Wu,Yu.prototype.set=qu}));function oee(){this.__data__=[],this.size=0}var see=o((()=>{}));function Xu(e,t){for(var n=e.length;n--;)if(Jc(e[n][0],t))return n;return-1}var Zu=o((()=>{Yc()}));function cee(e){var t=this.__data__,n=Xu(t,e);return n<0?!1:(n==t.length-1?t.pop():Qu.call(t,n,1),--this.size,!0)}var Qu,lee=o((()=>{Zu(),Qu=Array.prototype.splice}));function uee(e){var t=this.__data__,n=Xu(t,e);return n<0?void 0:t[n][1]}var dee=o((()=>{Zu()}));function fee(e){return Xu(this.__data__,e)>-1}var pee=o((()=>{Zu()}));function mee(e,t){var n=this.__data__,r=Xu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var hee=o((()=>{Zu()}));function $u(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var ed=o((()=>{see(),lee(),dee(),pee(),hee(),$u.prototype.clear=oee,$u.prototype.delete=cee,$u.prototype.get=uee,$u.prototype.has=fee,$u.prototype.set=mee})),td,nd=o((()=>{Cc(),rs(),td=Sc(ns,`Map`)}));function rd(){this.size=0,this.__data__={hash:new Yu,map:new(td||$u),string:new Yu}}var id=o((()=>
18{aee(),ed(),nd()}));function ad(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}var od=o((()=>{}));function sd(e,t){var n=e.__data__;return ad(t)?n[typeof t==`string`?`string`:`hash`]:n.map}var cd=o((()=>{od()}));function ld(e){var t=sd(this,e).delete(e);return this.size-=+!!t,t}var ud=o((()=>{cd()}));function gee(e){return sd(this,e).get(e)}var _ee=o((()=>{cd()}));function vee(e){return sd(this,e).has(e)}var yee=o((()=>{cd()}));function bee(e,t){var n=sd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var xee=o((()=>{cd()}));function dd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var fd=o((()=>{id(),ud(),_ee(),yee(),xee(),dd.prototype.clear=rd,dd.prototype.delete=ld,dd.prototype.get=gee,dd.prototype.has=vee,dd.prototype.set=bee}));function pd(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(md);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(pd.Cache||dd),n}var md,See=o((()=>{fd(),md=`Expected a function`,pd.Cache=dd}));function Cee(e){var t=pd(e,function(e){return n.size===hd&&n.clear(),e}),n=t.cache;return t}var hd,wee=o((()=>{See(),hd=500})),gd,_d,vd,Tee=o((()=>{wee(),gd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_d=/\\(\\)?/g,vd=Cee(function(e){var t=[];
vendor: 6,222 bytes, line 18
18return e.charCodeAt(0)===46&&t.push(``),e.replace(gd,function(e,n,r,i){t.push(r?i.replace(_d,`$1`):n||e)}),t})}));function yd(e){return e==null?``:ks(e)}var bd=o((()=>{Ns()}));function xd(e,t){return Ds(e)?e:Nu(e,t)?[e]:vd(yd(e))}var Sd=o((()=>{Os(),Iu(),Tee(),bd()}));function Cd(e){if(typeof e==`string`||Ss(e))return e;var t=e+``;return t==`0`&&1/e==-wd?`-0`:t}var wd,Td=o((()=>{ws(),wd=1/0}));function Ed(e,t){t=xd(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Cd(t[n++])];return n&&n==r?e:void 0}var Dd=o((()=>{Sd(),Td()}));function Od(e,t,n){var r=e==null?void 0:Ed(e,t);return r===void 0?n:r}var kd=o((()=>{Dd()}));function Ad(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var jd=o((()=>{}));as(),Cl(),Os();var Md=is?is.isConcatSpreadable:void 0;function Nd(e){return Ds(e)||Sl(e)||!!(Md&&e&&e[Md])}jd();function Pd(e,t,n,r,i){var a=-1,o=e.length;for(n||=Nd,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Pd(s,t-1,n,r,i):Ad(i,s):r||(i[i.length]=s)}return i}function Fd(e){return e!=null&&e.length?Pd(e,1):[]}function Id(e){return zc(nl(e,void 0,Fd),e+``)}var Ld,Rd=o((()=>{vu(),Ld=_u(Object.getPrototypeOf,Object)})),zd=c({default:()=>Bd});function Bd(e){if(!bs(e)||hs(e)!=Vd)return!1;var t=Ld(e);if(t===null)return!0;var n=Gd.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Wd.call(n)==Kd}var Vd,Hd,Ud,Wd,Gd,Kd,qd=o((()=>{ys(),Rd(),xs(),Vd=`[object Object]`,Hd=Function.prototype,Ud=Object.prototype,Wd=Hd.toString,Gd=Ud.hasOwnProperty,Kd=Wd.call(Object)})),Eee=`Expected a function`;function Dee(e,t){var n;if(typeof t!=`function`)throw TypeError(Eee);return e=Ys(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function Jd(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function Oee(){this.__data__=new $u,this.size=0}var kee=o((()=>{ed()}));function Aee(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var jee=o((()=>{}));function Mee(e){return this.__data__.get(e)}var Nee=o((()=>{}));function Pee(e){return this.__data__.has(e)}var Fee=o((()=>{}));function Iee(e,t){var n=this.__data__;if(n instanceof $u){var r=n.__data__;if(!td||r.length<Yd-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dd(r)}return n.set(e,t),this.size=n.size,this}var Yd,Lee=o((()=>{ed(),nd(),fd(),Yd=200}));function Xd(e){var t=this.__data__=new $u(e);this.size=t.size}var Zd=o((()=>{ed(),kee(),jee(),Nee(),Fee(),Lee(),Xd.prototype.clear=Oee,Xd.prototype.delete=Aee,Xd.prototype.get=Mee,Xd.prototype.has=Pee,Xd.prototype.set=Iee}));function Ree(e,t){return e&&$c(t,wu(t),e)}var zee=o((()=>{Tu()}));function Bee(e,t){return e&&$c(t,ju(t),e)}var Vee=o((()=>{el(),Mu()}));function Qd(e,t){if(t)return e.slice();var n=e.length,r=nf?nf(n):new e.constructor(n);return e.copy(r),r}var $d,ef,tf,nf,rf=o((()=>{rs(),$d=typeof exports==`object`&&exports&&!exports.nodeType&&exports,ef=$d&&typeof module==`object`&&module&&!module.nodeType&&module,tf=ef&&ef.exports===$d?ns.Buffer:void 0,nf=tf?tf.allocUnsafe:void 0}));function af(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var of=o((()=>{}));function sf(){return[]}var cf=o((()=>{})),lf,uf,df,ff=o((()=>{of(),cf(),lf=Object.prototype.propertyIsEnumerable,uf=Object.getOwnPropertySymbols,df=uf?function(e){return e==null?[]:(e=Object(e),af(uf(e),function(t){return lf.call(e,t)}))}:sf}));function Hee(e,t){return $c(e,df(e),t)}var Uee=o((()=>{el(),ff()})),pf,mf=o((()=>{jd(),Rd(),ff(),cf(),pf=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ad(t,df(e)),e=Ld(e);return t}:sf}));function hf(e,t){return $c(e,pf(e),t)}var gf=o((()=>{el(),mf()}));function _f(e,t,n){var r=t(e);return Ds(e)?r:Ad(r,n(e))}var vf=o((()=>{jd(),Os()}));function yf(e){return _f(e,wu,df)}var bf=o((()=>{vf(),ff(),Tu()}));function xf(e){return _f(e,ju,pf)}var Sf=o((()=>{vf(),mf(),Mu()})),Cf,wf=o((()=>{Cc(),rs(),Cf=Sc(ns,`DataView`)})),Tf,Ef=o((()=>{Cc(),rs(),Tf=Sc(ns,`Promise`)})),Df,Of=o((()=>{Cc(),rs(),Df=Sc(ns,`Set`)})),kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf=o((()=>{wf(),nd(),Ef(),Of(),Tc(),ys(),dc(),kf=`[object Map]`,Af=`[object Object]`,jf=`[object Promise]`,Mf=`[object Set]`,Nf=`[object WeakMap]`,Pf=`[object DataView]`,Ff=lc(Cf),If=lc(td),Lf=lc(Tf),Rf=lc(Df),zf=lc(wc),Bf=hs,(Cf&&Bf(new Cf(new ArrayBuffer(1)))!=Pf||td&&Bf(new td)!=kf||Tf&&Bf(Tf.resolve())!=jf||Df&&Bf(new Df)!=Mf||wc&&Bf(new wc)!=Nf)&&(Bf=function(e){var t=hs(e),n=t==Af?e.constructor:void 0,r=n?lc(n):``;if(r)switch(r){case Ff:return Pf;case If:return kf;case Lf:return jf;case Rf:return Mf;case zf:return Nf}return t}),Vf=Bf}));function Wee(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Uf.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var Uf,Gee=o((()=>{Uf=Object.prototype.hasOwnProperty})),Wf,Gf=o((()=>{rs(),Wf=ns.Uint8Array}));function Kf(e){var t=new e.constructor(e.byteLength);return new Wf(t).set(new Wf(e)),t}var qf=o((()=>{Gf()}));function Kee(e,t){var n=t?Kf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var qee=o((()=>{qf()}));function Jee(e){var t=new e.constructor(e.source,Jf.exec(e));return t.lastIndex=e.lastIndex,t}var Jf,Yee=o((()=>{Jf=/\w*$/}));function Xee(e){return Xf?Object(Xf.call(e)):{}}var Yf,Xf,Zee=o((()=>{as(),Yf=is?is.prototype:void 0,Xf=Yf?Yf.valueOf:void 0}));function Zf(e,t){var n=t?Kf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Qf=o((()=>{qf()}));function Qee(e,t,n){var r=e.constructor;switch(t){case sp:return Kf(e);case $f:case ep:return new r(+e);case cp:return Kee(e,n);case lp:case up:case dp:case fp:case pp:case mp:case hp:case gp:case _p:return Zf(e,n);case tp:return new r;case np:case ap:return new r(e);case rp:return Jee(e);case ip:return new r;case op:return Xee(e)}}var $f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp,mp,hp,gp,_p,$ee=o((()=>{qf(),qee(),Yee(),Zee(),Qf(),$f=`[object Boolean]`,ep=`[object Date]`,tp=`[object Map]`,np=`[object Number]`,rp=`[object RegExp]`,ip=`[object Set]`,ap=`[object String]`,op=`[object Symbol]`,sp=`[object ArrayBuffer]`,cp=`[object DataView]`,lp=`[object Float32Array]`,up=`[object Float64Array
18]`,dp=`[object Int8Array]`,fp=`[object Int16Array]`,pp=`[object Int32Array]`,mp=`[object Uint8Array]`,hp=`[object Uint8ClampedArray]`,gp=`[object Uint16Array]`,_p=`[object Uint32Array]`}));function vp(e){return typeof e.constructor==`function`&&!dl(e)?Dc(Ld(e)):{}}var yp=o((()=>{Rd(),pl()}));function ete(e){return bs(e)&&Vf(e)==bp}var bp,tte=o((()=>{Hf(),xs(),bp=`[object Map]`})),xp,Sp,nte=o((()=>{tte(),au(),uu(),xp=lu&&lu.isMap,Sp=xp?iu(xp):ete}));function rte(e){return bs(e)&&Vf(e)==Cp}var Cp,ite=o((()=>{Hf(),xs(),Cp=`[object Set]`})),wp,Tp,Ep=o((()=>{ite(),au(),uu(),wp=lu&&lu.isSet,Tp=wp?iu(wp):rte}));function Dp(e,t,n,r,i,a){var o,s=t&Op,c=t&kp,l=t&Ap;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!Rs(e))return e;var u=Ds(e);if(u){if(o=Wee(e),!s)return Ac(e,o)}else{var d=Vf(e),f=d==Ip||d==Lp;if(kl(e))return Qd(e,s);if(d==Bp||d==jp||f&&!i){if(o=c||f?{}:vp(e),!s)return c?hf(e,Bee(o,e)):Hee(e,Ree(o,e))}else{if(!rm[d])return i?e:{};o=Qee(e,d,s)}}a||=new Xd;var p=a.get(e);if(p)return p;a.set(e,o),Tp(e)?e.forEach(function(r){o.add(Dp(r,t,n,r,e,a))}):Sp(e)&&e.forEach(function(r,i){o.set(i,Dp(r,t,n,i,e,a))});var m=u?void 0:(l?c?xf:yf:c?ju:wu)(e);return Bc(m||e,function(r,i){m&&(i=r,r=e[i]),Xc(o,i,Dp(r,t,n,i,e,a))}),o}var Op,kp,Ap,jp,Mp,Np,Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im=o((()=>{Zd(),Vc(),Qc(),zee(),Vee(),rf(),Uee(),gf(),bf(),Sf(),Hf(),Gee(),$ee(),yp(),Os(),Al(),nte(),zs(),Ep(),Tu(
vendor: 4,259 bytes, line 18
18),Mu(),Op=1,kp=2,Ap=4,jp=`[object Arguments]`,Mp=`[object Array]`,Np=`[object Boolean]`,Pp=`[object Date]`,Fp=`[object Error]`,Ip=`[object Function]`,Lp=`[object GeneratorFunction]`,Rp=`[object Map]`,zp=`[object Number]`,Bp=`[object Object]`,Vp=`[object RegExp]`,Hp=`[object Set]`,Up=`[object String]`,Wp=`[object Symbol]`,Gp=`[object WeakMap]`,Kp=`[object ArrayBuffer]`,qp=`[object DataView]`,Jp=`[object Float32Array]`,Yp=`[object Float64Array]`,Xp=`[object Int8Array]`,Zp=`[object Int16Array]`,Qp=`[object Int32Array]`,$p=`[object Uint8Array]`,em=`[object Uint8ClampedArray]`,tm=`[object Uint16Array]`,nm=`[object Uint32Array]`,rm={},rm[jp]=rm[Mp]=rm[Kp]=rm[qp]=rm[Np]=rm[Pp]=rm[Jp]=rm[Yp]=rm[Xp]=rm[Zp]=rm[Qp]=rm[Rp]=rm[zp]=rm[Bp]=rm[Vp]=rm[Hp]=rm[Up]=rm[Wp]=rm[$p]=rm[em]=rm[tm]=rm[nm]=!0,rm[Fp]=rm[Ip]=rm[Gp]=!1})),ate=c({default:()=>am});function am(e){return Dp(e,om|sm)}var om,sm,ote=o((()=>{im(),om=1,sm=4}));function ste(e){return this.__data__.set(e,cm),this}var cm,cte=o((()=>{cm=`__lodash_hash_undefined__`}));function lte(e){return this.__data__.has(e)}var ute=o((()=>{}));function lm(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new dd;++t<n;)this.add(e[t])}var um=o((()=>{fd(),cte(),ute(),lm.prototype.add=lm.prototype.push=ste,lm.prototype.has=lte}));function dte(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var fte=o((()=>{}));function dm(e,t){return e.has(t)}var fm=o((()=>{}));function pm(e,t,n,r,i,a){var o=n&mm,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&hm?new lm:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!dte(t,function(e,t){if(!dm(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var mm,hm,gm=o((()=>{um(),fte(),fm(),mm=1,hm=2}));function pte(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}var mte=o((()=>{}));function _m(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var vm=o((()=>{}));function hte(e,t,n,r,i,a,o){switch(n){case jm:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Am:return!(e.byteLength!=t.byteLength||!a(new Wf(e),new Wf(t)));case xm:case Sm:case Tm:return Jc(+e,+t);case Cm:return e.name==t.name&&e.message==t.message;case Em:case Om:return e==t+``;case wm:var s=pte;case Dm:var c=r&ym;if(s||=_m,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=bm,o.set(e,t);var u=pm(s(e),s(t),r,i,a,o);return o.delete(e),u;case km:if(Nm)return Nm.call(e)==Nm.call(t)}return!1}var ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,gte=o((()=>{as(),Gf(),Yc(),gm(),mte(),vm(),ym=1,bm=2,xm=`[object Boolean]`,Sm=`[object Date]`,Cm=`[object Error]`,wm=`[object Map]`,Tm=`[object Number]`,Em=`[object RegExp]`,Dm=`[object Set]`,Om=`[object String]`,km=`[object Symbol]`,Am=`[object ArrayBuffer]`,jm=`[object DataView]`,Mm=is?is.prototype:void 0,Nm=Mm?Mm.valueOf:void 0}));function _te(e,t,n,r,i,a){var o=n&Pm,s=yf(e),c=s.length;if(c!=yf(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:Fm.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var Pm,Fm,vte=o((()=>{bf(),Pm=1,Fm=Object.prototype.hasOwnProperty}));function yte(e,t,n,r,i,a){var o=Ds(e),s=Ds(t),c=o?Rm:Vf(e),l=s?Rm:Vf(t);c=c==Lm?zm:c,l=l==Lm?zm:l;var u=c==zm,d=l==zm,f=c==l;if(f&&kl(e)){if(!kl(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Xd,o||fu(e)?pm(e,t,n,r,i,a):hte(e,t,c,n,r,i,a);if(!(n&Im)){var p=u&&Bm.call(e,`__wrapped__`),m=d&&Bm.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Xd,i(h,g,n,r,a)}}return f?(a||=new Xd,_te(e,t,n,r,i,a)):!1}var Im,Lm,Rm,zm,Bm,bte=o((()=>
18{Zd(),gm(),gte(),vte(),Hf(),Os(),Al(),pu(),Im=1,Lm=`[object Arguments]`,Rm=`[object Array]`,zm=`[object Object]`,Bm=Object.prototype.hasOwnProperty}));function Vm(e,t,n,r,i){return e===t?!0:e==null||t==null||!bs(e)&&!bs(t)?e!==e&&t!==t:yte(e,t,n,r,Vm,i)}var Hm=o((()=>{bte(),xs()}));function xte(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new Xd;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?Vm(u,l,Um|Wm,r,d):f))return!1}}return!0}var Um,Wm,Ste=o((()=>{Zd(),Hm(),Um=1,Wm=2}));function Gm(e){return e===e&&!Rs(e)}var Km=o((()=>{zs()}));function Cte(e){for(var t=wu(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Gm(i)]}return t}var wte=o((()=>{Km(),Tu()}));function qm(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Jm=o((()=>{}));function Ym(e){var t=Cte(e);return t.length==1&&t[0][2]?qm(t[0][0],t[0][1]):function(n){return n===e||xte(n,e,t)}}var Xm=o((()=>{Ste(),wte(),Jm()}));function Zm(e,t){return e!=null&&t in Object(e)}var Qm=o((()=>{}));function $m(e,t,n){t=xd(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Cd(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&il(i)&&Hc(o,i)&&(Ds(e)||Sl(e)))}var eh=o((()=>{Sd(),Cl(),Os(),Gc(),ol(),Td()}));function th(e,t){return e!=null&&$m(e,t,Zm)}var nh=o((()=>{Qm(),eh()}));function rh(e,t){return Nu(e)&&Gm(t)?qm(Cd(e),t):function(n){var r=Od(n,e);return r===void 0&&r===t?th(n,e):Vm(t,r,ih|ah)}}var ih,ah,oh=o((()=>{Hm(),kd(),nh(),Iu(),Km(),Jm(),Td(),ih=1,ah=2}));function sh(e){return function(t){return t?.[e]}}var ch=o((()=>{}));function lh(e){return function(t){return Ed(t,e)}}var uh=o((()=>{Dd()}));function dh(e){return Nu(e)?sh(Cd(e)):lh(e)}var fh=o((()=>{ch(),uh(),Iu(),Td()}));function ph(e){return typeof e==`function`?e:e==null?Xs:typeof e==`object`?Ds(e)?rh(e[0],e[1]):Ym(e):dh(e)}var mh=o((()=>{Xm(),oh(),Zs(),Os(),fh()}));function hh(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function gh(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var _h=o((()=>{})),vh,yh=o((()=>{_h(),vh=gh()}));function bh(e,t){return e&&vh(e,t,wu)}var xh=o((()=>{yh(),Tu()}));function Sh(e,t){return function(n,r){if(n==null)return n;if(!sl(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var Ch=o((()=>{cl()})),wh,Th=o((()=>{xh(),Ch(),wh=Sh(bh)}));Th();function Eh(e,t,n,r){return wh(e,function(e,i,a){t(r,e,n(e),a)}),r}mh(),Os();function Dh(e,t){return function(n,r){var i=Ds(n)?hh:Eh,a=t?t():{};return i(n,e,ph(r,2),a)}}qd(),rs();var Oh=function(){return ns.Date.now()};zs();var kh=`Expected a function`,Ah=Math.max,jh=Math.min;function Mh(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(kh);t=Gs(t)||0,Rs(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Ah(Gs(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?jh(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=Oh();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(Oh())}function x(){var e=Oh(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}qc(),Yc();function Nh(e,t,n){(n!==void 0&&!Jc(e[t],n)||n===void 0&&!(t in e))&&Kc(e,t,n)}cl(),xs();function Ph(e){return bs(e)&&sl(e)}function Fh(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}el(),Mu();function Tte(e){return $c(e,ju(e))}rf(),Qf(),jc(),yp(),Cl(),Os(),Al(),rc(),zs(),pu();function Ete(e,t,n,r,i,a,o){var s=Fh(e,n),c=Fh(t,n),l=o.get(c);if(l){Nh(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=Ds(c),p=!f&&kl(c),m=!f&&!p&&fu(c);u=c,f||p||m?Ds(s)?u=s:Ph(s)?u=Ac(s):p?(d=!1,u=Qd(c,!0)):m?(d=!1,u=Zf(c,!0)):u=[]:Bd(c)||Sl(c)?(u=s,Sl(s)?u=Tte(s):(!Rs(s)||Qs(s))&&(u=vp(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),Nh(e,n,u)}Zd(),yh(),zs(),Mu();function Ih(e,t,n,r,i){e!==t&&vh(t,function(a,o){if(i||=new Xd,Rs(a))Ete(e,t,o,n,Ih,r,i);else{var s=r?r(Fh(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Nh(e,o,s)}},ju)}var Lh=ul(function(e,t,n,r){Ih(e,t,n,r)});function Dte(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Rh(e){return typeof e==`function`?e:Xs}var zh=o((()=>{Zs()}));Vc(),Th(),zh(),Os();function Ote(e,t){return(Ds(e)?Bc:wh)(e,Rh(t))}function Bh(e,t){var n=-1,r=sl(e)?Array(e.length):[];return wh(e,function(e,i,a){r[++n]=t(e,i,a)}),r}var Vh=o((()=>{Th(),cl()})),kte=c({default:()=>Hh});function Hh(e,t){return(Ds(e)?Ts:Bh)(e,ph(t,3))}var Uh=o((()=>{Es(),mh(),Vh(),Os()})),Wh=c({default:()=>Ate});function Ate(e,t){return e&&bh(e,Rh(t))}var Gh=o((()=>{xh(),zh()}));qc();var jte=Object.prototype.hasOwnProperty,Kh=Dh(function(e,t,n){jte.call(e,n)?e[n].push(t):Kc(e,n,[t])}),Mte=c({default:()=>Nte});function Nte(e){return typeof e==`string`||!Ds(e)&&bs(e)&&hs(e)==qh}var qh,Pte=o((()=>{ys(),Os(),xs(),qh=`[object String]`}));Dd();function Fte(e,t){return t.length<2?e:Ed(e,Jd(t,0,-1))}Hm();function Jh(e,t){return Vm(e,t)}Uh();function Yh(e){return e===void 0}var Xh=ul(function(e,t,n){Ih(e,t,n)});Sd(),Td();var Ite=Object.prototype.hasOwnProperty;function Lte(e,t){t=xd(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=Cd(t[n]);if(i===`__proto__`&&!Ite.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=Fte(e,t);return a==null||delete a[Cd(Dte(t))]}qd();function Rte(e){return Bd(e)?void 0:e}Es(),im(),Sd(),el(),Sf();var zte=1,Bte=2,Vte=4,Zh=Id(function(e,t){var n={};if(e==null)return n;var r=!1;t=Ts(t,function(t){return t=xd(t,e),r||=t.length>1,t}),$c(e,xf(e),n),r&&(n=Dp(n,zte|Bte|Vte,Rte));for(var i=t.length;i--;)Lte(n,t[i]);return n});Qc(),Sd(),Gc(),zs(),Td();function Hte(e,t,n,r){if(!Rs(e))return e;t=xd(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=Cd(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=Rs(u)?u:Hc(t[i+1])?[]:{})}Xc(s,c,l),s=s[c]}return e}Dd(),Sd();function Ute(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ed(e,o);n(s,o)&&Hte(a,xd(o,e),s)}return a}function Qh(e){return Dee(2,e)}function Wte(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}ws();function Gte(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=Ss(e),o=t!==void 0,s=t===null,c=t===t,l=Ss(t);if(!s&&!l&&!a&&e>
18t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}function Kte(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Gte(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}Es(),Dd(),mh(),Vh(),au(),Zs(),Os();function qte(e,t,n){t=t.length?Ts(t,function(e){return Ds(e)?function(t){return Ed(t,e.length===1?e[0]:e)}:e}):[Xs];var r=-1;return t=Ts(t,iu(ph)),Wte(Bh(e,function(e,n,i){return{criteria:Ts(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Kte(e,t,n)})}nh();function Jte(e,t){return Ute(e,t,function(t,n){return th(e,n)})}var $h=Id(function(e,t){return e==null?{}:Jte(e,t)}),Yte=Math.ceil,Xte=Math.max;function Zte(e,t,n,r){for(var i=-1,a=Xte(Yte((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}function Qte(e){return function(t,n,r){return r&&typeof r!=`number`&&ll(t,n,r)&&(n=r=void 0),t=Js(t),n===void 0?(n=t,t=0):n=Js(n),r=r===void 0?t<n?1:-1:Js(r),Zte(t,n,r,e)}}var eg=Qte(),$te=rl(function(e,t){if(e==null)return[];var n=t.length;return n>1&&ll(e,t[0],t[1])?t=[]:n>2&&ll(t[0],t[1],t[2])&&(t=[t[0]]),qte(e,Pd(t,1),[])});zs();var ene=`Expected a function`;function tg(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(ene);return Rs(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Mh(e,t,{leading:r,maxWait:t,trailing:i})}of(),Es(),ch(),hl();var tne=Math.max;function ng(e){if(!(e&&e.length))return[];var t=0;return e=af(e,function(e){if(Ph(e))return t=tne(e.length,t),!0}),ml(t,function(t){return Ts(e,sh(t))})}var nne=s(((e,t)=>{(function(e){n(36**5),n(16**7),n(10**9),n(2**30),n(36),n(16),n(10),n(2);function n(e,t){if(!(this instanceof n))return new n(e,t);if(this._low=0,this._high=0,this.remainder=null,t===void 0)return i.call(this,e);if(typeof e==`string`)return a.call(this,e,t);r.call(this,e,t)}function r(e,t){return this._low=e|0,this._high=t|0,this}n.prototype.fromBits=r;function i(e){return this._low=e&65535,this._high=e>>>16,this}n.prototype.fromNumber=i;function a(e,t){var n=parseInt(e,t||10);return this._low=n&65535,this._high=n>>>16,this}n.prototype.fromString=a,n.prototype.toNumber=function(){return this._high*65536+this._low},n.prototype.toString=function(e){return this.toNumber().toString(e||10)},n.prototype.add=function(e){var t=this._low+e._low,n=t>>>16;return n+=this._high+e._high,this._low=t&65535,this._high=n&65535,this},n.prototype.subtract=function(e){return this.add(e.clone().negate())},n.prototype.multiply=function(e){var t=this._high,n=this._low,r=e._high,i=e._low,a,o=n*i;return a=o>>>16,a+=t*i,a&=65535,a+=n*r,this._low=o&65535,this._high=a&65535,this},n.prototype.div=function(e){if(e._low==0&&e._high==0)throw Error(`division by zero`);if(e._high==0&&e._low==1)return this.remainder=new n(0),this;if(e.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(e))return this.remainder=new n(0),this._low=1,this._high=0,this;for(var t=e.clone(),r=-1;!this.lt(t);)t.shiftLeft(1,!0),r++;for(this.remainder=this.clone(),this._low=0,this._high=0;r>=0;r--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),r>=16?this._high|=1<<r-16:this._low|=1<<r);return this},n.prototype.negate=function(){var e=(~this._low&65535)+1;return this._low=e&65535,this._high=~this._high+(e>>>16)&65535,this},n.prototype.equals=n.prototype.eq=function(e){return this._low==e._low&&this._high==e._high},n.prototype.greaterThan=n.prototype.gt=function(e){return this._high>e._high?!0:this._high<e._high?!1:this._low>e._low},n.prototype.lessThan=n.prototype.lt=function(e){return this._high<e._high?!0:this._high>e._high?!1:this._low<e._low},n.prototype.or=function(e){return this._low|=e._low,this._high|=e._high,this},n.prototype.and=function(e){return this._low&=e._low,this._high&=e._high,this},n.prototype.not=function(){return this._low=~this._low&65535,this._high=~this._high&65535,this},n.prototype.xor=function(e){return this._low^=e._low,this._high^=e._high,this},n.prototype.shiftRight=n.prototype.shiftr=function(e){return e>16?(this._low=this._high>>e-16,this._high=0):e==16?(this._low=this._high,this._high=0):(this._low=this._low>>e|this._high<<16-e&65535,this._high>>=e),this},n.prototype.shiftLeft=n.prototype.shiftl=function(e,t){return e>16?(this._high=this._low<<e-16,this._low=0,t||(this._high&=65535)):e==16?(this._high=this._low,this._low=0):(this._high=this._high<<e|this._low>>16-e,this._low=this._low<<e&65535,t||(this._high&=65535)),this},n.prototype.rotateLeft=n.prototype.rotl=function(e){var t=this._high<<16|this._low;return t=t<<e|t>>>32-e,this._low=t&65535,this._high=t>>>16,this},n.prototype.rotateRight=n.prototype.rotr=function(e){var t=this._high<<16|this._low;return t=t>>>e|t<<32-e,this._low=t&65535,this._high=t>>>16,this},n.prototype.clone=function(){return new n(this._low,this._high)},typeof define<`u`&&define.amd?define([],function(){return n}):t!==void 0&&t.exports?t.exports=n:e.UINT32=n})(e)})),rne=s(((e,t)=>{(function(e){var n={16:i(16**5),10:i(10**5),2:i(2**5)},r={16:i(16),10:i(10),2:i(2)};function i(e,t,n,r){if(!(this instanceof i))return new i(e,t,n,r);if(this.remainder=null,typeof e==`string`)return s.call(this,e,t);if(t===void 0)return o.call(this,e);a.apply(this,arguments)}function a(e,t,n,r){return n===void 0?(this._a00=e&65535,this._a16=e>>>16,this._a32=t&65535,this._a48=t>>>16,this):(this._a00=e|0,this._a16=t|0,this._a32=n|0,this._a48=r|0,this)}i.prototype.fromBits=a;function o(e){return this._a00=e&65535,this._a16=e>>>16,this._a32=0,this._a48=0,this}i.prototype.fromNumber=o;function s(e,t){t||=10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var r=n[t]||new i(t**5),a=0,o=e.length;a<o;a+=5){var s=Math.min(5,o-a),c=parseInt(e.slice(a,a+s),t);this.multiply(s<5?new i(t**+s):r).add(new i(c))}return this}i.prototype.fromString=s,i.prototype.toNumber=function(){return this._a16*65536+this._a00},i.prototype.toString=function(e){e||=10;var t=r[e]||new i(e);if(!this.gt(t))return this.toNumber().toString(e);for(var n=this.clone(),a=Array(64),o=63;o>=0&&(n.div(t),a[o]=n.remainder.toNumber().toString(e),n.gt(t));o--);return a[o-1]=n.toNumber().toString(e),a.join(``)},i.prototype.add=function(e){var t=this._a00+e._a00,n=t>>>16;n+=this._a16+e._a16;var r=n>>>16;r+=this._a32+e._a32;var i=r>>>16;return i+=this._a48+e._a48,this._a00=t&65535,this._a16=n&65535,this._a32=r&65535,this._a48=i&65535,this},i.prototype.subtract=function(e){return this.add(e.clone().negate())},i.prototype.multiply=function(e){var t=this._a00,n=this._a16,r=this._a32,i=this._a48,a=e._a00,o=e._a16,s=e._a32,c=e._a48,l=t*a,u=l>>>16;u+=t*o;var d=u>>>16;u&=65535,u+=n*a,d+=u>>>16,d+=t*s;var f=d>>>16;return d&=65535,d+=n*o,f+=d>>>16,d&=65535,d+=r*a,f+=d>>>16,f+=t*c,f&=65535,f+=n*s,f&=65535,f+=r*o,f&=65535,f+=i*a,this._a00=l&65535,this._a16=u&65535,this._a32=d&65535,this._a48=f&65535,this},i.prototype.div=function(e){if(e._a16==0&&e._a32==0&&e._a48==0){if(e._a00==0)throw Error(`division by zero`);if(e._a00==1)return this.remainder=new i(0),this}if(e.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(e))return this.remainder=new i(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var t=e.clone(),n=-1;!this.lt(t);)t.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;n>=0;n--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),n>=48?this._a48|=1<<n-48:n>=32?this._a32|=1<<n-32:n>=16?this._a16|=1<<n-16:this._a00|=1<<n);return this},i.prototype.negate=function(){var e=(~this._a00&65535)+1;return this._a00=e&65535,e=(~this._a16&65535)+(e>>>16),this._a16=e&65535,e=(~this._a32&65535)+(e>>>16),this._a32=e&65535,this._a48=~this._a48+(e>>>16)&65535,this},i.prototype.equals=i.prototype.eq=function(e){return this._a48==e._a48&&this._a00==e._a00&&this._a32==e._a32&&this._a16==e._a16},i.prototype.greaterThan=i.prototype.gt=function(e){return this._a48>e._a48?!0:this._a48<e._a48?!1:this._a32>e._a32?!0:this._a32<e._a32?!1:this._a16>e._a16?!0:this._a16<e._a16?!1:this._a00>e._a00},i.prototype.lessThan=i.prototype.lt=function(e){return this._a48<e._a48?!0:this._a48>e._a48?!1:this._a32<e._a32?!0:this._a32>e._a32?!1:this._a16<e._a16?!0:this._a16>e._a16?!1:this._a00<e._a00},i.prototype.or=function(e){return this._a00|=e._a00,this._a16|=e._a16,this._a32|=e._a32,this._a48|=e._a48,this},i.prototype.and=function(e){return this._a00&=e._a00,this._a16&=e._a16,this._a32&=e._a32,this._a48&=e._a48,this},i.prototype.xor=function(e){return this._a00^=e._a00,this._a16^=e._a16,this._a32^=e._a32,this._a48^=e._a48,this},i.prototype.not=function(){return this._a00=~this._a00&65535,this._a16=~this._a16&65535,this._a32=~this._a32&65535,this._a48=~this._a48&65535,this},i.prototype.shiftRight=i.prototype.shiftr=function(e){return e%=64,e>=48?(this._a00=this._a48>>e-48,this._a16=0,this._a32=0,this._a48=0):e>=32?(e-=32,this._a00=(this._a32>>e|this._a48<<16-e)&65535,this._a16=this._a48>>e&65535,this._a32=0,this._a48=0):e>=16?(e-=16,this._a00=(this._a16>>e|this._a32<<16-e)&65535,this._a16=(this._a32>>e|this._a48<<16-e)&65535,this._a32=this._a48>>e&65535,this._a48=0):(this._a00=(this._a00>>e|this._a16<<16-e)&65535,this._a16=(this._a16>>e|this._a32<<16-e)&65535,this._a32=(this._a32>>e|this._a48<<16-e)&65535,this._a48=this._a48>>e&65535),this},i.prototype.shiftLeft=i.prototype.shiftl=function(e,t){return e%=64,e>=48?(this._a48=this._a00<<e-48,this._a32=0,this._a16=0,this._a00=0):e>=32?(e-=32,this._a48=this._a16<<e|this._a00>>16-e,this._a32=this._a00<<e&65535,this._a16=0,this._a00=0):e>=16?(e-=16,this._a48=this._a32<<e|this._a16>>16-e,this._a32=(this._a16<<e|this._a00>>16-e)&65535,this._a16=this._a00<<e&65535,this._a00=0):(this._a48=this._a48<<e|this._a32>>16-e,this._a32=(this._a32<<e|this._a16>>16-e)&65535,this._a16=(this._a16<<e|this._a00>>16-e)&65535,this._a00=this._a00<<e&65535),t||(this._a48&=65535),this},i.prototype.rotateLeft=i.prototype.rotl=function(e){if(e%=64,e==0)return this;if(e>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,e==32)return this;e-=32}var n=this._a48<<16|this._a32,r=this._a16<<16|this._a00,i=n<<e|r>>>32-e,a=r<<e|n>>>32-e;return this._a00=a&65535,this._a16=a>>>16,this._a32=i&65535,this._a48=i>>>16,this},i.prototype.rotateRight=i.prototype.rotr=function(e){if(e%=64,e==0)return this;if(e>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,e==32)return this;e-=32}var n=this._a48<<16|this._a32,r=this._a16<<16|this._a00,i=n>>>e|r<<32-e,a=r>>>e|n<<32-e;return this._a00=a&65535,this._a16=a>>>16,this._a32=i&65535,this._a48=i>>>16,this},i.prototype.clone=function(){return new i(this._a00,this._a16,this._a32,this._a48)},typeof define<`u`&&define.amd?define([],function(){return i}):t!==void 0&&t.exports?t.exports=i:e.UINT64=i})(e)})),rg=s((e=>{e.UINT32=nne(),e.UINT64=rne()})),ine=s(((e,t)=>{var n=rg().UINT32;n.prototype.xxh_update=function(e,t){var n=i._low,a=i._high,o,s=e*n;o=s>>>16,o+=t*n,o&=65535,o+=e*a;var c=this._low+(s&65535),l=c>>>16;l+=this._high+(o&65535);var u=l<<16|c&65535;u=u<<13|u>>>19,c=u&65535,l=u>>>16,n=r._low,a=r._high,s=c*n,o=s>>>16,o+=l*n,o&=65535,o+=c*a,this._low=s&65535,this._high=o&65535};
18var r=n(`2654435761`),i=n(`2246822519`),a=n(`3266489917`),o=n(`668265263`),s=n(`374761393`);function c(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|i&63):i<55296||i>=57344?t.push(224|i>>12,128|i>>6&63,128|i&63):(n++,i=65536+((i&1023)<<10|e.charCodeAt(n)&1023),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|i&63))}return new Uint8Array(t)}function l(){if(arguments.length==2)return new l(arguments[1]).update(arguments[0]).digest();if(!(this instanceof l))return new l(arguments[0]);u.call(this,arguments[0])}function u(e){return this.seed=e instanceof n?e.clone():n(e),this.v1=this.seed.clone().add(r).add(i),this.v2=this.seed.clone().add(i),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(r),this.total_len=0,this.memsize=0,this.memory=null,this}l.prototype.init=u,l.prototype.update=function(e){var t=typeof e==`string`,n;t&&(e=c(e),t=!1,n=!0),typeof ArrayBuffer<`u`&&e instanceof ArrayBuffer&&(n=!0,e=new Uint8Array(e));var r=0,i=e.length,a=r+i;if(i==0)return this;if(this.total_len+=i,this.memsize==0&&(t?this.memory=``:n?this.memory=new Uint8Array(16):this.memory=new Buffer(16)),this.memsize+i<16)return t?this.memory+=e:n?this.memory.set(e.subarray(0,i),this.memsize):e.copy(this.memory,this.memsize,0,i),this.memsize+=i,this;if(this.memsize>0){t?this.memory+=e.slice(0,16-this.memsize):n?this.memory.set(e.subarray(0,16-this.memsize),this.memsize):e.copy(this.memory,this.memsize,0,16-this.memsize);var o=0;t?(this.v1.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v2.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v3.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v4.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2))):(this.v1.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v2.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v3.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v4.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2])),r+=16-this.memsize,this.memsize=0,t&&(this.memory=``)}if(r<=a-16){var s=a-16;do t?(this.v1.xxh_update(e.charCodeAt(r+1)<<8|e.charCodeAt(r),e.charCodeAt(r+3)<<8|e.charCodeAt(r+2)),r+=4,this.v2.xxh_update(e.charCodeAt(r+1)<<8|e.charCodeAt(r),e.charCodeAt(r+3)<<8|e.charCodeAt(r+2)),r+=4,this.v3.xxh_update(e.charCodeAt(r+1)<<8|e.charCodeAt(r),e.charCodeAt(r+3)<<8|e.charCodeAt(r+2)),r+=4,this.v4.xxh_update(e.charCodeAt(r+1)<<8|e.charCodeAt(r),e.charCodeAt(r+3)<<8|e.charCodeAt(r+2))):(this.v1.xxh_update(e[r+1]<<8|e[r],e[r+3]<<8|e[r+2]),r+=4,this.v2.xxh_update(e[r+1]<<8|e[r],e[r+3]<<8|e[r+2]),r+=4,this.v3.xxh_update(e[r+1]<<8|e[r],e[r+3]<<8|e[r+2]),r+=4,this.v4.xxh_update(e[r+1]<<8|e[r],e[r+3]<<8|e[r+2])),r+=4;while(r<=s)}return r<a&&(t?this.memory+=e.slice(r):n?this.memory.set(e.subarray(r,a),this.memsize):e.copy(this.memory,this.memsize,r,a),this.memsize=a-r),this},l.prototype.digest=function(){var e=this.memory,t=typeof e==`string`,c=0,l=this.memsize,u,d,f=new n;for(u=this.total_len>=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):this.seed.clone().add(s),u.add(f.fromNumber(this.total_len));c<=l-4;)t?f.fromBits(e.charCodeAt(c+1)<<8|e.charCodeAt(c),e.charCodeAt(c+3)<<8|e.charCodeAt(c+2)):f.fromBits(e[c+1]<<8|e[c],e[c+3]<<8|e[c+2]),u.add(f.multiply(a)).rotl(17).multiply(o),c+=4;for(;c<l;)f.fromBits(t?e.charCodeAt(c++):e[c++],0),u.add(f.multiply(s)).rotl(11).multiply(r);return d=u.clone().shiftRight(15),u.xor(d).multiply(i),d=u.clone().shiftRight(13),u.xor(d).multiply(a),d=u.clone().shiftRight(16),u.xor(d),this.init(this.seed),u},t.exports=l})),ane=s(((e,t)=>{var n=rg().UINT64,r=n(`11400714785074694791`),i=n(`14029467366897019727`),a=n(`1609587929392839161`),o=n(`9650029242287828579`),s=n(`2870177450012600261`);function c(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|i&63):i<55296||i>=57344?t.push(224|i>>12,128|i>>6&63,128|i&63):(n++,i=65536+((i&1023)<<10|e.charCodeAt(n)&1023),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|i&63))}return new Uint8Array(t)}function l(){if(arguments.length==2)return new l(arguments[1]).update(arguments[0]).digest();if(!(this instanceof l))return new l(arguments[0]);u.call(this,arguments[0])}function u(e){return this.seed=e instanceof n?e.clone():n(e),this.v1=this.seed.clone().add(r).add(i),this.v2=this.seed.clone().add(i),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(r),this.total_len=0,this.memsize=0,this.memory=null,this}l.prototype.init=u,l.prototype.update=function(e){var t=typeof e==`string`,a;t&&(e=c(e),t=!1,a=!0),typeof ArrayBuffer<`u`&&e instanceof ArrayBuffer&&(a=!0,e=new Uint8Array(e));var o=0,s=e.length,l=o+s;if(s==0)return this;if(this.total_len+=s,this.memsize==0&&(t?this.memory=``:a?this.memory=new Uint8Array(32):this.memory=new Buffer(32)),this.memsize+s<32)return t?this.memory+=e:a?this.memory.set(e.subarray(0,s),this.memsize):e.copy(this.memory,this.memsize,0,s),this.memsize+=s,this;if(this.memsize>0){t?this.memory+=e.slice(0,32-this.memsize):a?this.memory.set(e.subarray(0,32-this.memsize),this.memsize):e.copy(this.memory,this.memsize,0,32-this.memsize);var u=0;
18if(t){var d=n(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6));this.v1.add(d.multiply(i)).rotl(31).multiply(r),u+=8,d=n(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v2.add(d.multiply(i)).rotl(31).multiply(r),u+=8,d=n(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v3.add(d.multiply(i)).rotl(31).multiply(r),u+=8,d=n(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v4.add(d.multiply(i)).rotl(31).multiply(r)}else{var d=n(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]);this.v1.add(d.multiply(i)).rotl(31).multiply(r),u+=8,d=n(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v2.add(d.multiply(i)).rotl(31).multiply(r),u+=8,d=n(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v3.add(d.multiply(i)).rotl(31).multiply(r),u+=8,d=n(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v4.add(d.multiply(i)).rotl(31).multiply(r)}o+=32-this.memsize,this.memsize=0,t&&(this.memory=``)}if(o<=l-32){var f=l-32;do{if(t){var d=n(e.charCodeAt(o+1)<<8|e.charCodeAt(o),e.charCodeAt(o+3)<<8|e.charCodeAt(o+2),e.charCodeAt(o+5)<<8|e.charCodeAt(o+4),e.charCodeAt(o+7)<<8|e.charCodeAt(o+6));this.v1.add(d.multiply(i)).rotl(31).multiply(r),o+=8,d=n(e.charCodeAt(o+1)<<8|e.charCodeAt(o),e.charCodeAt(o+3)<<8|e.charCodeAt(o+2),e.charCodeAt(o+5)<<8|e.charCodeAt(o+4),e.charCodeAt(o+7)<<8|e.charCodeAt(o+6)),this.v2.add(d.multiply(i)).rotl(31).multiply(r),o+=8,d=n(e.charCodeAt(o+1)<<8|e.charCodeAt(o),e.charCodeAt(o+3)<<8|e.charCodeAt(o+2),e.charCodeAt(o+5)<<8|e.charCodeAt(o+4),e.charCodeAt(o+7)<<8|e.charCodeAt(o+6)),this.v3.add(d.multiply(i)).rotl(31).multiply(r),o+=8,d=n(e.charCodeAt(o+1)<<8|e.charCodeAt(o),e.charCodeAt(o+3)<<8|e.charCodeAt(o+2),e.charCodeAt(o+5)<<8|e.charCodeAt(o+4),e.charCodeAt(o+7)<<8|e.charCodeAt(o+6)),this.v4.add(d.multiply(i)).rotl(31).multiply(r)}else{var d=n(e[o+1]<<8|e[o],e[o+3]<<8|e[o+2],e[o+5]<<8|e[o+4],e[o+7]<<8|e[o+6]);this.v1.add(d.multiply(i)).rotl(31).multiply(r),o+=8,d=n(e[o+1]<<8|e[o],e[o+3]<<8|e[o+2],e[o+5]<<8|e[o+4],e[o+7]<<8|e[o+6]),this.v2.add(d.multiply(i)).rotl(31).multiply(r),o+=8,d=n(e[o+1]<<8|e[o],e[o+3]<<8|e[o+2],e[o+5]<<8|e[o+4],e[o+7]<<8|e[o+6]),this.v3.add(d.multiply(i)).rotl(31).multiply(r),o+=8,d=n(e[o+1]<<8|e[o],e[o+3]<<8|e[o+2],e[o+5]<<8|e[o+4],e[o+7]<<8|e[o+6]),this.v4.add(d.multiply(i)).rotl(31).multiply(r)}o+=8}while(o<=f)}return o<l&&(t?this.memory+=e.slice(o):a?this.memory.set(e.subarray(o,l),this.memsize):e.copy(this.memory,this.memsize,o,l),this.memsize=l-o),this},l.prototype.digest=function(){var e=this.memory,t=typeof e==`string`,c=0,l=this.memsize,u,d,f=new n;for(this.total_len>=32?(u=this.v1.clone().rotl(1),u.add(this.v2.clone().rotl(7)),u.add(this.v3.clone().rotl(12)),u.add(this.v4.clone().rotl(18)),u.xor(this.v1.multiply(i).rotl(31).multiply(r)),u.multiply(r).add(o),u.xor(this.v2.multiply(i).rotl(31).multiply(r)),u.multiply(r).add(o),u.xor(this.v3.multiply(i).rotl(31).multiply(r)),u.multiply(r).add(o),u.xor(this.v4.multiply(i).rotl(31).multiply(r)),u.multiply(r).add(o)):u=this.seed.clone().add(s),u.add(f.fromNumber(this.total_len));c<=l-8;)t?f.fromBits(e.charCodeAt(c+1)<<8|e.charCodeAt(c),e.charCodeAt(c+3)<<8|e.charCodeAt(c+2),e.charCodeAt(c+5)<<8|e.charCodeAt(c+4),e.charCodeAt(c+7)<<8|e.charCodeAt(c+6)):f.fromBits(e[c+1]<<8|e[c],e[c+3]<<8|e[c+2],e[c+5]<<8|e[c+4],e[c+7]<<8|e[c+6]),f.multiply(i).rotl(31).multiply(r),u.xor(f).rotl(27).multiply(r).add(o),c+=8;for(c+4<=l&&(t?f.fromBits(e.charCodeAt(c+1)<<8|e.charCodeAt(c),e.charCodeAt(c+3)<<8|e.charCodeAt(c+2),0,0):f.fromBits(e[c+1]<<8|e[c],e[c+3]<<8|e[c+2],0,0),u.xor(f.multiply(r)).rotl(23).multiply(i).add(a),c+=4);c<l;)f.fromBits(t?e.charCodeAt(c++):e[c++],0,0,0),u.xor(f.multiply(s)).rotl(11).multiply(r);return d=u.clone().shiftRight(33),u.xor(d).multiply(i),d=u.clone().shiftRight(29),u.xor(d).multiply(a),d=u.clone().shiftRight(32),u.xor(d),this.init(this.seed),u},t.exports=l})),ig=u(s(((e,t)=>{t.exports={h32:ine(),h64:ane()}}))(),1),ag=e=>{throw Error(`Reached a branch with non-exhaustive item: ${e}`)};function one(e,t){let n=null;return(...r)=>{n&&clearTimeout(n),n=setTimeout(()=>{t(...r),n=null},e)}}var og=`embed`,sg=`embed_options`,cg=`show_toolbar`,lg=`show_padding`,ug=`disable_scrolling`,dg=`light_theme`,fg=`dark_theme`,pg=`true`,mg=`hide_loading_screen`,hg=`show_loading_screen_v1`,sne=[cg,lg,ug,dg,fg,mg,hg,`show_loading_screen_v2`,pg],gg=function(e){return e[e.NONE=0]=`NONE`,e[e.V1=1]=`V1`,e[e.V2=2]=`V2`,e}({});function _g(e){let t=new Set;
18return new URLSearchParams(window.location.search).forEach((n,r)=>{r=r.toString().toLowerCase(),n=n.toString().toLowerCase(),r===e&&sne.includes(n)&&t.add(n)}),t}function vg(){if(!yg())return``;let e=new URLSearchParams(window.location.search).getAll(sg),t=[];return t.push([og,pg]),e.forEach(e=>{t.push([sg,e])}),new URLSearchParams(t).toString()}function cne(e,t){return e===void 0?t:t?e?`${t}&${e}`:t:e}function yg(){return _g(og).has(pg)}function lne(){return yg()&&_g(sg).has(cg)}function bg(){return yg()&&_g(sg).has(ug)}function une(){return yg()&&_g(sg).has(lg)}function xg(){return _g(sg).has(dg)}function Sg(){return _g(sg).has(fg)}function Cg(){return window.parent!==window}function dne(){let e;try{e=Cg()&&window.top?window.top.location.href:document.location.href}catch{e=document.location.href}let t=new URL(e);return t.search=``,t.hash=``,t.toString()}function fne(){let e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}-${String(e.getHours()).padStart(2,`0`)}-${String(e.getMinutes()).padStart(2,`0`)}-${String(e.getSeconds()).padStart(2,`0`)}`}function pne(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function mne(){return new Date().getTimezoneOffset()}function hne(){return navigator.language}function gne(){let e=_g(sg);return e.has(mg)?0:e.has(hg)?1:2}function _ne(e){return new ko({alert:{body:e,format:so.Format.INFO}})}function vne(){return new ko({skeleton:{style:Fo.SkeletonStyle.APP}})}function wg(e){return ig.default.h32(e,3735928559).toString(16)}function yne(e){if(Ba(e))throw Error(`value is null`);return e}function Tg(e){return e!==void 0}function Eg(){return/Mac/i.test(navigator.platform)}function bne(){return/^Win/i.test(navigator.platform)}function Dg(e,t,n){let r=t?n:new Date,i=r?`expires=${r.toUTCString()};`:``;document.cookie=`${e}=${t};${i}path=/`}function Og(e){return e?e.startsWith(`$$ID`)&&e.split(`-`).length>=3:!1}function kg(e){let t=Od(e,[yne(e.type),`id`]);if(t&&Og(t))return t}function Ag(e){return I(e)&&e.length>0}function xne(e){return Ag(e.formId)}function Sne(e,t,n,r=!1){let i=!1;return e===``&&(t.length===0?n?e=r?`Add options`:`Add an option`:(e=`No options to select`,i=!0):e=n?r?`Choose or add options`:`Choose or add an option`:r?`Choose options`:`Choose an option`),{placeholder:e,shouldDisable:i}}var jg=function(e){return e[e.Visible=0]=`Visible`,e[e.Hidden=1]=`Hidden`,e[e.Collapsed=2]=`Collapsed`,e}({});function Cne(e){switch(e){case lo.LabelVisibilityOptions.VISIBLE:return 0;case lo.LabelVisibilityOptions.HIDDEN:return 1;case lo.LabelVisibilityOptions.COLLAPSED:return 2;default:return 0}}var wne=function(e){return e[e.None=0]=`None`,e[e.Single=1]=`Single`,e[e.Multiple=2]=`Multiple`,e[e.Directory=3]=`Directory`,e}({});function Tne(e){switch(e){case To.AcceptFile.NONE:return 0;case To.AcceptFile.SINGLE:return 1;case To.AcceptFile.MULTIPLE:return 2;case To.AcceptFile.DIRECTORY:return 3;default:return ag(e),0}}function Mg(e,t){for(let n=0;n<e.length;n++){let r=e[n].contentDocument;if(r&&r.getElementsByClassName(t).length>0)return e[n]}return null}function Ng(e){try{if(e.contentWindow===null)return!1;let t=(e.contentDocument||e.contentWindow.document).body.innerHTML;return t!==null&&t!==``}catch{return!1}}function Ene(e){if(!Cg())return null;let t=Pg(e),n=`iframe[title="streamlitApp"]`,r=window.document.querySelectorAll(n),i=Mg(r,t);if(i&&!Ng(i))return null;if(i)return i;if(window.parent&&(r=window.parent.document.querySelectorAll(n)),i=Mg(r,t),i&&!Ng(i))return null;if(i)return i;let a=window.document.getElementsByTagName(`iframe`);return i=Mg(a,t),i&&!Ng(i)?null:i||(window.parent&&(a=window.parent.document.getElementsByTagName(`iframe`)),i=Mg(a,t),i&&!Ng(i)?null:i)}function Dne(){return Math.floor(Date.now()/1e3).toString(36)+Math.random().toString(36).slice(-6)}function Pg(e){return`stAppEmbeddingId-${e}`}function Fg(e,t){return decodeURIComponent(e.replace(t,``).replace(RegExp(`^/?`),``).replace(RegExp(`/$`),``))}function Ig(e){return Object.keys(e).reduce((t,n)=>{let r=Qo(n,{preserveConsecutiveUppercase:!0}).replace(`.`,`_`),i=e[n];return i&&typeof i==`object`&&!Array.isArray(i)&&(i=Ig(i)),Array.isArray(i)&&(i=i.map(e=>typeof e==`object`&&e?Ig(e):e)),t[r]=i,t},{})}var Lg=class e{constructor(e=``,t=!0){this.prefix=e,this.isLast=t}visitBlockNode(t){let n=this.isLast?`âââ `:`âââ `,r=this.prefix+(this.isLast?` `:`â `),i=`${this.prefix}${n}BlockNode [${t.children.length} children]`;return t.scriptRunId!==`NO_SCRIPT_RUN_ID`&&(i+=` (run: ${t.scriptRunId.substring(0,6)})`),i+=`
19`,t.children.forEach((n,a)=>{let o=new e(r,a===t.children.length-1);i+=n.accept(o)}),i}visitElementNode(e){let t=this.isLast?`âââ `:`âââ `,n=`${this.prefix}${t}ElementNode [${e.element.type}]`;if(e.element.type===`text`&&e.element.text?.body){let t=e.element.text.body.length>30?`${e.element.text.body.slice(0,30)}...`:e.element.text.body;n+=` "${t}"`}return e.scriptRunId!==`NO_SCRIPT_RUN_ID`&&(n+=` (run: ${e.scriptRunId.substring(0,6)})`),e.fragmentId&&(n+=` (fragment: ${e.fragmentId.substring(0,6)})`),n+=` (activeScriptHash: ${e.activeScriptHash.substring(0,6)})`,n+=` 20`,n}visitTransientNode(t){let n=this.isLast?`âââ `:`âââ `,r=this.prefix+(this.isLast?` `:`â `),i=`${this.prefix}${n}TransientNode [${t.transientNodes.length} transient]`;if(t.scriptRunId!==`NO_SCRIPT_RUN_ID`&&(i+=` (run: ${t.scriptRunId.substring(0,6)})`),i+=` 21`,t.anchor){i+=`${r}âââ anchor:\n`;let n=new e(r+`â `,!0);i+=t.anchor.accept(n)}return t.transientNodes.length>0&&(i+=`${r}âââ transient nodes:\n`,t.transientNodes.forEach((n,a)=>{let o=a===t.transientNodes.length-1,s=o?`âââ `:`âââ `,c=r+` `+(o?` `:`â `);i+=`${r} ${s}:\n`;let l=new e(c,!0);i+=n.accept(l)})),i}static generateDebugString(t,n=``,r=!0){let i=new e(n,r);return t.accept(i)}},Rg=class e{constructor(e,t,n,r){this.scriptRunId=e,this.anchor=t,this.transientNodes=n??[],this.deltaMsgReceivedAt=r??Date.now(),this.fragmentId=void 0,this.activeScriptHash=void 0}updateTransientNodes(e){let t=[];return this.transientNodes.forEach(n=>{let r=e(n);r&&t.push(r)}),t}accept(e){return e.visitTransientNode(this)}debug(){return this.accept(new Lg)}replaceTransientNodeWithSelf(t){return!this.deltaMsgReceivedAt||!t.deltaMsgReceivedAt||this.deltaMsgReceivedAt>=t.deltaMsgReceivedAt?new e(this.scriptRunId,this.anchor??t.anchor,this.transientNodes,this.deltaMsgReceivedAt):t}},zg=class e{constructor(e,t,n){this.currentScriptRunId=e,this.fragmentIdsThisRun=t??[],this.fragmentIdOfBlock=n}get isFragmentRun(){return this.fragmentIdsThisRun.length>0}visitBlockNode(t){let n=null;if(this.isFragmentRun){if(this.fragmentIdOfBlock&&t.scriptRunId!==this.currentScriptRunId)return;t.fragmentId&&this.fragmentIdsThisRun.includes(t.fragmentId)&&t.scriptRunId===this.currentScriptRunId&&(n=new e(this.currentScriptRunId,this.fragmentIdsThisRun,t.fragmentId))}else if(t.scriptRunId!==this.currentScriptRunId)return;let r=[],i=!1;return t.children.forEach(e=>{let t=e.accept(n??this);t!==e&&(i=!0),t!==void 0&&r.push(t)}),i?new Bg(t.activeScriptHash,r,t.deltaBlock,this.currentScriptRunId,t.fragmentId,t.deltaMsgReceivedAt):t}visitElementNode(e){return this.isFragmentRun&&(!e.fragmentId||!this.fragmentIdOfBlock||e.scriptRunId===this.currentScriptRunId)||e.scriptRunId===this.currentScriptRunId?e:void 0}visitTransientNode(e){if(e.scriptRunId===this.currentScriptRunId&&e.transientNodes.length===0&&e.anchor)return e.anchor.accept(this);let t=e.anchor?.accept(this),n=e.updateTransientNodes(e=>e.accept(this));if(!(!t&&n.length===0))return n.length===0?t:new Rg(e.scriptRunId,t,n,e.deltaMsgReceivedAt)}},Bg=class{constructor(e,t,n,r,i,a){this.activeScriptHash=e,this.children=t??[],this.deltaBlock=n??new Co({}),this.scriptRunId=r??`NO_SCRIPT_RUN_ID`,this.fragmentId=i,this.deltaMsgReceivedAt=a}get isEmpty(){return this.children.length===0}replaceTransientNodeWithSelf(e){if(e.scriptRunId!==this.scriptRunId||e.transientNodes.length===0)return this;let t=e.updateTransientNodes(e=>e.accept(new zg(this.scriptRunId)));return t.length===0?this:new Rg(this.scriptRunId,this,t,e.deltaMsgReceivedAt)}accept(e){return e.visitBlockNode(this)}debug(){return this.accept(new Lg)}},Vg=class{constructor(e,t,n,r,i,a){this.element=e,this.metadata=t,this.scriptRunId=n,this.activeScriptHash=r,this.fragmentId=i,this.elementHash=a}accept(e){return e.visitElementNode(this)}debug(){return this.accept(new Lg)}replaceTransientNodeWithSelf(e){if(e.scriptRunId!==this.scriptRunId||e.transientNodes.length===0)return this;let t=e.updateTransientNodes(e=>e.accept(new zg(this.scriptRunId)));return t.length===0?this:new Rg(this.scriptRunId,this,t,e.deltaMsgReceivedAt)}},One=class{constructor(e){this.fragmentIdsThisRun=e??[]}visitBlockNode(e){if(this.fragmentIdsThisRun.length>0&&e.fragmentId&&!this.fragmentIdsThisRun.includes(e.fragmentId))return e;let t=[],n=!1;
21return e.children.forEach(e=>{let r=e.accept(this);r!==e&&(n=!0),r!==void 0&&t.push(r)}),n?new Bg(e.activeScriptHash,t,e.deltaBlock,e.scriptRunId,e.fragmentId,e.deltaMsgReceivedAt):e}visitElementNode(e){return e}visitTransientNode(e){return e.anchor}},Hg=class e{constructor(){this.elements=new Set,this.blockIds=new Set}visitElementNode(e){return this.elements.add(e.element),this.elements}visitBlockNode(e){e.deltaBlock?.id&&this.blockIds.add(e.deltaBlock.id);for(let t of e.children)t.accept(this);return this.elements}visitTransientNode(e){return e.transientNodes.forEach(e=>{e.accept(this)}),e.anchor?.accept(this),this.elements}static collectElements(t){let n=new e;return t.accept(n),n.elements}},kne=class e{constructor(e){this.mainScriptHash=e}visitElementNode(e){if(e.activeScriptHash===this.mainScriptHash)return e}visitBlockNode(e){if(e.activeScriptHash!==this.mainScriptHash)return;let t=!1,n=[];for(let r of e.children){let e=r.accept(this);e!==r&&(t=!0),e!==void 0&&n.push(e)}return t?new Bg(e.activeScriptHash,n,e.deltaBlock,e.scriptRunId,e.fragmentId,e.deltaMsgReceivedAt):e}visitTransientNode(e){let t=e.anchor?.accept(this),n=e.updateTransientNodes(e=>e.accept(this));if(!(!t&&n.length===0))return n.length===0?t:new Rg(e.scriptRunId,t,n,e.deltaMsgReceivedAt)}static filterNode(t,n){let r=new e(n);return t.accept(r)}},Ug=class e{constructor(e){this.deltaPath=e}visitElementNode(e){}visitBlockNode(t){if(this.deltaPath.length===0)return;let[n,...r]=this.deltaPath;if(n<0||n>=t.children.length)return;if(r.length===0)return t.children[n];let i=new e(r);return t.children[n].accept(i)}visitTransientNode(e){return this.deltaPath.length===0?e.anchor:e.anchor?.accept(this)}static getNodeAtPath(t,n){let r=new e(n);return t.accept(r)}},Wg=class e{constructor(e,t,n){this.deltaPath=e,this.nodeToSet=t,this.scriptRunId=n}visitElementNode(e){if(this.deltaPath.length>0)throw Error(`'setIn' cannot be called on an ElementNode`);return this.nodeToSet instanceof Rg&&!this.nodeToSet.anchor?new Rg(this.nodeToSet.scriptRunId,e,this.nodeToSet.transientNodes,this.nodeToSet.deltaMsgReceivedAt):this.nodeToSet}visitTransientNode(e){if(this.deltaPath.length===0)return this.nodeToSet.replaceTransientNodeWithSelf(e);if(e.anchor){let t=e.anchor.accept(this);return new Rg(e.scriptRunId,t,e.transientNodes,e.deltaMsgReceivedAt)}throw Error(`TransientNode has no anchor to set node at`)}visitBlockNode(t){if(this.deltaPath.length===0)return this.nodeToSet instanceof Rg&&!this.nodeToSet.anchor?new Rg(this.nodeToSet.scriptRunId,t,this.nodeToSet.transientNodes,this.nodeToSet.deltaMsgReceivedAt):this.nodeToSet;let[n,...r]=this.deltaPath;if(n<0||n>t.children.length)throw Error(`Bad delta path index ${n} (should be between [0, ${t.children.length}])`);let i=[],a=new e(r,this.nodeToSet,this.scriptRunId);if(t.children[n]){let e=0;for(;e<t.children.length;){let r=t.children[e];if(e!==n){i.push(r),e++;continue}let o=r.accept(a);
21!(r instanceof Rg)&&o instanceof Rg&&o.anchor!==r?(i.push(o),i.push(r)):i.push(o),e++}}else{if(r.length>0)throw Error(`Cannot set a node at a delta path`);i=t.children.slice(),i[n]=this.nodeToSet}return new Bg(t.activeScriptHash,i,t.deltaBlock,this.scriptRunId,t.fragmentId,t.deltaMsgReceivedAt)}static setNodeAtPath(t,n,r,i){let a=new e(n,r,i);return t.accept(a)}};function Ane(e,t,n){return!!t&&n.type!==void 0&&e instanceof Vg&&e.elementHash===t&&e.element.type===n.type&&!n.hasOneShotEffect}var jne=class e{static empty(t=``,n=!0,r,i){let a=[],o;switch(gne()){case gg.NONE:break;case gg.V1:n&&(o=_ne(`Please wait...`));break;default:o=vne();break}o&&a.push(new Vg(o,Vo.create({}),Ha,t));let s=new Bg(t,a,new Co({allowEmpty:!0}),Ha),c=r||new Bg(t,[],new Co({allowEmpty:!0}),`NO_SCRIPT_RUN_ID`),l=new Bg(t,[],new Co({allowEmpty:!0}),Ha),u=new Bg(t,[],new Co({allowEmpty:!0}),Ha),d=i?{logo:i,activeScriptHash:t,scriptRunId:Ha}:null;return new e(t,new Bg(t,[s,c,l,u]),d)}constructor(e,t,n=null){if(this.mainScriptHash=e,this.root=t,this.appLogo=n,this.root.children.length!==4||Ba(this.main)||Ba(this.sidebar)||Ba(this.event)||Ba(this.bottom))throw Error(`Invalid root node children! ${t.debug()}`)}get main(){let[e]=this.root.children;return e}get sidebar(){let[,e]=this.root.children;return e}get event(){let[,,e]=this.root.children;return e}get bottom(){let[,,,e]=this.root.children;return e}get logo(){return this.appLogo?.logo??null}appRootWithLogo(t,n){return new e(this.mainScriptHash,this.root,{logo:t,...n})}applyDelta(e,t,n,r){let{deltaPath:i,activeScriptHash:a}=n;switch(t.type){case`newElement`:{let o=t.newElement,s=Ug.getNodeAtPath(this.root,i),c=Ane(s,r,o);return this.addElement(i,e,c?s.element:o,n,a,t.fragmentId,r)}case`addBlock`:{let n=Date.now();return this.addBlock(i,t.addBlock,e,a,t.fragmentId,n)}case`newTransient`:{let r=t.newTransient;return this.addTransient(i,e,r,n,a,t.fragmentId)}default:throw Error(`Unrecognized deltaType: '${t.type}'`)}}ensureBlockNode(e,t=this.mainScriptHash){return e??new Bg(t)}filterMainScriptElements(t){let n=this.main.scriptRunId,r=new kne(t),i=this.root.children.map(e=>this.ensureBlockNode(e.accept(r),t)),a=this.appLogo?.activeScriptHash===t?this.appLogo:null;return new e(t,new Bg(t,i,new Co({allowEmpty:!0}),n),a)}clearStaleNodes(t,n){let r=new zg(t,n),i=this.root.children.map(e=>this.ensureBlockNode(e.accept(r))),a=n&&n.length>0||this.appLogo?.scriptRunId===t?this.appLogo:null;return new e(this.mainScriptHash,new Bg(this.mainScriptHash,i,new Co({allowEmpty:!0}),t),a)}clearTransientNodes(t){let n=new One(t),r=this.root.children.map(e=>this.ensureBlockNode(e.accept(n)));return new e(this.mainScriptHash,new Bg(this.mainScriptHash,r,new Co({allowEmpty:!0}),this.main.scriptRunId),this.appLogo)}getElements(){return this.getActiveIds().elements}getActiveIds(){let e=new Hg;return this.main.accept(e),this.sidebar.accept(e),this.event.accept(e),this.bottom.accept(e),{elements:e.elements,blockIds:e.blockIds}}addElement(t,n,r,i,a,o,s){let c=new Vg(r,i,n,a,o,s);return new e(this.mainScriptHash,Wg.setNodeAtPath(this.root,t,c,n),this.appLogo)}addBlock(t,n,r,i,a,o){let s=Ug.getNodeAtPath(this.root,t),c=s instanceof Rg?s.anchor??s:s,l=[];c instanceof Bg&&c.deltaBlock.type===n.type&&(n.dialog&&c.deltaBlock.dialog&&n.id!==c.deltaBlock.id||(l=c.children));let u=new Bg(i,l,n,r,a,o);return new e(this.mainScriptHash,Wg.setNodeAtPath(this.root,t,u,r),this.appLogo)}addTransient(t,n,r,i,a,o,s){let c=new Rg(n,void 0,r.elements.map(e=>new Vg(e,i,n,a,o)),s);return new e(this.mainScriptHash,Wg.setNodeAtPath(this.root,t,c,n),this.appLogo)}getChildName(e){switch(e){case this.main:return`main`;case this.sidebar:return`sidebar`;case this.event:return`event`;case this.bottom:return`bottom`;default:return`unknown`}}debug(){let e=`AppRoot 22`;return this.root.children.forEach((t,n)=>{let r=n===this.root.children.length-1,i=this.getChildName(t),a=r?`âââ `:`âââ `,o=r?` `:`â `;e+=`${a}${i}:\n`;let s=new Lg(o,!0);e+=t.accept(s)}),e}},Gg=s(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];
22n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),Kg=u(Gg(),1),qg=function(e){return e.HORIZONTAL=`row`,e.VERTICAL=`column`,e}({});function Mne(e){return e.flexContainer?e.flexContainer.direction==Co.FlexContainer.Direction.HORIZONTAL?`row`:`column`:e.vertical?`column`:e.horizontal?`row`:`column`}function Jg(e){return!!(e?.useStretch||e?.pixelWidth)}function Nne(e){return!!(e?.useStretch||e?.pixelHeight)}var Pne={[co.TextAlignmentConfig.Alignment.LEFT]:`left`,[co.TextAlignmentConfig.Alignment.CENTER]:`center`,[co.TextAlignmentConfig.Alignment.RIGHT]:`right`,[co.TextAlignmentConfig.Alignment.JUSTIFY]:`justify`,[co.TextAlignmentConfig.Alignment.UNSPECIFIED]:`left`};function Fne(e){if(e?.alignment)return Pne[e.alignment]||`left`}var Yg=(0,_.createContext)(null);Yg.displayName=`FlexContext`;var Xg=({children:e,direction:t,isRoot:n,parentWidth:r,hasContentWidth:i=!1,hasFixedWidth:a=!1,parentContext:o=null})=>{let s=(0,_.useMemo)(()=>{let e=t===qg.HORIZONTAL,s;return s=i?!0:a?!1:o?.isInContentWidthContainer??!1,{direction:t,isInHorizontalLayout:e,isInRoot:n??!1,parentWidth:r,isInContentWidthContainer:s}},[t,n,r,i,a,o]);return P(Yg.Provider,{value:s,children:e})};function Zg(e,t,n){return Math.min(Math.max(e,n),t)}var Qg=class extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}};function $g(e){if(typeof e!=`string`)throw new Qg(e);if(e.trim().toLowerCase()===`transparent`)return[0,0,0,0];let t=e.trim();t=Une.test(e)?Rne(e):e;let n=zne.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(t_(e,2),16)),parseInt(t_(e[3]||`f`,2),16)/255]}let r=Bne.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||`ff`,16)/255]}let i=Vne.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||`1`)]}let a=Wne.exec(t);if(a){let[,e,t,n,r]=a;return[i_(e),i_(t),i_(n),r_(r)]}let o=Hne.exec(t);if(o){let[t,n,r,i]=Array.from(o).slice(1).map(parseFloat);if(Zg(0,100,n)!==n||Zg(0,100,r)!==r)throw new Qg(e);return[...L_(t,n,r),Number.isNaN(i)?1:i]}let s=Gne.exec(t);if(s){let[,t,n,r,i]=s,a=n_(t),o=parseFloat(n),c=parseFloat(r);if(Zg(0,100,o)!==o||Zg(0,100,c)!==c)throw new Qg(e);return[...L_(a,o,c),r_(i)]}let c=Kne.exec(t);if(c){let[,e,t,n,r]=c;return[...E_(n_(e),parseFloat(t)/100,parseFloat(n)/100),r_(r)]}let l=Jne.exec(t);if(l){let[,e,t,n,r]=l;return S_((e.endsWith(`%`),parseFloat(e)),t.endsWith(`%`)?parseFloat(t)/100*125:parseFloat(t),n.endsWith(`%`)?parseFloat(n)/100*125:parseFloat(n),r_(r))}let u=Yne.exec(t);if(u){let[,e,t,n,r]=u;return w_((e.endsWith(`%`),parseFloat(e)),t.endsWith(`%`)?parseFloat(t)/100*150:parseFloat(t),n_(n),r_(r))}let d=Xne.exec(t);if(d){let[,e,t,n,r]=d;return C_(e.endsWith(`%`)?parseFloat(e)/100:parseFloat(e),t.endsWith(`%`)?parseFloat(t)/100*.4:parseFloat(t),n.endsWith(`%`)?parseFloat(n)/100*.4:parseFloat(n),r_(r))}let f=Zne.exec(t);if(f){let[,e,t,n,r]=f;return T_(e.endsWith(`%`)?parseFloat(e)/100:parseFloat(e),t.endsWith(`%`)?parseFloat(t)/100*.4:parseFloat(t),n_(n),r_(r))}let p=qne.exec(t);if(p){let[,e,t,n,r,i]=p,a=a_(t),o=a_(n),s=a_(r);return P_(e.toLowerCase(),a,o,s,r_(i))}throw new Qg(e)}function Ine(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}var e_=e=>parseInt(e.replace(/_/g,``),36),Lne=`1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm`.split(` `).reduce((e,t)=>
22{let n=e_(t.substring(0,3)),r=e_(t.substring(3)).toString(16),i=``;for(let e=0;e<6-r.length;e++)i+=`0`;return e[n]=`${i}${r}`,e},{});function Rne(e){let t=Lne[Ine(e.toLowerCase().trim())];if(!t)throw new Qg(e);return`#${t}`}var t_=(e,t)=>Array.from(Array(t)).map(()=>e).join(``),zne=RegExp(`^#${t_(`([a-f0-9])`,3)}([a-f0-9])?$`,`i`),Bne=RegExp(`^#${t_(`([a-f0-9]{2})`,3)}([a-f0-9]{2})?$`,`i`),Vne=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${t_(`,\\s*(\\d+)\\s*`,2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,`i`),Hne=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Une=/^[a-z]+$/i,Wne=/^rgba?\(\s*([\d.]+%?)\s+([\d.]+%?)\s+([\d.]+%?)\s*(?:\/\s*([\d.]+%?))?\s*\)$/i,Gne=/^hsla?\(\s*([\d.]+(?:deg|rad|grad|turn)?)\s+([\d.]+)%\s+([\d.]+)%\s*(?:\/\s*([\d.]+%?))?\s*\)$/i,Kne=/^hwb\(\s*([\d.]+(?:deg|rad|grad|turn)?)\s+([\d.]+)%\s+([\d.]+)%\s*(?:\/\s*([\d.]+%?))?\s*\)$/i,qne=/^color\(\s*([\w-]+)\s+([\d.e+-]+%?)\s+([\d.e+-]+%?)\s+([\d.e+-]+%?)\s*(?:\/\s*([\d.]+%?))?\s*\)$/i,Jne=/^lab\(\s*([\d.]+%?)\s+([\d.e+-]+%?)\s+([\d.e+-]+%?)\s*(?:\/\s*([\d.]+%?))?\s*\)$/i,Yne=/^lch\(\s*([\d.]+%?)\s+([\d.]+%?)\s+([\d.e+-]+(?:deg|rad|grad|turn)?)\s*(?:\/\s*([\d.]+%?))?\s*\)$/i,Xne=/^oklab\(\s*([\d.]+%?)\s+([\d.e+-]+%?)\s+([\d.e+-]+%?)\s*(?:\/\s*([\d.]+%?))?\s*\)$/i,Zne=/^oklch\(\s*([\d.]+%?)\s+([\d.]+%?)\s+([\d.e+-]+(?:deg|rad|grad|turn)?)\s*(?:\/\s*([\d.]+%?))?\s*\)$/i;function n_(e){let t=parseFloat(e);return e.endsWith(`rad`)?t*180/Math.PI:e.endsWith(`grad`)?t*360/400:e.endsWith(`turn`)?t*360:t}function r_(e){return e===void 0||e===``?1:e.endsWith(`%`)?parseFloat(e)/100:parseFloat(e)}function i_(e){return e.endsWith(`%`)?Math.round(parseFloat(e)/100*255):parseInt(e,10)}function a_(e){return e.endsWith(`%`)?parseFloat(e)/100:parseFloat(e)}function o_(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function s_(e){return e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055}function c_(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}var l_=[4.0767416621,-3.3077115913,.2309699292,-1.2684380046,2.6097574011,-.3413193965,-.0041960863,-.7034186147,1.707614701],u_=[.4122214708,.5363325363,.0514459929,.2119034982,.6806995451,.1073969566,.0883024619,.2817188376,.6299787005];function d_(e,t,n){return[e+.3963377774*t+.2158037573*n,e-.1055613458*t-.0638541728*n,e-.0894841775*t-1.291485548*n]}function f_(e,t,n){let[r,i,a]=d_(e,t,n);return c_(l_,[r*r*r,i*i*i,a*a*a])}function p_(e,t,n){let[r,i,a]=c_(u_,[e,t,n]),o=Math.cbrt(r),s=Math.cbrt(i),c=Math.cbrt(a);return[.2104542553*o+.793617785*s-.0040720468*c,1.9779984951*o-2.428592205*s+.4505937099*c,.0259040371*o+.7827717662*s-.808675766*c]}function m_(e){let t=-1e-4;return e[0]>=t&&e[0]<=1.0001&&e[1]>=t&&e[1]<=1.0001&&e[2]>=t&&e[2]<=1.0001}function h_(e){return Math.round(Math.min(255,Math.max(0,s_(Math.min(1,Math.max(0,e)))*255)))}function g_(e,t){return Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2)}function __(e,t,n){let r=.02,i=1e-4;if(e>=1)return[1,1,1];if(e<=0)return[0,0,0];let a=n*Math.PI/180,o=Math.cos(a),s=Math.sin(a),c=f_(e,t*o,t*s);if(m_(c))return c;let l=0,u=t,d=!0,f=[Math.min(1,Math.max(0,c[0])),Math.min(1,Math.max(0,c[1])),Math.min(1,Math.max(0,c[2]))],p=p_(f[0],f[1],f[2]),m=[e,t*o,t*s];if(g_(p,m)<r)return f;for(;u-l>i;){let t=(l+u)/2;if(m=[e,t*o,t*s],c=f_(m[0],m[1],m[2]),d&&m_(c)){l=t;continue}f=[Math.min(1,Math.max(0,c[0])),Math.min(1,Math.max(0,c[1])),Math.min(1,Math.max(0,c[2]))],p=p_(f[0],f[1],f[2]);let n=g_(p,m);if(n<r){if(r-n<i)break;d=!1,l=t}else u=t}return f}function v_(e,t,n,r){let[i,a,o]=__(e,t,n);return[h_(i),h_(a),h_(o),r]}var y_=24389/27,b_=[.3457/.3585,1,.2958/.3585];function x_(e,t,n){let r=(e+16)/116,i=t/500+r,a=r-n/200,[o,s,c]=c_([.9554734527042182,-.023098536874261423,.0632593086610217,-.028369706963208136,1.009995458010663,.021041398966943008,.012314001688319899,-.020507696433477912,1.3303659366080753],[(i>24/116?i*i*i:(116*i-16)/y_)*b_[0],e>8?((e+16)/116)**3:e/y_,(a>24/116?a*a*a:(116*a-16)/y_)*b_[2]]),[l,u,d]=c_([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.0415550574071756,.0556300796969937,-.2039769588889765,1.0569715142428786],[o,s,c]);return p_(l,u,d)}function S_(e,t,n,r){let[i,a,o]=x_(e,t,n),s=Math.sqrt(a*a+o*o);return v_(i,s,s<1e-4?0:(Math.atan2(o,a)*180/Math.PI+360)%360,r)}function C_(e,t,n,r){let i=Math.sqrt(t*t+n*n);return v_(e,i,i<1e-4?0:(Math.atan2(n,t)*180/Math.PI+360)%360,r)}function w_(e,t,n,r){let i=n*Math.PI/180;return S_(e,t*Math.cos(i),t*Math.sin(i),r)}function T_(e,t,n,r){return v_(e,t,n,r)}function E_(e,t,n){if(t+n>=1){let e=Math.round(t/(t+n)*255);return[e,e,e]}return L_(e,100,50).map(e=>Math.round(e/255*(1-t-n)*255+t*255))}var D_=[3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.0415550574071756,.0556300796969937,-.2039769588889765,1.0569715142428786],O_=[.9554734527042182,-.023098536874261423,.0632593086610217,-.028369706963208136,1.009995458010663,.021041398966943008,.012314001688319899,-.020507696433477912,1.3303659366080753],k_=e=>e,A_=e=>Math.abs(e)**(563/256)*Math.sign(e),j_=e=>Math.abs(e)**2.4*Math.sign(e),M_=1/512,N_={srgb:{toXYZ:[.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],degamma:o_},"srgb-linear":{toXYZ:[.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],degamma:k_},"display-p3":{toXYZ:[.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],degamma:o_},"a98-rgb":{toXYZ:[.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.07529145849399788,.02703136138641234,.07068885253582723,.9913375368376388],degamma:A_},rec2020:{toXYZ:[.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],degamma:j_},"prophoto-rgb":{toXYZ:[.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],degamma:e=>{let t=Math.abs(e);return t<16*M_?e/16:Math.sign(e)*t**1.8},d50:!0}};function P_(e,t,n,r,i){if(e===`xyz-d65`||e===`xyz`)return F_(c_(D_,[t,n,r]),i);if(e===`xyz-d50`)return F_(c_(D_,c_(O_,[t,n,r])),i);let a=N_[e];
22if(!a)throw new Qg(`color(${e} ...)`);let o=a.degamma(t),s=a.degamma(n),c=a.degamma(r),l=c_(a.toXYZ,[o,s,c]);return a.d50&&(l=c_(O_,l)),F_(c_(D_,l),i)}function F_(e,t){if(m_(e))return[h_(e[0]),h_(e[1]),h_(e[2]),t];let[n,r,i]=p_(e[0],e[1],e[2]),a=Math.sqrt(r*r+i*i);return v_(n,a,a<1e-4?0:(Math.atan2(i,r)*180/Math.PI+360)%360,t)}var I_=e=>Math.round(e*255),L_=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(I_);let i=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*(t/100),o=a*(1-Math.abs(i%2-1)),s=0,c=0,l=0;i>=0&&i<1?(s=a,c=o):i>=1&&i<2?(s=o,c=a):i>=2&&i<3?(c=a,l=o):i>=3&&i<4?(c=o,l=a):i>=4&&i<5?(s=o,l=a):i>=5&&i<6&&(s=a,l=o);let u=r-a/2;return[s+u,c+u,l+u].map(I_)};function R_(e){let[t,n,r,i]=$g(e).map((e,t)=>t===3?e:e/255),a=Math.max(t,n,r),o=Math.min(t,n,r),s=(a+o)/2;if(a===o)return[0,0,s,i];let c=a-o,l=s>.5?c/(2-a-o):c/(a+o);return[60*(t===a?(n-r)/c+(n<r?6:0):n===a?(r-t)/c+2:(t-n)/c+4),l,s,i]}function z_(e,t,n,r){return`hsla(${(e%360).toFixed()}, ${Zg(0,100,t*100).toFixed()}%, ${Zg(0,100,n*100).toFixed()}%, ${parseFloat(Zg(0,1,r).toFixed(3))})`}function B_(e,t){let[n,r,i,a]=R_(e);return z_(n,r,i-t,a)}function V_(e){if(e===`transparent`)return 0;function t(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}let[n,r,i]=$g(e);return .2126*t(n)+.7152*t(r)+.0722*t(i)}function H_(e,t,n,r){return`rgba(${Zg(0,255,e).toFixed()}, ${Zg(0,255,t).toFixed()}, ${Zg(0,255,n).toFixed()}, ${parseFloat(Zg(0,1,r).toFixed(3))})`}function U_(e,t,n){let r=(e,t)=>t===3?e:e/255,[i,a,o,s]=$g(e).map(r),[c,l,u,d]=$g(t).map(r),f=d-s,p=n*2-1,m=((p*f===-1?p:p+f/(1+p*f))+1)/2,h=1-m;return H_((i*h+c*m)*255,(a*h+l*m)*255,(o*h+u*m)*255,d*n+s*(1-n))}function W_(e,t){return B_(e,-t)}function G_(e,t){let[n,r,i,a]=$g(e);return H_(n,r,i,a-t)}function K_(e){let[t,n,r,i]=$g(e),a=e=>{let t=Zg(0,255,e).toString(16);return t.length===1?`0${t}`:t};return`#${a(t)}${a(n)}${a(r)}${i<1?a(Math.round(i*255)):``}`}var q_=2,J_=`stActiveTheme-${window.location.pathname}`,Y_={CACHED_THEME_VERSION:q_,CACHED_THEME_BASE_KEY:J_,ACTIVE_THEME:`${J_}-v${q_}`},U,X_=o((()=>{U={white:`#FFFFFF`,gray50:`#F6F6F6`,gray100:`#EEEEEE`,gray200:`#E2E2E2`,gray300:`#CBCBCB`,gray400:`#AFAFAF`,gray500:`#6B6B6B`,gray600:`#545454`,gray700:`#333333`,gray800:`#1F1F1F`,gray900:`#141414`,black:`#000000`,platinum50:`#F4FAFB`,platinum100:`#EBF5F7`,platinum200:`#CCDFE5`,platinum300:`#A1BDCA`,platinum400:`#8EA3AD`,platinum500:`#6C7C83`,platinum600:`#556268`,platinum700:`#394145`,platinum800:`#142328`,red50:`#FFEFED`,red100:`#FED7D2`,red200:`#F1998E`,red300:`#E85C4A`,red400:`#E11900`,red500:`#AB1300`,red600:`#870F00`,red700:`#5A0A00`,orange50:`#FFF3EF`,orange100:`#FFE1D6`,orange200:`#FABDA5`,orange300:`#FA9269`,orange400:`#FF6937`,orange500:`#C14F29`,orange600:`#9A3F21`,orange700:`#672A16`,yellow50:`#FFFAF0`,yellow100:`#FFF2D9`,yellow200:`#FFE3AC`,yellow300:`#FFCF70`,yellow400:`#FFC043`,yellow500:`#BC8B2C`,yellow600:`#996F00`,yellow700:`#674D1B`,lime50:`#F2F7ED`,lime100:`#E0ECD2`,lime200:`#BCD69D`,lime300:`#8BB956`,lime400:`#67A421`,lime500:`#4E7C19`,lime600:`#3D6213`,lime700:`#29410d`,green50:`#E6F2ED`,green100:`#ADDEC9`,green200:`#66D19E`,green300:`#06C167`,green400:`#048848`,green500:`#03703C`,green600:`#03582F`,green700:`#10462D`,teal50:`#EDF5F7`,teal100:`#D2E8EC`,teal200:`#9DCDD6`,teal300:`#56A9B9`,teal400:`#218EA4`,teal500:`#196B7C`,teal600:`#135562`,teal700:`#0D3841`,blue50:`#EFF3FE`,blue100:`#D4E2FC`,blue200:`#A0BFF8`,blue300:`#5B91F5`,blue400:`#276EF1`,blue500:`#1E54B7`,blue600:`#174291`,blue700:`#102C60`,cobalt50:`#EBEDFA`,cobalt100:`#D2D7F0`,cobalt200:`#949CE3`,cobalt300:`#535FCF`,cobalt400:`#0E1FC1`,cobalt500:`#0A1899`,cobalt600:`#081270`,cobalt700:`#050C4D`,purple50:`#F3F1F9`,purple100:`#E3DDF2`,purple200:`#C1B4E2`,purple300:`#957FCE`,purple400:`#7356BF`,purple500:`#574191`,purple600:`#453473`,purple700:`#2E224C`,magenta50:`#F9F1F7`,magenta100:`#F2DDEB`,magenta200:`#E2B4D3`,magenta300:`#CE7EB3`,magenta400:`#BF569C`,magenta500:`#914176`,magenta600:`#72335D`,magenta700:`#4C223E`,brown50:`#F6F0EA`,brown100:`#EBE0DB`,brown200:`#D2BBB0`,brown300:`#B18977`,brown400:`#99644C`,brown500:`#744C3A`,brown600:`#5C3C2E`,brown700:`#3D281E`}})),Z_=o((()=>{})),Q_=o((()=>{X_(),Z_()})),$_,ev=o((()=>{Q_(),$_={primaryA:U.black,primaryB:U.white,primary:U.black,primary50:U.gray50,primary100:U.gray100,primary200:U.gray200,primary300:U.gray300,primary400:U.gray400,primary500:U.gray500,primary600:U.gray600,primary700:U.gray700,accent:U.blue400,accent50:U.blue50,accent100:U.blue100,accent200:U.blue200,accent300:U.blue300,accent400:U.blue400,accent500:U.blue500,accent600:U.blue600,accent700:U.blue700,negative:U.red400,negative50:U.red50,negative100:U.red100,negative200:U.red200,negative300:U.red300,negative400:U.red400,negative500:U.red500,negative600:U.red600,negative700:U.red700,warning:U.yellow400,warning50:U.yellow50,warning100:U.yellow100,warning200:U.yellow200,warning300:U.yellow300,warning400:U.yellow400,warning500:U.yellow500,warning600:U.yellow600,warning700:U.yellow700,positive:U.green500,positive50:U.green50,positive100:U.green100,positive200:U.green200,positive300:U.green300,positive400:U.green400,positive500:U.green500,positive600:U.green600,positive700:U.green700,white:U.white,black:U.black,mono100:U.white,mono200:U.gray50,mono300:U.gray100,mono400:U.gray200,mono500:U.gray300,mono600:U.gray400,mono700:U.gray500,mono800:U.gray600,mono900:U.gray700,mono1000:U.black,ratingInactiveFill:U.gray100,ratingStroke:U.gray300}}));function tv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`1`;e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?`rgba(${parseInt(n[1],16)}, ${parseInt(n[2],16)}, ${parseInt(n[3],16)}, ${t})`:null}function nv(e){return{borderTopWidth:e.borderWidth,borderTopStyle:e.borderStyle,borderTopColor:e.borderColor,borderBottomWidth:e.borderWidth,borderBottomStyle:e.borderStyle,borderBottomColor:e.borderColor,borderLeftWidth:e.borderWidth,borderLeftStyle:e.borderStyle,borderLeftColor:e.borderColor,borderRightWidth:e.borderWidth,borderRightStyle:e.borderStyle,borderRightColor:e.borderColor}}var rv,iv=o((()=>{rv={overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,wordWrap:`normal`}}));function av(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ov(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
22t%2?av(Object(n),!0).forEach(function(t){sv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):av(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cv,lv=o((()=>{ev(),iv(),X_(),cv=(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$_,t={backgroundPrimary:e.primaryB,backgroundSecondary:U.gray50,backgroundTertiary:U.gray100,backgroundInversePrimary:e.primaryA,backgroundInverseSecondary:U.gray800,contentPrimary:e.primaryA,contentSecondary:U.gray600,contentTertiary:U.gray500,contentInversePrimary:e.primaryB,contentInverseSecondary:U.gray300,contentInverseTertiary:U.gray400,borderOpaque:U.gray200,borderTransparent:tv(e.primaryA,`0.08`),borderSelected:e.primaryA,borderInverseOpaque:U.gray700,borderInverseTransparent:tv(e.primaryB,`0.2`),borderInverseSelected:e.primaryB},n={backgroundStateDisabled:U.gray50,backgroundOverlayDark:tv(U.black,`0.3`),backgroundOverlayLight:tv(U.black,`0.08`),backgroundOverlayArt:tv(U.black,`0.00`),backgroundAccent:e.accent,backgroundNegative:e.negative,backgroundWarning:e.warning,backgroundPositive:U.green400,backgroundLightAccent:U.blue50,backgroundLightNegative:U.red50,backgroundLightWarning:U.yellow50,backgroundLightPositive:U.green50,backgroundAlwaysDark:U.black,backgroundAlwaysLight:U.white,contentStateDisabled:U.gray400,contentAccent:e.accent,contentOnColor:U.white,contentOnColorInverse:U.black,contentNegative:e.negative,contentWarning:U.yellow600,contentPositive:U.green400,borderStateDisabled:U.gray50,borderAccent:U.blue400,borderAccentLight:U.blue200,borderNegative:U.red200,borderWarning:U.yellow200,borderPositive:U.green200,safety:U.blue400,eatsGreen400:U.green400,freightBlue400:U.cobalt400,jumpRed400:U.red400,rewardsTier1:U.blue400,rewardsTier2:U.yellow400,rewardsTier3:U.platinum400,rewardsTier4:U.black,membership:U.yellow600};return ov(ov({},t),n)})})),uv,dv,fv=o((()=>{ev(),uv=`rgba(0, 0, 0, 0.08)`,dv=(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$_;return{bannerActionLowInfo:e.accent100,bannerActionLowNegative:e.negative100,bannerActionLowPositive:e.positive100,bannerActionLowWarning:e.warning200,bannerActionHighInfo:e.accent500,bannerActionHighNegative:e.negative500,bannerActionHighPositive:e.positive500,bannerActionHighWarning:e.warning200,buttonPrimaryFill:e.primary,buttonPrimaryText:e.white,buttonPrimaryHover:e.primary700,buttonPrimaryActive:e.primary600,buttonPrimarySelectedFill:e.primary600,buttonPrimarySelectedText:e.white,buttonPrimarySpinnerForeground:e.accent,buttonPrimarySpinnerBackground:e.primaryB,buttonSecondaryFill:e.primary100,buttonSecondaryText:e.primary,buttonSecondaryHover:e.primary200,buttonSecondaryActive:e.primary300,buttonSecondarySelectedFill:e.primary300,buttonSecondarySelectedText:e.primary,buttonSecondarySpinnerForeground:e.accent,buttonSecondarySpinnerBackground:e.primaryB,buttonTertiaryFill:`transparent`,buttonTertiaryText:e.primary,buttonTertiaryHover:e.primary50,buttonTertiaryActive:e.primary100,buttonTertiarySelectedFill:e.primary100,buttonTertiarySelectedText:e.primary,buttonTertiaryDisabledActiveFill:e.primary50,buttonTertiaryDisabledActiveText:e.mono600,buttonTertiarySpinnerForeground:e.accent,buttonTertiarySpinnerBackground:e.primary100,buttonDisabledFill:e.mono200,buttonDisabledText:e.mono600,buttonDisabledActiveFill:e.mono700,buttonDisabledActiveText:e.mono100,buttonDisabledSpinnerForeground:e.mono600,buttonDisabledSpinnerBackground:e.mono400,breadcrumbsText:e.black,breadcrumbsSeparatorFill:e.mono700,calendarBackgroun
22d:e.mono100,calendarForeground:e.mono1000,calendarForegroundDisabled:e.mono500,calendarHeaderBackground:e.white,calendarHeaderForeground:e.primary,calendarHeaderBackgroundActive:e.primary700,calendarHeaderForegroundDisabled:e.primary500,calendarDayForegroundPseudoSelected:e.mono1000,calendarDayBackgroundPseudoSelectedHighlighted:e.primary200,calendarDayForegroundPseudoSelectedHighlighted:e.mono1000,calendarDayBackgroundSelected:e.primary,calendarDayForegroundSelected:e.white,calendarDayBackgroundSelectedHighlighted:e.primary,calendarDayForegroundSelectedHighlighted:e.white,comboboxListItemFocus:e.mono200,comboboxListItemHover:e.mono300,fileUploaderBackgroundColor:e.mono200,fileUploaderBackgroundColorActive:e.primary50,fileUploaderBorderColorActive:e.primary,fileUploaderBorderColorDefault:e.mono500,fileUploaderMessageColor:e.mono800,linkText:e.primary,linkVisited:e.primary700,linkHover:e.primary600,linkActive:e.primary500,listHeaderFill:e.white,listBodyFill:e.white,progressStepsCompletedText:e.white,progressStepsCompletedFill:e.primary,progressStepsActiveText:e.white,progressStepsActiveFill:e.primary,toggleFill:e.white,toggleFillChecked:e.primary,toggleFillDisabled:e.mono600,toggleTrackFill:e.mono400,toggleTrackFillDisabled:e.mono300,tickFill:e.mono100,tickFillHover:e.mono200,tickFillActive:e.mono300,tickFillSelected:e.primary,tickFillSelectedHover:e.primary700,tickFillSelectedHoverActive:e.primary600,tickFillError:e.negative50,tickFillErrorHover:e.negative100,tickFillErrorHoverActive:e.negative200,tickFillErrorSelected:e.negative400,tickFillErrorSelectedHover:e.negative500,tickFillErrorSelectedHoverActive:e.negative600,tickFillDisabled:e.mono600,tickBorder:e.mono700,tickBorderError:e.negative400,tickMarkFill:e.white,tickMarkFillError:e.white,tickMarkFillDisabled:e.mono100,sliderTrackFill:`transparent`,sliderHandleFill:e.primaryA,sliderHandleFillDisabled:e.primary400,sliderHandleInnerFill:e.primaryA,sliderTrackFillHover:e.mono500,sliderTrackFillActive:e.mono600,sliderTrackFillDisabled:e.mono300,sliderHandleInnerFillDisabled:e.mono400,sliderHandleInnerFillSelectedHover:e.primary,sliderHandleInnerFillSelectedActive:e.primary500,inputBorder:e.mono300,inputFill:e.mono300,inputFillError:e.negative50,inputFillDisabled:e.mono200,inputFillActive:e.mono200,inputFillPositive:e.positive50,inputTextDisabled:e.mono600,inputBorderError:e.negative200,inputBorderPositive:e.positive200,inputEnhancerFill:e.mono300,inputEnhancerFillDisabled:e.mono300,inputEnhancerTextDisabled:e.mono600,inputPlaceholder:e.mono700,inputPlaceholderDisabled:e.mono600,menuFill:e.mono100,menuFillHover:e.mono200,menuFontDefault:e.mono800,menuFontDisabled:e.mono500,menuFontHighlighted:e.mono1000,menuFontSelected:e.mono1000,modalCloseColor:e.mono1000,modalCloseColorHover:e.mono800,modalCloseColorFocus:e.mono800,tabBarFill:e.mono200,tabColor:e.mono800,notificationInfoBackground:e.accent50,notificationInfoText:e.primaryA,notificationPositiveBackground:e.positive50,notificationPositiveText:e.primaryA,notificationWarningBackground:e.warning50,notificationWarningText:e.primaryA,notificationNegativeBackground:e.negative50,notificationNegativeText:e.primaryA,tagFontDisabledRampUnit:`100`,tagSolidFontRampUnit:`0`,tagSolidRampUnit:`400`,tagOutlinedFontRampUnit:`400`,tagOutlinedRampUnit:`200`,tagSolidHoverRampUnit:`50`,tagSolidActiveRampUnit:`100`,tagSolidDisabledRampUnit:`50`,tagSolidFontHoverRampUnit:`500`,tagLightRampUnit:`50`,tagLightHoverRampUnit:`100`,tagLightActiveRampUnit:`100`,tagLightFontRampUnit:`500`,tagLightFontHoverRampUnit:`500`,tagOutlinedHoverRampUnit:`50`,tagOutlinedActiveRampUnit:`0`,tagOutlinedFontHoverRampUnit:`400`,tagNeutralFontDisabled:e.mono600,tagNeutralOutlinedDisabled:e.mono400,tagNeutralSolidFont:e.white,tagNeutralSolidBackground:e.black,tagNeutralOutlinedBackground:e.mono600,tagNeutralOutlinedFont:e.black,tagNeutralSolidHover:e.mono300,tagNeutralSolidActive:e.mono400,tagNeutralSolidDisabled:e.mono200,tagNeutralSolidFontHover:e.mono900,tagNeutralLightBackgroun
22d:e.mono300,tagNeutralLightHover:e.mono300,tagNeutralLightActive:e.mono400,tagNeutralLightDisabled:e.mono200,tagNeutralLightFont:e.mono900,tagNeutralLightFontHover:e.mono900,tagNeutralOutlinedActive:e.mono900,tagNeutralOutlinedFontHover:e.mono800,tagNeutralOutlinedHover:uv,tagPrimaryFontDisabled:e.primary400,tagPrimaryOutlinedDisabled:e.primary200,tagPrimarySolidFont:e.white,tagPrimarySolidBackground:e.primary,tagPrimaryOutlinedFontHover:e.primary,tagPrimaryOutlinedFont:e.primary,tagPrimarySolidHover:e.primary100,tagPrimarySolidActive:e.primary200,tagPrimarySolidDisabled:e.primary50,tagPrimarySolidFontHover:e.primary700,tagPrimaryLightBackground:e.primary50,tagPrimaryLightHover:e.primary100,tagPrimaryLightActive:e.primary100,tagPrimaryLightDisabled:e.primary50,tagPrimaryLightFont:e.primary500,tagPrimaryLightFontHover:e.primary500,tagPrimaryOutlinedActive:e.primary600,tagPrimaryOutlinedHover:uv,tagPrimaryOutlinedBackground:e.primary400,tagAccentFontDisabled:e.accent200,tagAccentOutlinedDisabled:e.accent200,tagAccentSolidFont:e.white,tagAccentSolidBackground:e.accent400,tagAccentOutlinedBackground:e.accent200,tagAccentOutlinedFont:e.accent400,tagAccentSolidHover:e.accent50,tagAccentSolidActive:e.accent100,tagAccentSolidDisabled:e.accent50,tagAccentSolidFontHover:e.accent500,tagAccentLightBackgroun
22d:e.accent50,tagAccentLightHover:e.accent100,tagAccentLightActive:e.accent100,tagAccentLightDisabled:e.accent50,tagAccentLightFont:e.accent500,tagAccentLightFontHover:e.accent500,tagAccentOutlinedActive:e.accent600,tagAccentOutlinedFontHover:e.accent400,tagAccentOutlinedHover:uv,tagPositiveFontDisabled:e.positive200,tagPositiveOutlinedDisabled:e.positive200,tagPositiveSolidFont:e.white,tagPositiveSolidBackground:e.positive400,tagPositiveOutlinedBackground:e.positive200,tagPositiveOutlinedFont:e.positive400,tagPositiveSolidHover:e.positive50,tagPositiveSolidActive:e.positive100,tagPositiveSolidDisabled:e.positive50,tagPositiveSolidFontHover:e.positive500,tagPositiveLightBackground:e.positive50,tagPositiveLightHover:e.positive100,tagPositiveLightActive:e.positive100,tagPositiveLightDisabled:e.positive50,tagPositiveLightFont:e.positive500,tagPositiveLightFontHover:e.positive500,tagPositiveOutlinedActive:e.positive600,tagPositiveOutlinedFontHover:e.positive400,tagPositiveOutlinedHover:uv,tagWarningFontDisabled:e.warning300,tagWarningOutlinedDisabled:e.warning300,tagWarningSolidFont:e.warning700,tagWarningSolidBackground:e.warning400,tagWarningOutlinedBackground:e.warning300,tagWarningOutlinedFont:e.warning600,tagWarningSolidHover:e.warning50,tagWarningSolidActive:e.warning100,tagWarningSolidDisabled:e.warning50,tagWarningSolidFontHover:e.warning500,tagWarningLightBackgroun
22d:e.warning50,tagWarningLightHover:e.warning100,tagWarningLightActive:e.warning100,tagWarningLightDisabled:e.warning50,tagWarningLightFont:e.warning500,tagWarningLightFontHover:e.warning500,tagWarningOutlinedActive:e.warning600,tagWarningOutlinedFontHover:e.warning600,tagWarningOutlinedHover:uv,tagNegativeFontDisabled:e.negative200,tagNegativeOutlinedDisabled:e.negative200,tagNegativeSolidFont:e.white,tagNegativeSolidBackground:e.negative400,tagNegativeOutlinedBackground:e.negative200,tagNegativeOutlinedFont:e.negative400,tagNegativeSolidHover:e.negative50,tagNegativeSolidActive:e.negative100,tagNegativeSolidDisabled:e.negative50,tagNegativeSolidFontHover:e.negative500,tagNegativeLightBackground:e.negative50,tagNegativeLightHover:e.negative100,tagNegativeLightActive:e.negative100,tagNegativeLightDisabled:e.negative50,tagNegativeLightFont:e.negative500,tagNegativeLightFontHover:e.negative500,tagNegativeOutlinedActive:e.negative600,tagNegativeOutlinedFontHover:e.negative400,tagNegativeOutlinedHover:uv,tableHeadBackgroundColor:e.mono100,tableBackground:e.mono100,tableStripedBackground:e.mono200,tableFilter:e.mono600,tableFilterHeading:e.mono700,tableFilterBackground:e.mono100,tableFilterFooterBackground:e.mono200,toastText:e.white,toastPrimaryText:e.white,toastInfoBackground:e.accent400,toastInfoText:e.white,toastPositiveBackground:e.positive400,toastPositiveText:e.white,toastWarningBackground:e.warning400,toastWarningText:e.black,toastNegativeBackground:e.negative400,toastNegativeText:e.white,spinnerTrackFill:e.mono900,progressbarTrackFill:e.mono900,tooltipBackground:e.mono900,tooltipText:e.mono100}})})),pv,mv=o((()=>{pv={border100:{borderColor:`hsla(0, 0%, 0%, 0.04)`,borderStyle:`solid`,borderWidth:`1px`},border200:{borderColor:`hsla(0, 0%, 0%, 0.08)`,borderStyle:`solid`,borderWidth:`1px`},border300:{borderColor:`hsla(0, 0%, 0%, 0.12)`,borderStyle:`solid`,borderWidth:`1px`},border400:{borderColor:`hsla(0, 0%, 0%, 0.16)`,borderStyle:`solid`,borderWidth:`1px`},border500:{borderColor:`hsla(0, 0%, 0%, 0.2)`,borderStyle:`solid`,borderWidth:`1px`},border600:{borderColor:`hsla(0, 0%, 0%, 0.24)`,borderStyle:`solid`,borderWidth:`1px`}
22,radius100:`2px`,radius200:`4px`,radius300:`8px`,radius400:`12px`,radius500:`16px`,useRoundedCorners:!0,buttonBorderRadiusMini:`4px`,buttonBorderRadius:`8px`,checkboxBorderRadius:`0px`,inputBorderRadiusMini:`4px`,inputBorderRadius:`8px`,popoverBorderRadius:`8px`,surfaceBorderRadius:`0px`,tagBorderRadius:`24px`}})),hv,gv=o((()=>{hv={shadow400:`0 1px 4px hsla(0, 0%, 0%, 0.16)`,shadow500:`0 2px 8px hsla(0, 0%, 0%, 0.16)`,shadow600:`0 4px 16px hsla(0, 0%, 0%, 0.16)`,shadow700:`0 8px 24px hsla(0, 0%, 0%, 0.16)`,overlay0:`inset 0 0 0 1000px hsla(0, 0%, 0%, 0)`,overlay100:`inset 0 0 0 1000px hsla(0, 0%, 0%, 0.04)`,overlay200:`inset 0 0 0 1000px hsla(0, 0%, 0%, 0.08)`,overlay300:`inset 0 0 0 1000px hsla(0, 0%, 0%, 0.12)`,overlay400:`inset 0 0 0 1000px hsla(0, 0%, 0%, 0.16)`,overlay500:`inset 0 0 0 1000px hsla(0, 0%, 0%, 0.2)`,overlay600:`inset 0 0 0 1000px hsla(0, 0%, 0%, 0.24)`,shallowAbove:`0px -4px 16px rgba(0, 0, 0, 0.12)`,shallowBelow:`0px 4px 16px rgba(0, 0, 0, 0.12)`,deepAbove:`0px -16px 48px rgba(0, 0, 0, 0.22)`,deepBelow:`0px 16px 48px rgba(0, 0, 0, 0.22)`}}));function _v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_v(Object(n),!0).forEach(function(t){Qne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yv,bv,xv,Sv=o((()=>{yv={primaryFontFamily:`system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif`},bv=`"Lucida Console", Monaco, monospace`,xv=(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yv,t={fontFamily:e.primaryFontFamily,fontSize:`12px`,fontWeight:`normal`,lineHeight:`20px`},n={fontFamily:e.primaryFontFamily,fontSize:`12px`,fontWeight:500,lineHeight:`16px`},r={fontFamily:e.primaryFontFamily,fontSize:`14px`,fontWeight:`normal`,lineHeight:`20px`},i={fontFamily:e.primaryFontFamily,fontSize:`14px`,fontWeight:500,lineHeight:`16px`},a={fontFamily:e.primaryFontFamily,fontSize:`16px`,fontWeight:`normal`,lineHeight:`24px`},o={fontFamily:e.primaryFontFamily,fontSize:`16px`,fontWeight:500,lineHeight:`20px`},s={fontFamily:e.primaryFontFamily,fontSize:`18px`,fontWeight:`normal`,lineHeight:`28px`},c={fontFamily:e.primaryFontFamily,fontSize:`18px`,fontWeight:500,lineHeight:`24px`},l={fontFamily:e.primaryFontFamily,fontSize:`20px`,fontWeight:700,lineHeight:`28px`},u={fontFamily:e.primaryFontFamily,fontSize:`24px`,fontWeight:700,lineHeight:`32px`},d={fontFamily:e.primaryFontFamily,fontSize:`28px`,fontWeight:700,lineHeight:`36px`},f={fontFamily:e.primaryFontFamily,fontSize:`32px`,fontWeight:700,lineHeight:`40px`},p={fontFamily:e.primaryFontFamily,fontSize:`36px`,fontWeight:700,lineHeight:`44px`},m={fontFamily:e.primaryFontFamily,fontSize:`40px`,fontWeight:700,lineHeight:`52px`},h={fontFamily:e.primaryFontFamily,fontSize:`36px`,fontWeight:700,lineHeight:`44px`},g={fontFamily:e.primaryFontFamily,fontSize:`44px`,fontWeight:700,lineHeight:`52px`},_={fontFamily:e.primaryFontFamily,fontSize:`52px`,fontWeight:700,lineHeight:`64px`},v={fontFamily:e.primaryFontFamily,fontSize:`96px`,fontWeight:700,lineHeight:`112px`};return{font100:t,font150:n,font200:r,font250:i,font300:a,font350:o,font400:s,font450:c,font550:l,font650:u,font750:d,font850:f,font950:p,font1050:m,font1150:h,font1250:g,font1350:_,font1450:v,ParagraphXSmall:t,ParagraphSmall:r,ParagraphMedium:a,ParagraphLarge:s,LabelXSmall:n,LabelSmall:i,LabelMedium:o,LabelLarge:c,HeadingXSmall:l,HeadingSmall:u,HeadingMedium:d,HeadingLarge:f,HeadingXLarge:p,HeadingXXLarge:m,DisplayXSmall:h,DisplaySmall:g,DisplayMedium:_,DisplayLarge:v,MonoParagraphXSmall:vv(vv({},t),{},{fontFamily:bv}),MonoParagraphSmall:vv(vv({},r),{},{fontFamily:bv}),MonoParagraphMedium:vv(vv({},a),{},{fontFamily:bv}),MonoParagraphLarge:vv(vv({},s),{},{fontFamily:bv}),MonoLabelXSmall:vv(vv({},n),{},{fontFamily:bv}),MonoLabelSmall:vv(vv({},i),{},{fontFamily:bv}),MonoLabelMedium:vv(vv({},o),{},{fontFamily:bv}),MonoLabelLarge:vv(vv({},c),{},{fontFamily:bv}),MonoHeadingXSmall:vv(vv({},l),{},{fontFamily:bv}),MonoHeadingSmall:vv(vv({},u),{},{fontFamily:bv}),MonoHeadingMedium:vv(vv({},d),{},{fontFamily:bv}),MonoHeadingLarge:vv(vv({},f),{},{fontFamily:bv}),MonoHeadingXLarge:vv(vv({},p),{},{fontFamily:bv}),MonoHeadingXXLarge:vv(vv({},m),{},{fontFamily:bv}),MonoDisplayXSmall:vv(vv({},h),{},{fontFamily:bv}),MonoDisplaySmall:vv(vv({},g),{},{fontFamily:bv}),MonoDisplayMedium:vv(vv({},_),{},{fontFamily:bv}),MonoDisplayLarge:vv(vv({},v),{},{fontFamily:bv})}})})),Cv,wv=o((()=>{Cv={timing100:`100ms`,timing200:`200ms`,timing300:`300ms`,timing400:`400ms`,timing500:`500ms`,timing600:`600ms`,timing700:`700ms`,timing800:`8
2200ms`,timing900:`900ms`,timing1000:`1000ms`,easeInCurve:`cubic-bezier(.8, .2, .6, 1)`,easeOutCurve:`cubic-bezier(.2, .8, .4, 1)`,easeInOutCurve:`cubic-bezier(0.4, 0, 0.2, 1)`,easeInQuinticCurve:`cubic-bezier(0.755, 0.05, 0.855, 0.06)`,easeOutQuinticCurve:`cubic-bezier(0.23, 1, 0.32, 1)`,easeInOutQuinticCurve:`cubic-bezier(0.86, 0, 0.07, 1)`,linearCurve:`cubic-bezier(0, 0, 1, 1)`}})),Tv,Ev=o((()=>{Tv={small:320,medium:600,large:1136}})),Dv,Ov=o((()=>{Dv={columns:[4,8,12],gutters:[16,36,36],margins:[16,36,64],gaps:0,unit:`px`,maxWidth:1280}})),kv,$ne=o((()=>{kv=function(e){return`@media screen and (min-width: ${e}px)`}})),Av,jv=o((()=>{$ne(),Ev(),Av={small:kv(Tv.small),medium:kv(Tv.medium),large:kv(Tv.large)}})),Mv,Nv=o((()=>{Mv={scale0:`2px`,scale100:`4px`,scale200:`6px`,scale300:`8px`,scale400:`10px`,scale500:`12px`,scale550:`14px`,scale600:`16px`,scale650:`18px`,scale700:`20px`,scale750:`22px`,scale800:`24px`,scale850:`28px`,scale900:`32px`,scale950:`36px`,scale1000:`40px`,scale1200:`48px`,scale1400:`56px`,scale1600:`64px`,scale2400:`96px`,scale3200:`128px`,scale4800:`192px`}}));function Pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Pv(Object(n),!0).forEach(function(t){ere(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ere(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Iv,Lv=o((()=>{ev(),lv(),fv(),mv(),gv(),Sv(),wv(),Ev(),Ov(),jv(),Nv(),Iv={name:`light-theme`,colors:Fv(Fv(Fv({},$_),dv()),cv()),animation:Cv,breakpoints:Tv,borders:pv,direction:`auto`,grid:Dv,lighting:hv,mediaQuery:Av,sizing:Mv,typography:xv(),zIndex:{modal:2e3}}}));function Rv(e){"@babel/helpers - typeof";return Rv=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Rv(e)}function zv(e){e||={};for(var t=arguments.length<=1?0:arguments.length-1,n,r,i=0;i<t;i++)for(var a in n=(i+1<1||arguments.length<=i+1?void 0:arguments[i+1])||{},n)Rv(n[a])!==void 0&&(r=n[a],tre(r)?e[a]=zv(e[a]||Array.isArray(r)&&[]||{},r):e[a]=r);return e}function tre(e){return Array.isArray(e)||{}.toString.call(e)==`[object Object]`}var Bv=o((()=>{})),Vv,Hv,Uv,Wv,Gv=o((()=>{Vv={primaryFontFamily:`UberMoveText, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif`},Hv=`UberMove, UberMoveText, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif`,Uv=`UberMoveMono, "Lucida Console", Monaco, monospace`,Wv={font1450:{fontFamily:Hv},font1350:{fontFamily:Hv},font1250:{fontFamily:Hv},font1150:{fontFamily:Hv},font1050:{fontFamily:Hv},font950:{fontFamily:Hv},font850:{fontFamily:Hv},font750:{fontFamily:Hv},font650:{fontFamily:Hv},font550:{fontFamily:Hv},DisplayLarge:{fontFamily:Hv},DisplayMedium:{fontFamily:Hv},DisplaySmall:{fontFamily:Hv},DisplayXSmall:{fontFamily:Hv},HeadingXXLarge:{fontFamily:Hv},HeadingXLarge:{fontFamily:Hv},HeadingLarge:{fontFamily:Hv},HeadingMedium:{fontFamily:Hv},HeadingSmall:{fontFamily:Hv},HeadingXSmall:{fontFamily:Hv},MonoParagraphXSmall:{fontFamily:Uv},MonoParagraphSmall:{fontFamily:Uv},MonoParagraphMedium:{fontFamily:Uv},MonoParagraphLarge:{fontFamily:Uv},MonoLabelXSmall:{fontFamily:Uv},MonoLabelSmall:{fontFamily:Uv},MonoLabelMedium:{fontFamily:Uv},MonoLabelLarge:{fontFamily:Uv},MonoHeadingXSmall:{fontFamily:Uv},MonoHeadingSmall:{fontFamily:Uv},MonoHeadingMedium:{fontFamily:Uv},MonoHeadingLarge:{fontFamily:Uv},MonoHeadingXLarge:{fontFamily:Uv},MonoHeadingXXLarge:{fontFamily:Uv},MonoDisplayXSmall:{fontFamily:Uv},MonoDisplaySmall:{fontFamily:Uv},MonoDisplayMedium:{fontFamily:Uv},MonoDisplayLarge:{fontFamily:Uv}}})),Kv,nre=o((()=>{Bv(),Lv(),Gv(),Sv(),Kv=zv({},Iv,{name:`light-theme-with-move`,typography:zv(xv(Vv),Wv)})})),qv,Jv=o((()=>{Q_(),qv={primaryA:U.gray200,primaryB:U.gray900,primary:U.white,primary50:U.gray50,primary100:U.gray100,primary200:U.gray200,primary300:U.gray300,primary400:U.gray400,primary500:U.gray500,primary600:U.gray600,primary700:U.gray700,accent:U.blue400,accent50:U.blue50,accent100:U.blue100,accent200:U.blue200,accent300:U.blue300,accent400:U.blue400,accent500:U.blue500,accent600:U.blue600,accent700:U.blue700,negative:U.red500,negative50:U.red50,negative100:U.red100,negative200:U.red200,negative300:U.red300,negative400:U.red400,negative500:U.red500,negative600:U.red600,negative700:U.red700,warning:U.yellow500,warning50:U.yellow50,warning100:U.yellow100,warning200:U.yellow200,warning300:U.yellow300,warning400:U.yellow400,warning500:U.yellow500,warning600:U.yellow600,warning700:U.yellow700,positive:U.green400,positive50:U.green50,positive100:U.green100,positive200:U.green200,positive300:U.green300,positive400:U.green400,positive500:U.green500,positive600:U.green600,positive700:U.green700,white:U.white,black:U.black,mono100:U.gray300,mono200:U.gray400,mono300:U.gray500,mono400:U.gray600,mono500:U.gray700,mono600:`#292929`,mono700:`#1F1F1F`,mono800:`#141414`,mono900:`#111111`,mono1000:U.black,ratingInactiveFill:U.gray500,ratingStroke:U.gray700}}
22));function Yv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Yv(Object(n),!0).forEach(function(t){rre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zv,Qv=o((()=>{Jv(),iv(),X_(),Zv=(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qv,t={backgroundPrimary:e.primaryB,backgroundSecondary:U.gray800,backgroundTertiary:U.gray700,backgroundInversePrimary:e.primaryA,backgroundInverseSecondary:U.gray300,contentPrimary:U.white,contentSecondary:U.gray300,contentTertiary:U.gray400,contentInversePrimary:U.black,contentInverseSecondary:U.gray700,contentInverseTertiary:U.gray600,borderOpaque:U.gray700,borderTransparent:tv(e.primaryA,`0.08`),borderSelected:e.primaryA,borderInverseOpaque:U.gray400,borderInverseTransparent:tv(e.primaryB,`0.2`),borderInverseSelected:e.primaryB},n={backgroundStateDisabled:U.gray800,backgroundOverlayDark:tv(U.black,`0.3`),backgroundOverlayLight:tv(U.black,`0.08`),backgroundOverlayArt:tv(U.black,`0.16`),backgroundAccent:e.accent,backgroundNegative:e.negative,backgroundWarning:e.warning,backgroundPositive:U.green500,backgroundLightAccent:U.blue700,backgroundLightPositive:U.green700,backgroundLightNegative:U.red700,backgroundLightWarning:U.yellow700,backgroundAlwaysDark:U.gray900,backgroundAlwaysLight:U.gray100,contentStateDisabled:U.gray600,contentAccent:U.blue300,contentOnColor:U.white,contentOnColorInverse:U.black,contentNegative:U.red300,contentWarning:U.yellow300,contentPositive:U.green300,borderStateDisabled:U.gray800,borderAccent:U.blue400,borderAccentLight:U.blue500,borderNegative:U.red500,borderWarning:U.yellow500,borderPositive:U.green500,safety:U.blue400,eatsGreen400:U.green400,freightBlue400:U.cobalt400,jumpRed400:U.red400,rewardsTier1:U.blue400,rewardsTier2:U.yellow400,rewardsTier3:U.platinum400,rewardsTier4:U.gray200,membership:U.yellow600};return Xv(Xv({},t),n)})})),$v,ey,ty=o((()=>{Jv(),$v=`rgba(255, 255, 255, 0.2)`,ey=(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qv;return{bannerActionLowInfo:e.accent600,bannerActionLowNegative:e.negative600,bannerActionLowPositive:e.positive600,bannerActionLowWarning:e.warning600,bannerActionHighInfo:e.accent500,bannerActionHighNegative:e.negative600,bannerActionHighPositive:e.positive600,bannerActionHighWarning:e.warning600,buttonPrimaryFill:e.primaryA,buttonPrimaryText:e.black,buttonPrimaryHover:e.primary100,buttonPrimaryActive:e.primary200,buttonPrimarySelectedText:e.black,buttonPrimarySelectedFill:e.primary200,buttonPrimarySpinnerForeground:e.primary700,buttonPrimarySpinnerBackground:e.primary300,buttonSecondaryFill:e.primary700,buttonSecondaryText:e.primary,buttonSecondaryHover:e.primary600,buttonSecondaryActive:e.primary500,buttonSecondarySelectedText:e.primary,buttonSecondarySelectedFill:e.primary500,buttonSecondarySpinnerForeground:e.white,buttonSecondarySpinnerBackground:e.primary400,buttonTertiaryFill:`transparent`,buttonTertiaryText:e.primary,buttonTertiaryHover:e.primary700,buttonTertiaryActive:e.primary600,buttonTertiarySelectedText:e.primary,buttonTertiarySelectedFill:e.primary600,buttonTertiaryDisabledActiveFill:e.primary700,buttonTertiaryDisabledActiveText:e.mono300,buttonTertiarySpinnerForeground:e.primary50,buttonTertiarySpinnerBackground:e.primary500,buttonDisabledFill:e.mono600,buttonDisabledText:e.mono300,buttonDisabledActiveFill:e.mono200,buttonDisabledActiveText:e.primary500,buttonDisabledSpinnerForeground:e.mono200,buttonDisabledSpinnerBackground:e.mono400,breadcrumbsText:e.white,breadcrumbsSeparatorFill:e.mono200,calendarBackgroun
22d:e.mono800,calendarForeground:e.white,calendarForegroundDisabled:e.mono300,calendarHeaderBackground:e.primary700,calendarHeaderForeground:e.primary,calendarHeaderBackgroundActive:e.primary600,calendarHeaderForegroundDisabled:e.primary500,calendarDayForegroundPseudoSelected:e.primary,calendarDayBackgroundPseudoSelectedHighlighted:e.primary600,calendarDayForegroundPseudoSelectedHighlighted:e.primary,calendarDayBackgroundSelected:e.primary,calendarDayForegroundSelected:e.black,calendarDayBackgroundSelectedHighlighted:e.primary100,calendarDayForegroundSelectedHighlighted:e.black,comboboxListItemFocus:e.mono600,comboboxListItemHover:e.mono500,fileUploaderBackgroundColor:e.mono700,fileUploaderBackgroundColorActive:e.mono600,fileUploaderBorderColorActive:e.primary,fileUploaderBorderColorDefault:e.mono500,fileUploaderMessageColor:e.mono100,linkText:e.primary,linkVisited:e.primary100,linkHover:e.primary200,linkActive:e.primary300,listHeaderFill:e.mono600,listBodyFill:e.mono800,progressStepsCompletedText:e.black,progressStepsCompletedFill:e.primary,progressStepsActiveText:e.black,progressStepsActiveFill:e.primary,modalCloseColor:e.mono300,modalCloseColorHover:e.mono400,modalCloseColorFocus:e.mono400,notificationInfoBackground:e.accent700,notificationInfoText:e.primaryA,notificationPositiveBackground:e.positive700,notificationPositiveText:e.primaryA,notificationWarningBackground:e.warning700,notificationWarningText:e.primaryA,notificationNegativeBackground:e.negative700,notificationNegativeText:e.primaryA,tagFontDisabledRampUnit:`600`,tagSolidFontRampUnit:`0`,tagSolidRampUnit:`500`,tagOutlinedFontRampUnit:`500`,tagOutlinedRampUnit:`500`,tagSolidHoverRampUnit:`500`,tagSolidActiveRampUnit:`400`,tagSolidDisabledRampUnit:`700`,tagSolidFontHoverRampUnit:`100`,tagLightRampUnit:`700`,tagLightHoverRampUnit:`700`,tagLightActiveRampUnit:`600`,tagLightFontRampUnit:`100`,tagLightFontHoverRampUnit:`100`,tagOutlinedActiveRampUnit:`300`,tagOutlinedHoverRampUnit:`800`,tagOutlinedFontHoverRampUnit:`100`,tagNeutralOutlinedFont:e.mono100,tagNeutralOutlinedBackground:e.mono200,tagNeutralSolidFont:e.black,tagNeutralSolidBackground:e.primary200,tagNeutralFontDisabled:e.mono400,tagNeutralOutlinedDisabled:e.mono500,tagNeutralSolidHover:e.mono600,tagNeutralSolidActive:e.mono500,tagNeutralSolidDisabled:e.mono700,tagNeutralSolidFontHover:e.mono200,tagNeutralLightBackgroun
22d:e.mono800,tagNeutralLightHover:e.mono800,tagNeutralLightActive:e.mono700,tagNeutralLightDisabled:e.mono700,tagNeutralLightFont:e.mono200,tagNeutralLightFontHover:e.mono200,tagNeutralOutlinedActive:e.mono400,tagNeutralOutlinedFontHover:e.mono100,tagNeutralOutlinedHover:$v,tagPrimaryOutlinedFont:e.primary200,tagPrimaryOutlinedBackground:e.primary400,tagPrimarySolidFont:e.black,tagPrimarySolidBackground:e.primary200,tagPrimaryFontDisabled:e.primary600,tagPrimaryOutlinedDisabled:e.primary700,tagPrimarySolidHover:e.primary700,tagPrimarySolidActive:e.primary400,tagPrimarySolidDisabled:e.primary700,tagPrimarySolidFontHover:e.primary100,tagPrimaryLightBackground:e.primary700,tagPrimaryLightHover:e.primary700,tagPrimaryLightActive:e.primary600,tagPrimaryLightDisabled:e.primary700,tagPrimaryLightFont:e.primary100,tagPrimaryLightFontHover:e.primary100,tagPrimaryOutlinedActive:e.primary600,tagPrimaryOutlinedFontHover:e.primary200,tagPrimaryOutlinedHover:$v,tagAccentOutlinedFont:e.accent200,tagAccentOutlinedBackground:e.accent500,tagAccentSolidFont:e.white,tagAccentSolidBackground:e.accent500,tagAccentFontDisabled:e.accent600,tagAccentOutlinedDisabled:e.accent700,tagAccentSolidHover:e.accent500,tagAccentSolidActive:e.accent400,tagAccentSolidDisabled:e.accent700,tagAccentSolidFontHover:e.accent100,tagAccentLightBackgroun
22d:e.accent700,tagAccentLightHover:e.accent700,tagAccentLightActive:e.accent600,tagAccentLightDisabled:e.accent700,tagAccentLightFont:e.accent100,tagAccentLightFontHover:e.accent100,tagAccentOutlinedActive:e.accent300,tagAccentOutlinedFontHover:e.accent200,tagAccentOutlinedHover:$v,tagPositiveOutlinedFont:e.positive300,tagPositiveOutlinedBackground:e.positive500,tagPositiveSolidFont:e.white,tagPositiveSolidBackground:e.positive500,tagPositiveFontDisabled:e.positive600,tagPositiveOutlinedDisabled:e.positive700,tagPositiveSolidHover:e.positive500,tagPositiveSolidActive:e.positive400,tagPositiveSolidDisabled:e.positive700,tagPositiveSolidFontHover:e.positive100,tagPositiveLightBackground:e.positive700,tagPositiveLightHover:e.positive700,tagPositiveLightActive:e.positive600,tagPositiveLightDisabled:e.positive700,tagPositiveLightFont:e.positive100,tagPositiveLightFontHover:e.positive100,tagPositiveOutlinedActive:e.positive300,tagPositiveOutlinedFontHover:e.positive300,tagPositiveOutlinedHover:$v,tagWarningOutlinedFont:e.warning300,tagWarningOutlinedBackground:e.warning500,tagWarningSolidFont:e.black,tagWarningSolidBackground:e.warning500,tagWarningFontDisabled:e.warning600,tagWarningOutlinedDisabled:e.warning700,tagWarningSolidHover:e.warning500,tagWarningSolidActive:e.warning400,tagWarningSolidDisabled:e.warning700,tagWarningSolidFontHover:e.warning100,tagWarningLightBackgroun
22d:e.warning700,tagWarningLightHover:e.warning700,tagWarningLightActive:e.warning600,tagWarningLightDisabled:e.warning700,tagWarningLightFont:e.warning100,tagWarningLightFontHover:e.warning100,tagWarningOutlinedActive:e.warning300,tagWarningOutlinedFontHover:e.warning300,tagWarningOutlinedHover:$v,tagNegativeOutlinedFont:e.negative300,tagNegativeOutlinedBackground:e.negative500,tagNegativeSolidFont:e.white,tagNegativeSolidBackground:e.negative500,tagNegativeFontDisabled:e.negative600,tagNegativeOutlinedDisabled:e.negative700,tagNegativeSolidHover:e.negative500,tagNegativeSolidActive:e.negative400,tagNegativeSolidDisabled:e.negative700,tagNegativeSolidFontHover:e.negative100,tagNegativeLightBackground:e.negative700,tagNegativeLightHover:e.negative700,tagNegativeLightActive:e.negative600,tagNegativeLightDisabled:e.negative700,tagNegativeLightFont:e.negative100,tagNegativeLightFontHover:e.negative100,tagNegativeOutlinedActive:e.negative300,tagNegativeOutlinedFontHover:e.negative300,tagNegativeOutlinedHover:$v,tableHeadBackgroundColor:e.mono700,tableBackground:e.mono800,tableStripedBackground:e.mono700,tableFilter:e.mono400,tableFilterHeading:e.mono300,tableFilterBackground:e.mono700,tableFilterFooterBackground:e.mono800,toastText:e.white,toastPrimaryText:e.white,toastInfoBackground:e.accent400,toastInfoText:e.white,toastPositiveBackground:e.positive400,toastPositiveText:e.white,toastWarningBackground:e.warning400,toastWarningText:e.black,toastNegativeBackground:e.negative400,toastNegativeText:e.white,toggleFill:e.mono300,toggleFillChecked:e.primary,toggleFillDisabled:e.mono600,toggleTrackFill:e.mono400,toggleTrackFillDisabled:e.mono700,tickFill:e.mono1000,tickFillHover:e.mono700,tickFillActive:e.mono600,tickFillSelected:e.primary,tickFillSelectedHover:e.primary50,tickFillSelectedHoverActive:e.primary100,tickFillError:e.negative700,tickFillErrorHover:e.negative600,tickFillErrorHoverActive:e.negative500,tickFillErrorSelected:e.negative500,tickFillErrorSelectedHover:e.negative600,tickFillErrorSelectedHoverActive:e.negative700,tickFillDisabled:e.mono500,tickBorder:e.mono300,tickBorderError:e.negative400,tickMarkFill:e.black,tickMarkFillError:e.white,tickMarkFillDisabled:e.mono800,sliderTrackFill:`transparent`,sliderHandleFill:e.primaryA,sliderHandleFillDisabled:e.primary500,sliderHandleInnerFill:e.primaryA,sliderTrackFillHover:e.mono500,sliderTrackFillActive:e.mono400,sliderTrackFillDisabled:e.mono700,sliderHandleInnerFillDisabled:e.mono500,sliderHandleInnerFillSelectedHover:e.primary600,sliderHandleInnerFillSelectedActive:e.primary700,inputBorder:e.mono600,inputFill:e.mono600,inputFillActive:e.mono500,inputFillError:e.negative700,inputFillDisabled:e.mono800,inputFillPositive:e.positive700,inputTextDisabled:e.mono500,inputBorderError:e.negative400,inputBorderPositive:e.positive400,inputEnhancerFill:e.mono500,inputEnhancerFillDisabled:e.mono700,inputEnhancerTextDisabled:e.mono500,inputPlaceholder:e.mono300,inputPlaceholderDisabled:e.mono500,menuFill:e.mono600,menuFillHover:e.mono700,menuFontDefault:e.mono300,menuFontDisabled:e.mono400,menuFontHighlighted:e.white,menuFontSelected:e.white,tabBarFill:e.mono1000,tabColor:e.mono300,spinnerTrackFill:e.mono100,progressbarTrackFill:e.mono100,tooltipBackground:e.mono200,tooltipText:e.mono1000}})})),ny,ry=o((()=>{mv(),Bv(),ny=zv({},pv,{border100:{borderColor:`hsla(0, 0%, 100%, 0.04)`},border200:{borderColor:`hsla(0, 0%, 100%, 0.08)`},border300:{borderColor:`hsla(0, 0%, 100%, 0.12)`},border400:{borderColor:`hsla(0, 0%, 100%, 0.16)`},border500:{borderColor:`hsla(0, 0%, 100%, 0.2)`},border600:{borderColor:`hsla(0, 0%, 100%, 0.24)`}})}));function iy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ay(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?iy(Object(n),!0).forEach(function(t){ire(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iy(Object(n)).forEac
22h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ire(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oy,sy=o((()=>{Jv(),Qv(),ty(),ry(),gv(),Sv(),wv(),Ev(),Ov(),jv(),Nv(),oy={name:`dark-theme`,colors:ay(ay(ay({},qv),ey()),Zv()),animation:Cv,breakpoints:Tv,borders:ny,direction:`auto`,grid:Dv,lighting:hv,mediaQuery:Av,sizing:Mv,typography:xv(),zIndex:{modal:2e3}}})),cy,are=o((()=>{Bv(),sy(),Gv(),Sv(),cy=zv({},oy,{name:`dark-theme-with-move`,typography:zv(xv(Vv),Wv)})}));function ly(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ly(Object(n),!0).forEach(function(t){ore(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ly(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ore(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sre(e,t){if(e==null)return{};var n=cre(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function lre(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.primaryFontFamily,r=sre(e,dy),i=uy(uy({},qv),r);return zv({animation:Cv,borders:ny,breakpoints:Tv,colors:uy(uy(uy({},i),ey(i)),Zv(i)),direction:`auto`,grid:Dv,lighting:hv,mediaQuery:Av,sizing:Mv,typography:n?xv({primaryFontFamily:n}):xv(),zIndex:{modal:2e3}},t)}var dy,ure=o((()=>{wv(),ry(),Ev(),Bv(),Jv(),ty(),Qv(),Sv(),Ov(),gv(),jv(),Nv(),dy=[`primaryFontFamily`]}));function fy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function py(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fy(Object(n),!0).forEach(function(t){dre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fre(e,t){if(e==null)return{};var n=pre(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function my(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.primaryFontFamily,r=fre(e,hy),i=py(py({},$_),r);return zv({animation:Cv,borders:pv,breakpoints:Tv,colors:py(py(py({},i),dv(i)),cv(i)),direction:`auto`,grid:Dv,lighting:hv,mediaQuery:Av,sizing:Mv,typography:n?xv({primaryFontFamily:n}):xv(),zIndex:{modal:2e3}},t)}var hy,mre=o((()=>{wv(),mv(),Ev(),Bv(),ev(),fv(),lv(),Sv(),Ov(),gv(),jv(),Nv(),hy=[`primaryFontFamily`]}));function gy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gy(Object(n),!0).forEach(function(t){hre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gy(Object(n)).forEac
22h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vy,gre=o((()=>{Jv(),Sv(),vy=_y(_y({},qv),yv)}));function yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function by(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yy(Object(n),!0).forEach(function(t){_re(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xy,vre=o((()=>{ev(),Sv(),xy=by(by({},$_),yv)})),yre=o((()=>{})),bre=c({DarkTheme:()=>oy,DarkThemeMove:()=>cy,LightTheme:()=>Iv,LightThemeMove:()=>Kv,createDarkTheme:()=>lre,createLightTheme:()=>my,createTheme:()=>my,darkThemeOverrides:()=>oy,darkThemePrimitives:()=>vy,lightThemePrimitives:()=>xy}),Sy=o((()=>{Lv(),nre(),sy(),are(),ure(),mre(),gre(),vre(),yre()})),Cy,wy,Ty,Ey=o((()=>{Cy=u(m()),Sy(),wy=Cy.createContext(Iv),Ty=function(e){var t=e.theme,n=e.children;return Cy.createElement(wy.Provider,{value:t},n)}}));function Dy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Oy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Dy(Object(n),!0).forEach(function(t){xre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sre(e,t){return Ere(e)||Tre(e,t)||wre(e,t)||Cre()}function Cre(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 23In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wre(e,t){if(e){if(typeof e==`string`)return ky(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ky(e,t)}}function ky(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tre(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Ere(e){if(Array.isArray(e))return e}function Ay(){return Ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ay.apply(this,arguments)}function jy(){return $i({wrapper:Iy,getInitialStyle:qi,driver:Ki})}function My(){return wa}function Ny(){return function(){var e=Fy.useContext(wy);return[Sre(Qi(),1)[0],e]}}function Py(e,t){return Ta(e,function(e){return Fy.forwardRef(function(n,r){return Fy.createElement(wy.Consumer,null,function(i){return t(e)(Oy(Oy({ref:r},n),{},{$theme:i}))})})})}var Fy,Iy,W,Ly,Ry,Dre=o((()=>{Fy=u(m()),Yi(),Ey(),Iy=function(e){return Fy.forwardRef(function(t,n){return Fy.createElement(wy.Consumer,null,function(r){return Fy.createElement(e,Ay({ref:n},t,{$theme:r}))})})},W=jy(),Ly=My(),Ry=Ny()})),Ore=o((()=>{})),zy=c({ThemeConsumer:()=>By,ThemeProvider:()=>Ty,createThemedStyled:()=>jy,createThemedUseStyletron:()=>Ny,createThemedWithStyle:()=>My,expandBorderStyles:()=>nv,hexToRgb:()=>tv,styled:()=>W,useStyletron:()=>Ry,withStyle:()=>Ly,withWrapper:()=>Py}),By,Vy=o((()=>{Ey(),Dre(),iv(),Ore(),By=wy.Consumer})),kre=s(((e,t)=>{t.exports=n;function n(){var e=[].slice.call(arguments),t=!1;typeof e[0]==`boolean`&&(t=e.shift());var a=e[0];if(i(a))throw Error(`extendee must be an object`);for(var o=e.slice(1),s=o.length,c=0;c<s;c++){var l=o[c];for(var u in l)if(Object.prototype.hasOwnProperty.call(l,u)){var d=l[u];if(t&&r(d)){var f=Array.isArray(d)?[]:{};a[u]=n(!0,Object.prototype.hasOwnProperty.call(a,u)&&!i(a[u])?a[u]:f,d)}else a[u]=d}}return a}function r(e){return Array.isArray(e)||{}.toString.call(e)==`[object Object]`}function i(e){return!e||typeof e!=`object`&&typeof e!=`function`}})),Hy,Are=o((()=>{Hy={collapse:`Collapse`,expand:`Expand`}})),Uy,jre=o((()=>{Uy={ariaLabel:`Breadcrumbs navigation`}})),Wy,Mre=o((()=>{Wy={ariaLabel:`Select a date.`,ariaLabelRange:`Select a date range.`,ariaLabelCalendar:`Calendar.`,ariaRoleDescriptionCalendarMonth:`Calendar month`,previousMonth:`Previous month.`,nextMonth:`Next month.`,pastWeek:`Past Week`,pastMonth:`Past Month`,pastThreeMonths:`Past 3 Months`,pastSixMonths:`Past 6 Months`,pastYear:`Past Year`,pastTwoYears:`Past 2 Years`,screenReaderMessageInput:`Press the down arrow key to interact with the calendar and select a date. Press the escape button to close the calendar.`,selectedDate:"Selected date is ${date}.",selectedDateRange:"Selected date range is from ${startDate} to ${endDate}.",selectSecondDatePrompt:`Select the second date.`,quickSelectLabel:`Choose a date range`,quickSelectAriaLabel:`Choose a date range`,quickSelectPlaceholder:`None`,timeSelectEndLabel:`End time`,timeSelectStartLabel:`Start time`,timePickerAriaLabel12Hour:`Select a time, 12-hour format.`,timePickerAriaLabel24Hour:`Select a time, 24-hour format.`,timezonePickerAriaLabel:`Select a timezone.`,selectedStartDateLabel:`Selected start date.`,selectedEndDateLabel:`Selected end date.`,dateNotAvailableLabel:`Not available.`,dateAvailableLabel:`It's available.`,selectedLabel:`Selected.`,chooseLabel:`Choose`}})),Gy,Nre=o((()=>{Gy={emptyState:`No rows match the filter criteria defined. Please remove one or more filters to view more data.`,loadingState:`Loading rows.`,searchAriaLabel:`Search by text`,filterAdd:`Add Filter`,filterExclude:`Exclude`,filterApply:`Apply`,filterExcludeRange:`Exclude range`,filterExcludeValue:`Exclude value`,filterAppliedTo:`filter applied to`,optionsLabel:`Select column to filter by`,optionsSearch:`Search for a column to filter by...`,optionsEmpty:`No columns available.`,categoricalFilterSelectAll:`Select All`,categoricalFilterSelectClear:`Clear`,categoricalFilterEmpty:`No categories found`,datetimeFilterRange:`Range`,datetimeFilterRangeDatetime:`Date, Time`,datetimeFilterRangeDate:`Date`,datetimeFilterRangeTime:`Time`,datetimeFilterCategorical:`Categorical`,datetimeFilterCategoricalWeekday:`Weekday`,datetimeFilterCategoricalMonth:`Month`,datetimeFilterCategoricalQuarter:`Quarter`,datetimeFilterCategoricalHalf:`Half`,datetimeFilterCategoricalFirstHalf:`H1`,datetimeFilterCategorical
23SecondHalf:`H2`,datetimeFilterCategoricalYear:`Year`,numericalFilterRange:`Range`,numericalFilterSingleValue:`Single Value`,booleanFilterTrue:`true`,booleanFilterFalse:`false`,booleanColumnTrueShort:`T`,booleanColumnFalseShort:`F`,selectRow:`Select row`,selectAllRows:`Select all rows`}})),Ky,Pre=o((()=>{Ky={ariaLabel:`button group`}})),qy,Fre=o((()=>{qy={dropFilesToUpload:`Drop files here to upload...`,or:``,browseFiles:`Browse files`,retry:`Retry Upload`,cancel:`Cancel`}})),Jy,Ire=o((()=>{Jy={noResultsMsg:`No results`,parentMenuItemAriaLabel:`You are currently at an item that opens a nested listbox. Press right arrow to enter that element and left arrow to return.`}})),Yy,Lre=o((()=>{Yy={close:`Close`}})),Xy,Rre=o((()=>{Xy={close:`Close`}})),Zy,zre=o((()=>{Zy={prev:`Prev`,next:`Next`,preposition:`of`}})),Qy,Bre=o((()=>{Qy={noResultsMsg:`No results found`,placeholder:`Select...`,create:`Create`}})),$y,Vre=o((()=>{$y={close:`Close`}})),eb,Hre=o((()=>{Are(),jre(),Mre(),Nre(),Pre(),Fre(),Ire(),Lre(),Rre(),zre(),Bre(),Vre(),eb={accordion:Hy,breadcrumbs:Uy,datepicker:Wy,datatable:Gy,buttongroup:Ky,fileuploader:qy,menu:Jy,modal:Yy,drawer:Xy,pagination:Zy,select:Qy,toast:$y}})),Ure=c({LocaleContext:()=>rb,default:()=>ib}),tb,nb,rb,ib,ab=o((()=>{tb=u(m()),nb=u(kre()),Hre(),rb=tb.createContext(eb),ib=function(e){var t=e.locale,n=e.children,r=tb.useContext(rb)??{};return tb.createElement(rb.Provider,{value:(0,nb.default)({},eb,r,t)},n)}})),ob,sb,cb=o((()=>{ob=function(){var e=1,t=new WeakMap,n=function(r,i){return typeof r==`number`||typeof r==`string`?i?`idx-${i}`:`val-${r}`:t.has(r)?`uid`+t.get(r):(t.set(r,e++),n(r))};return n},sb=ob()})),lb,ub,db,fb,pb,mb,hb=o((()=>{lb=u(m()),cb(),ub=function(e){return e===void 0&&(e=``),{value:1,prefix:e,uid:ob()}},db=ub(),fb=lb.createContext(ub()),pb=function(e){return e.value++},mb=function(e){return e?e.prefix:``}})),gb,_b,vb,yb,bb=o((()=>{gb=u(m()),hb(),_b=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),vb=function(e,t,n){var r=t+e;return String(n?n(r):r)},yb=function(e){_b(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={quartz:t.props.idSource||db,prefix:mb(t.props.idSource),id:pb(t.props.idSource||db)},t.uid=function(e){return vb(t.state.id+`-`+t.state.quartz.uid(e),t.state.prefix,t.props.name)},t}return t.prototype.render=function(){var e=this.props,t=e.children,n=e.name,r=this.state,i=r.id,a=r.prefix;return t(vb(i,a,n),this.uid)},t}(gb.Component)})),xb,Sb,Cb,wb,Tb,Eb=o((()=>{m(),xb=u(m()),hb(),Sb=function(e){var t=e||db,n=mb(t)+pb(t);return{uid:n,gen:function(e){return n+t.uid(e)}}},Cb=function(){var e=(0,xb.useContext)(fb);return(0,xb.useState)(function(){return Sb(e)})[0]},wb=function(){return Cb().uid},Tb=function(){return Cb().gen}})),Db,Ob,kb,Ab,jb,Wre=o((()=>{Db=u(m()),Ob=u(m()),bb(),hb(),Eb(),kb=function(e){var t=e.children,n=e.prefix,r=n===void 0?``:n,i=(0,Ob.useState)(function(){return ub(r)})[0];return Db.createElement(fb.Provider,{value:i},t)},Ab=function(e){var t=e.children,n=e.prefix,r=n===void 0?``:n,i=wb(),a=(0,Ob.useState)(function(){return ub(i+`-`+r)})[0];return Db.createElement(fb.Provider,{value:a},t)},jb=function(e){var t=e.name,n=e.children;return Db.createElement(fb.Consumer,null,function(e){return Db.createElement(yb,{name:t,idSource:e,children:n})})}})),Gre=c({UID:()=>yb,UIDConsumer:()=>jb,UIDFork:()=>Ab,UIDReset:()=>kb,generateUID:()=>ob,uid:()=>sb,useUID:()=>wb,useUIDSeed:()=>Tb}),Mb=o((()=>{Wre(),bb(),Eb(),cb()})),Kre=c({UID:()=>yb,UIDConsumer:()=>jb,UIDFork:()=>Ab,UIDReset:()=>kb,default:()=>Nb,generateUID:()=>ob,uid:()=>sb,useUID:()=>wb,useUIDSeed:()=>Tb}),Nb,Pb=o((()=>{Mb(),Mb(),Nb=Gre}));function Fb(){return Fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fb.apply(this,arguments)}function Ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}
23function Lb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ib(Object(n),!0).forEach(function(t){qre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ib(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rb(e){"@babel/helpers - typeof";return Rb=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Rb(e)}function zb(e){return(0,qb.isValidElementType)(e)?e:e&&Rb(e)===`object`?e.component:e}function Bb(e){return e&&Rb(e)===`object`?Rb(e.props)===`object`?Lb(Lb({},e.props),{},{$style:e.style}):{$style:e.style}:{}}function Vb(e){return(0,qb.isValidElementType)(e)?{component:e}:e||{}}function Hb(e,t){var n=zb(e)||t;if(e&&Rb(e)===`object`&&typeof e.props==`function`){var r=Kb.forwardRef(function(t,r){var i=e.props(t),a=Bb(Lb(Lb({},e),{},{props:i}));return Kb.createElement(n,Fb({ref:r},a))});return r.displayName=n.displayName,[r,{}]}return[n,Bb(e)]}function Ub(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Object.assign({},e,t);return Object.keys(n).reduce(function(n,r){return n[r]=Wb(Vb(e[r]),Vb(t[r])),n},{})}function Wb(e,t){var n=Lb(Lb({},e),t);return e.props&&t.props&&(n.props=Gb(e.props,t.props)),e.style&&t.style&&(n.style=Gb(e.style,t.style)),n}function Gb(e,t){return Rb(e)===`object`&&Rb(t)===`object`?zv({},e,t):function(){return zv({},typeof e==`function`?e.apply(void 0,arguments):e,typeof t==`function`?t.apply(void 0,arguments):t)}}var Kb,qb,Jb=o((()=>{Kb=u(m()),qb=u(rt()),Bv()}));function Jre(e){var t=e.type,n=e.tagName;return!!(n===`INPUT`&&ex[t]&&!e.readOnly||n===`TEXTAREA`&&!e.readOnly||e.isContentEditable)}function Yre(e){e.metaKey||e.altKey||e.ctrlKey||(Qb=!0)}function Yb(){Qb=!1}function Xre(){this.visibilityState===`hidden`&&$b&&(Qb=!0)}function Zre(e){e.addEventListener(`keydown`,Yre,!0),e.addEventListener(`mousedown`,Yb,!0),e.addEventListener(`pointerdown`,Yb,!0),e.addEventListener(`touchstart`,Yb,!0),e.addEventListener(`visibilitychange`,Xre,!0)}function Xb(e){try{return e.target.matches(`:focus-visible`)}catch{}return Qb||Jre(e.target)}function Qre(e){!Zb&&e!=null&&(Zb=!0,Zre(e.ownerDocument))}var Zb,Qb,$b,ex,tx,nx,rx=o((()=>{Zb=!1,Qb=!0,$b=!1,ex={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0},tx=function(e,t){return function(n){typeof e.onFocus==`function`&&e.onFocus(n),t(n)}},nx=function(e,t){return function(n){typeof e.onBlur==`function`&&e.onBlur(n),t(n)}}}));function ix(e){"@babel/helpers - typeof";return ix=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ix(e)}function ax(){return ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ax.apply(this,arguments)}function ox(e,t){return tie(e)||eie(e,t)||cx(e,t)||$re()}function $re(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 24In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eie(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function tie(e){if(Array.isArray(e))return e}function sx(e){return lx(e)||rie(e)||cx(e)||nie()}function nie(){throw TypeError(`Invalid attempt to spread non-iterable instance. 25In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cx(e,t){if(e){if(typeof e==`string`)return ux(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ux(e,t)}}function rie(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function lx(e){if(Array.isArray(e))return ux(e)}function ux(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dx(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function fx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
25function px(e,t,n){return t&&fx(e.prototype,t),n&&fx(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function mx(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&hx(e,t)}function hx(e,t){return hx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hx(e,t)}function gx(e){var t=yx();return function(){var n=bx(e),r;if(t){var i=bx(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _x(this,r)}}function _x(e,t){if(t&&(ix(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return vx(e)}function vx(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function yx(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bx(e){return bx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bx(e)}function xx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sx(){}var Cx,wx,Tx,Ex,Dx,Ox,kx,Ax=o((()=>{Cx=u(m()),Vy(),Jb(),rx(),wx=W(`div`,{}),wx.displayName=`StyledAppContainer`,Tx=W(`div`,{}),Tx.displayName=`StyledLayersContainer`,Ex=Cx.createContext({addEscapeHandler:Sx,removeEscapeHandler:Sx,addKeyDownHandler:Sx,removeKeyDownHandler:Sx,addKeyUpHandler:Sx,removeKeyUpHandler:Sx,addKeyPressHandler:Sx,removeKeyPressHandler:Sx,addDocClickHandler:Sx,removeDocClickHandler:Sx,host:void 0,zIndex:void 0}),Dx=Ex.Provider,Ox=Ex.Consumer,kx=function(e){mx(n,e);var t=gx(n);function n(e){var r;return dx(this,n),r=t.call(this,e),xx(vx(r),`host`,Cx.createRef()),xx(vx(r),`containerRef`,Cx.createRef()),xx(vx(r),`onDocumentClick`,function(e){var t=r.state.docClickHandlers[r.state.docClickHandlers.length-1];t&&t(e)}),xx(vx(r),`onKeyDown`,function(e){var t=r.state.keyDownHandlers[r.state.keyDownHandlers.length-1];t&&t(e)}),xx(vx(r),`onKeyUp`,function(e){if(e.key===`Escape`){var t=r.state.escapeKeyHandlers[r.state.escapeKeyHandlers.length-1];t&&t()}var n=r.state.keyUpHandlers[r.state.keyUpHandlers.length-1];n&&n(e)}),xx(vx(r),`onKeyPress`,function(e){var t=r.state.keyPressHandlers[r.state.keyPressHandlers.length-1];t&&t(e)}),xx(vx(r),`onAddEscapeHandler`,function(e){r.setState(function(t){return{escapeKeyHandlers:[].concat(sx(t.escapeKeyHandlers),[e])}})}),xx(vx(r),`onRemoveEscapeHandler`,function(e){r.setState(function(t){return{escapeKeyHandlers:t.escapeKeyHandlers.filter(function(t){return t!==e})}})}),xx(vx(r),`onAddKeyDownHandler`,function(e){r.setState(function(t){return{keyDownHandlers:[].concat(sx(t.keyDownHandlers),[e])}})}),xx(vx(r),`onRemoveKeyDownHandler`,function(e){r.setState(function(t){return{keyDownHandlers:t.keyDownHandlers.filter(function(t){return t!==e})}})}),xx(vx(r),`onAddKeyUpHandler`,function(e){r.setState(function(t){return{keyUpHandlers:[].concat(sx(t.keyUpHandlers),[e])}})}),xx(vx(r),`onRemoveKeyUpHandler`,function(e){r.setState(function(t){return{keyUpHandlers:t.keyUpHandlers.filter(function(t){return t!==e})}})}),xx(vx(r),`onAddKeyPressHandler`,function(e){r.setState(function(t){return{keyPressHandlers:[].concat(sx(t.keyPressHandlers),[e])}})}),xx(vx(r),`onRemoveKeyPressHandler`,function(e){r.setState(function(t){return{keyPressHandlers:t.keyPressHandlers.filter(function(t){return t!==e})}})}),xx(vx(r),`onAddDocClickHandler`,function(e){r.setState(function(t){return{docClickHandlers:[].concat(sx(t.docClickHandlers),[e])}})}),xx(vx(r),`onRemoveDocClickHandler`,function(e){r.setState(function(t){return{docClickHandlers:t.docClickHandlers.filter(function(t){return t!==e})}})}),r.state={escapeKeyHandlers:[],keyDownHandlers:[],keyUpHandlers:[],keyPressHandlers:[],docClickHandlers:[]},r}return px(n,[{key:`componentDidMount`,value:function(){this.forceUpdate(),Qre(this.containerRef.current),t
25ypeof document<`u`&&(document.addEventListener(`keydown`,this.onKeyDown),document.addEventListener(`keyup`,this.onKeyUp),document.addEventListener(`keypress`,this.onKeyPress),document.addEventListener(`mousedown`,this.onDocumentClick))}},{key:`componentWillUnmount`,value:function(){typeof document<`u`&&(document.removeEventListener(`keydown`,this.onKeyDown),document.removeEventListener(`keyup`,this.onKeyUp),document.removeEventListener(`keypress`,this.onKeyPress),document.removeEventListener(`mousedown`,this.onDocumentClick))}},{key:`render`,value:function(){var e=this,t=this.props.overrides,n=t===void 0?{}:t,r=ox(Hb(n.AppContainer,wx),2),i=r[0],a=r[1],o=ox(Hb(n.LayersContainer,Tx),2),s=o[0],c=o[1];return Cx.createElement(Ox,null,function(t){var n=t.host;return Cx.createElement(Dx,{value:{host:n||e.host.current,zIndex:e.props.zIndex,addEscapeHandler:e.onAddEscapeHandler,removeEscapeHandler:e.onRemoveEscapeHandler,addKeyDownHandler:e.onAddKeyDownHandler,removeKeyDownHandler:e.onRemoveKeyDownHandler,addKeyUpHandler:e.onAddKeyUpHandler,removeKeyUpHandler:e.onRemoveKeyUpHandler,addKeyPressHandler:e.onAddKeyPressHandler,removeKeyPressHandler:e.onRemoveKeyPressHandler,addDocClickHandler:e.onAddDocClickHandler,removeDocClickHandler:e.onRemoveDocClickHandler}},Cx.createElement(i,ax({},a,{ref:e.containerRef}),e.props.children),Cx.createElement(s,ax({},c,{ref:e.host})))})}}]),n}(Cx.Component)}));function jx(e){"@babel/helpers - typeof";return jx=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},jx(e)}function Mx(){return Mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mx.apply(this,arguments)}function Nx(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Px(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fx(e,t,n){return t&&Px(e.prototype,t),n&&Px(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Ix(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Lx(e,t)}function Lx(e,t){return Lx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lx(e,t)}function Rx(e){var t=Vx();return function(){var n=Hx(e),r;if(t){var i=Hx(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return zx(this,r)}}function zx(e,t){if(t&&(jx(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Bx(e)}function Bx(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Vx(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hx(e){return Hx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hx(e)}function Ux(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wx(e){return Gx.createElement(Ox,null,function(t){var n=t.host,r=t.zIndex;return Gx.createElement(Jx,Mx({},e,{host:n,zIndex:r}))})}var Gx,Kx,qx,Jx,Yx=o((()=>{Gx=u(m()),Kx=u(Kt()),Vy(),Ax(),qx=W(`div`,function(e){return{position:`absolute`,top:0,left:0,right:0,zIndex:e.$zIndex||null}}),qx.displayName=`Container`,Jx=function(e){Ix(n,e);var t=Rx(n);function n(){var e;Nx(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),Ux(Bx(e),`state`,{container:null}),Ux(Bx(e),`onEscape`,function(){e.props.onEscape&&e.props.onEscape()}),Ux(Bx(e),`onKeyDown`,function(t){e.props.onKeyDown&&e.props.onKeyDown(t)}),Ux(Bx(e),`onKeyUp`,function(t){e.props.onKeyUp&&e.props.onKeyUp(t)}),Ux(Bx(e),`onKeyPress`,function(t){e.props.onKeyPress&&e.props.onKeyPress(t)}),Ux(Bx(e),`onDocumentClick`,function(t){e.props.onDocumentClick&&e.props.onDocumentClick(t)}),e}return Fx(n,[{key:`componentDidMount`,value:function(){this.context.addEscapeHandler(this.onEscape),this.context.addKeyDownHandler(this.onKeyDown),this.context.addKeyUpHandler(this.onKeyUp),this.context.addKeyPressHandler(this.onKeyPress),this.props.isHoverLayer||this.context.addDocClickHandler(this.onDocumentClick);var e=this.props,t=e.onMount,n=e.mountNode,r=e.host;if(n){t&&t();return}var i=r===void 0?document.body:r;i&&this.addContainer(i)}},{key:`componentDidUpdate`,value:function(e){var t=this.props,n=t.host;t.mountNode||(n&&n!==e.host&&e.host===null&&this.addContainer(n),e.isHoverLayer!=this.props.isHoverLayer&&(this.props.isHoverLayer?this.context.removeDocClickHandler(this.onDocumentClick):this.context.addDocClickHandler(this.onDocumentClick)))}},{key:`componentWillUnmount`,value:function(){this.context.removeEscapeHandler(this.onEscape),this.context.removeKeyDownHandler(this.onKeyDown),this.context.removeKeyUpHandler(this.onKeyUp),this.context.removeKeyPressHandler(this.onKeyPress),this.context.removeDocClickHandler(this.onDocumentClick),this.props.onUnmount&&this.props.onUnmount();var e=this.props.host,t=this.state.container;e&&t&&e.contains(t)&&e.removeChild(t)}},{key:`addContainer`,value:function(e){var t=this.props,n=t.index,r=t.mountNode,i=t.onMount;if(!r&&e){var a=e.ownerDocument.createElement(`div`),o=typeof n==`
25number`?e.children[n]:null;o?e.insertBefore(a,o):e.appendChild(a),this.setState({container:a},function(){i&&i()})}}},{key:`render`,value:function(){var e=this.state.container,t=this.props,n=t.children,r=t.mountNode,i=t.zIndex,a=i?Gx.createElement(qx,{$zIndex:i},n):n;return typeof document<`u`?r?Kx.createPortal(a,r):e?Kx.createPortal(a,e):null:null}}]),n}(Gx.Component),Ux(Jx,`contextType`,Ex)}));function Xx(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Zx(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},aC))}}function Qx(e){return e&&{}.toString.call(e)===`[object Function]`}function $x(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function eS(e){return e.nodeName===`HTML`?e:e.parentNode||e.host}function tS(e){if(!e)return document.body;switch(e.nodeName){case`HTML`:case`BODY`:return e.ownerDocument.body;case`#document`:return e.body}var t=$x(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:tS(eS(e))}function nS(e){return e&&e.referenceNode?e.referenceNode:e}function rS(e){return e===11?sC:e===10?cC:sC||cC}function iS(e){if(!e)return document.documentElement;for(var t=rS(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r===`BODY`||r===`HTML`?e?e.ownerDocument.documentElement:document.documentElement:[`TH`,`TD`,`TABLE`].indexOf(n.nodeName)!==-1&&$x(n,`position`)===`static`?iS(n):n}function aS(e){var t=e.nodeName;return t===`BODY`?!1:t===`HTML`||iS(e.firstElementChild)===e}function oS(e){return e.parentNode===null?e:oS(e.parentNode)}function sS(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return aS(o)?o:iS(o);var s=oS(e);return s.host?sS(s.host,t):sS(e,oS(t).host)}function cS(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:`top`)===`top`?`scrollTop`:`scrollLeft`,n=e.nodeName;if(n===`BODY`||n===`HTML`){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function lS(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=cS(t,`top`),i=cS(t,`left`),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function uS(e,t){var n=t===`x`?`Left`:`Top`,r=n===`Left`?`Right`:`Bottom`;return parseFloat(e[`border`+n+`Width`])+parseFloat(e[`border`+r+`Width`])}function dS(e,t,n,r){return Math.max(t[`offset`+e],t[`scroll`+e],n[`client`+e],n[`offset`+e],n[`scroll`+e],rS(10)?parseInt(n[`offset`+e])+parseInt(r[`margin`+(e===`Height`?`Top`:`Left`)])+parseInt(r[`margin`+(e===`Height`?`Bottom`:`Right`)]):0)}function fS(e){var t=e.body,n=e.documentElement,r=rS(10)&&getComputedStyle(n);return{height:dS(`Height`,t,n,r),width:dS(`Width`,t,n,r)}}function pS(e){return fC({},e,{right:e.left+e.width,bottom:e.top+e.height})}function mS(e){var t={};try{if(rS(10)){t=e.getBoundingClientRect();var n=cS(e,`top`),r=cS(e,`left`);t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a=e.nodeName===`HTML`?fS(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,s=a.height||e.clientHeight||i.height,c=e.offsetWidth-o,l=e.offsetHeight-s;if(c||l){var u=$x(e);c-=uS(u,`x`),l-=uS(u,`y`),i.width-=c,i.height-=l}return pS(i)}function hS(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=rS(10),i=t.nodeName===`HTML`,a=mS(e),o=mS(t),s=tS(e),c=$x(t),l=parseFloat(c.borderTopWidth),u=parseFloat(c.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=pS({top:a.top-o.top-l,left:a.left-o.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var f=parseFloat(c.marginTop),p=parseFloat(c.marginLeft);d.top-=l-f,d.bottom-=l-f,d.left-=u-p,d.right-=u-p,d.marginTop=f,d.marginLeft=p}return(r&&!n?t.contains(s):t===s&&s.nodeName!==`BODY`)&&(d=lS(d,t)),d}function gS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=hS(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:cS(n),s=t?0:cS(n,`left`);
25return pS({top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a})}function _S(e){var t=e.nodeName;if(t===`BODY`||t===`HTML`)return!1;if($x(e,`position`)===`fixed`)return!0;var n=eS(e);return n?_S(n):!1}function vS(e){if(!e||!e.parentElement||rS())return document.documentElement;for(var t=e.parentElement;t&&$x(t,`transform`)===`none`;)t=t.parentElement;return t||document.documentElement}function yS(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?vS(e):sS(e,nS(t));if(r===`viewport`)a=gS(o,i);else{var s=void 0;r===`scrollParent`?(s=tS(eS(t)),s.nodeName===`BODY`&&(s=e.ownerDocument.documentElement)):s=r===`window`?e.ownerDocument.documentElement:r;var c=hS(s,o,i);if(s.nodeName===`HTML`&&!_S(o)){var l=fS(e.ownerDocument),u=l.height,d=l.width;a.top+=c.top-c.marginTop,a.bottom=u+c.top,a.left+=c.left-c.marginLeft,a.right=d+c.left}else a=c}n||=0;var f=typeof n==`number`;return a.left+=f?n:n.left||0,a.top+=f?n:n.top||0,a.right-=f?n:n.right||0,a.bottom-=f?n:n.bottom||0,a}function bS(e){return e.width*e.height}function xS(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf(`auto`)===-1)return e;var o=yS(n,r,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},c=Object.keys(s).map(function(e){return fC({key:e},s[e],{area:bS(s[e])})}).sort(function(e,t){return t.area-e.area}),l=c.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=l.length>0?l[0].key:c[0].key,d=e.split(`-`)[1];return u+(d?`-`+d:``)}function SS(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return hS(n,r?vS(t):sS(t,nS(n)),r)}function CS(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function wS(e){var t={left:`right`,right:`left`,bottom:`top`,top:`bottom`};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function TS(e,t,n){n=n.split(`-`)[0];var r=CS(e),i={width:r.width,height:r.height},a=[`right`,`left`].indexOf(n)!==-1,o=a?`top`:`left`,s=a?`left`:`top`,c=a?`height`:`width`,l=a?`width`:`height`;return i[o]=t[o]+t[c]/2-r[c]/2,n===s?i[s]=t[s]-r[l]:i[s]=t[wS(s)],i}function ES(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function DS(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=ES(e,function(e){return e[t]===n});return e.indexOf(r)}function OS(e,t,n){return(n===void 0?e:e.slice(0,DS(e,`name`,n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Qx(n)&&(t.offsets.popper=pS(t.offsets.popper),t.offsets.reference=pS(t.offsets.reference),t=n(t,e))}),t}function kS(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=SS(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=xS(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=TS(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?`fixed`:`absolute`,e=OS(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function AS(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function jS(e){for(var t=[!1,`ms`,`Webkit`,`Moz`,`O`],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],a=i?``+i+n:e;if(document.body.style[a]!==void 0)return a}return null}function MS(){return this.state.isDestroyed=!0,AS(this.modifiers,`applyStyle`)&&(this.popper.removeAttribute(`x-placement`),this.popper.style.position=``,this.popper.style.top=``,this.popper.style.left=``,this.popper.style.right=``,this.popper.style.bottom=``,this.popper.style.willChange=``,this.popper.style[jS(`transform`)]=``),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function NS(e){var t=e.ownerDocument;return t?t.defaultView:window}function PS(e,t,n,r){var i=e.nodeName===`BODY`,a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||PS(tS(a.parentNode),t,n,r),r.push(a)}function FS(e,t,n,r){n.updateBound=r,NS(e).addEventListener(`resize`,n.updateBound,{passive:!0});var i=tS(e);return PS(i,`scroll`,n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function IS(){this.state.eventsEnabled||(this.state=FS(this.reference,this.options,this.state,this.scheduleUpdate))}function LS(e,t){return NS(e).removeEventListener(`resize`,t.updateBound),t.scrollParents.forEac
vendor: 5,299 bytes, line 25
25h(function(e){e.removeEventListener(`scroll`,t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function RS(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=LS(this.reference,this.state))}function zS(e){return e!==``&&!isNaN(parseFloat(e))&&isFinite(e)}function BS(e,t){Object.keys(t).forEach(function(n){var r=``;[`width`,`height`,`top`,`right`,`bottom`,`left`].indexOf(n)!==-1&&zS(t[n])&&(r=`px`),e.style[n]=t[n]+r})}function VS(e,t){Object.keys(t).forEach(function(n){t[n]===!1?e.removeAttribute(n):e.setAttribute(n,t[n])})}function HS(e){return BS(e.instance.popper,e.styles),VS(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&BS(e.arrowElement,e.arrowStyles),e}function US(e,t,n,r,i){var a=SS(i,t,e,n.positionFixed),o=xS(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute(`x-placement`,o),BS(t,{position:n.positionFixed?`fixed`:`absolute`}),n}function WS(e,t){var n=e.offsets,r=n.popper,i=n.reference,a=Math.round,o=Math.floor,s=function(e){return e},c=a(i.width),l=a(r.width),u=[`left`,`right`].indexOf(e.placement)!==-1,d=e.placement.indexOf(`-`)!==-1,f=c%2==l%2,p=c%2==1&&l%2==1,m=t?u||d||f?a:o:s,h=t?a:s;return{left:m(p&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:m(r.right)}}function GS(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=ES(e.instance.modifiers,function(e){return e.name===`applyStyle`}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=a===void 0?t.gpuAcceleration:a,s=iS(e.instance.popper),c=mS(s),l={position:i.position},u=WS(e,window.devicePixelRatio<2||!pC),d=n===`bottom`?`top`:`bottom`,f=r===`right`?`left`:`right`,p=jS(`transform`),m=void 0,h=void 0;if(h=d===`bottom`?s.nodeName===`HTML`?-s.clientHeight+u.bottom:-c.height+u.bottom:u.top,m=f===`right`?s.nodeName===`HTML`?-s.clientWidth+u.right:-c.width+u.right:u.left,o&&p)l[p]=`translate3d(`+m+`px, `+h+`px, 0)`,l[d]=0,l[f]=0,l.willChange=`transform`;else{var g=d===`bottom`?-1:1,_=f===`right`?-1:1;l[d]=h*g,l[f]=m*_,l.willChange=d+`, `+f}return e.attributes=fC({},{"x-placement":e.placement},e.attributes),e.styles=fC({},l,e.styles),e.arrowStyles=fC({},e.offsets.arrow,e.arrowStyles),e}function KS(e,t,n){var r=ES(e,function(e){return e.name===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var a="`"+t+"`",o="`"+n+"`";console.warn(o+` modifier is required by `+a+` modifier in order to work, be sure to include it before `+a+`!`)}return i}function qS(e,t){var n;if(!KS(e.instance.modifiers,`arrow`,`keepTogether`))return e;var r=t.element;if(typeof r==`string`){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split(`-`)[0],a=e.offsets,o=a.popper,s=a.reference,c=[`left`,`right`].indexOf(i)!==-1,l=c?`height`:`width`,u=c?`Top`:`Left`,d=u.toLowerCase(),f=c?`left`:`top`,p=c?`bottom`:`right`,m=CS(r)[l];s[p]-m<o[d]&&(e.offsets.popper[d]-=o[d]-(s[p]-m)),s[d]+m>o[p]&&(e.offsets.popper[d]+=s[d]+m-o[p]),e.offsets.popper=pS(e.offsets.popper);var h=s[d]+s[l]/2-m/2,g=$x(e.instance.popper),_=parseFloat(g[`margin`+u]),v=parseFloat(g[`border`+u+`Width`]),y=h-e.offsets.popper[d]-_-v;return y=Math.max(Math.min(o[l]-m,y),0),e.arrowElement=r,e.offsets.arrow=(n={},dC(n,d,Math.round(y)),dC(n,f,``),n),e}function JS(e){return e===`end`?`start`:e===`start`?`end`:e}function YS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=hC.indexOf(e),r=hC.slice(n+1).concat(hC.slice(0,n));return t?r.reverse():r}function XS(e,t){if(AS(e.instance.modifiers,`inner`)||e.flipped&&e.placement===e.originalPlacement)return e;var n=yS(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split(`-`)[0],i=wS(r),a=e.placement.split(`-`)[1]||``,o=[];switch(t.behavior){case gC.FLIP:o=[r,i];break;case gC.CLOCKWISE:o=YS(r);break;case gC.COUNTERCLOCKWISE:o=YS(r,!0);break;default:o=t.behavior}return o.forEach(function(s,c){if(r!==s||o.length===c+1)return e;r=e.placement.split(`-`)[0],i=wS(r);var l=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f=r===`left`&&d(l.right)>d(u.left)||r===`right`&&d(l.left)<d(u.right)||r===`top`&&d(l.bottom)>d(u.top)||r===`bottom`&&d(l.top)<d(u.bottom),p=d(l.left)<d(n.left),m=d(l.right)>d(n.right),h=d(l.top)<d(n.top),g=d(l.bottom)>d(n.bottom),_=r===`left`&&p||r===`right`&&m||r===`top`&&h||r===`bottom`&&g,v=[`top`,`bottom`].indexOf(r)!==-1,y=!!t.flipVariations&&(v&&a===`start`&&p||v&&a===`end`&&m||!v&&a===`start`&&h||!v&&a===`end`&&g),b=!!t.flipVariationsByContent&&(v&&a===`start`&&m||v&&a===`end`&&p||!v&&a===`start`&&g||!v&&a===`end`&&h),x=y||b;(f||_||x)&&(e.flipped=!0,(f||_)&&(r=o[c+1]),x&&(a=JS(a)),e.placement=r+(a?`-`+a:``),e.offsets.popper=fC({},e.offsets.popper,TS(e.instance.popper,e.offsets.reference,e.placement)),e=OS(e.instance.modifiers,e,`flip`))}),e}function ZS(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split(`-`)[0],a=Math.floor,o=[`top`,`bottom`].indexOf(i)!==-1,s=o?`right`:`bottom`,c=o?`left`:`top`,l=o?`width`
25:`height`;return n[s]<a(r[c])&&(e.offsets.popper[c]=a(r[c])-n[l]),n[c]>a(r[s])&&(e.offsets.popper[c]=a(r[s])),e}function QS(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(o.indexOf(`%`)===0){var s=void 0;switch(o){case`%p`:s=n;break;default:s=r}return pS(s)[t]/100*a}else if(o===`vh`||o===`vw`){var c=void 0;return c=o===`vh`?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*a}else return a}function $S(e,t,n,r){var i=[0,0],a=[`right`,`left`].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=o.indexOf(ES(o,function(e){return e.search(/,|\s/)!==-1}));o[s]&&o[s].indexOf(`,`)===-1&&console.warn(`Offsets separated by white space(s) are deprecated, use a comma (,) instead.`);var c=/\s*,\s*|\s+/,l=s===-1?[o]:[o.slice(0,s).concat([o[s].split(c)[0]]),[o[s].split(c)[1]].concat(o.slice(s+1))];return l=l.map(function(e,r){var i=(r===1?!a:a)?`height`:`width`,o=!1;return e.reduce(function(e,t){return e[e.length-1]===``&&[`+`,`-`].indexOf(t)!==-1?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return QS(e,i,t,n)})}),l.forEach(function(e,t){e.forEach(function(n,r){zS(n)&&(i[t]+=n*(e[r-1]===`-`?-1:1))})}),i}function eC(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=r.split(`-`)[0],c=void 0;return c=zS(+n)?[+n,0]:$S(n,a,o,s),s===`left`?(a.top+=c[0],a.left-=c[1]):s===`right`?(a.top+=c[0],a.left+=c[1]):s===`top`?(a.left+=c[0],a.top-=c[1]):s===`bottom`&&(a.left+=c[0],a.top+=c[1]),e.popper=a,e}function tC(e,t){var n=t.boundariesElement||iS(e.instance.popper);e.instance.reference===n&&(n=iS(n));var r=jS(`transform`),i=e.instance.popper.style,a=i.top,o=i.left,s=i[r];i.top=``,i.left=``,i[r]=``;var c=yS(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=s,t.boundaries=c;var l=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),dC({},e,n)},secondary:function(e){var n=e===`right`?`left`:`top`,r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-(e===`right`?u.width:u.height))),dC({},n,r)}};return l.forEach(function(e){var t=[`left`,`top`].indexOf(e)===-1?`secondary`:`primary`;u=fC({},u,d[t](e))}),e.offsets.popper=u,e}function nC(e){var t=e.placement,n=t.split(`-`)[0],r=t.split(`-`)[1];if(r){var i=e.offsets,a=i.reference,o=i.popper,s=[`bottom`,`top`].indexOf(n)!==-1,c=s?`left`:`top`,l=s?`width`:`height`,u={start:dC({},c,a[c]),end:dC({},c,a[c]+a[l]-o[l])};e.offsets.popper=fC({},o,u[r])}return e}function rC(e){if(!KS(e.instance.modifiers,`hide`,`preventOverflow`))return e;var t=e.offsets.reference,n=ES(e.instance.modifiers,function(e){return e.name===`preventOverflow`}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes[`x-out-of-boundaries`]=``}else{if(e.hide===!1)return e;e.hide=!1,e.attributes[`x-out-of-boundaries`]=!1}return e}function iie(e){var t=e.placement,n=t.split(`-`)[0],r=e.offsets,i=r.popper,a=r.reference,o=[`left`,`right`].indexOf(n)!==-1,s=[`top`,`left`].indexOf(n)===-1;return i[o?`left`:`top`]=a[n]-(s?i[o?`width`:`height`]:0),e.placement=wS(t),e.offsets.popper=pS(i),e}var iC,aC,oC,sC,cC,lC,uC,dC,fC,pC,mC,hC,gC,_C,vC,aie=o((()=>{iC=typeof window<`u`&&typeof document<`u`&&typeof navigator<`u`,aC=function(){for(var e=[`Edge`,`Trident`,`Firefox`],t=0;t<e.length;t+=1)if(iC&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),oC=iC&&window.Promise?Xx:Zx,sC=iC&&!!(window.MSInputMethodContext&&document.documentMode),cC=iC&&/MSIE 10/.test(navigator.userAgent),lC=function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)},uC=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),dC=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},fC=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pC=iC&&/Firefox/i.test(navigator.userAgent),mC=[`auto-start`,`auto`,`auto-end`,`top-start`,`top`,`top-end`,`right-start`,`r
25ight`,`right-end`,`bottom-end`,`bottom`,`bottom-start`,`left-end`,`left`,`left-start`],hC=mC.slice(3),gC={FLIP:`flip`,CLOCKWISE:`clockwise`,COUNTERCLOCKWISE:`counterclockwise`},_C={placement:`bottom`,positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:nC},offset:{order:200,enabled:!0,fn:eC,offset:0},preventOverflow:{order:300,enabled:!0,fn:tC,priority:[`left`,`right`,`top`,`bottom`],padding:5,boundariesElement:`scrollParent`},keepTogether:{order:400,enabled:!0,fn:ZS},arrow:{order:500,enabled:!0,fn:qS,element:`[x-arrow]`},flip:{order:600,enabled:!0,fn:XS,behavior:`flip`,padding:5,boundariesElement:`viewport`,flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:iie},hide:{order:800,enabled:!0,fn:rC},computeStyle:{order:850,enabled:!0,fn:GS,gpuAcceleration:!0,x:`bottom`,y:`right`},applyStyle:{order:900,enabled:!0,fn:HS,onLoad:US,gpuAcceleration:void 0}}},vC=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};lC(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=oC(this.update.bind(this)),this.options=fC({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(fC({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=fC({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return fC({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&Qx(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return uC(e,[{key:`update`,value:function(){return kS.call(this)}},{key:`destroy`,value:function(){return MS.call(this)}},{key:`enableEventListeners`,value:function(){return IS.call(this)}},{key:`disableEventListeners`,value:function(){return RS.call(this)}}]),e}(),vC.Utils=(typeof window<`u`?window:global).PopperUtils,vC.placements=mC,vC.Defaults=_C}));function oie(e){return e.replace(/(Top|Left)$/,`-start`).replace(/(Right|Bottom)$/,`-end`)}function yC(e){return{top:Math.floor(e.top||0),left:Math.floor(e.left||0)}}var sie=o((()=>{})),bC,xC=o((()=>{bC={auto:`auto`,topLeft:`topLeft`,top:`top`,topRight:`topRight`,rightTop:`rightTop`,right:`right`,rightBottom:`rightBottom`,bottomRight:`bottomRight`,bottom:`bottom`,bottomLeft:`bottomLeft`,leftBottom:`leftBottom`,left:`left`,leftTop:`leftTop`}}));function SC(e){"@babel/helpers - typeof";return SC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},SC(e)}function CC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CC(Object(n),!0).forEach(function(t){kC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cie(e,t){if(e==null)return{};var n=lie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function uie(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function TC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function die(e,t,n){return t&&TC(e.prototype,t),n&&TC(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function fie(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&EC(e,t)}
25function EC(e,t){return EC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},EC(e,t)}function pie(e){var t=hie();return function(){var n=OC(e),r;if(t){var i=OC(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return mie(this,r)}}function mie(e,t){if(t&&(SC(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return DC(e)}function DC(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function hie(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function OC(e){return OC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OC(e)}function kC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AC,jC,MC,gie=o((()=>{AC=u(m()),aie(),sie(),xC(),jC=[`modifiers`],MC=function(e){fie(n,e);var t=pie(n);function n(){var e;uie(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),kC(DC(e),`popper`,void 0),kC(DC(e),`popperHeight`,0),kC(DC(e),`popperWidth`,0),kC(DC(e),`anchorHeight`,0),kC(DC(e),`anchorWidth`,0),kC(DC(e),`state`,{isMounted:!1}),kC(DC(e),`onPopperUpdate`,function(t){var n={popper:yC(t.offsets.popper),arrow:t.offsets.arrow?yC(t.offsets.arrow):{top:0,left:0}};e.props.onPopperUpdate(n,t)}),e}return die(n,[{key:`componentDidMount`,value:function(){this.setState({isMounted:!0})}},{key:`componentDidUpdate`,value:function(e,t){if(this.props.anchorRef){var n=this.props.anchorRef.getBoundingClientRect(),r=n.height,i=n.width;(this.anchorHeight!==r||this.anchorWidth!==i)&&(this.anchorHeight=r,this.anchorWidth=i,this.popper&&this.popper.scheduleUpdate())}if(this.props.popperRef){var a=this.props.popperRef.getBoundingClientRect(),o=a.height,s=a.width;(this.popperHeight!==o||this.popperWidth!==s)&&(this.popperHeight=o,this.popperWidth=s,this.popper&&this.popper.scheduleUpdate()),this.state.isMounted!==t.isMounted&&this.props.anchorRef&&this.initializePopper()}}},{key:`componentWillUnmount`,value:function(){this.destroyPopover()}},{key:`initializePopper`,value:function(){var e=this.props,t=e.placement,n=e.popperOptions,r=n.modifiers,i=cie(n,jC);!this.props.anchorRef||!this.props.popperRef||(this.popper=new vC(this.props.anchorRef,this.props.popperRef,wC({placement:oie(t),modifiers:wC({arrow:{element:this.props.arrowRef,enabled:!!this.props.arrowRef},computeStyle:{gpuAcceleration:!1},applyStyle:{enabled:!1},applyReactStyle:{enabled:!0,fn:this.onPopperUpdate,order:900},preventOverflow:{enabled:!0}},r)},i)))}},{key:`destroyPopover`,value:function(){this.popper&&(this.popper.destroy(),delete this.popper)}},{key:`render`,value:function(){return this.props.children||null}}]),n}(AC.Component),kC(MC,`defaultProps`,{anchorRef:null,onPopperUpdate:function(){return null},placement:bC.auto,popperRef:null,popperOptions:{}})})),_ie=o((()=>{})),vie=c({Layer:()=>Wx,LayersContext:()=>Ex,LayersManager:()=>kx,TETHER_PLACEMENT:()=>bC,TetherBehavior:()=>MC}),NC=o((()=>{Ax(),Yx(),gie(),xC(),_ie()})),yie=s((e=>{function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=s(m()),r=(Pb(),d(Kre)),i=(NC(),d(vie)),a=(Vy(),d(zy));function o(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function s(e,n){if(!n&&e&&e.__esModule)return e;if(e===null||t(e)!==`object`&&typeof e!=`function`)return{default:e};var r=o(n);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!==`default`&&Object.prototype.hasOwnProperty.call(e,s)){var c=a?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(i,s,c):i[s]=e[s]}return i.default=e,r&&r.set(e,i),i}e.default=function(e){var t=e.children,o=e.overrides,s=e.theme,c=e.zIndex;return n.createElement(i.LayersManager,{zIndex:c,overrides:o},n.createElement(r.UIDReset,{prefix:`bui`},n.createElement(a.ThemeProvider,{theme:s},t)))}})),bie=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=n;function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e){e||={};for(var i=arguments.length<=1?0:arguments.length-1,a,o,s=0;s<i;s++)for(var c in a=(s+1<1||arguments.length<=s+1?void 0:arguments[s+1])||{},a)t(a[c])!==void 0&&(o=a[c],r(o)?e[c]=n(e[c]||Array.isArray(o)&&[]||{},o):e[c]=o);return e}function r(e){return Array.isArray(e)||{}.toString.call(e)==`[object Object]`}})),PC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getOverride=f,e.getOverrideProps=p,e.getOverrides=g,e.mergeConfigurationOverrides=y,e.mergeOverride=v,e.mergeOverrides=_,e.toObjectOverride=h,e.useOverrides=b;var t=o(m()),n=rt(),r=i(bie());
25function i(e){return e&&e.__esModule?e:{default:e}}function a(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||d(e)!==`object`&&typeof e!=`function`)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!==`default`&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?c(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){"@babel/helpers - typeof";return d=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},d(e)}function f(e){return(0,n.isValidElementType)(e)?e:e&&d(e)===`object`?e.component:e}function p(e){return e&&d(e)===`object`?d(e.props)===`object`?l(l({},e.props),{},{$style:e.style}):{$style:e.style}:{}}function h(e){return(0,n.isValidElementType)(e)?{component:e}:e||{}}function g(e,n){var r=f(e)||n;if(e&&d(e)===`object`&&typeof e.props==`function`){var i=t.forwardRef(function(n,i){var a=e.props(n),o=p(l(l({},e),{},{props:a}));return t.createElement(r,s({ref:i},o))});return i.displayName=r.displayName,[i,{}]}return[r,p(e)]}function _(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Object.assign({},e,t);return Object.keys(n).reduce(function(n,r){return n[r]=v(h(e[r]),h(t[r])),n},{})}function v(e,t){var n=l(l({},e),t);return e.props&&t.props&&(n.props=y(e.props,t.props)),e.style&&t.style&&(n.style=y(e.style,t.style)),n}function y(e,t){return d(e)===`object`&&d(t)===`object`?(0,r.default)({},e,t):function(){return(0,r.default)({},typeof e==`function`?e.apply(void 0,arguments):e,typeof t==`function`?t.apply(void 0,arguments):t)}}function b(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.useMemo(function(){return Object.keys(e).reduce(function(t,r){return t[r]=g(n[r],e[r]),t},{})},[n])}})),{createTheme:xie,lightThemePrimitives:Sie}=u(s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`BaseProvider`,{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,`DarkTheme`,{enumerable:!0,get:function(){return n.DarkTheme}}),Object.defineProperty(e,`DarkThemeMove`,{enumerable:!0,get:function(){return n.DarkThemeMove}}),Object.defineProperty(e,`LightTheme`,{enumerable:!0,get:function(){return n.LightTheme}}),Object.defineProperty(e,`LightThemeMove`,{enumerable:!0,get:function(){return n.LightThemeMove}}),Object.defineProperty(e,`LocaleProvider`,{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,`ThemeConsumer`,{enumerable:!0,get:function(){return t.ThemeConsumer}}),Object.defineProperty(e,`ThemeProvider`,{enumerable:!0,get:function(){return t.ThemeProvider}}),Object.defineProperty(e,`createDarkTheme`,{enumerable:!0,get:function(){return n.createDarkTheme}}),Object.defineProperty(e,`createLightTheme`,{enumerable:!0,get:function(){return n.createLightTheme}}),Object.defineProperty(e,`createTheme`,{enumerable:!0,get:function(){return n.createTheme}}),Object.defineProperty(e,`createThemedStyled`,{enumerable:!0,get:function(){return t.createThemedStyled}}),Object.defineProperty(e,`createThemedUseStyletron`,{enumerable:!0,get:function(){return t.createThemedUseStyletron}}),Object.defineProperty(e,`createThemedWithStyle`,{enumerable:!0,get:function(){return t.createThemedWithStyle}}),Object.defineProperty(e,`darkThemeOverrides`,{enumerable:!0,get:function(){return n.darkThemeOverrides}}),Object.defineProperty(e,`darkThemePrimitives`,{enumerable:!0,get:function(){return n.darkThemePrimitives}}),Object.defineProperty(e,`getOverrides`,{enumerable:!0,get:function(){return a.getOverrides}}),Object.defineProperty(e,`lightThemePrimitives`,{enumerable:!0,get:function(){return n.lightThemePrimitives}}),Object.defineProperty(e,`mergeOverrides`,{enumerable:!0,get:function(){return a.mergeOverrides}}),Object.defineProperty(e,`styled`,{enumerable:!0,get:function(){return t.styled}}),Object.defineProperty(e,`useStyletron`,{enumerable:!0,get:function(){return t.useStyletron}}),Object.defineProperty(e,`withStyle`,{enumerable:!0,get:function(){return t.withStyle}}),Object.defineProperty(e,`withWrapper`,{enumerable:!0,get:function(){return t.withWrapper}});var t=(Vy(),d(zy)),n=(Sy(),d(bre)),r=o((ab(),d(Ure))),i=o(yie()),a=PC();
25function o(e){return e&&e.__esModule?e:{default:e}}}))(),1),Cie=(e,t)=>{let{colors:n,genericFonts:r}=t;return{...e,primaryFontFamily:r.bodyFont,primary100:n.primary,primary200:n.primary,primary300:n.primary,primary400:n.primary,primary500:n.primary,primary600:n.primary,primary700:n.primary,mono100:n.bgColor,mono200:n.secondaryBg,mono300:n.gray30,mono400:n.gray30,mono500:n.gray60,mono600:n.fadedText40,mono700:n.gray60,mono800:n.bodyText,mono900:n.bodyText,mono1000:n.black}},wie=e=>{let{inSidebar:t,colors:n,genericFonts:r,fontSizes:i,lineHeights:a,radii:o}=e,s={fontFamily:r.bodyFont,fontSize:i.sm,fontSizeSm:i.sm,fontWeight:`normal`,lineHeight:a.base,lineHeightTight:a.tight},c=n.secondaryBg,l=t?n.secondaryBg:n.bgColor,u=t?n.bgColor:n.secondaryBg;return{borders:{radius100:o.default,radius200:o.default,radius300:o.default,radius400:o.default,radius500:o.default,useRoundedCorners:!0,buttonBorderRadiusMini:o.sm,buttonBorderRadius:o.default,checkboxBorderRadius:`min(${o.sm}, ${o.maxCheckbox})`,inputBorderRadiusMini:o.sm,inputBorderRadius:o.default,popoverBorderRadius:o.default,surfaceBorderRadius:o.default,tagBorderRadius:o.sm},typography:{font100:{},font150:{...s},font200:{...s},font250:{},font300:{...s},font350:{...s},font400:{...s},font450:{...s},font460:{...s},font470:{...s},font500:{...s},font600:{},LabelXSmall:{...s},LabelSmall:{...s},LabelMedium:{...s},LabelLarge:{...s},ParagraphSmall:{...s}},colors:{white:n.white,black:n.black,primary:n.primary,primaryA:n.primary,backgroundPrimary:n.bgColor,backgroundSecondary:c,backgroundTertiary:n.bgColor,borderOpaque:n.darkenedBgMix25,accent:G_(n.primary,.5),tagPrimarySolidBackground:n.primary,tagPrimaryFontDisabled:n.fadedText40,tagPrimaryOutlinedDisabled:n.transparent,borderSelected:n.primary,contentPrimary:n.bodyText,inputPlaceholder:n.fadedText60,tickFillDisabled:n.fadedText40,tickMarkFill:n.gray20,tickFillSelected:n.primary,datepickerBackground:l,calendarBackgroun
25d:l,calendarForeground:n.bodyText,calendarDayForegroundPseudoSelected:n.bodyText,calendarHeaderBackground:u,calendarHeaderBackgroundActive:u,calendarHeaderForeground:n.bodyText,calendarHeaderForegroundDisabled:n.gray40,calendarDayBackgroundSelected:n.primary,calendarDayBackgroundSelectedHighlighted:n.primary,calendarDayForegroundSelected:n.white,calendarDayForegroundSelectedHighlighted:n.white,calendarDayForegroundPseudoSelectedHighlighted:n.bodyText,menuFontHighlighted:n.bodyText,menuFontSelected:n.bodyText,modalCloseColor:n.bodyText,notificationInfoBackground:n.blueBackgroundColor,notificationInfoText:n.blueTextColor,notificationPositiveBackground:n.greenBackgroundColor,notificationPositiveText:n.greenTextColor,notificationWarningBackground:n.yellowBackgroundColor,notificationWarningText:n.yellowTextColor,notificationNegativeBackground:n.redBackgroundColor,notificationNegativeText:n.redTextColor,progressbarTrackFill:c,tickFill:n.lightenedBg05,tickMarkFillDisabled:n.lightenedBg05,menuFill:l,buttonDisabledFill:n.lightenedBg05,tickFillHover:c,inputFillDisabled:c,inputFillActive:c,toggleTrackFillDisabled:c,tickFillActive:c,sliderTrackFillDisabled:c,inputBorder:n.widgetBorderColor||c,inputFill:c,inputEnhanceFill:c,inputEnhancerFillDisabled:c,buttonDisabledSpinnerBackground:n.gray40,toggleTrackFill:n.gray40,sliderTrackFill:n.gray40,sliderHandleInnerFill:n.gray40,sliderHandleInnerFillDisabled:n.gray40}}},FC=(e,t=Sie)=>xie(Cie(t,e),wie(e)),IC={red:{colorKey:`redColor`,bgColorKey:`redBackgroundColor`},orange:{colorKey:`orangeColor`,bgColorKey:`orangeBackgroundColor`},yellow:{colorKey:`yellowColor`,bgColorKey:`yellowBackgroundColor`},green:{colorKey:`greenColor`,bgColorKey:`greenBackgroundColor`},blue:{colorKey:`blueColor`,bgColorKey:`blueBackgroundColor`},violet:{colorKey:`violetColor`,bgColorKey:`violetBackgroundColor`},gray:{colorKey:`grayColor`,bgColorKey:`grayBackgroundColor`},grey:{colorKey:`grayColor`,bgColorKey:`grayBackgroundColor`},primary:{colorKey:`primary`,bgColorKey:null}},Tie={purple:{bgColorKey:`purplebg`}},Eie=new Set(Object.keys(IC));function Die(e){return typeof e==`string`&&Eie.has(e.toLowerCase())}var LC=e=>{let{bodyText:t,secondaryBg:n,bgColor:r}=e,i=V_(r)>.5,a=G_(t,.9),o=G_(t,.8),s=G_(t,.7),c=G_(t,.6),l=G_(t,.4),u=U_(r,n,.5),d=i?B_(u,.3):W_(u,.6);return{fadedText05:a,fadedText10:o,fadedText20:s,fadedText40:c,fadedText60:l,bgMix:u,darkenedBgMix100:d,darkenedBgMix25:G_(d,.75),darkenedBgMix15:G_(d,.85),lightenedBg05:W_(r,.025)}};function RC(e){return V_(e)>.5}function zC(e){return RC(e.colors.bgColor)}var BC=e=>{let t=LC(e),n=Rie(e),r=Lie(e),i=Iie(e);return{...e,...t,link:e.blueTextColor,codeTextColor:e.greenTextColor,codeBackgroundColor:t.bgMix,borderColor:t.fadedText10,borderColorLight:t.fadedText05,dataframeBorderColor:t.fadedText05,dataframeHeaderBackgroundColor:t.bgMix,headingColor:e.bodyText,chartCategoricalColors:n,chartSequentialColors:r,chartDivergingColors:i}};function Oie(e){let{redColor:t,orangeColor:n,yellowColor:r,blueColor:i,greenColor:a,violetColor:o,grayColor:s}=e.colors;return{red:t,orange:n,yellow:r,blue:i,green:a,violet:o,gray:s,grey:s,rainbow:`linear-gradient(to right, ${t}, ${n}, ${r}, ${a}, ${i}, ${o})`}}function VC(e){let t=zC(e),n=e.colors;return{redbg:n.redBackgroundColor,orangebg:n.orangeBackgroundColor,yellowbg:n.yellowBackgroundColor,bluebg:n.blueBackgroundColor,greenbg:n.greenBackgroundColor,violetbg:n.violetBackgroundColor,purplebg:G_(n[t?`purple90`:`purple80`],t?.9:.7),graybg:n.grayBackgroundColor,primarybg:G_(n.primary,t?.9:.7)}}function kie(e){let t=zC(e),n=e.colors,r=n.primary,i=n.redTextColor,a=n.orangeTextColor,o=n.yellowTextColor,s=n.blueTextColor;return{red:i,orange:a,yellow:o,green:n.greenTextColor,blue:s,violet:n.violetTextColor,purple:t?n.purple100:n.purple80,gray:n.grayTextColor,primary:r}}function Aie(e){return zC(e)?e.colors.gray70:e.colors.gray30}function jie(e){return zC(e)?e.colors.gray30:e.colors.gray85}function Mie(e){return zC(e)?e.colors.gray90:e.colors.gray10}function Nie(e){return zC(e)?e.colors.blue80:e.colors.blue40}function Pie(e){return[e.blue10,e.blue20,e.blue30,e.blue40,e.blue50,e.blue60,e.blue70,e.blue80,e.blue90,e.blue100]}function Fie(e){return[e.blue100,e.blue90,e.blue80,e.blue70,e.blue60,e.blue50,e.blue40,e.blue30,e.blue20,e.blue10]}function Iie(e){return[e.red100,e.red90,e.red70,e.red50,e.red30,e.blue30,e.blue50,e.blue70,e.blue90,e.blue100]}function Lie(e){return RC(e.bgColor)?Pie(e):Fie(e)}function Rie(e){return RC(e.bgColor)?[e.blue80,e.blue40,e.red80,e.red40,e.blueGreen80,e.green40,e.orange80,e.orange50,e.purple80,e.gray40]:[e.blue40,e.blue80,e.red40,e.red80,e.green40,e.blueGreen80,e.orange50,e.orange80,e.purple80,e.gray40]}function zie(e){return zC(e)?e.colors.red80:e.colors.red40}function Bie(e){return zC(e)?e.colors.blueGreen80:e.colors.green40}var HC=new WeakMap,UC=new WeakMap;function Vie(e){let t=HC.get(e);if(!t){t=new Map;for(let[n,r]of Object.entries(IC)){let i=e.colors[r.colorKey];typeof i==`string`&&t.set(n,i)}HC.set(e,t)}return t}function Hie(e){let t=UC.get(e);if(!t){let n=VC(e);t=new Map;for(let[n,r]of Object.entries(IC))if(r.bgColorKey){let i=e.colors[r.bgColorKey];typeof i==`string`&&t.set(n,i)}t.set(`primary`,n.primarybg);for(let[e,r]of Object.entries(Tie)){let i=n[r.bgColorKey];typeof i==`string`&&t.set(e,i)}UC.set(e,t)}return t}function Uie(e,t){return Vie(t).get(e.toLowerCase())??e}function Wie(e,t){return Hie(t).get(e.toLowerCase())??e}var Gie={tooltip:`0px 1px 4px rgba(0, 0, 0, 0.16)`,popover:`0px 4px 16px rgba(0, 0, 0, 0.16)`,toolbar:`1px 2px 8px rgba(0, 0, 0, 0.08)`,sidebar:`-2rem 0 2rem 2rem rgba(0, 0, 0, 0.16)`,none:`none`},Kie={tooltip:`0px 1px 4px rgba(0, 0, 0, 0.4)`,popover:`0px 4px 16px rgba(0, 0, 0, 0.7)`,toolbar:`1px 2px 8px rgba(0, 0, 0, 0.2)`,sidebar:`-2rem 0 2rem 2rem rgba(0, 0, 0, 0.4)`,none:`none`},WC={px:`1px`,none:`0`,threeXS:`0.125rem`,twoXS:`0.25rem`,xs:`0.375rem`,sm:`0.5rem`,md:`0.75rem`,lg:`1rem`,xl:`1.25rem`,twoXL:`1.5rem`,threeXL:`2rem`,fourXL:`4rem`,fiveXL:`6rem`,sixXL:`8rem`},GC=`2.5rem`,KC=`1px`,qC={full:`100%`,headerHeight:`3.75rem`,fullScreenHeaderHeight:`2.875rem`,sidebarTopSpace:`6rem`,toastWidth:`21rem`,contentMaxWidth:`736px`,maxChartTooltipWidth:`30rem`,checkbox:`1rem`,borderWidth:KC,smallElementHeight:`1.5rem`,minElementHeight:GC,elementHighlightHeight:`calc(${GC} - 2 * ${WC.xs})`,tagMarginInsideBorder:`calc(${WC.xs} - ${KC})`,largestElementHeight:`4.25rem`,smallLogoHeight:`1.25rem`,defaultLogoHeight:`1.5rem`,largeLogoHeight:`2rem`,sliderThumb:`0.75rem`,wideSidePadding:`5rem`,headerDecorationHeight:`0.125rem`,appMainMenu:`12rem`,appRunningMen:`1.6rem`,appStatusMaxWidth:`20rem`,tableColumnMaxWidth:`25rem`,spinnerSize:`1.375rem`,spinnerThickness:`0.125rem`,tabHeight:`2.5rem`,minPopupWidth:`20rem`,maxTooltipHeight:`18.75rem`,chatAvatarSize:`2rem`,clearIconSize:`1.5em`,numberInputControlsWidth:`2rem`,emptyDropdownHeight:`5.625rem`,dropdownItemHeight:`2.5rem`,maxDropdownHeight:`18.75rem`,appDefaultBottomPadding:`3.5rem`,defaultMapHeight:`31.25rem`,defaultChartHeight:`21.875rem`,defaultChartWidth:`25rem`,minMenuWidth:`8rem`,minChatInputFileListHeight:`3rem`,uploadedFileIconSize:`2rem`,headerItemHeight:`1.75rem`,headerRightContentMaxWidth:`12.5rem`,chatInputTextareaMinHeight:`1.5rem`,chatInputPrimaryButtonSize:`2rem`,chatInputButtonVerticalOffset:`0.1875rem`,dialogLargeWidth:`80rem`,defaultStrokeWidth:2.25,metricStrokeWidth:2,focusRingWidth:`0.2rem`,fileChipNameMinWidth:`4.875rem`},JC=e=>{let t=V_(e.bgColor)>.5,n=t?Gie:Kie,r=qC.focusRingWidth,i=t?e.gray90:e.gray10;return{...n,focusRing:`0 0 0 ${r} ${G_(e.primary,.5)}`,focusRingSubtle:`0 0 0 ${r} ${G_(e.darkenedBgMix25,.5)}`,focusRingOutline:`0 0 0 1px ${e.primary}`,focusRingMuted:`0 0 0 ${r} ${G_(i,.8)}`}}
25,YC={sansSerif:`"Source Sans", sans-serif`,monospace:`"Source Code Pro", monospace`,serif:`"Source Serif", serif`,materialIcons:`Material Symbols Rounded`},XC={bodyFont:YC.sansSerif,codeFont:YC.monospace,headingFont:YC.sansSerif,iconFont:YC.materialIcons},ZC={baseFontSize:16,twoSm:`0.75rem`,sm:`0.875rem`,md:`1rem`,mdLg:`1.125rem`,lg:`1.25rem`,xl:`1.5rem`,twoXL:`1.75rem`,threeXL:`2.25rem`,fourXL:`2.75rem`,codeFontSize:`0.875rem`,inlineCodeFontSize:`0.75em`,h1FontSize:`2.75rem`,h2FontSize:`2.25rem`,h3FontSize:`1.75rem`,h4FontSize:`1.5rem`,h5FontSize:`1.25rem`,h6FontSize:`1rem`,metricValueFontSize:`2.25rem`},qie={normal:400,semiBold:500,bold:600,extrabold:700,code:400,codeBold:600,codeExtraBold:700,h1FontWeight:700,h2FontWeight:600,h3FontWeight:600,h4FontWeight:600,h5FontWeight:600,h6FontWeight:600,metricValueFontWeight:400},Jie={none:1,headings:1.2,tight:1.25,inputWidget:1.4,small:1.5,base:1.6,menuItem:2};Pb(),NC(),Vy();var Yie=function(e){var t=e.children,n=e.overrides,r=e.theme,i=e.zIndex;return _.createElement(kx,{zIndex:i,overrides:n},_.createElement(kb,{prefix:`bui`},_.createElement(Ty,{theme:r},t)))},Xie={hideWidgetDetails:`11.25rem`,hideNumberInputControls:`7.5rem`,sm:`576px`,columns:`640px`,md:`768px`},Zie={xs:`0.5rem`,sm:`0.75rem`,md:`0.9rem`,base:`1rem`,lg:`1.25rem`,xl:`1.5rem`,twoXL:`1.8rem`,threeXL:`2.3rem`},QC={secondary:.6,stale:.33},Qie={sm:`0.25rem`,md2:`0.375rem`,default:`0.5rem`,xl:`0.75rem`,xxl:`1rem`,button:`0.5rem`,chatInput:`1.25rem`,full:`9999px`,maxCheckbox:`0.35rem`},$C=100,$ie=$C+10,ew=1e6,eae=ew-10,tae=$C-1,nae=ew-5,tw=ew+50,rae=ew-1,nw=tw+10,iae={hide:-1,auto:`auto`,base:0,priority:1,sidebar:$C,menuButton:$ie,balloons:ew,header:eae,sidebarMobile:nae,popup:nw,fullscreenWrapper:tw,tablePortal:tw+60,bottom:tae,cacheSpinner:$C+1,toast:nw+1,headerDecoration:rae},rw={transparent:`transparent`,black:`#000000`,white:`#ffffff`,gray10:`#fafafa`,gray20:`#f0f2f6`,gray30:`#e6eaf1`,gray40:`#d5dae5`,gray50:`#bfc5d3`,gray60:`#a3a8b8`,gray70:`#808495`,gray80:`#555867`,gray85:`#31333F`,gray90:`#262730`,gray100:`#0e1117`,red10:`#fff0f0`,red20:`#ffdede`,red30:`#ffc7c7`,red40:`#ffabab`,red50:`#ff8c8c`,red60:`#ff6c6c`,red70:`#ff4b4b`,red80:`#ff2b2b`,red90:`#bd4043`,red100:`#7d353b`,orange10:`#fffae8`,orange20:`#fff6d0`,orange30:`#ffecb0`,orange40:`#ffe08e`,orange50:`#ffd16a`,orange60:`#ffbd45`,orange70:`#ffa421`,orange80:`#ff8700`,orange90:`#ed6f13`,orange95:`#e2660c`,orange100:`#d95a00`,yellow10:`#ffffe1`,yellow20:`#ffffc2`,yellow30:`#ffffa0`,yellow40:`#ffff7d`,yellow50:`#ffff59`,yellow60:`#fff835`,yellow65:`#ffff12`,yellow70:`#ffe312`,yellow80:`#faca2b`,yellow90:`#edbb16`,yellow100:`#dea816`,yellow110:`#916e10`,yellow115:`#926c05`,green10:`#dffde9`,green20:`#c0fcd3`,green30:`#9ef6bb`,green40:`#7defa1`,green50:`#5ce488`,green60:`#3dd56d`,green70:`#21c354`,green80:`#09ab3b`,green90:`#158237`,green100:`#177233`,blueGreen10:`#dcfffb`,blueGreen20:`#bafff7`,blueGreen30:`#93ffee`,blueGreen40:`#6bfde3`,blueGreen50:`#45f4d5`,blueGreen60:`#20e7c5`,blueGreen70:`#00d4b1`,blueGreen80:`#29b09d`,blueGreen90:`#2c867c`,blueGreen100:`#246e69`,lightBlue10:`#e0feff`,lightBlue20:`#bffdff`,lightBlue30:`#9af8ff`,lightBlue40:`#73efff`,lightBlue50:`#4be4ff`,lightBlue60:`#24d4ff`,lightBlue70:`#00c0f2`,lightBlue80:`#00a4d4`,lightBlue90:`#0d8cb5`,lightBlue100:`#15799e`,blue10:`#e4f5ff`,blue20:`#c7ebff`,blue30:`#a6dcff`,blue40:`#83c9ff`,blue50:`#60b4ff`,blue60:`#3d9df3`,blue65:`#1c83ff`,blue70:`#1c83e1`,blue80:`#0068c9`,blue90:`#0054a3`,blue100:`#004280`,purple10:`#f5ebff`,purple20:`#ebd6ff`,purple30:`#dbbbff`,purple40:`#c89dff`,purple50:`#b27eff`,purple60:`#9a5dff`,purple70:`#803df5`,purple80:`#6d3fc0`,purple90:`#583f84`,purple100:`#3f3163`},aae={bgColor:rw.white,secondaryBg:rw.gray20,bodyText:rw.gray85,primary:rw.red70,secondary:rw.blue70,redColor:rw.red70,orangeColor:rw.orange70,yellowColor:rw.yellow80,blueColor:rw.blue70,greenColor:rw.green70,violetColor:rw.purple70,grayColor:rw.gray60,redBackgroundColor:G_(rw.red80,.9),orangeBackgroundColor:G_(rw.orange70,.9),yellowBackgroundColor:G_(rw.yellow65,.9),blueBackgroundColor:G_(rw.blue65,.9),greenBackgroun
25dColor:G_(rw.green70,.9),violetBackgroundColor:G_(rw.purple60,.9),grayBackgroundColor:G_(rw.gray85,.9),redTextColor:rw.red90,orangeTextColor:rw.orange95,yellowTextColor:rw.yellow115,blueTextColor:rw.blue90,greenTextColor:rw.green90,violetTextColor:rw.purple90,grayTextColor:G_(rw.gray85,.4)},oae={},iw={...rw,...aae,...oae},aw=BC(iw),ow={inSidebar:!1,showSidebarBorder:!1,linkUnderline:!0,breakpoints:Xie,colors:aw,fonts:YC,fontSizes:ZC,fontWeights:qie,genericFonts:XC,iconSizes:Zie,lineHeights:Jie,opacities:QC,radii:Qie,shadows:JC(aw),sizes:qC,spacing:WC,zIndices:iae},sae={...rw,bgColor:rw.gray100,bodyText:rw.gray10,primary:rw.red70,secondaryBg:rw.gray90,redColor:rw.red80,orangeColor:rw.orange80,yellowColor:rw.yellow70,blueColor:rw.blue80,greenColor:rw.green80,violetColor:rw.purple70,grayColor:rw.gray80,redBackgroundColor:G_(rw.red60,.8),orangeBackgroundColor:G_(rw.orange80,.8),yellowBackgroundColor:G_(rw.yellow65,.8),blueBackgroundColor:G_(rw.blue60,.8),greenBackgroundColor:G_(rw.green60,.8),violetBackgroundColor:G_(rw.purple60,.8),grayBackgroundColor:G_(rw.gray70,.8),redTextColor:rw.red60,orangeTextColor:rw.orange60,yellowTextColor:rw.yellow20,blueTextColor:rw.blue60,greenTextColor:rw.green50,violetTextColor:rw.purple50,grayTextColor:G_(rw.gray10,.4)},sw=BC({...ow.colors,...sae}),cae=JC(sw),cw={...ow,inSidebar:!1,colors:sw,shadows:cae},lw={...ow,inSidebar:!1},uw=FC(lw,xy),lae=FC(cw,vy),uae={name:`base`,emotion:ow,basewebTheme:uw,primitives:xy},dw={name:`Dark`,emotion:cw,basewebTheme:lae,primitives:vy},fw={name:`Light`,emotion:lw,basewebTheme:uw,primitives:xy},pw=`Use system setting`,mw=`Custom Theme`,hw=`Custom Theme Light`,gw=`Custom Theme Dark`,_w=`Custom Theme Auto`,vw=(0,Zt.getLogger)(`theme:utils`);function yw(e){if(e==null)return e;if(Array.isArray(e))return e.map(e=>yw(e));if(typeof e==`object`){let t={};return Object.keys(e).sort().forEach(n=>{t[n]=yw(e[n])}),t}return e}function bw(e,t){if(t&&Rs(t)){let n=new qo(t);return Lw(e.name,n,e)}return e}var xw=Qh(()=>bw(fw,za.LIGHT_THEME)),Sw=Qh(()=>bw(dw,za.DARK_THEME)),Cw=()=>window.matchMedia?.(`(prefers-color-scheme: dark)`)?.matches??!1?`dark`:`light`,dae=()=>Cw()===`dark`?Sw():xw(),ww=()=>({...dae(),name:pw}),Tw=()=>[ww(),xw(),Sw()],Ew=e=>Tw().map(e=>e.name).includes(e.name),fae=e=>e===void 0||V_(e)>.5?`light`:`dark`,Dw=e=>{let t=new Option().style;return t.color=e,t.color!==``},pae=e=>Math.round(e*8)/8,Ow=(e,t=YC.sansSerif)=>{let n=e.trim();if(!n)return t;let r={"sans-serif":YC.sansSerif,serif:YC.serif,monospace:YC.monospace},i=n.toLowerCase().replaceAll(` `,`-`);return i in r?r[i]:`${n}, ${t}`},kw=(e,t,n=!1)=>
25{if(Dw(e))return e;if(Dw(`#${e}`))return`#${e}`;if(t.toLowerCase().includes(`color`)){let r=n?`theme.sidebar`:`theme`;vw.warn(`Invalid color passed for ${t} in ${r}: "${e}"`)}},mae=(e,t,n,r)=>e||(t?G_(t,r?.9:.8):n),hae=(e,t,n,r)=>{if(e)return e;if(t){let e=.15;return r?B_(t,e):W_(t,e)}return n},gae=(e,t)=>{let n={...e},r={redBackgroundColor:{main:t.redColor,background:t.redBackgroundColor},orangeBackgroundColor:{main:t.orangeColor,background:t.orangeBackgroundColor},yellowBackgroundColor:{main:t.yellowColor,background:t.yellowBackgroundColor},blueBackgroundColor:{main:t.blueColor,background:t.blueBackgroundColor},greenBackgroundColor:{main:t.greenColor,background:t.greenBackgroundColor},violetBackgroundColor:{main:t.violetColor,background:t.violetBackgroundColor},grayBackgroundColor:{main:t.grayColor,background:t.grayBackgroundColor}},i=V_(n.bgColor)>.5;return Object.entries(r).forEach(([t,{main:r,background:a}])=>{let o=t;n[o]=mae(a,r,e[o],i)}),n},_ae=(e,t)=>{let n={...e},r={redTextColor:{main:t.redColor,text:t.redTextColor},orangeTextColor:{main:t.orangeColor,text:t.orangeTextColor},yellowTextColor:{main:t.yellowColor,text:t.yellowTextColor},blueTextColor:{main:t.blueColor,text:t.blueTextColor},greenTextColor:{main:t.greenColor,text:t.greenTextColor},violetTextColor:{main:t.violetColor,text:t.violetTextColor},grayTextColor:{main:t.grayColor,text:t.grayTextColor}},i=V_(n.bgColor)>.5;return Object.entries(r).forEach(([t,{main:r,text:a}])=>{let o=t;n[o]=hae(a,r,e[o],i)}),n},Aw=e=>{let t=`rem`,n,r=e.trim().toLowerCase();return r===`none`?n=0:r===`small`?n=.35:r===`medium`?n=.5:r===`large`?n=1:r===`full`?n=1.4:r.endsWith(`rem`)?n=parseFloat(r):r.endsWith(`px`)?(n=parseFloat(r),t=`px`):isNaN(parseFloat(r))||(n=parseFloat(r),t=`px`),[n,t]},jw=(e,t,n)=>{let r=n?`theme.sidebar`:`theme`;if(typeof t==`string`){let e=t.trim().toLowerCase(),n=parseFloat(e);if(n&&(e.endsWith(`rem`)||e.endsWith(`px`)))return e;if(n.toString()===e)return`${e}px`}vw.warn(`Invalid size passed for ${e} in ${r}: ${t}. Falling back to default ${e}.`)},Mw=(e,t,n,r,i)=>{let a=i?`theme.sidebar`:`theme`;if(I(t)){let i=Number.isInteger(t),o=t%100==0;return!i||!o||!(t>=n&&t<=r)?(vw.warn(`Invalid ${e}: ${t} in ${a}. The ${e} must be an integer ${n}-${r}, and an increment of 100. Falling back to default font weight.`),!1):!0}return!1},vae=(e,t,n,r)=>{let i=jw(e,t,r);if(i?.endsWith(`rem`))return i;if(i?.endsWith(`px`))return`${parseFloat(i)/n}rem`},yae=(e,t,n,r)=>{let i={...e};return r&&r.forEach((e,r)=>{let a=`h${r+1}FontSize`,o=vae(`${a} in headingFontSizes`,e,n,t);o&&(i[a]=o)}),i},bae=(e,t,n,r,i)=>{let a={...e,h1FontWeight:t?600:e.h1FontWeight};return n&&Mw(`baseFontWeight`,n,100,600)&&(a.normal=n,a.semiBold=n+100,a.bold=n+200,a.extrabold=n+300,a.code=n,a.codeBold=n+200,a.codeExtraBold=n+300),r&&Mw(`codeFontWeight`,r,100,600)&&(a.code=r,a.codeBold=r+200,a.codeExtraBold=r+300),i&&i.forEach((e,n)=>{let r=`h${n+1}FontWeight`;Mw(`${r} in headingFontWeights`,e,100,900,t)&&(a[r]=e)}),a},Nw=(e,t)=>t.map(t=>kw(t,e)).filter(e=>e!==void 0),xae=(e,t=uae)=>{let{colors:n,genericFonts:r,inSidebar:i}=t.emotion,{baseFontSize:a,baseFontWeight:o,baseRadius:s,buttonRadius:c,codeFontSize:l,codeFontWeight:u,showWidgetBorder:d,headingFont:f,headingFontSizes:p,headingFontWeights:m,bodyFont:h,codeFont:g,showSidebarBorder:_,linkUnderline:v,chartCategoricalColors:y,chartSequentialColors:b,chartDivergingColors:x,metricValueFontSize:S,metricValueFontWeight:C,...w}=e,T=Object.entries(w).reduce((e,[t,n])=>{let r=kw(n,t,i);return r&&(e[t]=r),e},{}),{secondaryBackgroundColor:E,backgroundColor:D,primaryColor:O,textColor:k,dataframeBorderColor:A,dataframeHeaderBackgroundColor:ee,borderColor:te,linkColor:ne,codeTextColor:re,codeBackgroundColor:ie,redColor:ae,orangeColor:oe,yellowColor:j,blueColor:se,greenColor:ce,violetColor:le,grayColor:M}=T,N={colors:{...BC({...n,primary:O??n.primary,bodyText:k??n.bodyText,secondaryBg:E??n.secondaryBg,bgColor:D??n.bgColor,redColor:ae??n.redColor,orangeColor:oe??n.orangeColor,yellowColor:j??n.yellowColor,blueColor:se??n.blueColor,greenColor:ce??n.greenColor,violetColor:le??n.violetColor,grayColor:M??n.grayColor,secondary:O??n.primary})},showSidebarBorder:_??t.emotion.showSidebarBorder,linkUnderline:v??t.emotion.linkUnderline,radii:{...t.emotion.radii},fontSizes:{...t.emotion.fontSizes},fontWeights:{...t.emotion.fontWeights}};
25if(N.colors.codeBackgroundColor=ie??n.codeBackgroundColor,N.colors.dataframeHeaderBackgroundColor=ee??n.dataframeHeaderBackgroundColor,I(te)){N.colors.borderColor=te;let e=G_(te,.55);N.colors.borderColorLight=e,N.colors.dataframeBorderColor=e}if(I(A)&&(N.colors.dataframeBorderColor=A),d&&(N.colors.widgetBorderColor=N.colors.borderColor),N.colors=gae(N.colors,T),N.colors=_ae(N.colors,T),N.colors.link=ne??N.colors.blueTextColor,N.colors.codeTextColor=re??N.colors.greenTextColor,I(y)&&y.length>0){let e=Nw(`chartCategoricalColors`,y);e.length>0&&(N.colors.chartCategoricalColors=e)}if(I(b)&&b.length>0){let e=Nw(`chartSequentialColors`,b);e.length===10?N.colors.chartSequentialColors=e:vw.warn(`Invalid chartSequentialColors: ${b.toString()}. Falling back to default chartSequentialColors.`)}if(I(x)&&x.length>0){let e=Nw(`chartDivergingColors`,x);e.length===10?N.colors.chartDivergingColors=e:vw.warn(`Invalid chartDivergingColors: ${x.toString()}. Falling back to default chartDivergingColors.`)}if(I(s)){let[e,t]=Aw(s);if(I(e)&&!isNaN(e)){let n=Gw(e,t);N.radii.default=n,N.radii.button=n,N.radii.sm=Gw(Kw(e*.5),t),N.radii.md2=Gw(Kw(e*.75),t),N.radii.xl=Gw(Kw(e*1.5),t),N.radii.xxl=Gw(Kw(e*2),t)}else vw.warn(`Invalid base radius: ${s}. Falling back to default base radius.`)}if(I(c)){let[e,t]=Aw(c);I(e)&&!isNaN(e)?N.radii.button=Gw(e,t):vw.warn(`Invalid button radius: ${c}. Falling back to default button radius.`)}if(a&&a>0&&(N.fontSizes.baseFontSize=a),l){let e=jw(`codeFontSize`,l,i);e&&(N.fontSizes.codeFontSize=e)}if(N.fontSizes=yae(N.fontSizes,i,N.fontSizes.baseFontSize,p),S){let e=jw(`metricValueFontSize`,S,i);e&&(parseFloat(e)<=0?vw.warn(`Invalid metricValueFontSize: ${S} in theme. The metricValueFontSize must be greater than 0. Falling back to default metricValueFontSize.`):N.fontSizes.metricValueFontSize=e)}N.fontWeights=bae(t.emotion.fontWeights,i,o,u,m),C&&(C>=100&&C<=900?N.fontWeights.metricValueFontWeight=C:vw.warn(`Invalid metricValueFontWeight: ${C}. Must be between 100 and 900.`));let ue={...r,bodyFont:h?Ow(h,YC.sansSerif):r.bodyFont,codeFont:g?Ow(g,YC.monospace):r.codeFont,headingFont:f?Ow(f,YC.sansSerif):r.headingFont};h&&!f&&(ue.headingFont=Ow(h,YC.sansSerif));let de=JC(N.colors);return{...t.emotion,genericFonts:ue,...N,shadows:de}},Pw=e=>{let{colors:t}=e;return{primaryColor:t.primary,backgroundColor:t.bgColor,secondaryBackgroundColor:t.secondaryBg,textColor:t.bodyText,bodyFont:e.genericFonts.bodyFont}},Fw=e=>{let{colors:t}=e,n=Pw(e);return{primaryColor:n.primaryColor,backgroundColor:n.backgroundColor,secondaryBackgroundColor:n.secondaryBackgroundColor,textColor:n.textColor,bodyFont:n.bodyFont,base:fae(n.backgroundColor),...LC(t)}},Iw=(e,t)=>new qo({...Pw(t.emotion),...e}),Lw=(e,t,n,r=!1)=>{let i;i=n?Iw(t,n):t.base===qo.BaseTheme.DARK?Iw(t,dw):Iw(t,fw);let a=i.backgroundColor,o=Xh(am(n||(V_(a)>.5?fw:dw)),{emotion:{inSidebar:r}}),s=xae(i,o),c=am(FC(s,o.primitives));return{...o,name:e,emotion:s,basewebTheme:c,themeInput:t}},Rw=()=>{let{CACHED_THEME_VERSION:e,CACHED_THEME_BASE_KEY:t}=Y_,{localStorage:n}=window;n.removeItem(`stActiveTheme`),n.removeItem(t);for(let r=1;r<e;r++)n.removeItem(`${t}-v${r}`)},zw=e=>e.name===`Use system setting`||e.name===`Custom Theme Auto`?`System`:e.name===fw.name||e.name===`Custom Theme Light`?`Light`:e.name===dw.name||e.name===`Custom Theme Dark`?`Dark`:(e.name,`System`),Sae=e=>e===`System`||e===`Light`||e===`Dark`,Bw=()=>{if(!Pa())return null;Rw();let e=window.localStorage.getItem(Y_.ACTIVE_THEME);if(!e)return null;let t=JSON.parse(e);return Sae(t)?t:null},Cae=e=>{if(!Pa()||(Rw(),xg()||Sg()))return;let t=zw(e);window.localStorage.setItem(Y_.ACTIVE_THEME,JSON.stringify(t))},Vw=()=>xg()?xw():Sg()?Sw():null,Hw=()=>Vw()??ww(),Uw=()=>{let e=Vw();if(e)return e;let t=Bw();return t===`Light`?xw():t===`Dark`?Sw():ww()},wae=/\s+/;function Ww(e,t){return e===``?``:e.split(wae).map(e=>e===`0`?t.spacing.none:e in t.spacing?t.spacing[e]:(vw.error(`Invalid spacing value: ${e}`),t.spacing.none)).join(` `)}function Gw(e,t){return`${e}${t}`}function Kw(e){return parseFloat(e.toFixed(2))}function Tae(e,t){if(t===void 0)return e;let[n,r,i,a]=$g(e);if(a===1)return e;let[o,s,c,l]=$g(t),u=a+l*(1-a);
25return K_(`rgba(${Math.round((a*n+l*o*(1-a))/u)}, ${Math.round((a*r+l*s*(1-a))/u)}, ${Math.round((a*i+l*c*(1-a))/u)}, ${u})`)}var qw=e=>parseFloat(e.replace(/rem$/,``))*(parseFloat(getComputedStyle(document.documentElement).fontSize)||16),Jw=(e,t)=>{if(t===``||t===null||Array.isArray(t)&&t.length===0)return e},Yw=(e,t)=>{let n=t===`light`,r=n?qo.BaseTheme.LIGHT:qo.BaseTheme.DARK,{light:i,dark:a,sidebar:o,...s}=e,{sidebar:c,...l}=(n?i:a)||{},u=Lh({},s,l,{base:r},Jw);return(o||c)&&(u.sidebar=Lh({},o,c,Jw)),u},Xw=e=>{if(!e)return!1;let t=e=>e==null?!1:Array.isArray(e)?e.length>0:typeof e==`object`?Object.values(e).some(t):!0;return Object.values(e).some(t)},Eae=e=>{let t=Xw(e.light),n=Xw(e.dark),r=[];if(t||n){let t={...Lw(hw,Yw(e,`light`)),displayName:`Light`},n={...Lw(gw,Yw(e,`dark`)),displayName:`Dark`},i={...Cw()===`dark`?n:t,displayName:pw,name:_w};r.push(t,n,i)}else{let t=Lw(mw,e);r.push(t)}return r},Dae=e=>Xh([],[`1.5rem`,`1.25rem`,`1.125rem`,`1rem`,`0.875rem`,`0.75rem`],e||[]),Oae=e=>{let t=e.themeInput?.sidebar,{bgColor:n,secondaryBg:r}=e.emotion.colors,i=t?.backgroundColor||r,a=t?.secondaryBackgroundColor||n,o=Dae(t?.headingFontSizes),s=V_(i)>.5?qo.BaseTheme.LIGHT:qo.BaseTheme.DARK;return e.name===`Custom Theme Light`?s=qo.BaseTheme.LIGHT:e.name===`Custom Theme Dark`&&(s=qo.BaseTheme.DARK),Lw(`Sidebar`,Lh({},e.themeInput,t,{base:s,backgroundColor:i,secondaryBackgroundColor:a,headingFontSizes:o},Jw),void 0,!0)},kae=(e,t)=>{if(!e)return null;let n={System:[_w,pw,mw],Light:[hw,fw.name],Dark:[gw,dw.name]};for(let r of n[e]){let e=t.find(e=>e.name===r);if(e)return e}return null},Zw=e=>{let t=Vw();return kae((t?zw(t):null)??Bw(),e)},Qw=e=>{let t=e.type,n=t?e[t]:void 0;if(!n||typeof n!=`object`)return;let r=n,i={useContainerWidth:r.useContainerWidth,height:r.height,width:r.width,widthConfig:r.widthConfig};if(!(i.useContainerWidth===void 0&&i.height===void 0&&i.width===void 0&&i.widthConfig===void 0))return i},$w=e=>typeof e==`number`&&e>=0&&!isNaN(e),eT=e=>typeof e==`number`&&e>0&&!isNaN(e),Aae=(e,t)=>{if(t?.useContainerWidth)return{type:`stretch`};let n=e.widthConfig?.useStretch||t?.widthConfig?.useStretch,r=e?.widthConfig?.useContent||t?.widthConfig?.useContent,i=e?.widthConfig?.pixelWidth||t?.widthConfig?.pixelWidth||e.widthConfig?.pixelWidth===0,a=e.widthConfig?.remWidth;return n?{type:`stretch`}:r?{type:`content`}:a&&$w(e.widthConfig?.remWidth)?{type:`rem`,rem:e.widthConfig.remWidth}:i&&$w(e.widthConfig?.pixelWidth)?{type:`pixel`,pixels:e.widthConfig.pixelWidth}:i&&$w(t?.widthConfig?.pixelWidth)?{type:`pixel`,pixels:t.widthConfig.pixelWidth}:eT(t?.width)&&!e.widthConfig?{type:`pixel`,pixels:t.width}:{type:`auto`}},jae=(e,t)=>{let n=!!e.heightConfig?.useStretch,r=!!e.heightConfig?.useContent,i=!!e.heightConfig?.pixelHeight||e.heightConfig?.pixelHeight===0,a=e.height
25Config?.remHeight;return n?{type:`stretch`}:r?{type:`content`}:a&&$w(e.heightConfig?.remHeight)?{type:`rem`,rem:e.heightConfig.remHeight}:i&&$w(e.heightConfig?.pixelHeight)?{type:`pixel`,pixels:e.heightConfig.pixelHeight}:eT(t?.height)&&!e.heightConfig?{type:`pixel`,pixels:t.height}:{type:`auto`}},Mae=(e,t,n,r)=>{if(n===qg.HORIZONTAL)switch(e.type){case`pixel`:return`0 0 ${e.pixels}px`;case`rem`:return`0 0 ${e.rem}rem`;case`content`:return`0 0 fit-content`;case`stretch`:return`1 1 ${r??`fit-content`}`;case`auto`:return;default:ag(e)}else if(n===qg.VERTICAL)switch(t.type){case`pixel`:return`0 0 ${t.pixels}px`;case`rem`:return`0 0 ${t.rem}rem`;case`content`:case`stretch`:case`auto`:return;default:ag(t)}},Nae=e=>e?.direction,Pae=(e,t,n=32)=>t===void 0||e===void 0||e===`fit-content`?e:t<qw(e)&&t>n?`${t-n}px`:e,tT=({element:e,subElement:t,styleOverrides:n,minStretchBehavior:r})=>{let i=(0,_.useContext)(Yg);return(0,_.useMemo)(()=>{if(!e)return{width:`auto`,height:`auto`,overflow:`visible`};let a=Aae(e,t),o,s;switch(a.type){case`stretch`:o=`100%`;break;case`rem`:o=`${a.rem}rem`;break;case`pixel`:o=`${a.pixels}px`;break;case`content`:o=`fit-content`;break;case`auto`:o=`auto`;break;default:ag(a)}let c=Nae(i);i?.isInContentWidthContainer&&a.type===`stretch`&&r!==void 0&&(s=Pae(r,i?.parentWidth));let l=jae(e,t),u,d=`visible`;switch(l.type){case`stretch`:u=`100%`;break;case`content`:u=`auto`;break;case`rem`:u=`${l.rem}rem`;break;case`pixel`:u=`${l.pixels}px`,d=`auto`;break;case`auto`:u=`auto`;break;default:ag(l)}let f=Mae(a,l,c,r),p=Fne(`textAlignmentConfig`in e?e.textAlignmentConfig:void 0);return{width:o,height:u,overflow:d,flex:f,minWidth:s,textAlign:p,...n}},[e,t,n,i,r])},nT=function(e){return e.NOT_RUNNING=`notRunning`,e.RUNNING=`running`,e.RERUN_REQUESTED=`rerunRequested`,e.STOP_REQUESTED=`stopRequested`,e.COMPILATION_ERROR=`compilationError`,e}({}),rT=(0,_.createContext)({scriptRunState:nT.NOT_RUNNING,scriptRunId:`<null>`,fragmentIdsThisRun:[]});rT.displayName=`ScriptRunContext`;var Fae=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackgroun
vendor: 4,197 bytes, line 25
25d|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,iT=Ge(function(e){return Fae.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Iae=!1,Lae=iT,Rae=function(e){return e!==`theme`},aT=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?Lae:Rae},oT=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},zae=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return st(t,n,r),Et(function(){return ct(t,n,r)}),null},sT=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=oT(t,n,r),c=s||aT(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=At(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=_.useContext(jt)}typeof e.className==`string`?a=ot(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Ct(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?aT(r):c,g={};for(var v in e)l&&v===`as`||h(v)&&(g[v]=e[v]);return g.className=a,n&&(g.ref=n),_.createElement(_.Fragment,null,_.createElement(zae,{cache:t,serialized:m,isStringTag:typeof r==`string`}),_.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,`toString`,{value:function(){return o===void 0&&Iae?`NO_COMPONENT_SELECTOR`:`.`+o}}),h.withComponent=function(t,r){return e(t,tt({},n,r,{shouldForwardProp:oT(h,r,!0)})).apply(void 0,d)},h}},Bae=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.f
25igcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`),G=sT.bind(null);Bae.forEach(function(e){G[e]=G(e)});var Vae=Aa({from:{transform:`rotate(0deg)`},to:{transform:`rotate(360deg)`}}),Hae=G(`span`,{shouldForwardProp:e=>iT(e)&&![`size`].includes(e),target:`ewh6kot0`})(({size:e=`lg`,margin:t=``,padding:n=``,theme:r})=>{let i=`calc(${r.iconSizes[e]} * 0.80)`;return{display:`block`,animationName:Vae,animationDuration:`1000ms`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,borderStyle:`solid`,borderRadius:`50%`,cursor:`wait`,width:i,height:i,margin:Ww(t,r),padding:Ww(n,r),borderColor:r.colors.fadedText10,borderTopColor:r.colors.bodyText,borderWidth:r.sizes.spinnerThickness,flexGrow:0,flexShrink:0,"@media (prefers-reduced-motion: reduce)":{animation:`none`}}}),Uae=G(`span`,{shouldForwardProp:e=>iT(e)&&![`size`,`as`].includes(e),target:`ewh6kot1`})(({color:e,size:t,margin:n,padding:r,theme:i})=>({color:e||`inherit`,fill:`currentColor`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontSize:i.iconSizes[t],width:i.iconSizes[t],height:i.iconSizes[t],margin:Ww(n,i),padding:Ww(r,i),flexShrink:0})),cT=G(`span`,{target:`ewh6kot2`})(({size:e=`lg`,margin:t=``,padding:n=``,theme:r})=>({fill:`currentColor`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontSize:r.iconSizes[e],width:r.iconSizes[e],height:r.iconSizes[e],margin:Ww(t,r),padding:Ww(n,r),flexShrink:0})),Wae=G(`img`,{target:`ewh6kot3`})({width:`100%`,height:`100%`}),Gae=G(`span`,{target:`ewh6kot4`})(({size:e,margin:t,padding:n,theme:r,color:i})=>{let a=`calc(${r.iconSizes[e]} * 0.90)`;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontSize:a,width:a,height:a,margin:Ww(t,r),padding:Ww(n,r),color:i}}),lT=({size:e,margin:t,padding:n,color:r})=>({size:e||`md`,margin:t||``,padding:n||``,color:r||void 0}),uT=(0,_.memo)(function({content:e,color:t,size:n,margin:r,padding:i,testid:a}){return P(Uae,{as:e,"aria-hidden":`true`,"data-testid":a,...lT({size:n,margin:r,padding:i,color:t})})}),dT=(0,_.memo)(function({size:e,margin:t,padding:n,children:r,color:i,testid:a}){return typeof r==`string`&&(r=r.replace(/^emoji:/,``)),P(Gae,{"data-testid":a||`stIconEmoji`,"aria-hidden":`true`,...lT({size:e,margin:t,padding:n,color:i}),children:r})}),Kae=G(`span`,{target:`ed4y4ls0`})(({size:e,margin:t,padding:n,theme:r,color:i})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,color:i,fontSize:r.iconSizes[e],width:r.iconSizes[e],height:r.iconSizes[e],margin:Ww(t,r),padding:Ww(n,r),userSelect:`none`,fontFamily:r.genericFonts.iconFont,fontWeight:r.fontWeights.normal,fontStyle:`normal`,lineHeight:r.lineHeights.none,letterSpacing:`normal`,textTransform:`none`,whiteSpace:`nowrap`,wordWrap:`normal`,direction:`ltr`,fontFeatureSettings:`liga`,MozFontFeatureSettings:`liga`,WebkitFontFeatureSettings:`liga`,WebkitFontSmoothing:`antialiased`})),qae=({size:e,margin:t,padding:n,color:r})=>({size:e||`md`,margin:t||``,padding:n||``,color:r||`inherit`}),Jae=({iconName:e,...t})=>P(Kae,{...qae(t),"data-testid":t.testid||`stIconMaterial`,translate:`no`,children:e});function fT(e){let t=e.match(/^:(.+)\/(.+):$/);return t===null?{pack:`emoji`,icon:e}:{pack:t[1],icon:t[2]}}function pT(e){if(!e)return!1;let t=fT(e);return t.pack===`material`&&t.icon!==``}function Yae(e){let t=e.match(/^(:material\/\w+:)\s*(.*)$/);return t?{icon:t[1],text:t[2]}:{icon:null,text:e}}var Xae=new Set([`:material/menu:`,`:material/more_vert:`,`:material/more_horiz:`]);function mT(e,t){return e?!1:!!(t&&Xae.has(t.trim()))}function Zae(){return`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg2MF84NDMpIj48cGF0aCBkPSJNOS45OTk5NCAxNC4zOTE2TDEzLjQ1ODMgMTYuNDgzM0MxNC4wOTE2IDE2Ljg2NjYgMTQuODY2NiAxNi4zIDE0LjY5OTkgMTUuNTgzM0wxMy43ODMzIDExLjY1TDE2Ljg0MTYgOC45OTk5N0MxNy4zOTk5IDguNTE2NjMgMTcuMDk5OSA3LjU5OTk3IDE2LjM2NjYgNy41NDE2M0wxMi4zNDE2IDcuMTk5OTdMMTAuNzY2NiAzLjQ4MzNDMTAuNDgzMyAyLjgwODMgOS41MTY2MSAyLjgwODMgOS4yMzMyNyAzLjQ4MzNMNy42NTgyNyA3LjE5MTYzTDMuNjMzMjcgNy41MzMzQzIuODk5OTQgNy41OTE2MyAyLjU5OTk0IDguNTA4MyAzLjE1ODI3IDguOTkxNjNMNi4yMTY2MSAxMS42NDE2TDUuMjk5OTQgMTUuNTc1QzUuMTMzMjcgMTYuMjkxNiA1LjkwODI3IDE2Ljg1ODMgNi41NDE2MSAxNi40NzVMOS45OTk5NCAxNC4zOTE2WiIgZmlsbD0iI0ZBQ0EyQiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwXzE4NjBfODQzIj48cmVjdCB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9IndoaXRlIi8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+`}var Qae=({iconValue:e,...t})=>
25{if(e===`spinner`)return P(cT,{...t,children:P(Hae,{"aria-hidden":`true`,"data-testid":t.testid||`stSpinnerIcon`,...t})});let{pack:n,icon:r}=fT(e);switch(n){case`material`:switch(r){case`star_filled`:return P(cT,{...t,children:P(Wae,{src:Zae(),"data-testid":t.testid||`stImageIcon`})});default:return P(cT,{...t,children:P(Jae,{pack:n,iconName:r,...t})})}default:return P(cT,{...t,children:P(dT,{...t,children:r})})}},hT=e=>P(_.Suspense,{fallback:P(cT,{...e,children:P(dT,{...e,children:`\xA0`})}),children:P(Qae,{...e})},e.iconValue),gT=(0,_.createContext)({locale:window.navigator.language,mapboxToken:void 0,enforceDownloadInNewTab:void 0,resourceCrossOriginMode:void 0,showErrorLinks:Ko.ShowErrorLinks.SHOW_ERROR_LINKS_AUTO});gT.displayName=`LibConfigContext`;var $ae=Object.defineProperty,_T=(e,t)=>$ae(e,`name`,{value:t,configurable:!0}),vT=class{type=3;name=``;prefix=``;value=``;suffix=``;modifier=3;constructor(e,t,n,r,i,a){this.type=e,this.name=t,this.prefix=n,this.value=r,this.suffix=i,this.modifier=a}hasCustomName(){return this.name!==``&&typeof this.name!=`number`}};_T(vT,`Part`);var eoe=/[$_\p{ID_Start}]/u,toe=/[$_\u200C\u200D\p{ID_Continue}]/u,yT=`.*`;function bT(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}_T(bT,`isASCII`);function xT(e,t=!1){let n=[],r=0;for(;r<e.length;){let i=e[r],a=_T(function(i){if(!t)throw TypeError(i);n.push({type:`INVALID_CHAR`,index:r,value:e[r++]})},`ErrorOrInvalid`);if(i===`*`){n.push({type:`ASTERISK`,index:r,value:e[r++]});continue}if(i===`+`||i===`?`){n.push({type:`OTHER_MODIFIER`,index:r,value:e[r++]});continue}if(i===`\\`){n.push({type:`ESCAPED_CHAR`,index:r++,value:e[r++]});continue}if(i===`{`){n.push({type:`OPEN`,index:r,value:e[r++]});continue}if(i===`}`){n.push({type:`CLOSE`,index:r,value:e[r++]});continue}if(i===`:`){let t=``,i=r+1;for(;i<e.length;){let n=e.substr(i,1);if(i===r+1&&eoe.test(n)||i!==r+1&&toe.test(n)){t+=e[i++];continue}break}if(!t){a(`Missing parameter name at ${r}`);continue}n.push({type:`NAME`,index:r,value:t}),r=i;continue}if(i===`(`){let t=1,i=``,o=r+1,s=!1;if(e[o]===`?`){a(`Pattern cannot start with "?" at ${o}`);continue}for(;o<e.length;){if(!bT(e[o],!1)){a(`Invalid character '${e[o]}' at ${o}.`),s=!0;break}if(e[o]===`\\`){i+=e[o++]+e[o++];continue}if(e[o]===`)`){if(t--,t===0){o++;break}}else if(e[o]===`(`&&(t++,e[o+1]!==`?`)){a(`Capturing groups are not allowed at ${o}`),s=!0;break}i+=e[o++]}if(s)continue;if(t){a(`Unbalanced pattern at ${r}`);continue}if(!i){a(`Missing pattern at ${r}`);continue}n.push({type:`REGEX`,index:r,value:i}),r=o;continue}n.push({type:`CHAR`,index:r,value:e[r++]})}return n.push({type:`END`,index:r,value:``}),n}_T(xT,`lexer`);function ST(e,t={}){let n=xT(e);t.delimiter??=`/#?`,t.prefixes??=`./`;let r=`[^${CT(t.delimiter)}]+?`,i=[],a=0,o=0,s=new Set,c=_T(e=>{if(o<n.length&&n[o].type===e)return n[o++].value},`tryConsume`),l=_T(()=>c(`OTHER_MODIFIER`)??c(`ASTERISK`),`tryConsumeModifier`),u=_T(e=>{let t=c(e);if(t!==void 0)return t;let{type:r,index:i}=n[o];throw TypeError(`Unexpected ${r} at ${i}, expected ${e}`)},`mustConsume`),d=_T(()=>{let e=``,t;for(;t=c(`CHAR`)??c(`ESCAPED_CHAR`);)e+=t;return e},`consumeText`),f=_T(e=>e,`DefaultEncodePart`),p=t.encodePart||f,m=``,h=_T(e=>{m+=e},`appendToPendingFixedValue`),g=_T(()=>{m.length&&(i.push(new vT(3,``,``,p(m),``,3)),m=``)},`maybeAddPartFromPendingFixedValue`),_=_T((e,t,n,o,c)=>{let l=3;switch(c){case`?`:l=1;break;case`*`:l=0;break;case`+`:l=2;break}if(!t&&!n&&l===3){h(e);return}if(g(),!t&&!n){if(!e)return;i.push(new vT(3,``,``,p(e),``,l));return}let u;u=n?n===`*`?yT:n:r;let d=2;u===r?(d=1,u=``):u===yT&&(d=0,u=``);let f;if(t?f=t:n&&(f=a++),s.has(f))throw TypeError(`Duplicate name '${f}'.`);s.add(f),i.push(new vT(d,f,p(e),u,p(o),l))},`addPart`);for(;o<n.length;){let e=c(`CHAR`),n=c(`NAME`),r=c(`REGEX`);if(!n&&!r&&(r=c(`ASTERISK`)),n||r){let i=e??``;t.prefixes.indexOf(i)===-1&&(h(i),i=``),g();let a=l();_(i,n,r,``,a);continue}let i=e??c(`ESCAPED_CHAR`);if(i){h(i);continue}if(c(`OPEN`)){let e=d(),t=c(`NAME`),n=c(`REGEX`);!t&&!n&&(n=c(`ASTERISK`));let r=d();u(`CLOSE`);let i=l();_(e,t,n,r,i);continue}g(),u(`END`)}return i}_T(ST,`parse`);function CT(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,`\\$1`)}_T(CT,`escapeString`);function wT(e){return e&&e.ignoreCase?`ui`:`u`}_T(wT,`flags`);function TT(e,t,n){return DT(ST(e,n),t,n)}_T(TT,`stringToRegexp`);function ET(e){switch(e){case 0:return`*`;case 1:return`?`;case 2:return`+`;case 3:return``}}_T(ET,`modifierToString`);function DT(e,t,n={}){n.delimiter??=`/#?`,n.prefixes??=`./`,n.sensitive??=!1,n.strict??=!1,n.end??=!0,n.start??=!0,n.endsWith=``;let r=n.start?`^`:``;for(let i of e){if(i.type===3){i.modifier===3?r+=CT(i.value):r+=`(?:${CT(i.value)})${ET(i.modifier)}`;continue}t&&t.push(i.name);let e=`[^${CT(n.delimiter)}]+?`,a=i.value;if(i.type===1?a=e:i.type===0&&(a=yT),!i.prefix.length&&!i.suffix.length){i.modifier===3||i.modifier===1?r+=`(${a})${ET(i.modifier)}`:r+=`((?:${a})${ET(i.modifier)})`;continue}if(i.modifier===3||i.modifier===1){r+=`(?:${CT(i.prefix)}(${a}
25)${CT(i.suffix)})`,r+=ET(i.modifier);continue}r+=`(?:${CT(i.prefix)}`,r+=`((?:${a})(?:`,r+=CT(i.suffix),r+=CT(i.prefix),r+=`(?:${a}))*)${CT(i.suffix)})`,i.modifier===0&&(r+=`?`)}let i=`[${CT(n.endsWith)}]|$`,a=`[${CT(n.delimiter)}]`;if(n.end)return n.strict||(r+=`${a}?`),n.endsWith.length?r+=`(?=${i})`:r+=`$`,new RegExp(r,wT(n));n.strict||(r+=`(?:${a}(?=${i}))?`);let o=!1;if(e.length){let t=e[e.length-1];t.type===3&&t.modifier===3&&(o=n.delimiter.indexOf(t)>-1)}return o||(r+=`(?=${a}|${i})`),new RegExp(r,wT(n))}_T(DT,`partsToRegexp`);var OT={delimiter:``,prefixes:``,sensitive:!0,strict:!0},noe={delimiter:`.`,prefixes:``,sensitive:!0,strict:!0},roe={delimiter:`/`,prefixes:`/`,sensitive:!0,strict:!0};function kT(e,t){return e.length?e[0]===`/`?!0:!t||e.length<2?!1:(e[0]==`\\`||e[0]==`{`)&&e[1]==`/`:!1}_T(kT,`isAbsolutePathname`);function AT(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}_T(AT,`maybeStripPrefix`);function jT(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}_T(jT,`maybeStripSuffix`);function MT(e){return!e||e.length<2?!1:e[0]===`[`||(e[0]===`\\`||e[0]===`{`)&&e[1]===`[`}_T(MT,`treatAsIPv6Hostname`);var NT=[`ftp`,`file`,`http`,`https`,`ws`,`wss`];function PT(e){if(!e)return!0;for(let t of NT)if(e.test(t))return!0;return!1}_T(PT,`isSpecialScheme`);function FT(e,t){if(e=AT(e,`#`),t||e===``)return e;let n=new URL(`https://example.com`);return n.hash=e,n.hash?n.hash.substring(1,n.hash.length):``}_T(FT,`canonicalizeHash`);function IT(e,t){if(e=AT(e,`?`),t||e===``)return e;let n=new URL(`https://example.com`);return n.search=e,n.search?n.search.substring(1,n.search.length):``}_T(IT,`canonicalizeSearch`);function LT(e,t){return t||e===``?e:MT(e)?JT(e):qT(e)}_T(LT,`canonicalizeHostname`);function RT(e,t){if(t||e===``)return e;let n=new URL(`https://example.com`);return n.password=e,n.password}_T(RT,`canonicalizePassword`);function zT(e,t){if(t||e===``)return e;let n=new URL(`https://example.com`);return n.username=e,n.username}_T(zT,`canonicalizeUsername`);function BT(e,t,n){if(n||e===``)return e;if(t&&!NT.includes(t))return new URL(`${t}:${e}`).pathname;let r=e[0]==`/`;return e=new URL(r?e:`/-`+e,`https://example.com`).pathname,r||(e=e.substring(2,e.length)),e}_T(BT,`canonicalizePathname`);function VT(e,t,n){return UT(t)===e&&(e=``),n||e===``?e:YT(e)}_T(VT,`canonicalizePort`);function HT(e,t){return e=jT(e,`:`),t||e===``?e:WT(e)}_T(HT,`canonicalizeProtocol`);function UT(e){switch(e){case`ws`:case`http`:return`80`;case`wws`:case`https`:return`443`;case`ftp`:return`21`;default:return``}}_T(UT,`defaultPortForProtocol`);function WT(e){if(e===``)return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw TypeError(`Invalid protocol '${e}'.`)}_T(WT,`protocolEncodeCallback`);function GT(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.username=e,t.username}_T(GT,`usernameEncodeCallback`);function KT(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.password=e,t.password}_T(KT,`passwordEncodeCallback`);function qT(e){if(e===``)return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw TypeError(`Invalid hostname '${e}'`);let t=new URL(`https://example.com`);return t.hostname=e,t.hostname}_T(qT,`hostnameEncodeCallback`);function JT(e){if(e===``)return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}_T(JT,`ipv6HostnameEncodeCallback`);function YT(e){if(e===``||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw TypeError(`Invalid port '${e}'.`)}_T(YT,`portEncodeCallback`);function XT(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.pathname=e[0]===`/`?e:`/-`+e,e[0]===`/`?t.pathname:t.pathname.substring(2,t.pathname.length)}_T(XT,`standardURLPathnameEncodeCallback`);function ZT(e){return e===``?e:new URL(`data:${e}`).pathname}_T(ZT,`pathURLPathnameEncodeCallback`);function QT(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.search=e,t.search.substring(1,t.search.length)}
vendor: 10,710 bytes, line 25
25_T(QT,`searchEncodeCallback`);function $T(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.hash=e,t.hash.substring(1,t.hash.length)}_T($T,`hashEncodeCallback`);var eE=class{#e;#t=[];#n={};#r=0;#i=1;#a=0;#o=0;#s=0;#c=0;#l=!1;constructor(e){this.#e=e}get result(){return this.#n}parse(){for(this.#t=xT(this.#e,!0);this.#r<this.#t.length;this.#r+=this.#i){if(this.#i=1,this.#t[this.#r].type===`END`){if(this.#o===0){this.#f(),this.#C()?this.#u(9,1):this.#S()?this.#u(8,1):this.#u(7,0);continue}else if(this.#o===2){this.#p(5);continue}this.#u(10,0);break}if(this.#s>0)if(this.#T())--this.#s;else continue;if(this.#w()){this.#s+=1;continue}switch(this.#o){case 0:this.#g()&&this.#p(1);break;case 1:if(this.#g()){this.#k();let e=7,t=1;this.#_()?(e=2,t=3):this.#l&&(e=2),this.#u(e,t)}break;case 2:this.#v()?this.#p(3):(this.#x()||this.#S()||this.#C())&&this.#p(5);break;case 3:this.#y()?this.#u(4,1):this.#v()&&this.#u(5,1);break;case 4:this.#v()&&this.#u(5,1);break;case 5:this.#E()?this.#c+=1:this.#D()&&--this.#c,this.#b()&&!this.#c?this.#u(6,1):this.#x()?this.#u(7,0):this.#S()?this.#u(8,1):this.#C()&&this.#u(9,1);break;case 6:this.#x()?this.#u(7,0):this.#S()?this.#u(8,1):this.#C()&&this.#u(9,1);break;case 7:this.#S()?this.#u(8,1):this.#C()&&this.#u(9,1);break;case 8:this.#C()&&this.#u(9,1);break;case 9:break;case 10:break}}this.#n.hostname!==void 0&&this.#n.port===void 0&&(this.#n.port=``)}#u(e,t){switch(this.#o){case 0:break;case 1:this.#n.protocol=this.#O();break;case 2:break;case 3:this.#n.username=this.#O();break;case 4:this.#n.password=this.#O();break;case 5:this.#n.hostname=this.#O();break;case 6:this.#n.port=this.#O();break;case 7:this.#n.pathname=this.#O();break;case 8:this.#n.search=this.#O();break;case 9:this.#n.hash=this.#O();break;case 10:break}this.#o!==0&&e!==10&&([1,2,3,4].includes(this.#o)&&[6,7,8,9].includes(e)&&(this.#n.hostname??=``),[1,2,3,4,5,6].includes(this.#o)&&[8,9].includes(e)&&(this.#n.pathname??=this.#l?`/`:``),[1,2,3,4,5,6,7].includes(this.#o)&&e===9&&(this.#n.search??=``)),this.#d(e,t)}#d(e,t){this.#o=e,this.#a=this.#r+t,this.#r+=t,this.#i=0}#f(){this.#r=this.#a,this.#i=0}#p(e){this.#f(),this.#o=e}#m(e){return e<0&&(e=this.#t.length-e),e<this.#t.length?this.#t[e]:this.#t[this.#t.length-1]}#h(e,t){let n=this.#m(e);return n.value===t&&(n.type===`CHAR`||n.type===`ESCAPED_CHAR`||n.type===`INVALID_CHAR`)}#g(){return this.#h(this.#r,`:`)}#_(){return this.#h(this.#r+1,`/`)&&this.#h(this.#r+2,`/`)}#v(){return this.#h(this.#r,`@`)}#y(){return this.#h(this.#r,`:`)}#b(){return this.#h(this.#r,`:`)}#x(){return this.#h(this.#r,`/`)}#S(){if(this.#h(this.#r,`?`))return!0;if(this.#t[this.#r].value!==`?`)return!1;let e=this.#m(this.#r-1);return e.type!==`NAME`&&e.type!==`REGEX`&&e.type!==`CLOSE`&&e.type!==`ASTERISK`}#C(){return this.#h(this.#r,`#`)}#w(){return this.#t[this.#r].type==`OPEN`}#T(){return this.#t[this.#r].type==`CLOSE`}#E(){return this.#h(this.#r,`[`)}#D(){return this.#h(this.#r,`]`)}#O(){let e=this.#t[this.#r],t=this.#m(this.#a).index;return this.#e.substring(t,e.index)}#k(){let e={};Object.assign(e,OT),e.encodePart=WT;let t=TT(this.#O(),void 0,e);this.#l=PT(t)}};_T(eE,`Parser`);var tE=[`protocol`,`username`,`password`,`hostname`,`port`,`pathname`,`search`,`hash`],nE=`*`;function rE(e,t){if(typeof e!=`string`)throw TypeError(`parameter 1 is not of type 'string'.`);let n=new URL(e,t);return{protocol:n.protocol.substring(0,n.protocol.length-1),username:n.username,password:n.password,hostname:n.hostname,port:n.port,pathname:n.pathname,search:n.search===``?void 0:n.search.substring(1,n.search.length),hash:n.hash===``?void 0:n.hash.substring(1,n.hash.length)}}_T(rE,`extractValues`);function iE(e,t){return t?oE(e):e}_T(iE,`processBaseURLString`);function aE(e,t,n){let r;if(typeof t.baseURL==`string`)try{r=new URL(t.baseURL),t.protocol===void 0&&(e.protocol=iE(r.protocol.substring(0,r.protocol.length-1),n)),!n&&t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.username===void 0&&(e.username=iE(r.username,n)),!n&&t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.username===void 0&&t.password===void 0&&(e.password=iE(r.password,n)),t.protocol===void 0&&t.hostname===void 0&&(e.hostname=iE(r.hostname,n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&(e.port=iE(r.port,n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&(e.pathname=iE(r.pathname,n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&t.search===void 0&&(e.search=iE(r.search.substring(1,r.search.length),n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&t.search===void 0&&t.hash===void 0&&(e.hash=iE(r.hash.substring(1,r.hash.length),n))}catch{throw TypeError(`invalid baseURL '${t.baseURL}'.`)}if(typeof t.protocol==`string`&&(e.protocol=HT(t.protocol,n)),typeof t.username==`string`&&(e.username=zT(t.username,n)),typeof t.password==`string`&&(e.password=RT(t.password,n)),typeof t.hostname==`string`&&(e.hostname=LT(t.hostname,n)),typeof t.port==`string`&&(e.port=VT(t.port,e.protocol,n)),typeof t.pathname==`string`){if(e.pathname=t.pathname,r&&!kT(e.pathname,n)){let t=r.pathname.lastIndexOf(`/`);t>=0&&(e.pathname=iE(r.pathname.substring(0,t+1),n)+e.pathname)}e.pathname=BT(e.pathname,e.protocol,n)}return typeof t.search==`string`&&(e.search=IT(t.search,n)),typeof t.hash==`string`&&(e.hash=FT(t.hash,n)),e}_T(aE,`applyInit`);function oE(e){return e.replace(/([+*?:{}()\\])/g,`\\$1`)}_T(oE,`escapePatternString`);function sE(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,`\\$1`)}_T(sE,`escapeRegexpString`);function cE(e,t){t.delimiter??=`/#?`,t.prefixes??=`./`,t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith=``;let n=`[^${sE(t.delimiter)}]+?`,r=/[$_\u200C\u200D\p{ID_Continue}]/u,i=``;for(let a=0;a<e.length;++a){let o=e[a];if(o.type===3){if(o.modifier===3){i+=oE(o.value);continue}i+=`{${oE(o.value)}}${ET(o.modifier)}`;continue}let s=o.hasCustomName(),c=!!o.suffix.length||!!o.prefix.length&&(o.prefix.length!==1||!t.prefixes.includes(o.prefix)),l=a>0?e[a-1]:null,u=a<e.length-1?e[a+1]:null;if(!c&&s&&o.type===1&&o.modifier===3&&u&&!u.prefix.length&&!u.suffix.length)if(u.type===3){let e=u.value.length>0?u.value[0]:``;c=r.test(e)}else c=!u.hasCustomName();if(!c&&!o.prefix.length&&l&&l.type===3){let e=l.value[l.value.length-1];c=t.prefixes.includes(e)}c&&(i+=`{`),i+=oE(o.prefix),s&&(i+=`:${o.name}`),o.type===2?i+=`(${o.value})`:o.type===1?s||(i+=`(${n})`):o.type===0&&(!s&&(!l||l.type===3||l.modifier!==3||c||o.prefix!==``)?i+=`*`:i+=`(.*)`),o.type===1&&s&&o.suffix.length&&r.test(o.suffix[0])&&(i+=`\\`),i+=oE(o.suffix),c&&(i+=`}`),o.modifier!==3&&(i+=ET(o.modifier))}return i}_T(cE,`partsToPattern`);var lE=class{#e;#t={};#n={};#r={};#i={};#a=!1;constructor(e={},t,n){try{let r;if(typeof t==`string`?r=t:n=t,typeof e==`string`){let t=new eE(e);if(t.parse(),e=t.result,r===void 0&&typeof e.protocol!=`string`)throw TypeError(`A base URL must be provided for a relative constructor string.`);e.baseURL=r}else{if(!e||typeof e!=`object`)throw TypeError(`parameter 1 is not of type 'string' and cannot convert to dictionary.`);if(r)throw TypeError(`parameter 1 is not of type 'string'.`)}typeof n>`u`&&(n={ignoreCase:!1});let i={ignoreCase:n.ignoreCase===!0},a={pathname:nE,protocol:nE,username:nE,password:nE,hostname:nE,port:nE,search:nE,hash:nE};this.#e=aE(a,e,!0),UT(this.#e.protocol)===this.#e.port&&(this.#e.port=``);let o;for(o of tE){if(!(o in this.#e))continue;let e={},t=this.#e[o];switch(this.#n[o]=[],o){case`protocol`:Object.assign(e,OT),e.encodePart=WT;break;case`username`:Object.assign(e,OT),e.encodePart=GT;break;case`password`:Object.assign(e,OT),e.encodePart=KT;break;case`hostname`:Object.assign(e,noe),MT(t)?e.encodePart=JT:e.encodePart=qT;break;case`port`:Object.assign(e,OT),e.encodePart=YT;break;case`pathname`:PT(this.#t.protocol)?(Object.assign(e,roe,i),e.encodePart=XT):(Object.assign(e,OT,i),e.encodePart=ZT);break;case`search`:Object.assign(e,OT,i),e.encodePart=QT;break;case`hash`:Object.assign(e,OT,i),e.encodePart=$T;break}try{this.#i[o]=ST(t,e),this.#t[o]=DT(this.#i[o],this.#n[o],e),this.#r[o]=cE(this.#i[o],e),this.#a=this.#a||this.#i[o].some(e=>e.type===2)}catch{throw TypeError(`invalid ${o} pattern '${this.#e[o]}'.`)}}}catch(e){throw TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}get[Symbol.toStringTag](){return`URLPattern`}test(e={},t){let n={pathname:``,protocol:``,username:``,password:``,hostname:``,port:``,search:``,hash:``};if(typeof e!=`string`&&t)throw TypeError(`parameter 1 is not of type 'string'.`);if(typeof e>`u`)return!1;try{n=typeof e==`object`?aE(n,e,!1):aE(n,rE(e,t),!1)}catch{return!1}let r;for(r of tE)if(!this.#t[r].exec(n[r]))return!1;return!0}exec(e={},t){let n={pathname:``,protocol:``,username:``,password:``,hostname:``,port:``,search:``,hash:``};if(typeof e!=`string`&&t)throw TypeError(`parameter 1 is not of type 'string'.`);if(typeof e>`u`)return;try{n=typeof e==`object`?aE(n,e,!1):aE(n,rE(e,t),!1)}catch{return null}let r={};t?r.inputs=[e,t]:r.inputs=[e];let i;for(i of tE){let e=this.#t[i].exec(n[i]);if(!e)return null;let t={};for(let[n,r]of this.#n[i].entries())(typeof r==`string`||typeof r==`number`)&&(t[r]=e[n+1]);r[i]={input:n[i]??``,groups:t}}return r}static compareComponent(e,t,n){let r=_T((e,t)=>{for(let n of[`type`,`modifier`,`prefix`,`value`,`suffix`]){if(e[n]<t[n])return-1;if(e[n]!==t[n])return 1}return 0},`comparePart`),i=new vT(3,``,``,``,``,3),a=new vT(0,``,``,``,``,3),o=_T((e,t)=>{let n=0;for(;n<Math.min(e.length,t.length);++n){let i=r(e[n],t[n]);if(i)return i}return e.length===t.length?0:r(e[n]??i,t[n]??i)},`comparePartList`);return!t.#r[e]&&!n.#r[e]?0:t.#r[e]&&!n.#r[e]?o(t.#i[e],[a]):!t.#r[e]&&n.#r[e]?o([a],n.#i[e]):o(t.#i[e],n.#i[e])}get protocol(){return this.#r.protocol}get username(){return this.#r.username}get password(){return this.#r.password}get hostname(){return this.#r.hostname}get port(){return this.#r.port}get pathname(){return this.#r.pathname}get search(){return this.#r.search}get hash(){return this.#r.hash}get hasRegExpGroups(){return this.#a}};_T(lE,`URLPattern`),globalThis.URLPattern||(globalThis.URLPattern=lE);function ioe(e,t){let n,r,i;try{n=new URLPattern(e),r=new URLPattern({protocol:n.protocol,hostname:n.hostname}),i=new URL(t)}catch{return!1}return i.hostname===`localhost`&&r.test(i)?!0:n.test(i)}function uE(e,t){if(t)try{let n=new URL(t);return za.BACKEND_BASE_URL&&n.origin===new URL(za.BACKEND_BASE_URL).origin?e:void 0}catch{return za.BACKEND_BASE_URL?e:void 0}}var dE=e=>{let{resourceCrossOriginMode:t}=(0,_.useContext)(gT);if(e)return uE(t,e)},fE=()=>Mt(),aoe=G(`div`,{target:`exttvjz0`})(({theme:e,background:t})=>{let n=zC(e);
25return{width:`100%`,display:`flex`,alignItems:`flex-start`,gap:e.spacing.sm,padding:e.spacing.lg,paddingRight:t?e.spacing.lg:0,borderRadius:e.radii.default,...t?{backgroundColor:G_(n?e.colors.gray20:e.colors.gray90,.5)}:{}}}),ooe=G(`div`,{target:`exttvjz1`})(({theme:e})=>({color:e.colors.bodyText,margin:`auto`,flexGrow:1,minWidth:0})),pE=G(`div`,{target:`exttvjz2`})(({theme:e})=>{let t=zC(e);return{display:`flex`,border:`${e.sizes.borderWidth} solid ${t?e.colors.gray40:e.colors.gray85}`,backgroundColor:t?e.colors.white:e.colors.gray100,color:t?e.colors.gray90:e.colors.white,lineHeight:e.lineHeights.none,fontSize:e.fontSizes.md,flexShrink:0,width:e.sizes.chatAvatarSize,height:e.sizes.chatAvatarSize,borderRadius:e.radii.default,alignItems:`center`,justifyContent:`center`}}),mE=G(`div`,{target:`exttvjz3`})(({theme:e,background:t})=>{let n=zC(e);return{display:`flex`,width:e.sizes.chatAvatarSize,height:e.sizes.chatAvatarSize,flexShrink:0,borderRadius:e.radii.default,alignItems:`center`,justifyContent:`center`,backgroundColor:t,color:n?e.colors.white:e.colors.gray100}}),soe=G(`img`,{target:`exttvjz4`})(({theme:e})=>({width:e.sizes.chatAvatarSize,height:e.sizes.chatAvatarSize,flexShrink:0,borderRadius:e.radii.default,objectFit:`cover`,display:`flex`}));function coe(e){let{avatar:t,avatarType:n,name:r,endpoints:i}=e,a=fE(),o=dE(t);if(t)switch(n){case void 0:break;case Co.ChatMessage.AvatarType.IMAGE:return P(soe,{src:i.buildMediaURL(t),alt:`${r} avatar`,crossOrigin:o});case Co.ChatMessage.AvatarType.EMOJI:return P(pE,{children:t});case Co.ChatMessage.AvatarType.ICON:if(t===`user`)return P(mE,{"data-testid":`stChatMessageAvatarUser`,background:a.colors.redColor,children:P(hT,{size:`lg`,iconValue:`:material/face:`})});if(t===`assistant`)return P(mE,{"data-testid":`stChatMessageAvatarAssistant`,background:a.colors.orangeColor,children:P(hT,{size:`lg`,iconValue:`:material/smart_toy:`})});if(t.startsWith(`:material`))return P(pE,{"data-testid":`stChatMessageAvatarCustom`,children:P(hT,{size:`lg`,iconValue:t,color:a.colors.bodyText})})}return P(pE,{children:r?r.charAt(0).toUpperCase():`ð§âð»`})}var loe=(0,_.memo)(({endpoints:e,element:t,children:n})=>{let{avatar:r,avatarType:i,name:a}=t;return F(aoe,{className:`stChatMessage`,"data-testid":`stChatMessage`,background:[`user`,`human`].includes(a.toLowerCase()),children:[P(coe,{name:a,avatar:r,avatarType:i,endpoints:e}),P(ooe,{"data-testid":`stChatMessageContent`,"aria-label":`Chat message from ${a}`,children:n})]})}),hE=(0,_.createContext)(!1);hE.displayName=`IsDialogContext`;function gE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var uoe=s(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),doe=s(((e,t)=>{var n=uoe();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),_E=s(((e,t)=>{t.exports=doe()()})),vE=`data-focus-lock`,yE=`data-focus-lock-disabled`,foe=`data-no-focus-lock`,bE=`data-autofocus-inside`,poe=`data-no-autofocus`;function xE(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function moe(e,t){var n=(0,_.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var hoe=typeof window<`u`?_.useLayoutEffect:_.useEffect,SE=new WeakMap;function goe(e,t){var n=moe(t||null,function(t){return e.forEach(function(e){return xE(e,t)})});return hoe(function(){var t=SE.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||xE(e,null)}
25),i.forEach(function(e){r.has(e)||xE(e,a)})}SE.set(n,e)},[e]),n}var CE={width:`1px`,height:`0px`,padding:0,overflow:`hidden`,position:`fixed`,top:`1px`,left:`1px`},_oe=function(e){var t=e.children,n=t===void 0?null:t;return _.createElement(_.Fragment,null,_.createElement(`div`,{key:`guard-first`,"data-focus-guard":!0,"data-focus-auto-guard":!0,style:CE}),n,n&&_.createElement(`div`,{key:`guard-last`,"data-focus-guard":!0,"data-focus-auto-guard":!0,style:CE}))};_oe.propTypes={};var wE=function(){return wE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},wE.apply(this,arguments)};function TE(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function EE(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function DE(e){return this instanceof DE?(this.v=e,this):new DE(e)}function OE(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof DE?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function kE(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:DE(e[r](t)),done:!1}:i?i(t):t}:i}}function AE(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof EE==`function`?EE(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function jE(e){return e}function ME(e,t){t===void 0&&(t=jE);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function NE(e,t){return t===void 0&&(t=jE),ME(e,t)}function voe(e){e===void 0&&(e={});var t=ME(null);return t.options=wE({async:!0,ssr:!1},e),t}var PE=NE({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),FE=NE(),IE=NE(),yoe=voe({async:!0,ssr:typeof document<`u`}),boe=(0,_.createContext)(void 0),xoe=[],LE=_.forwardRef(function(e,t){var n,r=_.useState(),i=r[0],a=r[1],o=_.useRef(),s=_.useRef(!1),c=_.useRef(null),l=_.useState({})[1],u=e.children,d=e.disabled,f=d===void 0?!1:d,p=e.noFocusGuards,m=p===void 0?!1:p,h=e.persistentFocus,g=h===void 0?!1:h,v=e.crossFrame,y=v===void 0?!0:v,b=e.autoFocus,x=b===void 0?!0:b;e.allowTextSelection;var S=e.group,C=e.className,w=e.whiteList,T=e.hasPositiveIndices,E=e.shards,D=E===void 0?xoe:E,O=e.as,k=O===void 0?`div`:O,A=e.lockProps,ee=A===void 0?{}:A,te=e.sideCar,ne=e.returnFocus,re=ne===void 0?!1:ne,ie=e.focusOptions,ae=e.onActivation,oe=e.onDeactivation,j=_.useState({})[0],se=_.useCallback(function(e){var t=e.captureFocusRestore;if(!c.current){var n=document?.activeElement;c.current=n,n!==document.body&&(c.current=t(n))}o.current&&ae&&ae(o.current),s.current=!0,l()},[ae]),ce=_.useCallback(function(){s.current=!1,oe&&oe(o.current),l()},[oe]),le=_.useCallback(function(e){var t=c.current;if(t){var n=(typeof t==`function`?t():t)||document.body,r=typeof re==`function`?re(n):re;if(r){var i=typeof r==`object`?r:void 0;c.current=null,e?Promise.resolve().then(function(){return n.focus(i)}):n.focus(i)}}},[re]),M=_.useCallback(function(e){s.current&&PE.useMedium(e)},[]),N=FE.useMedium,ue=_.useCallback(function(e){o.current!==e&&(o.current=e,a(e))},[]),de=tt((n={},n[yE]=f&&`disabled`,n[vE]=S,n),ee),fe=m!==!0,pe=fe&&m!==`tail`,me=goe([t,ue]),he=_.useMemo(function(){return{observed:o,shards:D,enabled:!f,active:s.current}},[f,s.current,D,i]);return _.createElement(_.Fragment,null,fe&&[_.createElement(`div`,{key:`guard-first`,"data-focus-guard":!0,tabIndex:f?-1:0,style:CE}),T?_.createElement(`div`,{key:`guard-nearest`,"data-focus-guard":!0,tabIndex:f?-1:1,style:CE}):null],!f&&_.createElement(te,{id:j,sideCar:yoe,observed:i,disabled:f,persistentFocus:g,crossFrame:y,autoFocus:x,whiteList:w,shards:D,onActivation:se,onDeactivation:ce,returnFocus:le,focusOptions:ie,noFocusGuards:m}),_.createElement(k,tt({ref:me},de,{className:C,onBlur:N,onFocus:M}),_.createElement(boe.Provider,{value:he},u)),pe&&_.createElement(`div`,{"data-focus-guard":!0,tabIndex:f?-1:0,style:CE}))});LE.propTypes={};
25function RE(e,t){return RE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RE(e,t)}function zE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,RE(e,t)}function BE(e){"@babel/helpers - typeof";return BE=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},BE(e)}function Soe(e,t){if(BE(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(BE(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function VE(e){var t=Soe(e,`string`);return BE(t)==`symbol`?t:t+``}function HE(e,t,n){return(t=VE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Coe(e,t){function n(e){return e.displayName||e.name||`Component`}return function(r){var i=[],a;function o(){a=e(i.map(function(e){return e.props})),t(a)}var s=function(e){zE(t,e);function t(){return e.apply(this,arguments)||this}t.peek=function(){return a};var n=t.prototype;return n.componentDidMount=function(){i.push(this),o()},n.componentDidUpdate=function(){o()},n.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),o()},n.render=function(){return _.createElement(r,this.props)},t}(_.PureComponent);return HE(s,`displayName`,`SideEffect(`+n(r)+`)`),s}}var UE=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},WE=function(e){return Array.isArray(e)?e:[e]},GE=function(e){return Array.isArray(e)?e[0]:e},woe=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue(`display`)===`none`||t.getPropertyValue(`visibility`)===`hidden`},KE=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},qE=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Toe=function(e){return e.hasAttribute(`inert`)},Eoe=function(e,t){return!e||qE(e)||!woe(e)&&!Toe(e)&&t(KE(e))},JE=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=Eoe(t,JE.bind(void 0,e));return e.set(t,r),r},Doe=function(e,t){return e&&!qE(e)?Aoe(e)?t(KE(e)):!1:!0},YE=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=Doe(t,YE.bind(void 0,e));return e.set(t,r),r},XE=function(e){return e.dataset},Ooe=function(e){return e.tagName===`BUTTON`},ZE=function(e){return e.tagName===`INPUT`},QE=function(e){return ZE(e)&&e.type===`radio`},koe=function(e){return!((ZE(e)||Ooe(e))&&(e.type===`hidden`||e.disabled))},Aoe=function(e){var t=e.getAttribute(poe);return![!0,`true`,``].includes(t)},$E=function(e){return!!(e&&XE(e)?.focusGuard)},eD=function(e){return!$E(e)},joe=function(e){return!!e},Moe=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),i=n-r,a=e.index-t.index;if(i){if(!n)return 1;if(!r)return-1}return i||a},Noe=function(e){return e.tabIndex<0&&!e.hasAttribute(`tabindex`)?0:e.tabIndex},tD=function(e,t,n){return UE(e).map(function(e,t){var r=Noe(e);return{node:e,index:t,tabIndex:n&&r===-1?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!t||e.tabIndex>=0}).sort(Moe)},nD=[`button:enabled`,`select:enabled`,`textarea:enabled`,`input:enabled`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[tabindex]`,`[contenteditable]`,`[autofocus]`].join(`,`),Poe=`${nD}, [data-focus-guard]`,rD=function(e,t){return UE((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?Poe:nD)?[n]:[],rD(n))},[])},Foe=function(e,t){return e instanceof HTMLIFrameElement&&e.contentDocument?.body?iD([e.contentDocument.body],t):[e]},iD=function(e,t){return e.reduce(function(e,n){var r,i=rD(n,t),a=(r=[]).concat.apply(r,i.map(function(e){return Foe(e,t)}));return e.concat(a,n.parentNode?UE(n.parentNode.querySelectorAll(nD)).filter(function(e){return e===n}):[])},[])},Ioe=function(e){return UE(e.querySelectorAll(`[${bE}]`)).map(function(e){return iD([e])}).reduce(function(e,t){return e.concat(t)},[])},aD=function(e,t){return UE(e).filter(function(e){return JE(t,e)}).filter(function(e){return koe(e)})},oD=function(e,t){return t===void 0&&(t=new Map),UE(e).filter(function(e){return YE(t,e)})},sD=function(e,t,n){return tD(aD(iD(e,n),t),!0,n)},cD=function(e,t){return tD(aD(iD(e),t),!1)},lD=function(e,t){return aD(Ioe(e),t)},uD=function(e,t){return e.shadowRoot?uD(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:UE(e.children).some(function(e){if(e instanceof HTMLIFrameElement){var n=e.contentDocument?.body;return n?uD(n,t):!1}return uD(e,t)})},dD=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var a=e[r].compareDocumentPosition(e[i]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})},fD=function(e){return e.parentNode?fD(e.parentNode):e}
25,pD=function(e){return WE(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(vE);return e.push.apply(e,n?dD(UE(fD(t).querySelectorAll(`[${vE}="${n}"]:not([${yE}="disabled"])`))):[t]),e},[])},mD=function(e){try{return e()}catch{return}},hD=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?hD(t.shadowRoot):t instanceof HTMLIFrameElement&&mD(function(){return t.contentWindow.document})?hD(t.contentWindow.document):t}},gD=function(e,t){return e===t},_D=function(e,t){return!!UE(e.querySelectorAll(`iframe`)).some(function(e){return gD(e,t)})},vD=function(e,t){return t===void 0&&(t=hD(GE(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:pD(e).some(function(e){return uD(e,t)||_D(e,t)})},yD=function(e){e===void 0&&(e=document);var t=hD(e);return t?UE(e.querySelectorAll(`[${foe}]`)).some(function(e){return uD(e,t)}):!1},bD=function(e,t){return t.filter(QE).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},xD=function(e,t){return QE(e)&&e.name?bD(e,t):e},SD=function(e){var t=new Set;return e.forEach(function(n){return t.add(xD(n,e))}),e.filter(function(e){return t.has(e)})},CD=function(e){return e[0]&&e.length>1?xD(e[0],e):e[0]},wD=function(e,t){return e.indexOf(xD(t,e))},TD=`NEW_FOCUS`,ED=function(e,t,n,r,i){var a=e.length,o=e[0],s=e[a-1],c=$E(r);if(!(r&&e.indexOf(r)>=0)){var l=r===void 0?-1:n.indexOf(r),u=i?n.indexOf(i):l,d=i?e.indexOf(i):-1;if(l===-1)return d===-1?TD:d;if(d===-1)return TD;var f=l-u,p=n.indexOf(o),m=n.indexOf(s),h=SD(n),g=(r===void 0?-1:h.indexOf(r))-(i?h.indexOf(i):l);if(!f&&d>=0||t.length===0)return d;var _=wD(e,t[0]),v=wD(e,t[t.length-1]);if(l<=p&&c&&Math.abs(f)>1)return v;if(l>=m&&c&&Math.abs(f)>1)return _;if(f&&Math.abs(g)>1)return d;if(l<=p)return v;if(l>m)return _;if(f)return Math.abs(f)>1?d:(a+d+f)%a}},DD=function(e){return function(t){var n=XE(t)?.autofocus;
25return t.autofocus||n!==void 0&&n!==`false`||e.indexOf(t)>=0}},OD=function(e,t,n){var r=oD(e.map(function(e){return e.node}).filter(DD(n)));return r&&r.length?CD(r):CD(oD(t))},kD=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&kD(e.parentNode.host||e.parentNode,t),t},AD=function(e,t){for(var n=kD(e),r=kD(t),i=0;i<n.length;i+=1){var a=n[i];if(r.indexOf(a)>=0)return a}return!1},jD=function(e,t,n){var r=WE(e),i=WE(t),a=r[0],o=!1;return i.filter(Boolean).forEach(function(e){o=AD(o||e,e)||o,n.filter(Boolean).forEach(function(e){var t=AD(a,e);t&&(o=!o||uD(t,o)?t:AD(t,o))})}),o},MD=function(e,t){return e.reduce(function(e,n){return e.concat(lD(n,t))},[])},ND=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter(joe)},PD=function(e,t){var n=hD(WE(e).length>0?document:GE(e).ownerDocument),r=pD(e).filter(eD),i=jD(n||e,e,r),a=new Map,o=cD(r,a),s=o.filter(function(e){var t=e.node;return eD(t)});if(s[0]){var c=cD([i],a).map(function(e){return e.node}),l=ND(c,s),u=l.map(function(e){return e.node}),d=l.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),f=ED(u,d,c,n,t);if(f===`NEW_FOCUS`){var p=OD(o,d,MD(r,a))||OD(o,u,MD(r,a));if(p)return{node:p};console.warn(`focus-lock: cannot find any node to move focus into`);return}return f===void 0?f:l[f]}},FD=function(e){var t=pD(e).filter(eD),n=tD(iD([jD(e,e,t)],!0),!0,!0),r=iD(t,!1);return n.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:r.indexOf(t)>=0,guard:$E(t)}})},ID=function(e,t){e&&(`focus`in e&&e.focus(t),`contentWindow`in e&&e.contentWindow&&e.contentWindow.focus())},LD=0,RD=!1,zD=function(e,t,n){n===void 0&&(n={});var r=PD(e,t);if(!RD&&r){if(LD>2){console.error(`FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting`),RD=!0,setTimeout(function(){RD=!1},1);return}LD++,ID(r.node,n.focusOptions),LD--}};function BD(e){if(!e)return null;if(typeof WeakRef>`u`)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return t?.deref()||null}}var VD=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:BD(n),parent:BD(n.parentElement),left:BD(n.previousElementSibling),right:BD(n.nextElementSibling)}),n=n.parentElement;return{element:BD(e),stack:t,ownerDocument:e.ownerDocument}},HD=function(e){if(e)for(var t=e.stack,n=e.ownerDocument,r=new Map,i=0,a=t;i<a.length;i++){var o=a[i],s=o.parent?.call(o);if(s&&n.contains(s)){for(var c=o.left?.call(o),l=o.current(),u=s.contains(l)?l:void 0,d=o.right?.call(o),f=sD([s],r),p=u??c?.nextElementSibling??d??c;p;){for(var m=0,h=f;m<h.length;m++){var g=h[m];if(p?.contains(g.node))return g.node}p=p.nextElementSibling}if(f.length)return f[0].node}}},UD=function(e){var t=VD(e);return function(){return HD(t)}},WD=function(e,t,n){if(!e||!t)return console.error(`no element or scope given`),{};var r=WE(t);if(r.every(function(t){return!uD(t,e)}))return console.error(`Active element is not contained in the scope`),{};var i=n?sD(r,new Map):cD(r,new Map),a=i.findIndex(function(t){return t.node===e});if(a!==-1)return{prev:i[a-1],next:i[a+1],first:i[0],last:i[i.length-1]}},GD=function(e,t){var n=t?sD(WE(e),new Map):cD(WE(e),new Map);return{first:n[0],last:n[n.length-1]}},KD=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},qD=function(e,t,n){t===void 0&&(t={});var r=KD(t),i=WD(e,r.scope,r.onlyTabbable);if(i){var a=n(i,r.cycle);a&&ID(a.node,r.focusOptions)}},JD=function(e,t){t===void 0&&(t={}),qD(e,t,function(e,t){var n=e.next,r=e.first;return n||t&&r})},YD=function(e,t){t===void 0&&(t={}),qD(e,t,function(e,t){var n=e.prev,r=e.last;return n||t&&r})},XD=function(e,t,n){var r=GD(e,t.onlyTabbable??!0)[n];r&&ID(r.node,t.focusOptions)},ZD=function(e,t){t===void 0&&(t={}),XD(e,t,`first`)},QD=function(e,t){t===void 0&&(t={}),XD(e,t,`last`)};function $D(e){setTimeout(e,1)}var eO=function(e,t){var n={};return n[e]=t,n},tO=function(e){return e&&`current`in e?e.current:e},nO=function(){return document&&document.activeElement===document.body},rO=function(){return nO()||yD()},iO=null,aO=null,oO=function(){return null},sO=null,cO=!1,lO=!1,uO=function(){return!0},dO=function(e){return(iO.whiteList||uO)(e)},fO=function(e,t){sO={observerNode:e,portaledElement:t}},pO=function(e){return sO&&sO.portaledElement===e};function mO(e,t,n,r){var i=null,a=e;do{var o=r[a];if(o.guard)o.node.dataset.focusAutoGuard&&(i=o);else if(o.lockItem){if(a!==e)return;i=null}else break}while((a+=n)!==t);i&&(i.node.tabIndex=0)}var hO=function(e){return e?!!cO:cO===`meanwhile`},gO=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},_O=function(e,t){return t.some(function(t){return gO(e,t,t)})},vO=function(e){return cD(e,new Map)},yO=function(e){return!vO([e.parentNode]).some(function(t){return t.node===e})},bO=function(){var e=!1;
25if(iO){var t=iO,n=t.observed,r=t.persistentFocus,i=t.autoFocus,a=t.shards,o=t.crossFrame,s=t.focusOptions,c=t.noFocusGuards,l=n||sO&&sO.portaledElement;if(nO()&&aO&&(!document.body.contains(aO)||yO(aO))){aO=null;var u=oO();u&&u.focus()}var d=document&&document.activeElement;if(l){var f=[l].concat(a.map(tO).filter(Boolean));if((!d||dO(d))&&(r||function(){if(!hO(o)||!c||!aO||lO)return!1;var e=vO(f),t=e.findIndex(function(e){return e.node===aO});return t===0||t===e.length-1}()||!rO()||!aO&&i)&&(l&&!(vD(f)||d&&_O(d,f)||pO(d,l))&&(document&&!aO&&d&&!i?(d.blur&&d.blur(),document.body.focus()):(e=zD(f,aO,{focusOptions:s}),sO={})),cO=!1,aO=document&&document.activeElement,oO=UD(aO)),document&&d!==document.activeElement&&document.querySelector(`[data-focus-auto-guard]`)){var p=document&&document.activeElement,m=FD(f),h=m.map(function(e){return e.node}).indexOf(p);h>-1&&(m.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute(`tabIndex`)}),mO(h,m.length,1,m),mO(h,-1,-1,m))}}}return e},xO=function(e){bO()&&e&&(e.stopPropagation(),e.preventDefault())},SO=function(){return $D(bO)},CO=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||fO(n,t)},wO=function(){return null},TO=function(e){var t=e.children;return _.createElement(`div`,{onBlur:SO,onFocus:CO},t)};TO.propTypes={};var EO=function(){lO=!0},DO=function(){lO=!1,cO=`just`,$D(function(){cO=`meanwhile`})},OO=function(){document.addEventListener(`focusin`,xO),document.addEventListener(`focusout`,SO),window.addEventListener(`focus`,EO),window.addEventListener(`blur`,DO)},kO=function(){document.removeEventListener(`focusin`,xO),document.removeEventListener(`focusout`,SO),window.removeEventListener(`focus`,EO),window.removeEventListener(`blur`,DO)};function AO(e){return e.filter(function(e){return!e.disabled})}var jO={moveFocusInside:zD,focusInside:vD,focusNextElement:JD,focusPrevElement:YD,focusFirstElement:ZD,focusLastElement:QD,captureFocusRestore:UD};function MO(e){var t=e.slice(-1)[0];t&&!iO&&OO();var n=iO,r=n&&t&&t.id===n.id;iO=t,n&&!r&&(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(aO=null,(!r||n.observed!==t.observed)&&t.onActivation(jO),bO(!0),$D(bO)):(kO(),aO=null)}PE.assignSyncMedium(CO),FE.assignMedium(SO),IE.assignMedium(function(e){return e(jO)});var NO=Coe(AO,MO)(wO),PO=_.forwardRef(function(e,t){return _.createElement(LE,tt({sideCar:NO,ref:t},e))}),FO=LE.propTypes||{};FO.sideCar,gE(FO,[`sideCar`]),PO.propTypes={};var IO=function(e){_.useEffect(function(){var t=!0;return IE.useMedium(function(n){var r=e&&e.current;t&&r&&(n.focusInside(r)||n.moveFocusInside(r,null))}),function(){t=!1}},[e])};function LO(e){var t=e.disabled,n=t===void 0?!1:t,r=e.className,i=e.children,a=_.useRef(null);return IO(n?void 0:a),_.createElement(`div`,tt({},eO(bE,!n),{ref:a,className:r}),i)}LO.propTypes={};var RO=PO,zO={default:`default`,full:`full`,auto:`auto`},BO={default:`500px`,full:`100%`,auto:`auto`},VO={dialog:`dialog`,alertdialog:`alertdialog`},HO={closeButton:`closeButton`,backdrop:`backdrop`,escape:`escape`};Vy();function UO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function WO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?UO(Object(n),!0).forEach(function(t){GO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function GO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KO(e){var t={maxWidth:`100%`,width:null};return typeof e==`number`?t.width=`${e}px`:zO[e]?t.width=BO[e]:typeof e==`string`&&(t.width=e),e===zO.full&&(t.alignSelf=`stretch`),t}var qO=W(`div`,function(e){return{position:`fixed`,overflow:`auto`,right:0,bottom:0,top:0,left:0,pointerEvents:e.$isOpen?`auto`:`none`}});qO.displayName=`Root`,qO.displayName=`Root`;var JO=W(`div`,function(e){var t=e.$animate,n=e.$isOpen,r=e.$isVisible,i=e.$theme,a={transitionProperty:`opacity`,transitionDuration:i.animation.timing400,transitionTimingFunction:i.animation.easeOutCurve};return WO({display:`flex`,alignItems:`center`,justifyContent:`center`,width:`100%`,minHeight:`100%`,userSelect:`none`,pointerEvents:`auto`,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,opacity:r&&n?1:0},t?a:null)});JO.displayName=`DialogContainer`,JO.displayName=`DialogContainer`;var YO=W(`div`,function(e){var t=e.$animate,n=e.$isOpen,r=e.$isVisible,i=e.$size,a=e.$theme;return WO(WO(WO({position:`relative`,backgroundColor:a.colors.backgroundPrimary,borderTopLeftRadius:a.borders.radius500,borderTopRightRadius:a.borders.radius500,borderBottomRightRadius:a.borders.radius500,borderBottomLeftRadius:a.borders.radius500,marginLeft:a.sizing.scale600,marginTop:a.sizing.scale600,marginRight:a.sizing.scale600,marginBottom:a.sizing.scale600},KO(i)),{},{opacity:r&&n?1:0,transform:r?`translateY(0)`:`translateY(20px)`},t?{transitionProperty:`opacity, transform`,transitionDuration:a.animation.timing400,transitionTimingFunction:a.animation.easeOutCurve}:null),{},{userSelect:`text`,pointerEvents:n?`all`:`none`,":focus":{outline:`none`}})});YO.displayName=`Dialog`,YO.displayName=`Dialog`;var XO=W(`button`,function(e){var t,n=e.$theme,r=e.$isFocusVisible,i=n.direction===`rtl`?`left`:`right`;return t={background:`transparent`,outline:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,color:n.colors.modalCloseColor,transitionProperty:`color, border-color`,transitionDuration:n.animation.timing200,borderLeftWidth:`1px`,borderRightWidth:`1px`,borderTopWidth:`1px`,borderBottomWidth:`1px`,borderLeftStyle:`solid`,borderRightStyle:`solid`,borderTopStyle:`solid`,borderBottomStyle:`solid`,borderLeftColor:`transparent`,borderRightColor:`transparent`,borderTopColor:`transparent`,borderBottomColor:`transparent`,":hover":{color:n.colors.modalCloseColorHover},":focus":{outline:r?`3px solid ${n.colors.accent}`:`none`},position:`absolute`,top:n.sizing.scale500},GO(t,i,n.sizing.scale500),GO(t,`width`,n.sizing.scale800),GO(t,`height`,n.sizing.scale800),GO(t,`display`,`flex`),GO(t,`justifyContent`,`center`),GO(t,`alignItems`,`center`),GO(t,`cursor`,`pointer`),t});XO.displayName=`Close`,XO.displayName=`Close`;var ZO=W(`div`,function(e){var t,n=e.$theme,r=n.direction===`rtl`?`marginRight`:`marginLeft`,i=n.direction===`rtl`?`marginLeft`:`marginRight`;return WO(WO({},n.typography.font550),{},(t={color:n.colors.contentPrimary,marginTop:n.sizing.scale900,marginBottom:n.sizing.scale600},GO(t,r,n.sizing.scale800),GO(t,i,n.sizing.scale900),t))});ZO.displayName=`ModalHeader`,ZO.displayName=`ModalHeader`;var QO=W(`div`,function(e){var t=e.$theme;return WO(WO({},t.typography.font200),{},{color:t.colors.contentSecondary,marginTop:t.sizing.scale600,marginLeft:t.sizing.scale800,marginRight:t.sizing.scale800,marginBottom:t.sizing.scale700})});QO.displayName=`ModalBody`,QO.displayName=`ModalBody`;var $O=W(`div`,function(e){var t=e.$theme;return WO(WO({},t.typography.font200),{},{marginTop:t.sizing.scale700,marginLeft:t.sizing.scale800,marginRight:t.sizing.scale800,paddingTop:t.sizing.scale500,paddingBottom:t.sizing.scale500,textAlign:t.direction===`rtl`?`left`:`right`})});
25$O.displayName=`ModalFooter`,$O.displayName=`ModalFooter`;function ek(){return _.createElement(`svg`,{width:`10`,height:`10`,viewBox:`0 0 10 10`,style:{stroke:`currentColor`},xmlns:`http://www.w3.org/2000/svg`},_.createElement(`path`,{d:`M9 1L5 5M1 9L5 5M5 5L1 1M5 5L9 9`,strokeWidth:`2`,strokeLinecap:`round`}))}ab(),Jb(),NC(),rx();function tk(e){"@babel/helpers - typeof";return tk=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},tk(e)}function nk(){return nk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nk.apply(this,arguments)}function rk(e,t){return ck(e)||sk(e,t)||ak(e,t)||ik()}function ik(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 26In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ak(e,t){if(e){if(typeof e==`string`)return ok(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ok(e,t)}}function ok(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sk(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function ck(e){if(Array.isArray(e))return e}function lk(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function uk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dk(e,t,n){return t&&uk(e.prototype,t),n&&uk(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function fk(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&pk(e,t)}function pk(e,t){return pk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pk(e,t)}function mk(e){var t=_k();return function(){var n=vk(e),r;if(t){var i=vk(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return hk(this,r)}}function hk(e,t){if(t&&(tk(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return gk(e)}function gk(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function _k(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vk(e){return vk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vk(e)}function yk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bk=function(e){fk(n,e);var t=mk(n);function n(){var e;lk(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),yk(gk(e),`animateOutTimer`,void 0),yk(gk(e),`animateStartTimer`,void 0),yk(gk(e),`dialogContainerRef`,_.createRef()),yk(gk(e),`lastFocus`,null),yk(gk(e),`lastMountNodeOverflowStyle`,null),yk(gk(e),`rootRef`,_.createRef()),yk(gk(e),`state`,{isVisible:!1,mounted:!1,isFocusVisible:!1}),yk(gk(e),`handleFocus`,function(t){Xb(t)&&e.setState({isFocusVisible:!0})}),yk(gk(e),`handleBlur`,function(t){e.state.isFocusVisible!==!1&&e.setState({isFocusVisible:!1})}),yk(gk(e),`onEscape`,function(){e.props.closeable&&e.triggerClose(HO.escape)}),yk(gk(e),`onDocumentClick`,function(t){t.target&&t.target instanceof HTMLElement&&t.target.contains(e.dialogContainerRef.current)&&e.onBackdropClick()}),yk(gk(e),`onBackdropClick`,function(){e.props.closeable&&e.triggerClose(HO.backdrop)}),yk(gk(e),`onCloseClick`,function(){e.triggerClose(HO.closeButton)}),yk(gk(e),`animateOutComplete`,function(){e.setState({isVisible:!1})}),e}return dk(n,[{key:`componentDidMount`,value:function(){this.setState({mounted:!0})}},{key:`componentWillUnmount`,value:function(){this.resetMountNodeScroll(),this.clearTimers()}},{key:`componentDidUpdate`,value:function(e,t){var n=this.props.isOpen;(n!==e.isOpen||n&&this.state.mounted&&!t.mounted)&&(n?this.didOpen():this.didClose())}},{key:`disableMountNodeScroll`,value:function(){var e=this.getMountNode();this.lastMountNodeOverflowStyle=e.style.overflow||``,e.style.overflow=`hidden`}},{key:`resetMountNodeScroll`,value:function(){var e=this.getMountNode(),t=this.lastMountNodeOverflowStyle;e&&t!==null&&(e.style.overflow===`hidden`&&(e.style.overflow=t||``),this.lastMountNodeOverflowStyle=null)}},{key:`clearTimers`,value:function(){this.animateOutTimer&&clearTimeout(this.animateOutTimer),this.animateStartTimer&&cancelAnimationFrame(this.animateStartTimer)}},{key:`didOpen`,value:function(){var e=this,t=this.rootRef.current;t&&(t.scrollTop=0),this.clearTimers(),this.disableMountNodeScroll(),this.animateStartTimer=requestAnimationFrame(function(){e.setState({isVisible:!0})})}},{key:`didClose`,value:function(){this.resetMountNodeScroll(),this.animateOutTimer=setTimeout(this.animateOutComplete,500)}},{key:`triggerClose`,value:function(e){this.props.onClose&&e&&this.props.onClose({closeSource:e})}},{key:`getSharedProps`,value:function(){var e=this.props,t=e.animate,n=e.isOpen,r=e.size,i=e.role,a=e.closeable;return{$animate:t,$isVisible:this.state.isVisible,$isOpen:!!n,$size:r,$role:i,$closeable:!!a,$isFocusVisible:this.state.isFocusVisible}}},{key:`getMountNode`,value:function(){return this.props.mountNode||document.body}},{key:`getChildren`,value:function(){var e=this.props.children;return typeof e==`function`?e():e}},{key:`renderModal`,value:function(){var e=this,t=this.props,n=t.overrides,r=n===void 0?{}
26:n,i=t.closeable,a=t.role,o=t.autoFocus,s=t.focusLock,c=t.returnFocus,l=r.Root,u=r.Dialog,d=r.DialogContainer,f=r.Close,p=rk(Hb(l,qO),2),m=p[0],h=p[1],g=rk(Hb(d,JO),2),v=g[0],y=g[1],b=rk(Hb(u,YO),2),x=b[0],S=b[1],C=rk(Hb(f,XO),2),w=C[0],T=C[1],E=this.getSharedProps(),D=this.getChildren();return _.createElement(rb.Consumer,null,function(t){return _.createElement(RO,{disabled:!s,crossFrame:!1,returnFocus:c,autoFocus:o},_.createElement(m,nk({"data-baseweb":`modal`,ref:e.rootRef},E,h),_.createElement(v,nk({ref:e.dialogContainerRef},E,y),_.createElement(x,nk({tabIndex:-1,"aria-modal":!0,"aria-label":`dialog`,role:a},E,S),D,i?_.createElement(w,nk({"aria-label":t.modal.close,onClick:e.onCloseClick},E,T,{onFocus:tx(T,e.handleFocus),onBlur:nx(T,e.handleBlur)}),_.createElement(ek,null)):null))))})}},{key:`render`,value:function(){return!this.state.mounted||!this.props.isOpen&&!this.state.isVisible?null:_.createElement(Wx,{onEscape:this.onEscape,onDocumentClick:this.onDocumentClick,mountNode:this.props.mountNode},this.renderModal())}}]),n}(_.Component);yk(bk,`defaultProps`,{animate:!0,autoFocus:!0,focusLock:!0,returnFocus:!0,closeable:!0,name:`dialog`,isOpen:!1,overrides:{},role:VO.dialog,size:zO.default});var xk=function(e){return e.PRIMARY=`primary`,e.SECONDARY=`secondary`,e.TERTIARY=`tertiary`,e.GHOST=`ghost`,e.BORDERLESS_ICON=`borderlessIcon`,e.BORDERLESS_ICON_ACTIVE=`borderlessIconActive`,e.MINIMAL=`minimal`,e.PRIMARY_FORM_SUBMIT=`primaryFormSubmit`,e.SECONDARY_FORM_SUBMIT=`secondaryFormSubmit`,e.TERTIARY_FORM_SUBMIT=`tertiaryFormSubmit`,e.HEADER_BUTTON=`header`,e.HEADER_NO_PADDING=`headerNoPadding`,e.ELEMENT_TOOLBAR=`elementToolbar`,e.PILLS=`pills`,e.PILLS_ACTIVE=`pillsActive`,e.SEGMENTED_CONTROL=`segmented_control`,e.SEGMENTED_CONTROL_ACTIVE=`segmented_controlActive`,e}({}),Sk=function(e){return e.XSMALL=`xsmall`,e.SMALL=`small`,e.MEDIUM=`medium`,e.LARGE=`large`,e}({});function Ck(e,t){switch(e){case`xsmall`:return{padding:`${t.spacing.twoXS} ${t.spacing.sm}`,fontSize:t.fontSizes.sm};case`small`:return{padding:`${t.spacing.twoXS} ${t.spacing.md}`};case`large`:return{padding:`${t.spacing.md} ${t.spacing.md}`};default:return{padding:`${t.spacing.xs} ${t.spacing.md}`}}}var wk=G(`button`,{target:`e12tamyi0`})(({containerWidth:e,size:t,theme:n})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontWeight:n.fontWeights.normal,padding:`${n.spacing.xs} ${n.spacing.md}`,borderRadius:n.radii.button,minHeight:n.sizes.minElementHeight,margin:n.spacing.none,lineHeight:n.lineHeights.base,textTransform:`none`,fontSize:`inherit`,fontFamily:`inherit`,color:`inherit`,width:e?`100%`:`auto`,cursor:`pointer`,userSelect:`none`,"&:focus":{outline:`none`},"&:focus-visible":{boxShadow:n.shadows.focusRing},...Ck(t,n)})),Tk=G(wk,{target:`e12tamyi1`})(({theme:e})=>({backgroundColor:e.colors.primary,color:e.colors.white,border:`${e.sizes.borderWidth} solid ${e.colors.primary}`,"&:hover, &:focus-visible":{backgroundColor:B_(e.colors.primary,.15),borderColor:B_(e.colors.primary,.15)},"&:active":{backgroundColor:e.colors.primary,borderColor:B_(e.colors.primary,.15)},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:`not-allowed`}})),Ek=G(wk,{target:`e12tamyi2`})(({theme:e})=>({backgroundColor:e.colors.lightenedBg05,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,"&:hover, &:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"&:active":{backgroundColor:e.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:`not-allowed`}})),Dk=G(wk,{target:`e12tamyi3`})(({theme:e})=>({padding:e.spacing.none,backgroundColor:e.colors.transparent,border:`none`,"&:hover, &:focus-visible":{color:e.colors.primary},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"span.stMarkdownColoredText":{color:`inherit !important`}},"&:active":{color:B_(e.colors.primary,.25)},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:`not-allowed`}})),Ok=G(wk,{target:`e12tamyi4`})(({theme:e})=>({backgroundColor:e.colors.transparent,border:`${e.sizes.borderWidth} solid ${e.colors.transparent}`,"&:hover, &:focus-visible":{borderColor:e.colors.transparent,color:e.colors.primary},"&:active":{color:e.colors.primary,borderColor:e.colors.transparent,backgroundColor:e.colors.transparent},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.gray30,borderColor:e.colors.transparent,color:e.colors.gray60}})),kk=G(wk,{target:`e12tamyi5`})(({theme:e})=>({backgroundColor:e.colors.transparent,border:`none`,boxShadow:`none`,padding:e.spacing.none,"&:hover, &:active, &:focus-visible":{color:e.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{color:e.colors.fadedText40,cursor:`not-allowed`}})),Ak=G(Tk,{target:`e12tamyi6`})(),jk=G(Ek,{target:`e12tamyi7`})(),Mk=G(Dk,{target:`e12tamyi8`})(),Nk=G(wk,{target:`e12tamyi9`})(({theme:e})=>({background:e.colors.bgColor,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,fontSize:e.fontSizes.sm,lineHeight:e.lineHeights.base,fontWeight:e.fontWeights.normal,height:e.sizes.largeLogoHeight,minHeight:e.sizes.largeLogoHeight,maxWidth:e.sizes.contentMaxWidth,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"&:hover, &:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:`not-allowed`},"& div":{textOverflow:`ellipsis`,overflow:`hidden`},"& p":{textOverflow:`ellipsis`,overflow:`hidden`}})),Pk=G(Nk,{target:`e12tamyi10`})(({theme:e,containerWidth:t})=>({borderRadius:e.radii.full,padding:`${e.spacing.twoXS} ${e.spacing.md}`,flex:t?`1 1 fit-content`:``})),Fk=G(Pk,{target:`e12tamyi11`})(({theme:e})=>({backgroundColor:G_(e.colors.primary,.9),borderColor:e.colors.primary,color:e.colors.primary,"&:hover, &:focus-visible":{backgroundColor:G_(e.colors.primary,.8),borderColor:e.colors.primary,color:e.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:e.colors.borderColor,backgroundColor:e.colors.fadedText05,color:e.colors.fadedText40,cursor:`not-allowed`}})),Ik=`button[kind='segmented_controlActive']:not(:disabled)`,Lk=`button[kind='segmented_control']:not(:disabled)`,Rk=`button[kind='segmented_control']:not(:disabled):is(:hover, :focus-visible)`,zk=`button[kind='segmented_control']:not(:disabled):not(:hover):not(:focus-visible)`,Bk=G(Nk,{target:`e12tamyi12`})(({theme:e,containerWidth:t})=>({padding:`${e.spacing.twoXS} ${e.spacing.lg}`,borderRadius:`0`,flex:t?`1 1 fit-content`:``,maxWidth:`100%`,marginRight:`-${e.sizes.borderWidth}`,"&:first-child":{borderTopLeftRadius:e.radii.button,borderBottomLeftRadius:e.radii.button},"&:last-child":{borderTopRightRadius:e.radii.button,borderBottomRightRadius:e.radii.button,marginRight:e.spacing.none},"&[kind='segmented_controlActive']:not(:disabled), &[kind='segmented_control']:not(:disabled):is(:hover, :focus-visible)":{zIndex:e.zIndices.priority},[`&[kind='segmented_controlActive']:not(:disabled) + ${Lk}`]:{borderLeftColor:e.colors.transparent},[`&[kind='segmented_control']:not(:disabled):has(+ ${Ik})`]:{borderRightColor:e.colors.transparent},[`&[kind='segmented_control']:not(:disabled):is(:hover, :focus-visible) + ${zk}`]:{borderLeftColor:e.colors.transparent},[`&[kind='segmented_control']:not(:disabled):not(:hover):not(:focus-visible):has(+ ${Rk})`]:{borderRightColor:e.colors.transparent},"&:focus-visible":{zIndex:e.zIndices.priority}})),Vk=G(Bk,{target:`e12tamyi13`})(({theme:e})=>({backgroundColor:G_(e.colors.primary,.9),borderColor:e.colors.primary,color:e.colors.primary,zIndex:e.zIndices.priority,"&:hover, &:focus-visible":{backgroundColor:G_(e.colors.primary,.8)},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:e.colors.borderColor,backgroundColor:e.colors.fadedText05,color:e.colors.fadedText40,cursor:`not-allowed`}})),Hk=G(wk,{target:`e12tamyi14`})(({theme:e})=>({backgroundColor:e.colors.transparent,border:`none`,padding:`0 ${e.spacing.sm}`,fontSize:e.fontSizes.sm,marginLeft:e.spacing.threeXS,marginRight:e.spacing.threeXS,lineHeight:e.lineHeights.none,minWidth:e.sizes.headerItemHeight,minHeight:e.sizes.headerItemHeight,"&:focus":{outline:`none`},"&:focus-visible":{boxShadow:e.shadows.focusRingMuted},"&:hover":{backgroundColor:e.colors.darkenedBgMix15},"&:active":{backgroundColor:e.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.gray30,borderColor:e.colors.transparent,color:e.colors.gray60}})),Uk=G(Hk,{target:`e12tamyi15`})(()=>({padding:0})),Wk=G(wk,{target:`e12tamyi16`})(({size:e,theme:t})=>{let n={xsmall:t.spacing.threeXS,small:t.spacing.twoXS,medium:t.spacing.md,large:t.
26spacing.lg};return{backgroundColor:t.colors.transparent,color:t.colors.fadedText60,padding:n[e],marginLeft:t.spacing.none,marginRight:t.spacing.none,flex:`0 0 fit-content`,border:`none`,display:`flex`,minHeight:`unset`,"&:focus":{boxShadow:`none`,outline:`none`},"&:hover":{color:t.colors.bodyText},"&:disabled, &:disabled:hover, &:disabled:active":{color:t.colors.fadedText10,cursor:`not-allowed`,img:{opacity:.4}}}}),Gk=G(Wk,{target:`e12tamyi17`})(({theme:e})=>({color:e.colors.bodyText,"&:disabled, &:disabled:hover, &:disabled:active":{color:e.colors.fadedText40}})),Kk=G(`div`,{target:`e12tamyi18`})(({theme:e})=>({display:`block`,[`@media (max-width: ${e.breakpoints.sm})`]:{display:`none`}})),qk=G(`div`,{target:`e12tamyi19`})(({theme:e})=>({display:`none`,[`@media (max-width: ${e.breakpoints.sm})`]:{display:`block`}})),Jk=G(wk,{target:`e12tamyi20`})(({theme:e})=>({backgroundColor:e.colors.transparent,border:`none`,padding:e.spacing.twoXS,fontSize:e.fontSizes.twoSm,marginLeft:e.spacing.none,marginRight:e.spacing.none,display:`flex`,gap:e.spacing.xs,alignItems:`center`,minHeight:`unset`,lineHeight:e.iconSizes.md,width:`auto`,"&:focus":{outline:`none`,border:`none`,boxShadow:`none`},"&:focus-visible":{outline:`none`,border:`none`,boxShadow:`none`,backgroundColor:e.colors.darkenedBgMix25},"&:hover":{backgroundColor:e.colors.darkenedBgMix15},"&:active":{backgroundColor:e.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.gray30,borderColor:e.colors.transparent,color:e.colors.gray60}})),Yk=G(`div`,{target:`e12tamyi21`})(({containerWidth:e})=>({width:e?`100%`:`auto`})),Xk=G(`div`,{target:`e12tamyi22`})(()=>({display:`flex`,alignItems:`center`,justifyContent:`center`,width:`100%`})),Zk=G(`span`,{target:`e12tamyi23`})(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,gap:e.spacing.sm,minWidth:0})),Qk=G(`kbd`,{target:`e12tamyi24`})(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,whiteSpace:`nowrap`,fontSize:e.fontSizes.sm,opacity:e.opacities.secondary,fontFamily:`inherit`,lineHeight:e.lineHeights.tight,letterSpacing:`0.01em`})),$k=(0,_.forwardRef)(function(e,t){let{kind:n,size:r,disabled:i,onClick:a,containerWidth:o,children:s,autoFocus:c}=e,l=Tk;return n===xk.SECONDARY?l=Ek:n===xk.TERTIARY?l=Dk:n===xk.GHOST?l=Ok:n===xk.PILLS?l=Pk:n===xk.PILLS_ACTIVE?l=Fk:n===xk.SEGMENTED_CONTROL?l=Bk:n===xk.SEGMENTED_CONTROL_ACTIVE?l=Vk:n===xk.BORDERLESS_ICON?l=Wk:n===xk.BORDERLESS_ICON_ACTIVE?l=Gk:n===xk.MINIMAL?l=kk:n===xk.PRIMARY_FORM_SUBMIT?l=Ak:n===xk.SECONDARY_FORM_SUBMIT?l=jk:n===xk.TERTIARY_FORM_SUBMIT?l=Mk:n===xk.HEADER_BUTTON?l=Hk:n===xk.HEADER_NO_PADDING?l=Uk:n===xk.ELEMENT_TOOLBAR&&(l=Jk),P(l,{ref:t,kind:n,size:r??Sk.MEDIUM,containerWidth:o||!1,disabled:i||!1,onClick:a||(()=>{}),autoFocus:c||!1,"data-testid":e[`data-testid`]??`stBaseButton-${n}`,"aria-label":e[`aria-label`]??``,"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],children:s})}),eA=G(`span`,{target:`e1sav2h40`})(({theme:e})=>({marginRight:e.spacing.twoXS}));function tA({children:e,overrides:t}){let{genericFonts:n,fontSizes:r,spacing:i,fontWeights:a,lineHeights:o}=fE();return P(ZO,{style:{marginTop:i.none,marginLeft:i.none,marginRight:i.none,marginBottom:i.none,paddingTop:i.twoXL,paddingRight:i.twoXL,paddingBottom:i.md,paddingLeft:i.twoXL,fontFamily:n.bodyFont,fontSize:r.xl,fontWeight:a.bold,margin:i.none,lineHeight:o.small,textTransform:`none`,display:`flex`,alignItems:`center`,maxHeight:`80vh`,flexDirection:`row`,...t},children:e})}function nA({children:e}){let{colors:t,fontSizes:n,spacing:r}=fE();return P(QO,{style:{marginTop:r.none,marginLeft:r.none,marginRight:r.none,marginBottom:r.none,paddingTop:r.md,paddingRight:r.twoXL,paddingBottom:r.twoXL,paddingLeft:r.twoXL,color:t.bodyText,fontSize:n.md},children:e})}function rA({children:e}){let{spacing:t}=fE();return P($O,{style:{marginTop:t.none,marginLeft:t.none,marginRight:t.none,marginBottom:t.none,paddingTop:t.md,paddingRight:t.md,paddingBottom:t.md,paddingLeft:t.md},children:P(`div`,{children:e})})}var iA=e=>P(eA,{children:P($k,{...e})});function aA(e,t,n,r){return e===`large`&&r?r:e===`medium`&&t&&n?`calc(${t} + ${n})`:e===`auto`?zO.auto:zO.default}function oA(e){let{spacing:t,radii:n,colors:r,sizes:i}=fE(),a={Root:{style:{background:r.darkenedBgMix25},props:{className:`stDialog`,"data-testid":`stDialog`}},DialogContainer:{style:{alignItems:`start`,paddingTop:t.threeXL}},Dialog:{style:{borderBottomRightRadius:n.xxl,borderBottomLeftRadius:n.xxl,borderTopRightRadius:n.xxl,borderTopLeftRadius:n.xxl,minWidth:i.minPopupWidth}}
26,Close:{style:{top:`calc(${t.twoXL} + ${t.xs})`,right:t.twoXL}}},o=aA(e.size,i.contentMaxWidth,t.lg,i.dialogLargeWidth),s=Xh(a,e.overrides);return P(bk,{...e,size:o,overrides:s})}function sA(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var cA=[[`Ã`,`ss`],[`áº`,`Ss`],[`ä`,`ae`],[`Ã`,`Ae`],[`ö`,`oe`],[`Ã`,`Oe`],[`ü`,`ue`],[`Ã`,`Ue`],[`Ã`,`A`],[`Ã`,`A`],[`Ã`,`A`],[`Ã`,`A`],[`Ã`,`Ae`],[`Ã
`,`A`],[`Ã`,`AE`],[`Ã`,`C`],[`Ã`,`E`],[`Ã`,`E`],[`Ã`,`E`],[`Ã`,`E`],[`Æ`,`A`],[`Ã`,`I`],[`Ã`,`I`],[`Ã`,`I`],[`Ã`,`I`],[`Ã`,`D`],[`Ã`,`N`],[`Ã`,`O`],[`Ã`,`O`],[`Ã`,`O`],[`Ã`,`O`],[`Ã`,`Oe`],[`Å`,`O`],[`Å`,`O`],[`Ã`,`O`],[`Å`,`OE`],[`Ã`,`U`],[`Ã`,`U`],[`Ã`,`U`],[`Ã`,`Ue`],[`Ű`,`U`],[`Ã`,`Y`],[`Ã`,`TH`],[`Ã`,`ss`],[`à `,`a`],[`á`,`a`],[`â`,`a`],[`ã`,`a`],[`ä`,`ae`],[`Ã¥`,`a`],[`æ`,`ae`],[`ç`,`c`],[`è`,`e`],[`é`,`e`],[`ê`,`e`],[`ë`,`e`],[`É`,`a`],[`ì`,`i`],[`Ã`,`i`],[`î`,`i`],[`ï`,`i`],[`ð`,`d`],[`ñ`,`n`],[`ò`,`o`],[`ó`,`o`],[`ô`,`o`],[`õ`,`o`],[`ö`,`oe`],[`Å`,`o`],[`Å`,`o`],[`ø`,`o`],[`Å`,`oe`],[`ù`,`u`],[`ú`,`u`],[`û`,`u`],[`ü`,`ue`],[`ű`,`u`],[`ý`,`y`],[`þ`,`th`],[`ÿ`,`y`],[`à `,`a`],[`Ã`,`A`],[`á`,`a`],[`Ã`,`A`],[`â`,`a`],[`Ã`,`A`],[`ã`,`a`],[`Ã`,`A`],[`è`,`e`],[`Ã`,`E`],[`é`,`e`],[`Ã`,`E`],[`ê`,`e`],[`Ã`,`E`],[`ì`,`i`],[`Ã`,`I`],[`Ã`,`i`],[`Ã`,`I`],[`ò`,`o`],[`Ã`,`O`],[`ó`,`o`],[`Ã`,`O`],[`ô`,`o`],[`Ã`,`O`],[`õ`,`o`],[`Ã`,`O`],[`ù`,`u`],[`Ã`,`U`],[`ú`,`u`],[`Ã`,`U`],[`ý`,`y`],[`Ã`,`Y`],[`Ä`,`a`],[`Ä`,`A`],[`Ä`,`D`],[`Ä`,`d`],[`Ä©`,`i`],[`Ĩ`,`I`],[`Å©`,`u`],[`Ũ`,`U`],[`Æ¡`,`o`],[`Æ `,`O`],[`ư`,`u`],[`Ư`,`U`],[`ạ`,`a`],[`Ạ`,`A`],[`ả`,`a`],[`Ả`,`A`],[`ấ`,`a`],[`Ấ`,`A`],[`ầ`,`a`],[`Ầ`,`A`],[`ẩ`,`a`],[`Ẩ`,`A`],[`ẫ`,`a`],[`Ẫ`,`A`],[`áº`,`a`],[`Ậ`,`A`],[`ắ`,`a`],[`Ắ`,`A`],[`ằ`,`a`],[`Ằ`,`A`],[`ẳ`,`a`],[`Ẳ`,`A`],[`ẵ`,`a`],[`Ẵ`,`A`],[`ặ`,`a`],[`Ặ`,`A`],[`ẹ`,`e`],[`Ẹ`,`E`],[`ẻ`,`e`],[`Ẻ`,`E`],[`ẽ`,`e`],[`Ẽ`,`E`],[`ế`,`e`],[`Ế`,`E`],[`á»`,`e`],[`á»`,`E`],[`á»`,`e`],[`á»`,`E`],[`á»
`,`e`],[`á»`,`E`],[`á»`,`e`],[`á»`,`E`],[`á»`,`i`],[`á»`,`I`],[`á»`,`i`],[`á»`,`I`],[`á»`,`o`],[`á»`,`O`],[`á»`,`o`],[`á»`,`O`],[`á»`,`o`],[`á»`,`O`],[`á»`,`o`],[`á»`,`O`],[`á»`,`o`],[`á»`,`O`],[`á»`,`o`],[`á»`,`O`],[`á»`,`o`],[`á»`,`O`],[`á»`,`o`],[`á»`,`O`],[`á»`,`o`],[`á»`,`O`],[`á»`,`o`],[`á»`,`O`],[`ỡ`,`o`],[`á» `,`O`],[`ợ`,`o`],[`Ợ`,`O`],[`ụ`,`u`],[`Ụ`,`U`],[`á»§`,`u`],[`Ủ`,`U`],[`ứ`,`u`],[`Ứ`,`U`],[`ừ`,`u`],[`Ừ`,`U`],[`á»`,`u`],[`Ử`,`U`],[`ữ`,`u`],[`á»®`,`U`],[`á»±`,`u`],[`á»°`,`U`],[`ỳ`,`y`],[`Ỳ`,`Y`],[`ỵ`,`y`],[`á»´`,`Y`],[`á»·`,`y`],[`á»¶`,`Y`],[`ỹ`,`y`],[`Ỹ`,`Y`],[`Ø¡`,`e`],[`Ø¢`,`a`],[`Ø£`,`a`],[`ؤ`,`w`],[`Ø¥`,`a`],[`ئ`,`y`],[`ا`,`a`],[`ب`,`b`],[`Ø©`,`t`],[`ت`,`t`],[`Ø«`,`th`],[`ج`,`j`],[`Ø`,`h`],[`Ø®`,`kh`],[`د`,`d`],[`ذ`,`dh`],[`ر`,`r`],[`ز`,`z`],[`س`,`s`],[`Ø´`,`sh`],[`ص`,`s`],[`ض`,`d`],[`Ø·`,`t`],[`ظ`,`z`],[`ع`,`e`],[`غ`,`gh`],[`Ù`,`_`],[`Ù`,`f`],[`Ù`,`q`],[`Ù`,`k`],[`Ù`,`l`],[`Ù
`,`m`],[`Ù`,`n`],[`Ù`,`h`],[`Ù`,`w`],[`Ù`,`a`],[`Ù`,`y`],[`Ùâ`,`a`],[`Ù`,`u`],[`Ùâ`,`i`],[`Ù `,`0`],[`Ù¡`,`1`],[`Ù¢`,`2`],[`Ù£`,`3`],[`Ù¤`,`4`],[`Ù¥`,`5`],[`Ù¦`,`6`],[`Ù§`,`7`],[`Ù¨`,`8`],[`Ù©`,`9`],[`Ú`,`ch`],[`Ú©`,`k`],[`Ú¯`,`g`],[`Ù¾`,`p`],[`Ú`,`zh`],[`Û`,`y`],[`Û°`,`0`],[`Û±`,`1`],[`Û²`,`2`],[`Û³`,`3`],[`Û´`,`4`],[`Ûµ`,`5`],[`Û¶`,`6`],[`Û·`,`7`],[`Û¸`,`8`],[`Û¹`,`9`],[`Ù¼`,`p`],[`Ú`,`z`],[`Ú
`,`c`],[`Ú`,`d`],[`ﺫ`,`d`],[`ïº`,`r`],[`Ú`,`r`],[`ﺯ`,`z`],[`Ú`,`g`],[`Ú`,`x`],[`Ú«`,`g`],[`Ú¼`,`n`],[`Û`,`e`],[`Û`,`e`],[`Û`,`ai`],[`Ù¹`,`t`],[`Ú`,`d`],[`Ú`,`r`],[`Úº`,`n`],[`Û`,`h`],[`Ú¾`,`h`],[`Û`,`e`],[`Ð`,`A`],[`а`,`a`],[`Ð`,`B`],[`б`,`b`],[`Ð`,`V`],[`в`,`v`],[`Ð`,`G`],[`г`,`g`],[`Ð`,`D`],[`д`,`d`],[`Ñе`,`ye`],[`Ъе`,`Ye`],[`ÑÐ`,`yE`],[`ЪÐ`,`YE`],[`Ð`,`E`],[`е`,`e`],[`Ð`,`Yo`],[`Ñ`,`yo`],[`Ð`,`Zh`],[`ж`,`zh`],[`Ð`,`Z`],[`з`,`z`],[`Ð`,`I`],[`и`,`i`],[`Ñй`,`iy`],[`Ый`,`Iy`],[`ЫÐ`,`IY`],[`ÑÐ`,`iY`],[`Ð`,`Y`],[`й`,`y`],[`Ð`,`K`],[`к`,`k`],[`Ð`,`L`],[`л`,`l`],[`Ð`,`M`],[`м`,`m`],[`Ð`,`N`],[`н`,`n`],[`Ð`,`O`],[`о`,`o`],[`Ð`,`P`],[`п`,`p`],[`Ð `,`R`],[`Ñ`,`r`],[`С`,`S`],[`Ñ`,`s`],[`Т`,`T`],[`Ñ`,`t`],[`У`,`U`],[`Ñ`,`u`],[`Ф`,`F`],[`Ñ`,`f`],[`Ð¥`,`Kh`],[`Ñ
`,`kh`],[`Ц`,`Ts`],[`Ñ`,`ts`],[`Ч`,`Ch`],[`Ñ`,`ch`],[`Ш`,`Sh`],[`Ñ`,`sh`],[`Щ`,`Sch`],[`Ñ`,`sch`],[`Ъ`,``],[`Ñ`,``],[`Ы`,`Y`],[`Ñ`,`y`],[`Ь`,``],[`Ñ`,``],[`Ð`,`E`],[`Ñ`,`e`],[`Ю`,`Yu`],[`Ñ`,`yu`],[`Я`,`Ya`],[`Ñ`,`ya`],[`Ä`,`a`],[`Ä`,`A`],[`È`,`s`],[`È`,`S`],[`È`,`t`],[`È`,`T`],[`Å£`,`t`],[`Å¢`,`T`],[`Å`,`s`],[`Å`,`S`],[`ç`,`c`],[`Ã`,`C`],[`Ä`,`g`],[`Ä`,`G`],[`ı`,`i`],[`İ`,`I`],[`Õ¡`,`a`],[`Ô±`,`A`],[`Õ¢`,`b`],[`Ô²`,`B`],[`Õ£`,`g`],[`Ô³`,`G`],[`Õ¤`,`d`],[`Ô´`,`D`],[`Õ¥`,`ye`],[`Ôµ`,`Ye`],[`Õ¦`,`z`],[`Ô¶`,`Z`],[`Õ§`,`e`],[`Ô·`,`E`],[`Õ¨`,`y`],[`Ô¸`,`Y`],[`Õ©`,`t`],[`Ô¹`,`T`],[`Õª`,`zh`],[`Ôº`,`Zh`],[`Õ«`,`i`],[`Ô»`,`I`],[`Õ¬`,`l`],[`Ô¼`,`L`],[`Õ`,`kh`],[`Ô½`,`Kh`],[`Õ®`,`ts`],[`Ô¾`,`Ts`],[`Õ¯`,`k`],[`Ô¿`,`K`],[`Õ°`,`h`],[`Õ`,`H`],[`Õ±`,`dz`],[`Õ`,`Dz`],[`Õ²`,`gh`],[`Õ`,`Gh`],[`Õ³`,`tch`],[`Õ`,`Tch`],[`Õ´`,`m`],[`Õ`,`M`],[`Õµ`,`y`],[`Õ
`,`Y`],[`Õ¶`,`n`],[`Õ`,`N`],[`Õ·`,`sh`],[`Õ`,`Sh`],[`Õ¸Ö`,`u`],[`ÕÕ`,`U`],[`ÕÖ`,`U`],[`Õ¸`,`vo`],[`Õ`,`Vo`],[`Õ¹`,`ch`],[`Õ`,`Ch`],[`Õº`,`p`],[`Õ`,`P`],[`Õ»`,`j`],[`Õ`,`J`],[`Õ¼`,`r`],[`Õ`,`R`],[`Õ½`,`s`],[`Õ`,`S`],[`Õ¾`,`v`],[`Õ`,`V`],[`Õ¿`,`t`],[`Õ`,`T`],[`Ö`,`r`],[`Õ`,`R`],[`Ö`,`c`],[`Õ`,`C`],[`Ö`,`p`],[`Õ`,`P`],[`Ö`,`q`],[`Õ`,`Q`],[`Ö
`,`o`],[`Õ`,`O`],[`Ö`,`f`],[`Õ`,`F`],[`Ö`,`yev`],[`á`,`a`],[`á`,`b`],[`á`,`g`],[`á`,`d`],[`á`,`e`],[`á`,`v`],[`á`,`z`],[`á`,`t`],[`á`,`i`],[`á`,`k`],[`á`,`l`],[`á`,`m`],[`á`,`n`],[`á`,`o`],[`á`,`p`],[`á`,`zh`],[`á `,`r`],[`á¡`,`s`],[`á¢`,`t`],[`á£`,`u`],[`á¤`,`ph`],[`á¥`,`q`],[`á¦`,`gh`],[`á§`,`k`],[`á¨`,`sh`],[`á©`,`ch`],[`áª`,`ts`],[`á«`,`dz`],[`á¬`,`ts`],[`á`,`tch`],[`á®`,`kh`],[`á¯`,`j`],[`á°`,`h`],[`Ä`,`c`],[`Ä`,`d`],[`Ä`,`e`],[`Å`,`n`],[`Å`,`r`],[`Å¡`,`s`],[`Å¥`,`t`],[`ů`,`u`],[`ž`,`z`],[`Ä`,`C`],[`Ä`,`D`],[`Ä`,`E`],[`Å`,`N`],[`Å`,`R`],[`Å `,`S`],[`Ť`,`T`],[`Å®`,`U`],[`Ž`,`Z`],[`Þ`,`h`],[`Þ`,`sh`],[`Þ`,`n`],[`Þ`,`r`],[`Þ`,`b`],[`Þ
`,`lh`],[`Þ`,`k`],[`Þ`,`a`],[`Þ`,`v`],[`Þ`,`m`],[`Þ`,`f`],[`Þ`,`dh`],[`Þ`,`th`],[`Þ`,`l`],[`Þ`,`g`],[`Þ`,`gn`],[`Þ`,`s`],[`Þ`,`d`],[`Þ`,`z`],[`Þ`,`t`],[`Þ`,`y`],[`Þ`,`p`],[`Þ`,`j`],[`Þ`,`ch`],[`Þ`,`tt`],[`Þ`,`hh`],[`Þ`,`kh`],[`Þ`,`th`],[`Þ`,`z`],[`Þ`,`sh`],[`Þ`,`s`],[`Þ`,`d`],[`Þ `,`t`],[`Þ¡`,`z`],[`Þ¢`,`a`],[`Þ£`,`gh`],[`Þ¤`,`q`],[`Þ¥`,`w`],[`Þ¦`,`a`],[`Þ§`,`aa`],[`Þ¨`,`i`],[`Þ©`,`ee`],[`Þª`,`u`],[`Þ«`,`oo`],[`Þ¬`,`e`],[`Þ`,`ey`],[`Þ®`,`o`],[`Þ¯`,`oa`],[`Þ°`,``],[`α`,`a`],[`β`,`v`],[`γ`,`g`],[`δ`,`d`],[`ε`,`e`],[`ζ`,`z`],[`η`,`i`],[`θ`,`th`],[`ι`,`i`],[`κ`,`k`],[`λ`,`l`],[`μ`,`m`],[`ν`,`n`],[`ξ`,`ks`],[`ο`,`o`],[`Ï`,`p`],[`Ï`,`r`],[`Ï`,`s`],[`Ï`,`t`],[`Ï
`,`y`],[`Ï`,`f`],[`Ï`,`x`],[`Ï`,`ps`],[`Ï`,`o`],[`ά`,`a`],[`Î`,`e`],[`ί`,`i`],[`Ï`,`o`],[`Ï`,`y`],[`ή`,`i`],[`Ï`,`o`],[`Ï`,`s`],[`Ï`,`i`],[`ΰ`,`y`],[`Ï`,`y`],[`Î`,`i`],[`Î`,`A`],[`Î`,`B`],[`Î`,`G`],[`Î`,`D`],[`Î`,`E`],[`Î`,`Z`],[`Î`,`I`],[`Î`,`TH`],[`Î`,`I`],[`Î`,`K`],[`Î`,`L`],[`Î`,`M`],[`Î`,`N`],[`Î`,`KS`],[`Î`,`O`],[`Î `,`P`],[`Ρ`,`R`],[`Σ`,`S`],[`Τ`,`T`],[`Î¥`,`Y`],[`Φ`,`F`],[`Χ`,`X`],[`Ψ`,`PS`],[`Ω`,`O`],[`Î`,`A`],[`Î`,`E`],[`Î`,`I`],[`Î`,`O`],[`Î`,`Y`],[`Î`,`I`],[`Î`,`O`],[`Ϊ`,`I`],[`Ϋ`,`Y`],[`Ä`,`a`],[`Ä`,`e`],[`Ä£`,`g`],[`Ä«`,`i`],[`Ä·`,`k`],[`ļ`,`l`],[`Å`,`n`],[`Å«`,`u`],[`Ä`,`A`],[`Ä`,`E`],[`Ä¢`,`G`],[`Ī`,`I`],[`Ķ`,`K`],[`Ä»`,`L`],[`Å
`,`N`],[`Ū`,`U`],[`Ä`,`c`],[`Å¡`,`s`],[`ž`,`z`],[`Ä`,`C`],[`Å `,`S`],[`Ž`,`Z`],[`Ä
`,`a`],[`Ä`,`c`],[`Ä`,`e`],[`Ä`,`e`],[`į`,`i`],[`Å¡`,`s`],[`ų`,`u`],[`Å«`,`u`],[`ž`,`z`],[`Ä`,`A`],[`Ä`,`C`],[`Ä`,`E`],[`Ä`,`E`],[`Ä®`,`I`],[`Å `,`S`],[`Ų`,`U`],[`Ū`,`U`],[`Ð`,`Kj`],[`Ñ`,`kj`],[`Ð`,`Lj`],[`Ñ`,`lj`],[`Ð`,`Nj`],[`Ñ`,`nj`],[`ТÑ`,`Ts`],[`ÑÑ`,`ts`],[`Ä
`,`a`],[`Ä`,`c`],[`Ä`,`e`],[`Å`,`l`],[`Å`,`n`],[`Å`,`s`],[`ź`,`z`],[`ż`,`z`],[`Ä`,`A`],[`Ä`,`C`],[`Ä`,`E`],[`Å`,`L`],[`Å`,`N`],[`Å`,`S`],[`Ź`,`Z`],[`Å»`,`Z`],[`Ð`,`Ye`],[`Ð`,`I`],[`Ð`,`Yi`],[`Ò`,`G`],[`Ñ`,`ye`],[`Ñ`,`i`],[`Ñ`,`yi`],[`Ò`,`g`],[`IJ`,`IJ`],[`ij`,`ij`],[`¢`,`c`],[`Â¥`,`Y`],[`ß¿`,`b`],[`à§³`,`t`],[`૱`,`Bo`],[`฿`,`B`],[`â `,`CE`],[`â¡`,`C`],[`â¢`,`Cr`],[`â£`,`F`],[`â¥`,`m`],[`â¦`,`N`],[`â§`,`Pt`],[`â¨`,`Rs`],[`â©`,`W`],[`â«`,`s`],[`â¬`,`E`],[`â`,`K`],[`â®`,`T`],[`â¯`,`Dp`],[`â°`,`S`],[`â±`,`P`],[`â²`,`G`],[`â³`,`A`],[`â´`,`S`],[`âµ`,`C`],[`â¶`,`tt`],[`â·`,`S`],[`â¸`,`T`],[`â¹`,`R`],[`âº`,`L`],[`â½`,`P`],[`â¿`,`B`],[`﹩`,`$`],[`ï¿ `,`c`],[`ï¿¥`,`Y`],[`₩`,`W`],[`ð`,`A`],[`ð`,`B`],[`ð`,`C`],[`ð`,`D`],[`ð`,`E`],[`ð
`,`F`],[`ð`,`G`],[`ð`,`H`],[`ð`,`I`],[`ð`,`J`],[`ð`,`K`],[`ð`,`L`],[`ð`,`M`],[`ð`,`N`],[`ð`,`O`],[`ð`,`P`],[`ð`,`Q`],[`ð`,`R`],[`ð`,`S`],[`ð`,`T`],[`ð`,`U`],[`ð`,`V`],[`ð`,`W`],[`ð`,`X`],[`ð`,`Y`],[`ð`,`Z`],[`ð`,`a`],[`ð`,`b`],[`ð`,`c`],[`ð`,`d`],[`ð`,`e`],[`ð`,`f`],[`ð `,`g`],[`ð¡`,`h`],[`ð¢`,`i`],[`ð£`,`j`],[`ð¤`,`k`],[`ð¥`,`l`],[`ð¦`,`m`],[`ð§`,`n`],[`ð¨`,`o`],[`ð©`,`p`],[`ðª`,`q`],[`ð«`,`r`],[`ð¬`,`s`],[`ð`,`t`],[`ð®`,`u`],[`ð¯`,`v`],[`ð°`,`w`],[`ð±`,`x`],[`ð²`,`y`],[`ð³`,`z`],[`ð´`,`A`],[`ðµ`,`B`],[`ð¶`,`C`],[`ð·`,`D`],[`ð¸`,`E`],[`ð¹`,`F`],[`ðº`,`G`],[`ð»`,`H`],[`ð¼`,`I`],[`ð½`,`J`],[`ð¾`,`K`],[`ð¿`,`L`],[`ð`,`M`],[`ð`,`N`],[`ð`,`O`],[`ð`,`P`],[`ð`,`Q`],[`ð
`,`R`],[`ð`,`S`],[`ð`,`T`],[`ð`,`U`],[`ð`,`V`],[`ð`,`W`],[`ð`,`X`],[`ð`,`Y`],[`ð`,`Z`],[`ð`,`a`],[`ð`,`b`],[`ð`,`c`],[`ð`,`d`],[`ð`,`e`],[`ð`,`f`],[`ð`,`g`],[`ð`,`i`],[`ð`,`j`],[`ð`,`k`],[`ð`,`l`],[`ð`,`m`],[`ð`,`n`],[`ð`,`o`],[`ð`,`p`],[`ð`,`q`],[`ð`,`r`],[`ð `,`s`],[`ð¡`,`t`],[`ð¢`,`u`],[`ð£`,`v`],[`ð¤`,`w`],[`ð¥`,`x`],[`ð¦`,`y`],[`ð§`,`z`],[`ð¨`,`A`],[`ð©`,`B`],[`ðª`,`C`],[`ð«`,`D`],[`ð¬`,`E`],[`ð`,`F`],[`ð®`,`G`],[`ð¯`,`H`],[`ð°`,`I`],[`ð±`,`J`],[`ð²`,`K`],[`ð³`,`L`],[`ð´`,`M`],[`ðµ`,`N`],[`ð¶`,`O`],[`ð·`,`P`],[`ð¸`,`Q`],[`ð¹`,`R`],[`ðº`,`S`],[`ð»`,`T`],[`ð¼`,`U`],[`ð½`,`V`],[`ð¾`,`W`],[`ð¿`,`X`],[`ð`,`Y`],[`ð`,`Z`],[`ð`,`a`],[`ð`,`b`],[`ð`,`c`],[`ð
`,`d`],[`ð`,`e`],[`ð`,`f`],[`ð`,`g`],[`ð`,`h`],[`ð`,`i`],[`ð`,`j`],[`ð`,`k`],[`ð`,`l`],[`ð`,`m`],[`ð`,`n`],[`ð`,`o`],[`ð`,`p`],[`ð`,`q`],[`ð`,`r`],[`ð`,`s`],[`ð`,`t`],[`ð`,`u`],[`ð`,`v`],[`ð`,`w`],[`ð`,`x`],[`ð`,`y`],[`ð`,`z`],[`ð`,`A`],[`ð`,`C`],[`ð`,`D`],[`ð¢`,`g`],[`ð¥`,`J`],[`ð¦`,`K`],[`ð©`,`N`],[`ðª`,`O`],[`ð«`,`P`],[`ð¬`,`Q`],[`ð®`,`S`],[`ð¯`,`T`],[`ð°`,`U`],[`ð±`,`V`],[`ð²`,`W`],[`ð³`,`X`],[`ð´`,`Y`],[`ðµ`,`Z`],[`ð¶`,`a`],[`ð·`,`b`],[`ð¸`,`c`],[`ð¹`,`d`],[`ð»`,`f`],[`ð½`,`h`],[`ð¾`,`i`],[`ð¿`,`j`],[`ð`,`k`],[`ð`,`l`],[`ð`,`m`],[`ð`,`n`],[`ð
`,`p`],[`ð`,`q`],[`ð`,`r`],[`ð`,`s`],[`ð`,`t`],[`ð`,`u`],[`ð`,`v`],[`ð`,`w`],[`ð`,`x`],[`ð`,`y`],[`ð`,`z`],[`ð`,`A`],[`ð`,`B`],[`ð`,`C`],[`ð`,`D`],[`ð`,`E`],[`ð`,`F`],[`ð`,`G`],[`ð`,`H`],[`ð`,`I`],[`ð`,`J`],[`ð`,`K`],[`ð`,`L`],[`ð`,`M`],[`ð`,`N`],[`ð`,`O`],[`ð`,`P`],[`ð `,`Q`],[`ð¡`,`R`],[`ð¢`,`S`],[`ð£`,`T`],[`ð¤`,`U`],[`ð¥`,`V`],[`ð¦`,`W`],[`ð§`,`X`],[`ð¨`,`Y`],[`ð©`,`Z`],[`ðª`,`a`],[`ð«`,`b`],[`ð¬`,`c`],[`ð`,`d`],[`ð®`,`e`],[`ð¯`,`f`],[`ð°`,`g`],[`ð±`,`h`],[`ð²`,`i`],[`ð³`,`j`],[`ð´`,`k`],[`ðµ`,`l`],[`ð¶`,`m`],[`ð·`,`n`],[`ð¸`,`o`],[`ð¹`,`p`],[`ðº`,`q`],[`ð»`,`r`],[`ð¼`,`s`],[`ð½`,`t`],[`ð¾`,`u`],[`ð¿`,`v`],[`ð`,`w`],[`ð`,`x`],[`ð`,`y`],[`ð`,`z`],[`ð`,`A`],[`ð
`,`B`],[`ð`,`D`],[`ð`,`E`],[`ð`,`F`],[`ð`,`G`],[`ð`,`J`],[`ð`,`K`],[`ð`,`L`],[`ð`,`M`],[`ð`,`N`],[`ð`,`O`],[`ð`,`P`],[`ð`,`Q`],[`ð`,`S`],[`ð`,`T`],[`ð`,`U`],[`ð`,`V`],[`ð`,`W`],[`ð`,`X`],[`ð`,`Y`],[`ð`,`a`],[`ð`,`b`],[`ð `,`c`],[`ð¡`,`d`],[`ð¢`,`e`],[`ð£`,`f`],[`ð¤`,`g`],[`ð¥`,`h`],[`ð¦`,`i`],[`ð§`,`j`],[`ð¨`,`k`],[`ð©`,`l`],[`ðª`,`m`],[`ð«`,`n`],[`ð¬`,`o`],[`ð`,`p`],[`ð®`,`q`],[`ð¯`,`r`],[`ð°`,`s`],[`ð±`,`t`],[`ð²`,`u`],[`ð³`,`v`],[`ð´`,`w`],[`ðµ`,`x`],[`ð¶`,`y`],[`ð·`,`z`],[`ð¸`,`A`],[`ð¹`,`B`],[`ð»`,`D`],[`ð¼`,`E`],[`ð½`,`F`],[`ð¾`,`G`],[`ð`,`I`],[`ð`,`J`],[`ð`,`K`],[`ð`,`L`],[`ð`,`M`],[`ð`,`O`],[`ð`,`S`],[`ð`,`T`],[`ð`,`U`],[`ð`,`V`],[`ð`,`W`],[`ð`,`X`],[`ð`,`Y`],[`ð`,`a`],[`ð`,`b`],[`ð`,`c`],[`ð`,`d`],[`ð`,`e`],[`ð`,`f`],[`ð`,`g`],[`ð`,`h`],[`ð`,`i`],[`ð`,`j`],[`ð`,`k`],[`ð`,`l`],[`ð`,`m`],[`ð`,`n`],[`ð `,`o`],[`ð¡`,`p`],[`ð¢`,`q`],[`ð£`,`r`],[`ð¤`,`s`],[`ð¥`,`t`],[`ð¦`,`u`],[`ð§`,`v`],[`ð¨`,`w`],[`ð©`,`x`],[`ðª`,`y`],[`ð«`,`z`],[`ð¬`,`A`],[`ð`,`B`],[`ð®`,`C`],[`ð¯`,`D`],[`ð°`,`E`],[`ð±`,`F`],[`ð²`,`G`],[`ð³`,`H`],[`ð´`,`I`],[`ðµ`,`J`],[`ð¶`,`K`],[`ð·`,`L`],[`ð¸`,`M`],[`ð¹`,`N`],[`ðº`,`O`],[`ð»`,`P`],[`ð¼`,`Q`],[`ð½`,`R`],[`ð¾`,`S`],[`ð¿`,`T`],[`ð`,`U`],[`ð`,`V`],[`ð`,`W`],[`ð`,`X`],[`ð`,`Y`],[`ð
`,`Z`],[`ð`,`a`],[`ð`,`b`],[`ð`,`c`],[`ð`,`d`],[`ð`,`e`],[`ð`,`f`],[`ð`,`g`],[`ð`,`h`],[`ð`,`i`],[`ð`,`j`],[`ð`,`k`],[`ð`,`l`],[`ð`,`m`],[`ð`,`n`],[`ð`,`o`],[`ð`,`p`],[`ð`,`q`],[`ð`,`r`],[`ð`,`s`],[`ð`,`t`],[`ð`,`u`],[`ð`,`v`],[`ð`,`w`],[`ð`,`x`],[`ð`,`y`],[`ð`,`z`],[`ð `,`A`],[`ð¡`,`B`],[`ð¢`,`C`],[`ð£`,`D`],[`ð¤`,`E`],[`ð¥`,`F`],[`ð¦`,`G`],[`ð§`,`H`],[`ð¨`,`I`],[`ð©`,`J`],[`ðª`,`K`],[`ð«`,`L`],[`ð¬`,`M`],[`ð`,`N`],[`ð®`,`O`],[`ð¯`,`P`],[`ð°`,`Q`],[`ð±`,`R`],[`ð²`,`S`],[`ð³`,`T`],[`ð´`,`U`],[`ðµ`,`V`],[`ð¶`,`W`],[`ð·`,`X`],[`ð¸`,`Y`],[`ð¹`,`Z`],[`ðº`,`a`],[`ð»`,`b`],[`ð¼`,`c`],[`ð½`,`d`],[`ð¾`,`e`],[`ð¿`,`f`],[`ð`,`g`],[`ð`,`h`],[`ð`,`i`],[`ð`,`j`],[`ð`,`k`],[`ð
`,`l`],[`ð`,`m`],[`ð`,`n`],[`ð`,`o`],[`ð`,`p`],[`ð`,`q`],[`ð`,`r`],[`ð`,`s`],[`ð`,`t`],[`ð`,`u`],[`ð`,`v`],[`ð`,`w`],[`ð`,`x`],[`ð`,`y`],[`ð`,`z`],[`ð`,`A`],[`ð`,`B`],[`ð`,`C`],[`ð`,`D`],[`ð`,`E`],[`ð`,`F`],[`ð`,`G`],[`ð`,`H`],[`ð`,`I`],[`ð`,`J`],[`ð`,`K`],[`ð`,`L`],[`ð `,`M`],[`ð¡`,`N`],[`ð¢`,`O`],[`ð£`,`P`],[`ð¤`,`Q`],[`ð¥`,`R`],[`ð¦`,`S`],[`ð§`,`T`],[`ð¨`,`U`],[`ð©`,`V`],[`ðª`,`W`],[`ð«`,`X`],[`ð¬`,`Y`],[`ð`,`Z`],[`ð®`,`a`],[`ð¯`,`b`],[`ð°`,`c`],[`ð±`,`d`],[`ð²`,`e`],[`ð³`,`f`],[`ð´`,`g`],[`ðµ`,`h`],[`ð¶`,`i`],[`ð·`,`j`],[`ð¸`,`k`],[`ð¹`,`l`],[`ðº`,`m`],[`ð»`,`n`],[`ð¼`,`o`],[`ð½`,`p`],[`ð¾`,`q`],[`ð¿`,`r`],[`ð`,`s`],[`ð`,`t`],[`ð`,`u`],[`ð`,`v`],[`ð`,`w`],[`ð
`,`x`],[`ð`,`y`],[`ð`,`z`],[`ð`,`A`],[`ð`,`B`],[`ð`,`C`],[`ð`,`D`],[`ð`,`E`],[`ð`,`F`],[`ð`,`G`],[`ð`,`H`],[`ð`,`I`],[`ð`,`J`],[`ð`,`K`],[`ð`,`L`],[`ð`,`M`],[`ð`,`N`],[`ð`,`O`],[`ð`,`P`],[`ð`,`Q`],[`ð`,`R`],[`ð`,`S`],[`ð`,`T`],[`ð`,`U`],[`ð`,`V`],[`ð`,`W`],[`ð`,`X`],[`ð `,`Y`],[`ð¡`,`Z`],[`ð¢`,`a`],[`ð£`,`b`],[`ð¤`,`c`],[`ð¥`,`d`],[`ð¦`,`e`],[`ð§`,`f`],[`ð¨`,`g`],[`ð©`,`h`],[`ðª`,`i`],[`ð«`,`j`],[`ð¬`,`k`],[`ð`,`l`],[`ð®`,`m`],[`ð¯`,`n`],[`ð°`,`o`],[`ð±`,`p`],[`ð²`,`q`],[`ð³`,`r`],[`ð´`,`s`],[`ðµ`,`t`],[`ð¶`,`u`],[`ð·`,`v`],[`ð¸`,`w`],[`ð¹`,`x`],[`ðº`,`y`],[`ð»`,`z`],[`ð¼`,`A`],[`ð½`,`B`],[`ð¾`,`C`],[`ð¿`,`D`],[`ð`,`E`],[`ð`,`F`],[`ð`,`G`],[`ð`,`H`],[`ð`,`I`],[`ð
`,`J`],[`ð`,`K`],[`ð`,`L`],[`ð`,`M`],[`ð`,`N`],[`ð`,`O`],[`ð`,`P`],[`ð`,`Q`],[`ð`,`R`],[`ð`,`S`],[`ð`,`T`],[`ð`,`U`],[`ð`,`V`],[`ð`,`W`],[`ð`,`X`],[`ð`,`Y`],[`ð`,`Z`],[`ð`,`a`],[`ð`,`b`],[`ð
26`,`c`],[`ð`,`d`],[`ð`,`e`],[`ð`,`f`],[`ð`,`g`],[`ð`,`h`],[`ð`,`i`],[`ð`,`j`],[`ð `,`k`],[`ð¡`,`l`],[`ð¢`,`m`],[`ð£`,`n`],[`ð¤`,`o`],[`ð¥`,`p`],[`ð¦`,`q`],[`ð§`,`r`],[`ð¨`,`s`],[`ð©`,`t`],[`ðª`,`u`],[`ð«`,`v`],[`ð¬`,`w`],[`ð`,`x`],[`ð®`,`y`],[`ð¯`,`z`],[`ð°`,`A`],[`ð±`,`B`],[`ð²`,`C`],[`ð³`,`D`],[`ð´`,`E`],[`ðµ`,`F`],[`ð¶`,`G`],[`ð·`,`H`],[`ð¸`,`I`],[`ð¹`,`J`],[`ðº`,`K`],[`ð»`,`L`],[`ð¼`,`M`],[`ð½`,`N`],[`ð¾`,`O`],[`ð¿`,`P`],[`ð`,`Q`],[`ð`,`R`],[`ð`,`S`],[`ð`,`T`],[`ð`,`U`],[`ð
`,`V`],[`ð`,`W`],[`ð`,`X`],[`ð`,`Y`],[`ð`,`Z`],[`ð`,`a`],[`ð`,`b`],[`ð`,`c`],[`ð`,`d`],[`ð`,`e`],[`ð`,`f`],[`ð`,`g`],[`ð`,`h`],[`ð`,`i`],[`ð`,`j`],[`ð`,`k`],[`ð`,`l`],[`ð`,`m`],[`ð`,`n`],[`ð`,`o`],[`ð`,`p`],[`ð`,`q`],[`ð`,`r`],[`ð`,`s`],[`ð`,`t`],[`ð`,`u`],[`ð`,`v`],[`ð `,`w`],[`ð¡`,`x`],[`ð¢`,`y`],[`ð£`,`z`],[`ð¤`,`l`],[`ð¥`,`j`],[`ð¢`,`A`],[`ð£`,`B`],[`ð¤`,`G`],[`ð¥`,`D`],[`ð¦`,`E`],[`ð§`,`Z`],[`ð¨`,`I`],[`ð©`,`TH`],[`ðª`,`I`],[`ð«`,`K`],[`ð¬`,`L`],[`ð`,`M`],[`ð®`,`N`],[`ð¯`,`KS`],[`ð°`,`O`],[`ð±`,`P`],[`ð²`,`R`],[`ð³`,`TH`],[`ð´`,`S`],[`ðµ`,`T`],[`ð¶`,`Y`],[`ð·`,`F`],[`ð¸`,`x`],[`ð¹`,`PS`],[`ðº`,`O`],[`ð»`,`D`],[`ð¼`,`a`],[`ð½`,`b`],[`ð¾`,`g`],[`ð¿`,`d`],[`ð`,`e`],[`ð`,`z`],[`ð`,`i`],[`ð`,`th`],[`ð`,`i`],[`ð
`,`k`],[`ð`,`l`],[`ð`,`m`],[`ð`,`n`],[`ð`,`ks`],[`ð`,`o`],[`ð`,`p`],[`ð`,`r`],[`ð`,`s`],[`ð`,`s`],[`ð`,`t`],[`ð`,`y`],[`ð`,`f`],[`ð`,`x`],[`ð`,`ps`],[`ð`,`o`],[`ð`,`d`],[`ð`,`E`],[`ð`,`TH`],[`ð`,`K`],[`ð`,`f`],[`ð`,`r`],[`ð`,`p`],[`ð`,`A`],[`ð`,`V`],[`ð`,`G`],[`ð`,`D`],[`ð `,`E`],[`ð¡`,`Z`],[`ð¢`,`I`],[`ð£`,`TH`],[`ð¤`,`I`],[`ð¥`,`K`],[`ð¦`,`L`],[`ð§`,`M`],[`ð¨`,`N`],[`ð©`,`KS`],[`ðª`,`O`],[`ð«`,`P`],[`ð¬`,`S`],[`ð`,`TH`],[`ð®`,`S`],[`ð¯`,`T`],[`ð°`,`Y`],[`ð±`,`F`],[`ð²`,`X`],[`ð³`,`PS`],[`ð´`,`O`],[`ðµ`,`D`],[`ð¶`,`a`],[`ð·`,`v`],[`ð¸`,`g`],[`ð¹`,`d`],[`ðº`,`e`],[`ð»`,`z`],[`ð¼`,`i`],[`ð½`,`th`],[`ð¾`,`i`],[`ð¿`,`k`],[`ð`,`l`],[`ð`,`m`],[`ð`,`n`],[`ð`,`ks`],[`ð`,`o`],[`ð
`,`p`],[`ð`,`r`],[`ð`,`s`],[`ð`,`s`],[`ð`,`t`],[`ð`,`y`],[`ð`,`f`],[`ð`,`x`],[`ð`,`ps`],[`ð`,`o`],[`ð`,`a`],[`ð`,`e`],[`ð`,`i`],[`ð`,`k`],[`ð`,`f`],[`ð`,`r`],[`ð`,`p`],[`ð`,`A`],[`ð`,`B`],[`ð`,`G`],[`ð`,`D`],[`ð`,`E`],[`ð`,`Z`],[`ð`,`I`],[`ð`,`TH`],[`ð`,`I`],[`ð`,`K`],[`ð `,`L`],[`ð¡`,`M`],[`ð¢`,`N`],[`ð£`,`KS`],[`ð¤`,`O`],[`ð¥`,`P`],[`ð¦`,`R`],[`ð§`,`TH`],[`ð¨`,`S`],[`ð©`,`T`],[`ðª`,`Y`],[`ð«`,`F`],[`ð¬`,`X`],[`ð`,`PS`],[`ð®`,`O`],[`ð¯`,`D`],[`ð°`,`a`],[`ð±`,`v`],[`ð²`,`g`],[`ð³`,`d`],[`ð´`,`e`],[`ðµ`,`z`],[`ð¶`,`i`],[`ð·`,`th`],[`ð¸`,`i`],[`ð¹`,`k`],[`ðº`,`l`],[`ð»`,`m`],[`ð¼`,`n`],[`ð½`,`ks`],[`ð¾`,`o`],[`ð¿`,`p`],[`ð`,`r`],[`ð`,`s`],[`ð`,`s`],[`ð`,`t`],[`ð`,`y`],[`ð
`,`f`],[`ð`,`x`],[`ð`,`ps`],[`ð`,`o`],[`ð`,`a`],[`ð`,`e`],[`ð`,`i`],[`ð`,`k`],[`ð`,`f`],[`ð`,`r`],[`ð`,`p`],[`ð`,`A`],[`ð`,`V`],[`ð`,`G`],[`ð`,`D`],[`ð`,`E`],[`ð`,`Z`],[`ð`,`I`],[`ð`,`TH`],[`ð`,`I`],[`ð`,`K`],[`ð`,`L`],[`ð`,`M`],[`ð`,`N`],[`ð`,`KS`],[`ð`,`O`],[`ð`,`P`],[`ð `,`S`],[`ð¡`,`TH`],[`ð¢`,`S`],[`ð£`,`T`],[`ð¤`,`Y`],[`ð¥`,`F`],[`ð¦`,`X`],[`ð§`,`PS`],[`ð¨`,`O`],[`ð©`,`D`],[`ðª`,`av`],[`ð«`,`g`],[`ð¬`,`d`],[`ð`,`e`],[`ð®`,`z`],[`ð¯`,`i`],[`ð°`,`i`],[`ð±`,`th`],[`ð²`,`i`],[`ð³`,`k`],[`ð´`,`l`],[`ðµ`,`m`],[`ð¶`,`n`],[`ð·`,`ks`],[`ð¸`,`o`],[`ð¹`,`p`],[`ðº`,`r`],[`ð»`,`s`],[`ð¼`,`s`],[`ð½`,`t`],[`ð¾`,`y`],[`ð¿`,`f`],[`ð`,`x`],[`ð`,`ps`],[`ð`,`o`],[`ð`,`a`],[`ð`,`e`],[`ð
`,`i`],[`ð`,`k`],[`ð`,`f`],[`ð`,`r`],[`ð`,`p`],[`ð`,`F`],[`ð`,`f`],[`â`,`(a)`],[`â`,`(b)`],[`â`,`(c)`],[`â`,`(d)`],[`â `,`(e)`],[`â¡`,`(f)`],[`â¢`,`(g)`],[`â£`,`(h)`],[`â¤`,`(i)`],[`â¥`,`(j)`],[`â¦`,`(k)`],[`â§`,`(l)`],[`â¨`,`(m)`],[`â©`,`(n)`],[`âª`,`(o)`],[`â«`,`(p)`],[`â¬`,`(q)`],[`â`,`(r)`],[`â®`,`(s)`],[`â¯`,`(t)`],[`â°`,`(u)`],[`â±`,`(v)`],[`â²`,`(w)`],[`â³`,`(x)`],[`â´`,`(y)`],[`âµ`,`(z)`],[`â¶`,`(A)`],[`â·`,`(B)`],[`â¸`,`(C)`],[`â¹`,`(D)`],[`âº`,`(E)`],[`â»`,`(F)`],[`â¼`,`
26(G)`],[`â½`,`(H)`],[`â¾`,`(I)`],[`â¿`,`(J)`],[`â`,`(K)`],[`â`,`(L)`],[`â`,`(N)`],[`â`,`(O)`],[`â
`,`(P)`],[`â`,`(Q)`],[`â`,`(R)`],[`â`,`(S)`],[`â`,`(T)`],[`â`,`(U)`],[`â`,`(V)`],[`â`,`(W)`],[`â`,`(X)`],[`â`,`(Y)`],[`â`,`(Z)`],[`â`,`(a)`],[`â`,`(b)`],[`â`,`(c)`],[`â`,`(d)`],[`â`,`(e)`],[`â`,`(f)`],[`â`,`(g)`],[`â`,`(h)`],[`â`,`(i)`],[`â`,`(j)`],[`â`,`(k)`],[`â`,`(l)`],[`â`,`(m)`],[`â`,`(n)`],[`â`,`(o)`],[`â`,`(p)`],[`â `,`(q)`],[`â¡`,`(r)`],[`â¢`,`(s)`],[`â£`,`(t)`],[`â¤`,`(u)`],[`â¥`,`(v)`],[`â¦`,`(w)`],[`â§`,`(x)`],[`â¨`,`(y)`],[`â©`,`(z)`],[`Ä`,`C`],[`Ä`,`c`],[`Ä `,`G`],[`Ä¡`,`g`],[`Ħ`,`H`],[`ħ`,`h`],[`Å»`,`Z`],[`ż`,`z`],[`ð`,`0`],[`ð`,`1`],[`ð`,`2`],[`ð`,`3`],[`ð`,`4`],[`ð`,`5`],[`ð`,`6`],[`ð`,`7`],[`ð`,`8`],[`ð`,`9`],[`ð`,`0`],[`ð`,`1`],[`ð`,`2`],[`ð`,`3`],[`ð`,`4`],[`ð`,`5`],[`ð`,`6`],[`ð`,`7`],[`ð `,`8`],[`ð¡`,`9`],[`ð¢`,`0`],[`ð£`,`1`],[`ð¤`,`2`],[`ð¥`,`3`],[`ð¦`,`4`],[`ð§`,`5`],[`ð¨`,`6`],[`ð©`,`7`],[`ðª`,`8`],[`ð«`,`9`],[`ð¬`,`0`],[`ð`,`1`],[`ð®`,`2`],[`ð¯`,`3`],[`ð°`,`4`],[`ð±`,`5`],[`ð²`,`6`],[`ð³`,`7`],[`ð´`,`8`],[`ðµ`,`9`],[`ð¶`,`0`],[`ð·`,`1`],[`ð¸`,`2`],[`ð¹`,`3`],[`ðº`,`4`],[`ð»`,`5`],[`ð¼`,`6`],[`ð½`,`7`],[`ð¾`,`8`],[`ð¿`,`9`],[`â `,`1`],[`â¡`,`2`],[`â¢`,`3`],[`â£`,`4`],[`â¤`,`5`],[`â¥`,`6`],[`â¦`,`7`],[`â§`,`8`],[`â¨`,`9`],[`â©`,`10`],[`âª`,`11`],[`â«`,`12`],[`â¬`,`13`],[`â`,`14`],[`â®`,`15`],[`â¯`,`16`],[`â°`,`17`],[`â±`,`18`],[`â²`,`19`],[`â³`,`20`],[`â´`,`1`],[`âµ`,`2`],[`â¶`,`3`],[`â·`,`4`],[`â¸`,`5`],[`â¹`,`6`],[`âº`,`7`],[`â»`,`8`],[`â¼`,`9`],[`â½`,`10`],[`â¾`,`11`],[`â¿`,`12`],[`â`,`13`],[`â`,`14`],[`â`,`15`],[`â`,`16`],[`â`,`17`],[`â
`,`18`],[`â`,`19`],[`â`,`20`],[`â`,`1.`],[`â`,`2.`],[`â`,`3.`],[`â`,`4.`],[`â`,`5.`],[`â`,`6.`],[`â`,`7.`],[`â`,`8.`],[`â`,`9.`],[`â`,`10.`],[`â`,`11.`],[`â`,`12.`],[`â`,`13.`],[`â`,`14.`],[`â`,`15.`],[`â`,`16.`],[`â`,`17.`],[`â`,`18.`],[`â`,`19.`],[`â`,`20.`],[`âª`,`0`],[`â«`,`11`],[`â¬`,`12`],[`â`,`13`],[`â®`,`14`],[`â¯`,`15`],[`â°`,`16`],[`â±`,`17`],[`â²`,`18`],[`â³`,`19`],[`â´`,`20`],[`âµ`,`1`],[`â¶`,`2`],[`â·`,`3`],[`â¸`,`4`],[`â¹`,`5`],[`âº`,`6`],[`â»`,`7`],[`â¼`,`8`],[`â½`,`9`],[`â¾`,`10`],[`â¿`,`0`],[`ð°`,`&`],[`ð±`,`&`],[`ð²`,`&`],[`ð³`,`&`],[`ð´`,`&`],[`ðµ`,`&`],[`ð¶`,`"`],[`ð·`,`"`],[`ð¸`,`"`],[`â½`,`?!`],[`ð¹`,`?!`],[`ðº`,`?!`],[`ð»`,`?!`],[`ð¼`,`/`],[`ð½`,`\\`],[`ð`,`AR`],[`ð`,`V`],[`ð`,`V`],[`ð`,`VR`],[`ð
`,`VF`],[`ð©`,`2`],[`ðª`,`5`],[`ð¡`,`f`],[`ð¢`,`W`],[`ð£`,`U`],[`ð§`,`V`],[`ð¨`,`T`],[`ðª`,`V`],[`ð«`,`MB`],[`ð¬`,`VB`],[`ð²`,`3B`],[`ð³`,`3B`],[`ð¯`,`100`],[`ð`,`BACK`],[`ð`,`END`],[`ð`,`ON!`],[`ð`,`SOON`],[`ð`,`TOP`],[`ð`,`18`],[`ð¤`,`abc`],[`ð `,`ABCD`],[`ð¡`,`abcd`],[`ð¢`,`1234`],[`ð£`,`T&@%`],[`#ï¸â£`,`#`],[`*ï¸â£`,`*`],[`0ï¸â£`,`0`],[`1ï¸â£`,`1`],[`2ï¸â£`,`2`],[`3ï¸â£`,`3`],[`4ï¸â£`,`4`],[`5ï¸â£`,`5`],[`6ï¸â£`,`6`],[`7ï¸â£`,`7`],[`8ï¸â£`,`8`],[`9ï¸â£`,`9`],[`ð`,`10`],[`ð
°ï¸`,`A`],[`ð
±ï¸`,`B`],[`ð`,`AB`],[`ð`,`CL`],[`ð
¾ï¸`,`O`],[`ð
¿`,`P`],[`ð`,`SOS`],[`ð
²`,`C`],[`ð
³`,`D`],[`ð
´`,`E`],[`ð
µ`,`F`],[`ð
¶`,`G`],[`ð
·`,`H`],[`ð
¸`,`I`],[`ð
¹`,`J`],[`ð
º`,`K`],[`ð
»`,`L`],[`ð
¼`,`M`],[`ð
½`,`N`],[`ð`,`Q`],[`ð`,`R`],[`ð`,`S`],[`ð`,`T`],[`ð`,`U`],[`ð
`,`V`],[`ð`,`W`],[`ð`,`X`],[`ð`,`Y`],[`ð`,`Z`],[`â`,`-`],[`â`,`-`]],lA=[[`æ`,`ae`],[`Ã`,`Ae`],[`ø`,`oe`],[`Ã`,`Oe`],[`Ã¥`,`aa`],[`Ã
`,`Aa`]],uA={sv:[[`ä`,`a`],[`Ã`,`A`],[`ö`,`o`],[`Ã`,`O`],[`Ã¥`,`a`],[`Ã
`,`A`]],da:lA,nb:lA,de:[[`ä`,`ae`],[`Ã`,`Ae`],[`ö`,`oe`],[`Ã`,`Oe`],[`ü`,`ue`],[`Ã`,`Ue`],[`Ã`,`ss`],[`áº`,`Ss`]],tr:[[`â`,`a`],[`Ã`,`A`],[`ö`,`o`],[`Ã`,`O`],[`ü`,`u`],[`Ã`,`U`]],hu:[[`ű`,`u`],[`Ű`,`U`],[`ö`,`o`],[`Ã`,`O`],[`ü`,`u`],[`Ã`,`U`],[`á`,`a`],[`Ã`,`A`],[`é`,`e`],[`Ã`,`E`],[`Ã`,`i`],[`Ã`,`I`],[`ó`,`o`],[`Ã`,`O`],[`ú`,`u`],[`Ã`,`U`]],sr:[[`Ñ`,`dj`],[`Ð`,`Dj`],[`Ñ`,`dz`],[`Ð`,`Dz`],[`Ñ`,`lj`],[`Ð`,`Lj`],[`Ñ`,`nj`],[`Ð`,`Nj`],[`Ñ`,`c`],[`Ð`,`C`],[`Ñ`,`ch`],[`Ч`,`Ch`],[`Ñ`,`sh`],[`Ш`,`Sh`],[`ж`,`zh`],[`Ð`,`Zh`]]},dA=(e,t)=>{for(let[n,r]of t)e=e.replaceAll(n,r);return e},fA=e=>{if(!e)return[];let t=e.toLowerCase().replace(/^no(-|$)/,`nb$1`);return uA[t]||uA[t.split(`-`)[0]]||[]};function pA(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let n=fA(t.locale),r=new Map([...cA,...n,...t.customReplacements]);return e=e.normalize(),e=dA(e,r),e=e.normalize(`NFD`).replaceAll(/\p{Diacritic}/gu,``).normalize(),e=e.replaceAll(/\p{Dash_Punctuation}/gu,`-`),e}var mA=[[`&`,` and `],[`ð¦`,` unicorn `],[`â¥`,` love `]],hA=e=>e.replaceAll(/([A-Z]{2,})(\d+)/g,`$1 $2`).replaceAll(/([a-z\d]+)([A-Z]{2,})/g,`$1 $2`).replaceAll(/([a-z\d])([A-Z])/g,`$1 $2`).replaceAll(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,`$1 $2`),gA=(e,t)=>
26{let n=sA(t);return e.replaceAll(RegExp(`(?:${n}){2,}`,`g`),t).replaceAll(RegExp(`^(?:${n})|(?:${n})$`,`g`),``)},_A=e=>{let t=String.raw`a-z\d`;if(t+=e.lowercase?``:`A-Z`,e.transliterate===!1&&(t+=String.raw`\p{L}\p{N}`),e.preserveCharacters.length>0)for(let n of e.preserveCharacters){if(n===e.separator)throw Error(`The separator character \`${e.separator}\` cannot be included in preserved characters: ${e.preserveCharacters}`);t+=sA(n)}let n=e.transliterate?`g`:`gu`;return RegExp(`[^${t}]+`,n)};function vA(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={separator:`-`,lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],transliterate:!0,...t};let n=t.preserveLeadingUnderscore&&e.startsWith(`_`),r=t.preserveTrailingDash&&e.endsWith(`-`);if(t.transliterate){let n=new Map([...mA,...t.customReplacements]);e=pA(e,{customReplacements:n,locale:t.locale})}else if(t.customReplacements.length>0)for(let[n,r]of t.customReplacements)e=e.replaceAll(n,r);t.decamelize&&(e=hA(e));let i=_A(t);return t.lowercase&&(e=t.locale?e.toLocaleLowerCase(t.locale):e.toLowerCase()),e=e.replaceAll(/([a-zA-Z\d]+)['\u2019]([ts])(\s|$)/g,`$1$2$3`),e=e.replace(i,t.separator),e=e.replaceAll(`\\`,``),t.separator&&(e=gA(e,t.separator)),n&&(e=`_${e}`),r&&(e=`${e}-`),e}function yA(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var bA=(function(e){if(e==null)return TA;if(typeof e==`function`)return wA(e);if(typeof e==`object`)return Array.isArray(e)?xA(e):SA(e);if(typeof e==`string`)return CA(e);throw Error(`Expected function, string, or object as test`)});function xA(e){let t=[],n=-1;for(;++n<e.length;)t[n]=bA(e[n]);return wA(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function SA(e){let t=e;return wA(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function CA(e){return wA(t);function t(t){return t&&t.type===e}}function wA(e){return t;
26function t(t,n,r){return!!(EA(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function TA(){return!0}function EA(e){return typeof e==`object`&&!!e&&`type`in e}function DA(e){return e}var OA=[],kA=`skip`;function AA(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=bA(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+DA(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=OA,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=jA(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function jA(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?OA:[e]}function MA(e,t,n){let r=bA((n||{}).ignore||[]),i=NA(t),a=-1;for(;++a<i.length;)AA(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function NA(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([PA(e[0]),FA(e[1])])}return t}function PA(e){return typeof e==`string`?new RegExp(yA(e),`g`):e}function FA(e){return typeof e==`function`?e:function(){return e}}var K=u(_E());function IA(){return IA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IA.apply(this,arguments)}function LA(e,t){if(e==null)return{};var n=RA(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var zA=(0,_.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=LA(e,[`color`,`size`]);return _.createElement(`svg`,IA({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),_.createElement(`polyline`,{points:`20 6 9 17 4 12`}))});zA.propTypes={color:K.default.string,size:K.default.oneOfType([K.default.string,K.default.number])},zA.displayName=`Check`;function BA(){return BA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BA.apply(this,arguments)}function VA(e,t){if(e==null)return{};var n=HA(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var UA=(0,_.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=VA(e,[`color`,`size`]);return _.createElement(`svg`,BA({ref:t,xmlns:`http://www.w3.org/2000/svg`,
26width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),_.createElement(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`,ry:`2`}),_.createElement(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`}))});UA.propTypes={color:K.default.string,size:K.default.oneOfType([K.default.string,K.default.number])},UA.displayName=`Copy`;function WA(){return WA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WA.apply(this,arguments)}function GA(e,t){if(e==null)return{};var n=KA(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var qA=(0,_.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=GA(e,[`color`,`size`]);return _.createElement(`svg`,WA({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),_.createElement(`circle`,{cx:`12`,cy:`12`,r:`10`}),_.createElement(`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`}),_.createElement(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`}))});qA.propTypes={color:K.default.string,size:K.default.oneOfType([K.default.string,K.default.number])},qA.displayName=`HelpCircle`;function JA(){return JA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JA.apply(this,arguments)}function YA(e,t){if(e==null)return{};var n=XA(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function XA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ZA=(0,_.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=YA(e,[`color`,`size`]);return _.createElement(`svg`,JA({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),_.createElement(`path`,{d:`M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3`}),_.createElement(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`}))});ZA.propTypes={color:K.default.string,size:K.default.oneOfType([K.default.string,K.default.number])},ZA.displayName=`Link2`;function Loe(){}function Roe(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();
26(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function QA(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var $A=o((()=>{})),zoe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Boe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Voe={};function ej(e,t){return((t||Voe).jsx?Boe:zoe).test(e)}var Hoe=/[ \t\n\f\r]/g;function Uoe(e){return typeof e==`object`?e.type===`text`?tj(e.value):!1:tj(e)}function tj(e){return e.replace(Hoe,``)===``}var nj,rj=o((()=>{nj=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}},nj.prototype.normal={},nj.prototype.property={},nj.prototype.space=void 0}));function ij(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new nj(n,r,t)}var Woe=o((()=>{rj()}));function aj(e){return e.toLowerCase()}var oj=o((()=>{})),sj,cj=o((()=>{sj=class{constructor(e,t){this.attribute=t,this.property=e}},sj.prototype.attribute=``,sj.prototype.booleanish=!1,sj.prototype.boolean=!1,sj.prototype.commaOrSpaceSeparated=!1,sj.prototype.commaSeparated=!1,sj.prototype.defined=!1,sj.prototype.mustUseProperty=!1,sj.prototype.number=!1,sj.prototype.overloadedBoolean=!1,sj.prototype.property=``,sj.prototype.spaceSeparated=!1,sj.prototype.space=void 0})),lj=c({boolean:()=>fj,booleanish:()=>pj,commaOrSpaceSeparated:()=>_j,commaSeparated:()=>gj,number:()=>q,overloadedBoolean:()=>mj,spaceSeparated:()=>hj});function uj(){return 2**++dj}var dj,fj,pj,mj,q,hj,gj,_j,vj=o((()=>{dj=0,fj=uj(),pj=uj(),mj=uj(),q=uj(),hj=uj(),gj=uj(),_j=uj()}));function yj(e,t,n){n&&(e[t]=n)}var bj,xj,Sj=o((()=>{cj(),vj(),bj=Object.keys(lj),xj=class extends sj{constructor(e,t,n,r){let i=-1;if(super(e,t),yj(this,`space`,r),typeof n==`number`)for(;++i<bj.length;){let e=bj[i];yj(this,bj[i],(n&lj[e])===lj[e])}}},xj.prototype.defined=!0}));function Cj(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new xj(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[aj(r)]=r,n[aj(a.attribute)]=r}return new nj(t,n,e.space)}var wj=o((()=>{oj(),Sj(),rj()})),Tj,Goe=o((()=>{wj(),vj(),Tj=Cj({properties:{ariaActiveDescendant:null,ariaAtomic:pj,ariaAutoComplete:null,ariaBusy:pj,ariaChecked:pj,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:hj,ariaCurrent:null,ariaDescribedBy:hj,ariaDetails:null,ariaDisabled:pj,ariaDropEffect:hj,ariaErrorMessage:null,ariaExpanded:pj,ariaFlowTo:hj,ariaGrabbed:pj,ariaHasPopup:null,ariaHidden:pj,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:hj,ariaLevel:q,ariaLive:null,ariaModal:pj,ariaMultiLine:pj,ariaMultiSelectable:pj,ariaOrientation:null,ariaOwns:hj,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:pj,ariaReadOnly:pj,ariaRelevant:null,ariaRequired:pj,ariaRoleDescription:hj,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:pj,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}})}));function Ej(e,t){return t in e?e[t]:t}var Dj=o((()=>{}));function Oj(e,t){return Ej(e,t.toLowerCase())}var kj=o((()=>{Dj()})),Aj,Koe=o((()=>{kj(),wj(),vj(),Aj=Cj({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:gj,acceptCharset:hj,accessKey:hj,action:null,allow:null,allowFullScreen:fj,allowPaymentRequest:fj,allowUserMedia:fj,alt:null,as:null,async:fj,autoCapitalize:null,autoComplete:hj,autoFocus:fj,autoPlay:fj,blocking:hj,capture:null,charSet:null,checked:fj,cite:null,className:hj,cols:q,colSpan:null,content:null,contentEditable:pj,controls:fj,controlsList:hj,coords:q|gj,crossOrigin:null,data:null,dateTime:null,decoding:null,default:fj,defer:fj,dir:null,dirName:null,disabled:fj,download:mj,draggable:pj,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:fj,formTarget:null,headers:hj,height:q,hidden:mj,high:q,href:null,hrefLang:null,htmlFor:hj,httpEquiv:hj,id:null,imageSizes:null,imageSrcSet:null,inert:fj,inputMode:null,integrity:null,is:null,isMap:fj,itemId:null,itemProp:hj,itemRef:hj,itemScope:fj,itemType:hj,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:fj,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:fj,muted:fj,name:null,nonce:null,noModule:fj,noValidate:fj,onAbort:null,onAfterPrint:null,onAuxCl
26ick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:fj,optimum:q,pattern:null,ping:hj,placeholder:null,playsInline:fj,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:fj,referrerPolicy:null,rel:hj,required:fj,reversed:fj,rows:q,rowSpan:q,sandbox:hj,scope:null,scoped:fj,seamless:fj,selected:fj,shadowRootClonable:fj,shadowRootDelegatesFocus:fj,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:pj,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:fj,useMap:null,value:pj,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:hj,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:fj,declare:fj,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:fj,noHref:fj,noShade:fj,noWrap:fj,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:pj,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:fj,disableRemotePlayback:fj,prefix:null,property:null,results:q,security:null,unselectable:null},space:`html`,transform:Oj})})),jj,qoe=o((()=>{Dj(),wj(),vj(),jj=Cj({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,n
26avDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:_j,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:hj,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:fj,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:gj,g2:gj,glyphName:gj,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:_j,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
26Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:hj,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_j,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_j,rev:_j,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_j,requiredFeatures:_j,requiredFonts:_j,requiredFormats:_j,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:_j,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_j,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_j,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Ej})})),Mj,Joe=o((()=>{wj(),Mj=Cj({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}})})),Nj,Yoe=o((()=>{wj(),kj(),Nj=Cj({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Oj})})),Pj,Xoe=o((()=>{wj(),Pj=Cj({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}})})),Fj,Zoe=o((()=>{Fj={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`}}));function Ij(e,t){let n=aj(t),r=t,i=sj;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&zj.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Rj,$oe);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Rj.test(e)){let n=e.replace(Lj,Qoe);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=xj}return new i(r,t)}function Qoe(e){return`-`+e.toLowerCase()}function $oe(e){return e.charAt(1).toUpperCase()}var Lj,Rj,zj,ese=o((()=>{Sj(),cj(),oj(),Lj=/[A-Z]/g,Rj=/-[a-z]/g,zj=/^data[-\w.:]+$/i})),Bj,Vj,Hj=o((()=>{Woe(),Goe(),Koe(),qoe(),Joe(),Yoe(),Xoe(),Zoe(),ese(),oj(),Bj=ij([Tj,Aj,Mj,Nj,Pj],`html`),Vj=ij([Tj,jj,Mj,Nj,Pj],`svg`)}));function tse(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Uj(e){return e.join(` `).trim()}var Wj=o((()=>{})),nse=s(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;
vendor: 14,862 bytes, lines 26-27
26\s]*/,l=/^\s+|\s+$/g,u=` 27`,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;t.exports=function(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,_=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);_=~n?e.length-n:_+e.length}function y(){var e={line:l,column:_};return function(t){return t.position=new b(e),w(),t}}function b(e){this.start=e,this.end={line:l,column:_},this.source=t.source}b.prototype.content=e;var x=[];function S(n){var r=Error(t.source+`:`+l+`:`+_+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=_,r.source=e,t.silent)x.push(r);else throw r}function C(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function w(){C(i)}function T(e){var t;for(e||=[];t=E();)t!==!1&&e.push(t);return e}function E(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return S(`End of comment missing`);var r=e.slice(2,n-2);return _+=2,v(r),e=e.slice(n),_+=2,t({type:m,comment:r})}}function D(){var e=y(),t=C(a);if(t){if(E(),!C(o))return S(`property missing ':'`);var r=C(s),i=e({type:h,property:g(t[0].replace(n,p)),value:r?g(r[0].replace(n,p)):p});return C(c),i}}function O(){var e=[];T(e);for(var t;t=D();)t!==!1&&(e.push(t),T(e));return e}return w(),O()};function g(e){return e?e.replace(l,p):p}})),rse=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(nse());function r(e,t){var r=null;if(!e||typeof e!=`string`)return r;var i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(function(e){if(e.type===`declaration`){var n=e.property,i=e.value;a?t(n,i,e):i&&(r||={},r[n]=i)}}),r}})),ise=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),ase=s(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(rse()),r=ise();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),Gj=qj(`end`),Kj=qj(`start`);function qj(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function ose(e){let t=Kj(e),n=Gj(e);if(t&&n)return{start:t,end:n}}function Jj(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Xj(e.position):`start`in e||`end`in e?Xj(e):`line`in e||`column`in e?Yj(e):``}function Yj(e){return Zj(e&&e.line)+`:`+Zj(e&&e.column)}function Xj(e){return Yj(e&&e.start)+`-`+Yj(e&&e.end)}function Zj(e){return e&&typeof e==`number`?e:1}var Qj=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=o?o.line:void 0,this.name=Jj(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual,this.expected,this.note,this.url}};Qj.prototype.file=``,Qj.prototype.name=``,Qj.prototype.reason=``,Qj.prototype.message=``,Qj.prototype.stack=``,Qj.prototype.column=void 0,Qj.prototype.line=void 0,Qj.prototype.ancestors=void 0,Qj.prototype.cause=void 0,Qj.prototype.fatal=void 0,Qj.prototype.place=void 0,Qj.prototype.ruleId=void 0,Qj.prototype.source=void 0,$A(),Hj(),Wj();var sse=u(ase(),1),$j={}.hasOwnProperty,cse=new Map,lse=/[A-Z]/g,use=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),dse=new Set([`td`,`th`]),eM=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function fse(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=bse(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=yse(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?Vj:Bj,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=tM(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function tM(e,t,n){if(t.type===`element`)return pse(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return mse(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return gse(e,t,n);if(t.type===`mdxjsEsm`)return hse(e,t);if(t.type===`root`)return _se(e,t,n);if(t.type===`text`)return vse(e,t)}function pse(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Vj,e.schema=i),e.ancestors.push(t);let a=aM(e,t.tagName,!1),o=xse(e,t),s=iM(e,t);return use.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!Uoe(e):!0})),nM(e,o,a,t),rM(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function mse(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}oM(e,t.position)}function hse(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);oM(e,t.position)}function gse(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Vj,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:aM(e,t.name,!0),o=Sse(e,t),s=iM(e,t);return nM(e,o,a,t),rM(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function _se(e,t,n){let r={};return rM(r,iM(e,t)),e.create(t,e.Fragment,r,n)}function vse(e,t){return t.value}function nM(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function rM(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function yse(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function bse(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Kj(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function xse(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&$j.call(t.properties,i)){let a=Cse(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&dse.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Sse(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else oM(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else oM(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function iM(e,t){let n=[],r=-1,i=e.passKeys?new Map:cse;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=tM(e,a,o);s!==void 0&&n.push(s)}return n}function Cse(e,t,n){let r=Ij(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?QA(n):Uj(n)),r.property===`style`){let t=typeof n==`object`?n:wse(e,String(n));return e.stylePropertyNameCase===`css`&&(t=Tse(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Fj[r.property]||r.property:r.attribute,n]}}function wse(e,t){try{return(0,sse.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Qj("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=eM+`#cannot-parse-style-attribute`,r}}function aM(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=ej(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=ej(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return $j.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);oM(e)}function oM(e,t){let n=new Qj("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=eM+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function Tse(e){let t={},n;for(n in e)$j.call(e,n)&&(t[Ese(n)]=e[n]);return t}function Ese(e){let t=e.replace(lse,Dse);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Dse(e){return`-`+e.toLowerCase()}var sM={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},Ose={};function cM(e,t){let n=t||Ose;return lM(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function lM(e,t,n){if(kse(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return uM(e.children,t,n)}return Array.isArray(e)?uM(e,t,n):``}function uM(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=lM(e[i],t,n);return r.join(``)}function kse(e){return!!(e&&typeof e==`object`)}function dM(e){let t=`&`+e+`;`;fM.innerHTML=t;let n=fM.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}var fM,pM=o((()=>{fM=document.createElement(`i`)}));function mM(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function hM(e,t){return e.length>0?(mM(e,e.length,0,t),e):t}var gM={}.hasOwnProperty;function _M(e){let t={},n=-1;for(;++n<e.length;)Ase(t,e[n]);return t}function Ase(e,t){let n;for(n in t){let r=(gM.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){gM.call(r,a)||(r[a]=[]);let e=i[a];jse(r[a],Array.isArray(e)?e:e?[e]:[])}}}function jse(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);mM(e,0,0,r)}function vM(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function yM(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var bM=OM(/[A-Za-z]/),xM=OM(/[\dA-Za-z]/),Mse=OM(/[#-'*+\--9=?A-Z^-~]/);function SM(e){return e!==null&&(e<32||e===127)}var CM=OM(/\d/),Nse=OM(/[\dA-Fa-f]/),Pse=OM(/[!-/:-@[-`{-~]/);function J(e){return e!==null&&e<-2}function wM(e){return e!==null&&(e<0||e===32)}function TM(e){return e===-2||e===-1||e===32}var EM=OM(/\p{P}|\p{S}/u),DM=OM(/\s/);function OM(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function kM(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&xM(e.charCodeAt(n+1))&&xM(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function AM(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return TM(r)?(e.enter(n),s(r)):t(r)}function s(r){return TM(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Fse={tokenize:Ise};function Ise(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),AM(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return J(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Lse={tokenize:Rse},jM={tokenize:zse};function Rse(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return mM(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(jM,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m
vendor: 5,112 bytes, line 27
27(e)}function f(n){return t.containerState={},e.attempt(jM,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return J(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;mM(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function zse(e,t,n){return AM(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function MM(e){if(e===null||wM(e)||DM(e))return 1;if(EM(e))return 2}function NM(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var PM={name:`attention`,resolveAll:Bse,tokenize:Vse};function Bse(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};FM(d,-c),FM(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=hM(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=hM(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=hM(l,NM(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=hM(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=hM(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,mM(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function Vse(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=MM(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=MM(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function FM(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Hse={name:`autolink`,tokenize:Use};function Use(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return bM(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||xM(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||xM(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||SM(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Mse(t)?(e.consume(t),l):n(t)}function u(e){return xM(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||xM(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var IM={partial:!0,tokenize:Wse};function Wse(e,t,n){return r;function r(t){return TM(t)?AM(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||J(e)?t(e):n(e)}}var LM={continuation:{tokenize:Kse},exit:qse,name:`blockQuote`,tokenize:Gse};function Gse(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}
vendor: 8,085 bytes, line 27
27return n(t)}function a(n){return TM(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Kse(e,t,n){let r=this;return i;function i(t){return TM(t)?AM(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(LM,t,n)(r)}}function qse(e){e.exit(`blockQuote`)}var RM={name:`characterEscape`,tokenize:Jse};function Jse(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Pse(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}pM();var zM={name:`characterReference`,tokenize:Yse};function Yse(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=xM,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Nse,u):(e.enter(`characterReferenceValue`),a=7,o=CM,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===xM&&!dM(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var BM={partial:!0,tokenize:Zse},VM={concrete:!0,name:`codeFenced`,tokenize:Xse};function Xse(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),TM(t)?AM(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||J(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(BM,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||J(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):TM(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),AM(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||J(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||J(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&TM(t)?AM(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||J(t)?e.check(BM,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||J(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),TM(t)?AM(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),TM(t)?AM(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||J(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function Zse(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var HM={name:`codeIndented`,tokenize:$se},Qse={partial:!0,tokenize:ece};function $se(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),AM(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):J(t)?e.attempt(Qse,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||J(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function ece(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):J(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):AM(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):J(e)?i(e):n(e)}}var tce={name:`codeText`,previous:rce,resolve:nce,tokenize:ice};function nce(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function rce(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function ice(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):J(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||J(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var ace=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&UM(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),UM(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),UM(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);UM(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);UM(this.left,t.reverse())}}};function UM(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function WM(e){let t={},n=-1,r,i,a,o,s,c,l,u=new ace(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;
vendor: 5,412 bytes, line 27
27)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,oce(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return mM(e,0,1/0,u.slice(0)),!l}function oce(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer||r.parser[n.contentType](n.start),s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var sce={resolve:lce,tokenize:uce},cce={partial:!0,tokenize:dce};function lce(e){return WM(e),e}function uce(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):J(t)?e.check(cce,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function dce(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),AM(e,a,`linePrefix`)}function a(i){if(i===null||J(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function GM(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||SM(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||J(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||wM(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||SM(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function KM(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):J(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||J(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!TM(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function qM(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):J(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),AM(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||J(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function JM(e,t){let n;return r;function r(i){return J(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):TM(i)?AM(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var fce={name:`definition`,tokenize:mce},pce={partial:!0,tokenize:hce};function mce(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return KM.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=yM(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return wM(t)?JM(e,l)(t):l(t)}function l(t){return GM(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(pce,d,d)(t)}function d(t){return TM(t)?AM(e,f,`whitespace`)(t):f(t)}
vendor: 9,952 bytes, line 27
27function f(a){return a===null||J(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function hce(e,t,n){return r;function r(t){return wM(t)?JM(e,i)(t):n(t)}function i(t){return qM(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return TM(t)?AM(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||J(e)?t(e):n(e)}}var gce={name:`hardBreakEscape`,tokenize:_ce};function _ce(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return J(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var vce={name:`headingAtx`,resolve:yce,tokenize:bce};function yce(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},mM(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function bce(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||wM(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||J(n)?(e.exit(`atxHeading`),t(n)):TM(n)?AM(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||wM(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var xce=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),YM=[`pre`,`script`,`style`,`textarea`],Sce={concrete:!0,name:`htmlFlow`,resolveTo:Tce,tokenize:Ece},Cce={partial:!0,tokenize:Oce},wce={partial:!0,tokenize:Dce};function Tce(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Ece(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ae):bM(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):bM(a)?(e.consume(a),i=4,r.interrupt?t:ae):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ae):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return bM(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||wM(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&YM.includes(l)?(i=1,r.interrupt?t(s):O(s)):xce.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||xM(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return TM(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||bM(t)?(e.consume(t),b):TM(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||xM(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):TM(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):TM(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||J(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||wM(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||TM(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||J(t)?O(t):TM(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),te):t===60&&i===1?(e.consume(t),ne):t===62&&i===4?(e.consume(t),oe):t===63&&i===3?(e.consume(t),ae):t===93&&i===5?(e.consume(t),ie):J(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Cce,j,k)(t)):t===null||J(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(wce,A,j)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ee}function ee(t){return t===null||J(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function te(t){return t===45?(e.consume(t),ae):O(t)}function ne(t){return t===47?(e.consume(t),o=``,re):O(t)}function re(t){if(t===62){let n=o.toLowerCase();return YM.includes(n)?(e.consume(t),oe):O(t)}return bM(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),re):O(t)}function ie(t){return t===93?(e.consume(t),ae):O(t)}function ae(t){return t===62?(e.consume(t),oe):t===45&&i===2?(e.consume(t),ae):O(t)}function oe(t){return t===null||J(t)?(e.exit(`htmlFlowData`),j(t)):(e.consume(t),oe)}function j(n){return e.exit(`htmlFlow`),t(n)}}function Dce(e,t,n){let r=this;return i;function i(t){return J(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Oce(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(IM,t,n)}}var kce={name:`htmlText`,tokenize:Ace};function Ace(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):bM(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):bM(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):J(t)?(o=d,ne(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?te(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):J(t)?(o=h,ne(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?te(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?te(t):J(t)?(o=v,ne(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):J(t)?(o=y,ne(t)):(e.consume(t),y)}function b(e){return e===62?te(e):y(e)}function x(t){return bM(t)?(e.consume(t),S):n(t)}function S(t){return t===45||xM(t)?(e.consume(t),S):C(t)}function C(t){return J(t)?(o=C,ne(t)):TM(t)?(e.consume(t),C):te(t)}function w(t){return t===45||xM(t)?(e.consume(t),w):t===47||t===62||wM(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),te):t===58||t===95||bM(t)?(e.consume(t),E):J(t)?(o=T,ne(t)):TM(t)?(e.consume(t),T):te(t)}function E(t){return t===45||t===46||t===58||t===95||xM(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):J(t)?(o=D,ne(t)):TM(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):J(t)?(o=O,ne(t)):TM(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,ee):t===null?n(t):J(t)?(o=k,ne(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||wM(t)?T(t):(e.consume(t),A)}function ee(e){return e===47||e===62||wM(e)?T(e):n(e)}function te(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function ne(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),re}function re(t){return TM(t)?AM(e,ie,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ie(t)}function ie(t){return e.enter(`htmlTextData`),o(t)}}var XM={name:`labelEnd`,resolveAll:Pce,resolveTo:Fce,tokenize:Ice},jce={tokenize:Lce},Mce={tokenize:Rce},Nce={tokenize:zce};function Pce(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&mM(e,0,e.length,n),e}function Fce(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=hM(s,e.slice(a+1,a+r+3)),s=hM(s,[[`enter`,u,t]]),s=hM(s,NM(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=hM(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=hM(s,e.slice(o+1)),s=hM(s,[[`exit`,c,t]]),mM(e,a,e.length,s),e}function Ice(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(yM(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(jce,u,o?u:d)(t):t===91?e.attempt(Mce,u,o?l:d
vendor: 12,978 bytes, lines 27-29
27)(t):o?u(t):d(t)}function l(t){return e.attempt(Nce,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function Lce(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return wM(t)?JM(e,a)(t):a(t)}function a(t){return t===41?u(t):GM(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return wM(t)?JM(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?qM(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return wM(t)?JM(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function Rce(e,t,n){let r=this;return i;function i(t){return KM.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(yM(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function zce(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var Bce={name:`labelStartImage`,resolveAll:XM.resolveAll,tokenize:Vce};function Vce(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Hce={name:`labelStartLink`,resolveAll:XM.resolveAll,tokenize:Uce};function Uce(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var ZM={name:`lineEnding`,tokenize:Wce};function Wce(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),AM(e,t,`linePrefix`)}}var QM={name:`thematicBreak`,tokenize:Gce};function Gce(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||J(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),TM(t)?AM(e,s,`whitespace`)(t):s(t))}}var $M={continuation:{tokenize:Yce},exit:Zce,name:`list`,tokenize:Jce},Kce={partial:!0,tokenize:Qce},qce={partial:!0,tokenize:Xce};function Jce(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:CM(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(QM,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return CM(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(IM,r.interrupt?n:u,e.attempt(Kce,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return TM(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Yce(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(IM,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,AM(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!TM(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(qce,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,AM(e,e.attempt($M,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Xce(e,t,n){let r=this;return AM(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Zce(e){e.exit(this.containerState.type)}function Qce(e,t,n){let r=this;return AM(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!TM(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var eN={name:`setextUnderline`,resolveTo:$ce,tokenize:ele};function $ce(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function ele(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),TM(t)?AM(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||J(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var tle={tokenize:nle};function nle(e){let t=this,n=e.attempt(IM,r,e.attempt(this.parser.constructs.flowInitial,i,AM(e,e.attempt(this.parser.constructs.flow,i,e.attempt(sce,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var rle={resolveAll:nN()},ile=tN(`string`),ale=tN(`text`);function tN(e){return{resolveAll:nN(e===`text`?ole:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function nN(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function ole(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var sle=c({attentionMarkers:()=>hle,contentInitial:()=>lle,disable:()=>gle,document:()=>cle,flow:()=>dle,flowInitial:()=>ule,insideSpan:()=>mle,string:()=>fle,text:()=>ple}),cle={42:$M,43:$M,45:$M,48:$M,49:$M,50:$M,51:$M,52:$M,53:$M,54:$M,55:$M,56:$M,57:$M,62:LM},lle={91:fce},ule={[-2]:HM,[-1]:HM,32:HM},dle={35:vce,42:QM,45:[eN,QM],60:Sce,61:eN,95:QM,96:VM,126:VM},fle={38:zM,92:RM},ple={[-5]:ZM,[-4]:ZM,[-3]:ZM,33:Bce,38:zM,42:PM,60:[Hse,kce],91:Hce,92:[gce,RM],93:XM,95:PM,96:tce},mle={null:[PM,rle]},hle={null:[42,95]},gle={null:[]};function _le(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=hM(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=NM(a,l.events,l),l.events):[]}function f(e,t){return yle(p(e),t)}function p(e){return vle(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){J(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&mM(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function vle(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function yle(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=` 28`;break;case-3:o=`\r 29`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function ble(e){let t={constructs:_M([sle,...(e||{}).extensions||[]]),content:n(Fse),defined:[],document:n(Lse),flow:n(tle),lazy:{},string:n(ile),text:n(ale)};return t;function n(e){return n;function n(n){return _le(t,e,n)}}}function xle(e){for(;!WM(e););return e}var rN=/[\0\t\n\r]/g;function Sle(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(rN.lastIndex=u,c=rN.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}pM();
vendor: 11,460 bytes, lines 29-31
29var Cle=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wle(e){return e.replace(Cle,Tle)}function Tle(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return vM(n.slice(t?2:1),t?16:10)}return dM(n)||e}pM();var iN={}.hasOwnProperty;function Ele(e,t,n){return typeof t!=`string`&&(n=t,t=void 0),Dle(n)(xle(ble(n).document().write(Sle()(e,t,!0))))}function Dle(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(xe),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(_e),blockQuote:a(fe),characterEscape:T,characterReference:T,codeFenced:a(pe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(pe,o),codeText:a(me,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(he),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ge),hardBreakEscape:a(ve),hardBreakTrailing:a(ve),htmlFlow:a(ye,o),htmlFlowData:T,htmlText:a(ye,o),htmlTextData:T,image:a(be),label:o,link:a(xe),listItem:a(Ce),listItemValue:f,listOrdered:a(Se,d),listUnordered:a(Se),paragraph:a(we),reference:se,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(_e),strong:a(Te),thematicBreak:a(De)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:de,autolinkProtocol:ue,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:M,characterReference:N,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(ee),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(ne),label:ie,labelText:re,lineEnding:D,link:c(te),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ce,resourceDestinationString:ae,resourceTitleString:oe,resource:j,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};oN(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];iN.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||sN).call(a,void 0,e[0])}for(r.position={start:aN(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:aN(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:aN(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||sN).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Jj({start:e.start,end:e.end})+`): itâs not open`);n.position.end=aN(e.end)}function u(){return cM(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=yM(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Ee(),n.position={start:aN(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=aN(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=aN(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function te(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ne(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function re(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=wle(t),n.identifier=yM(t).toLowerCase()}function ie(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function oe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function j(){this.data.inReference=void 0}function se(){this.data.referenceType=`collapsed`}function ce(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=yM(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function le(e){this.data.characterReferenceType=e.type}function M(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=vM(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=dM(t);let i=this.stack[this.stack.length-1];i.value+=r}function N(e){let t=this.stack.pop();t.position.end=aN(e.end)}function ue(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function de(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function fe(){return{type:`blockquote`,children:[]}}function pe(){return{type:`code`,lang:null,meta:null,value:``}}function me(){return{type:`inlineCode`,value:``}}function he(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ge(){return{type:`emphasis`,children:[]}}function _e(){return{type:`heading`,depth:0,children:[]}}function ve(){return{type:`break`}}function ye(){return{type:`html`,value:``}}function be(){return{type:`image`,title:null,url:``,alt:null}}function xe(){return{type:`link`,title:null,url:``,children:[]}}function Se(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Ce(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function we(){return{type:`paragraph`,children:[]}}function Te(){return{type:`strong`,children:[]}}function Ee(){return{type:`text`,value:``}}function De(){return{type:`thematicBreak`}}}function aN(e){return{line:e.line,column:e.column,offset:e.offset}}function oN(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?oN(e,r):Ole(e,r)}}function Ole(e,t){let n;for(n in t)if(iN.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function sN(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Jj({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Jj({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Jj({start:t.start,end:t.end})+`) is still open`)}function kle(e){let t=this;t.parser=n;function n(n){return Ele(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Ale(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function jle(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:` 30`}]}function Mle(e,t){let n=t.value?t.value+` 31`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function Nle(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ple(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
vendor: 9,167 bytes, lines 31-33
31function Fle(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=kM(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Ile(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lle(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function cN(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Rle(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return cN(e,t);let i={src:kM(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function zle(e,t){let n={src:kM(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ble(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Vle(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return cN(e,t);let i={href:kM(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Hle(e,t){let n={href:kM(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ule(e,t,n){let r=e.all(t),i=n?Wle(n):lN(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:` 32`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:` 33`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Wle(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=lN(n[r])}return t}function lN(e){return e.spread??e.children.length>1}function Gle(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Kle(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qle(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Jle(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Yle(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=Kj(t.children[1]),o=Gj(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Xle(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function Zle(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var uN=9,dN=32;function Qle(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(fN(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(fN(t.slice(i),i>0,!1)),a.join(``)}function fN(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===uN||t===dN;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===uN||t===dN;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function $le(e,t){let n={type:`text`,value:Qle(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function eue(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var tue={blockquote:Ale,break:jle,code:Mle,delete:Nle,emphasis:Ple,footnoteReference:Fle,heading:Ile,html:Lle,imageReference:Rle,image:zle,inlineCode:Ble,linkReference:Vle,link:Hle,listItem:Ule,list:Gle,paragraph:Kle,root:qle,strong:Jle,table:Yle,tableCell:Zle,tableRow:Xle,text:$le,thematicBreak:eue,toml:pN,yaml:pN,definition:pN,footnoteDefinition:pN};function pN(){}var mN=typeof self==`object`?self:globalThis,nue=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new mN[e](t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new mN[a](o),i)};return r},hN=e=>nue(new Map,e)(0),gN=``,{toString:rue}={},{keys:iue}=Object,_N=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=rue.call(e).slice(8,-1);switch(n){case`Array`:return[1,gN];case`Object`:return[2,gN];case`Date`:return[3,gN];case`RegExp`:return[4,gN];case`Map`:return[5,gN];case`Set`:return[6,gN];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},vN=([e,t])=>e===0&&(t===`function`||t===`symbol`),aue=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=_N(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of iue(r))(e||!vN(_N(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(vN(_N(n))||vN(_N(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!vN(_N(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},yN=(e,{json:t,lossy:n}={})=>{let r=[];return aue(!(t||n),!!t,new Map,r)(e),r},bN=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?hN(yN(e,t)):structuredClone(e):(e,t)=>hN(yN(e,t));function oue(e,t){let n=[{type:`text`,value:`â©`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function sue(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}
vendor: 9,729 bytes, lines 33-39
33function cue(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||oue,r=e.options.footnoteBackLabel||sue,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=kM(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...bN(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:` 34`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:` 35`}]}}function xN(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),AA(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var SN={}.hasOwnProperty,lue={};function uue(e,t){let n=t||lue,r=new Map,i=new Map,a={all:s,applyData:fue,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...tue,...n.handlers},one:o,options:n,patch:due,wrap:mue};return xN(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(SN.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=bN(n);return r.children=a.all(e),r}return bN(e)}return(a.options.unknownHandler||pue)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=CN(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=CN(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function due(e,t){e.position&&(t.position=ose(e))}function fue(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,bN(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function pue(e,t){let n=t.data||{},r=`value`in t&&!(SN.call(n,`hProperties`)||SN.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mue(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:` 36`});++r<e.length;)r&&n.push({type:`text`,value:` 37`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:` 38`}),n}function CN(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function wN(e,t){let n=uue(e,t),r=n.one(e,void 0),i=cue(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:` 39`},i)),a}function hue(e,t){return e&&`run`in e?async function(n,r){let i=wN(n,{file:r,...t});await e.run(i,r)}:function(n,r){return wN(n,{file:r,...e||t})}}function TN(e){if(e)throw e}var gue=s(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function EN(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _ue(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?vue(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function vue(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var DN={basename:yue,dirname:bue,extname:xue,join:Sue,sep:`/`};function yue(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);ON(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function bue(e){if(ON(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function xue(e){ON(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Sue(...e){let t=-1,n;for(;++t<e.length;)ON(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Cue(n)}function Cue(e){ON(e);let t=e.codePointAt(0)===47,n=wue(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function wue(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function ON(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Tue={cwd:Eue};function Eue(){return`/`}function kN(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Due(e){if(typeof e==`string`)e=new URL(e);else if(!kN(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Oue(e)}function Oue(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var AN=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],jN=class{constructor(e){let t;t=e?kN(e)?{path:e}:typeof e==`string`||kue(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Tue.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<AN.length;){let e=AN[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)AN.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?DN.basename(this.path):void 0}
vendor: 8,741 bytes, line 39
39set basename(e){NN(e,`basename`),MN(e,`basename`),this.path=DN.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?DN.dirname(this.path):void 0}set dirname(e){PN(this.basename,`dirname`),this.path=DN.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?DN.extname(this.path):void 0}set extname(e){if(MN(e,`extname`),PN(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=DN.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){kN(e)&&(e=Due(e)),NN(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?DN.basename(this.path,this.extname):void 0}set stem(e){NN(e,`stem`),MN(e,`stem`),this.path=DN.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Qj(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function MN(e,t){if(e&&e.includes(DN.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+DN.sep+"`")}function NN(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function PN(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function kue(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Aue=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),FN=u(gue(),1),jue={}.hasOwnProperty,Mue=new class e extends Aue{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=_ue()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,FN.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(RN(`data`,this.frozen),this.namespace[e]=t,this):jue.call(this.namespace,e)&&this.namespace[e]||void 0:e?(RN(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=VN(e),n=this.parser||this.Parser;return IN(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),IN(`process`,this.parser||this.Parser),LN(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=VN(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);Pue(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),IN(`processSync`,this.parser||this.Parser),LN(`processSync`,this.compiler||this.Compiler),this.process(e,r),BN(`processSync`,`process`,t),n;function r(e,r){t=!0,TN(e),n=r}}run(e,t,n){zN(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=VN(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),BN(`runSync`,`run`,n),r;function i(e,t){TN(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=VN(t),r=this.compiler||this.Compiler;return LN(`stringify`,r),zN(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(RN(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,FN.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];EN(o)&&EN(r)&&(r=(0,FN.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function IN(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function LN(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function RN(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function zN(e){if(!EN(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function BN(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function VN(e){return Nue(e)?e:new jN(e)}function Nue(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function Pue(e){return typeof e==`string`||Fue(e)}function Fue(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var HN=[],UN={allowDangerousHtml:!0},Iue=/^(https?|ircs?|mailto|xmpp)$/i,Lue=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function Rue(e){let t=zue(e),n=Bue(e);return Vue(t.runSync(t.parse(n),n),e)}function zue(e){let t=e.rehypePlugins||HN,n=e.remarkPlugins||HN,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...UN}:UN;return Mue().use(kle).use(n).use(hue,r).use(t)}function Bue(e){let t=e.children||``,n=new jN;return typeof t==`string`?n.value=t:``+t,n}function Vue(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||Hue;for(let e of Lue)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return xN(e,l),fse(e,{Fragment:v.Fragment,components:i,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in sM)if(Object.hasOwn(sM,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=sM[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function Hue(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Iue.test(e.slice(0,t))?e:``}function WN(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var GN,Uue=o((()=>{GN=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocir
39c.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`)})),KN,Wue=o((()=>{KN={0:`�`,128:`â¬`,130:`â`,131:`Æ`,132:`â`,133:`â¦`,134:`â `,135:`â¡`,136:`Ë`,137:`â°`,138:`Å `,139:`â¹`,140:`Å`,142:`Ž`,145:`â`,146:`â`,147:`â`,148:`â`,149:`â¢`,150:`â`,151:`â`,152:`Ë`,153:`â¢`,154:`Å¡`,155:`âº`,156:`Å`,158:`ž`,159:`Ÿ`}}));function qN(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}var JN=o((()=>{}));function Gue(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var Kue=o((()=>{}));function que(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var Jue=o((()=>{}));function YN(e){return que(e)||qN(e)}var Yue=o((()=>{Jue(),JN()}));function XN(e,t={}){let n=typeof t.additional==`string`?t.additional.charCodeAt(0):t.additional,r=[],i=0,a=-1,o=``,s,c;t.position&&(`start`in t.position||`indent`in t.position?(c=t.position.indent,s=t.position.start):s=t.position);let l=(s?s.line:0)||1,u=(s?s.column:0)||1,d=p(),f;for(i--;++i<=e.length;)if(f===10&&(u=(c?c[a]:0)||1),f=e.charCodeAt(i),f===38){let a=e.charCodeAt(i+1);if(a===9||a===10||a===12||a===32||a===38||a===60||Number.isNaN(a)||n&&a===n){o+=ZN(f),u++;continue}let s=i+1,c=s,l=s,g;if(a===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(g=`hexadecimal`,l=++c):g=`decimal`}else g=`named`;let _=``,v=``,y=``,b=g===`named`?YN:g===`decimal`?qN:Gue;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=ZN(t),g===`named`&&GN.includes(y)&&(_=y,v=dM(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=g===`named`?dM(y):!1;e&&(_=y,v=e)}let S=1+l-s,C=``;if(!(!x&&t.nonTerminated===!1))if(!y)g!==`named`&&m(4,S);else if(g===`named`){if(x&&!v)m(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let n=_?1:3;if(t.attribute){let t=e.charCodeAt(l);t===61?(m(n,S),v=``):YN(t)?v=``:m(n,S)}else m(n,S)}C=v}else{x||m(2,S);let e=Number.parseInt(y,g===`hexadecimal`?16:10);if(Xue(e))m(7,S),C=ZN(65533);else if(e in KN)m(6,S),C=KN[e];else{let t=``;Zue(e)&&m(6,S),e>65535&&(e-=65536,t+=ZN(e>>>10|55296),e=56320|e&1023),C=t+ZN(e)}}if(C){h(),d=p(),i=l-1,u+=l-s+1,r.push(C);let n=p();n.offset++,t.reference&&t.reference.call(t.referenceContext,C,{start:d,end:n},e.slice(s-1,l)),d=n}else y=e.slice(s-1,l),o+=y,u+=y.length,i=l-1}else f===10&&(l++,a++,u=0),Number.isNaN(f)?h():(o+=ZN(f),u++);return r.join(``);function p(){return{line:l,column:u,offset:i+((s?s.offset:0)||0)}}function m(e,n){let r;t.warning&&(r=p(),r.column+=n,r.offset+=n,t.warning.call(t.warningContext,QN[e],r,e))}function h(){o&&=(r.push(o),t.text&&t.text.call(t.textContext,o,{start:d,end:p()}),``)}}function Xue(e){return e>=55296&&e<=57343||e>1114111}function Zue(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var ZN,QN,Que=o((()=>{Uue(),Wue(),JN(),Kue(),Yue(),pM(),ZN=String.fromCharCode,QN=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`]})),$N=o((()=>{Que()})),$ue=/["&'<>`]/g,ede=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tde=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,nde=/[|\\{}()[\]^$+*?.]/g,eP=new WeakMap;function rde(e,t){if(e=e.replace(t.subset?ide(t.subset):$ue,r),t.subset||t.escapeOnly)return e;return e.replace(ede,n).replace(tde,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function ide(e){let t=eP.get(e);return t||(t=ade(e),eP.set(e,t)),t}function ade(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(nde,`\\$&`));
39return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}function ode(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function sde(e,t){return rde(e,Object.assign({format:ode},t))}$N();var cde={}.hasOwnProperty,lde={},tP=/^[^\t\n\r "#'.<=>`}]+$/,ude=/^[^\t\n\r "'<=>`}]+$/;function dde(){return{canContainEols:[`textDirective`],enter:{directiveContainer:pde,directiveContainerAttributes:iP,directiveContainerLabel:gde,directiveLeaf:mde,directiveLeafAttributes:iP,directiveText:hde,directiveTextAttributes:iP},exit:{directiveContainer:uP,directiveContainerAttributeClassValue:oP,directiveContainerAttributeIdValue:aP,directiveContainerAttributeName:cP,directiveContainerAttributeValue:sP,directiveContainerAttributes:lP,directiveContainerLabel:_de,directiveContainerName:rP,directiveLeaf:uP,directiveLeafAttributeClassValue:oP,directiveLeafAttributeIdValue:aP,directiveLeafAttributeName:cP,directiveLeafAttributeValue:sP,directiveLeafAttributes:lP,directiveLeafName:rP,directiveText:uP,directiveTextAttributeClassValue:oP,directiveTextAttributeIdValue:aP,directiveTextAttributeName:cP,directiveTextAttributeValue:sP,directiveTextAttributes:lP,directiveTextName:rP}}}function fde(e){let t=e||lde;if(t.quote!==`"`&&t.quote!==`'`&&t.quote!==null&&t.quote!==void 0)throw Error("Invalid quote `"+t.quote+"`, expected `'` or `\"`");return n.peek=vde,{handlers:{containerDirective:n,leafDirective:n,textDirective:n},unsafe:[{character:`\r`,inConstruct:[`leafDirectiveLabel`,`containerDirectiveLabel`]},{character:` 40`,inConstruct:[`leafDirectiveLabel`,`containerDirectiveLabel`]},{before:`[^:]`,character:`:`,after:`[A-Za-z]`,inConstruct:[`phrasing`]},{atBreak:!0,character:`:`,after:`:`}]};function n(e,t,n,i){let a=n.createTracker(i),o=yde(e),s=n.enter(e.type),c=a.move(o+(e.name||``)),l;if(e.type===`containerDirective`){let t=(e.children||[])[0];l=dP(t)?t:void 0}else l=e;if(l&&l.children&&l.children.length>0){let t=n.enter(`label`),r=`${e.type}Label`,i=n.enter(r);c+=a.move(`[`),c+=a.move(n.containerPhrasing(l,{...a.current(),before:c,after:`]`})),c+=a.move(`]`),i(),t()}if(c+=a.move(r(e,n)),e.type===`containerDirective`){let t=(e.children||[])[0],r=e;dP(t)&&(r=Object.assign({},e,{children:e.children.slice(1)})),r&&r.children&&r.children.length>0&&(c+=a.move(` 41`),c+=a.move(n.containerFlow(r,a.current()))),c+=a.move(` 42`+o)}return s(),c}function r(e,n){let r=e.attributes||{},a=[],o,s,c,l;for(l in r)if(cde.call(r,l)&&r[l]!==void 0&&r[l]!==null){let u=String(r[l]);if(l===`id`)c=t.preferShortcut!==!1&&tP.test(u)?`#`+u:i(`id`,u,e,n);else if(l===`class`){let r=u.split(/[\t\n\r ]+/g),a=[],c=[],l=-1;for(;++l<r.length;)(t.preferShortcut!==!1&&tP.test(r[l])?c:a).push(r[l]);o=a.length>0?i(`class`,a.join(` `),e,n):``,s=c.length>0?`.`+c.join(`.`):``}else a.push(i(l,u,e,n))}return o&&a.unshift(o),s&&a.unshift(s),c&&a.unshift(c),a.length>0?`{`+a.join(` `)+`}`:``}function i(e,n,r,i){if(t.collapseEmptyAttributes!==!1&&!n)return e;if(t.preferUnquoted&&ude.test(n))return e+`=`+n;let a=t.quote||i.options.quote||`"`,o=a===`"`?`'`:`"`,s=t.quoteSmart&&WN(n,a)>WN(n,o)?o:a,c=r.type===`textDirective`?[s]:[s,` 43`,`\r`];return e+`=`+s+sde(n,{subset:c})+s}}function pde(e){nP.call(this,`containerDirective`,e)}function mde(e){nP.call(this,`leafDirective`,e)}function hde(e){nP.call(this,`textDirective`,e)}function nP(e,t){this.enter({type:e,name:``,attributes:{},children:[]},t)}function rP(e){let t=this.stack[this.stack.length-1];t.type===`containerDirective`||t.type===`leafDirective`||t.type,t.name=this.sliceSerialize(e)}function gde(e){this.enter({type:`paragraph`,data:{directiveLabel:!0},children:[]},e)}function _de(e){this.exit(e)}function iP(){this.data.directiveAttributes=[],this.buffer()}function aP(e){this.data.directiveAttributes.push([`id`,XN(this.sliceSerialize(e),{attribute:!0})])}function oP(e){this.data.directiveAttributes.push([`class`,XN(this.sliceSerialize(e),{attribute:!0})])}function sP(e){let t=this.data.directiveAttributes;t[t.length-1][1]=XN(this.sliceSerialize(e),{attribute:!0})}function cP(e){this.data.directiveAttributes.push([this.sliceSerialize(e),``])}function lP(){let e=this.data.directiveAttributes,t={},n=-1;for(;++n<e.length;){let r=e[n];r[0]===`class`&&t.class?t.class+=` `+r[1]:t[r[0]]=r[1]}this.data.directiveAttributes=void 0,this.resume();let r=this.stack[this.stack.length-1];r.type===`containerDirective`||r.type===`leafDirective`||r.type,r.attributes=t}function uP(e){this.exit(e)}function vde(){return`:`}function dP(e){return!!(e&&e.type===`paragraph`&&e.data&&e.data.directiveLabel)}function yde(e){let t=0;return e.type===`containerDirective`?(AA(e,function(e,n){if(e.type===`containerDirective`){let e=n.length,r=0;for(;e--;)n[e].type===`containerDirective`&&r++;r>t&&(t=r)}}),t+=3):t=e.type===`leafDirective`?2:1,`:`.repeat(t)}function fP(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){let h,g;return _;function _(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),v}function v(t){return t===35?(h=o,y(t)):t===46?(h=s,y(t)):m&&TM(t)?AM(e,v,`whitespace`)(t):!m&&wM(t)?JM(e,v)(t):t===null||J(t)||DM(t)||EM(t)&&t!==45&&t!==95?A(t):(e.enter(a),e.enter(c),e.consume(t),S)}function y(t){let n=h+`Marker`;return e.enter(a),e.enter(h),e.enter(n),e.consume(t),e.exit(n),b}function b(t){if(t===null||t===34||t===35||t===39||t===46||t===60||t===61||t===62||t===96||t===125||wM(t))return n(t);let r=h+`Value`;return e.enter(r),e.consume(t),x}function x(t){if(t===null||t===34||t===39||t===60||t===61||t===62||t===96)return n(t);if(t===35||t===46||t===125||wM(t)){let n=h+`Value`;return e.exit(n),e.exit(h),e.exit(a),v(t)}
43return e.consume(t),x}function S(t){return t===null||J(t)||DM(t)||EM(t)&&t!==45&&t!==46&&t!==58&&t!==95?(e.exit(c),m&&TM(t)?AM(e,C,`whitespace`)(t):!m&&wM(t)?JM(e,C)(t):C(t)):(e.consume(t),S)}function C(t){return t===61?(e.enter(l),e.consume(t),e.exit(l),w):(e.exit(a),v(t))}function w(t){return t===null||t===60||t===61||t===62||t===96||t===125||m&&J(t)?n(t):t===34||t===39?(e.enter(u),e.enter(f),e.consume(t),e.exit(f),g=t,E):m&&TM(t)?AM(e,w,`whitespace`)(t):!m&&wM(t)?JM(e,w)(t):(e.enter(d),e.enter(p),e.consume(t),g=void 0,T)}function T(t){return t===null||t===34||t===39||t===60||t===61||t===62||t===96?n(t):t===125||wM(t)?(e.exit(p),e.exit(d),e.exit(a),v(t)):(e.consume(t),T)}function E(t){return t===g?(e.enter(f),e.consume(t),e.exit(f),e.exit(u),e.exit(a),k):(e.enter(d),D(t))}function D(t){return t===g?(e.exit(d),E(t)):t===null?n(t):J(t)?m?n(t):JM(e,D)(t):(e.enter(p),e.consume(t),O)}function O(t){return t===g||t===null||J(t)?(e.exit(p),D(t)):(e.consume(t),O)}function k(e){return e===125||wM(e)?v(e):A(e)}function A(a){return a===125?(e.enter(i),e.consume(a),e.exit(i),e.exit(r),t):n(a)}}function pP(e,t,n,r,i,a,o){let s=0,c=0,l;return u;function u(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),d}function d(n){return n===93?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),f(n))}function f(t){if(t===93&&!c)return h(t);let n=e.enter(`chunkText`,{_contentTypeTextTrailing:!0,contentType:`text`,previous:l});return l&&(l.next=n),l=n,p(t)}function p(t){return t===null||s>999||t===91&&++c>32?n(t):t===93&&!c--?(e.exit(`chunkText`),h(t)):J(t)?o?n(t):(e.consume(t),e.exit(`chunkText`),f):(e.consume(t),t===92?m:p)}function m(t){return t===91||t===92||t===93?(e.consume(t),s++,p):p(t)}function h(n){return e.exit(a),e.enter(i),e.consume(n),e.exit(i),e.exit(r),t}}function mP(e,t,n,r){let i=this;return a;function a(t){return t===null||J(t)||EM(t)||DM(t)?n(t):(e.enter(r),e.consume(t),o)}function o(a){return a===null||J(a)||DM(a)||EM(a)&&a!==45&&a!==95?(e.exit(r),i.previous===45||i.previous===95?n(a):t(a)):(e.consume(a),o)}}var bde={tokenize:Cde,concrete:!0},xde={tokenize:wde,partial:!0},Sde={tokenize:Tde,partial:!0},hP={tokenize:Ede,partial:!0};function Cde(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0,s;return c;function c(t){return e.enter(`directiveContainer`),e.enter(`directiveContainerFence`),e.enter(`directiveContainerSequence`),l(t)}function l(t){return t===58?(e.consume(t),o++,l):o<3?n(t):(e.exit(`directiveContainerSequence`),mP.call(r,e,u,n,`directiveContainerName`)(t))}function u(t){return t===91?e.attempt(xde,d,d)(t):d(t)}function d(t){return t===123?e.attempt(Sde,f,f)(t):f(t)}function f(t){return AM(e,p,`whitespace`)(t)}function p(i){return e.exit(`directiveContainerFence`),i===null?C(i):J(i)?r.interrupt?t(i):e.attempt(hP,m,C)(i):n(i)}function m(t){return t===null?C(t):J(t)?e.check(hP,y,C)(t):(e.enter(`directiveContainerContent`),h(t))}function h(t){return e.attempt({tokenize:w,partial:!0},S,a?AM(e,g,`linePrefix`,a+1):g)(t)}function g(t){return t===null?S(t):J(t)?e.check(hP,v,S)(t):v(t)}function _(t){if(t===null){let n=e.exit(`chunkDocument`);return r.parser.lazy[n.start.line]=!1,S(t)}return J(t)?e.check(hP,b,x)(t):(e.consume(t),_)}function v(t){let n=e.enter(`chunkDocument`,{contentType:`document`,previous:s});return s&&(s.next=n),s=n,_(t)}function y(t){return e.enter(`directiveContainerContent`),h(t)}function b(t){e.consume(t);let n=e.exit(`chunkDocument`);return r.parser.lazy[n.start.line]=!1,h}function x(t){let n=e.exit(`chunkDocument`);return r.parser.lazy[n.start.line]=!1,S(t)}function S(t){return e.exit(`directiveContainerContent`),C(t)}function C(n){return e.exit(`directiveContainer`),t(n)}function w(e,t,n){let i=0;return AM(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`directiveContainerFence`),e.enter(`directiveContainerSequence`),s(t)}function s(t){return t===58?(e.consume(t),i++,s):i<o?n(t):(e.exit(`directiveContainerSequence`),AM(e,c,`whitespace`)(t))}function c(r){return r===null||J(r)?(e.exit(`directiveContainerFence`),t(r)):n(r)}}}function wde(e,t,n){return pP(e,t,n,`directiveContainerLabel`,`directiveContainerLabelMarker`,`directiveContainerLabelString`,!0)}function Tde(e,t,n){return fP(e,t,n,`directiveContainerAttributes`,`directiveContainerAttributesMarker`,`directiveContainerAttribute`,`directiveContainerAttributeId`,`directiveContainerAttributeClass`,`directiveContainerAttributeName`,`directiveContainerAttributeInitializerMarker`,`directiveContainerAttributeValueLiteral`,`directiveContainerAttributeValue`,`directiveContainerAttributeValueMarker`,`directiveContainerAttributeValueData`,!0)}function Ede(e,t,n){let r=this;return i;function i(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var Dde={tokenize:Ade},Ode={tokenize:jde,partial:!0},kde={tokenize:Mde,partial:!0};function Ade(e,t,n){let r=this;return i;function i(t){return e.enter(`directiveLeaf`),e.enter(`directiveLeafSequence`),e.consume(t),a}function a(t){return t===58?(e.consume(t),e.exit(`directiveLeafSequence`),mP.call(r,e,o,n,`directiveLeafName`)):n(t)}function o(t){return t===91?e.attempt(Ode,s,s)(t):s(t)}function s(t){return t===123?e.attempt(kde,c,c)(t):c(t)}function c(t){return AM(e,l,`whitespace`)(t)}function l(r){return r===null||J(r)?(e.exit(`directiveLeaf`),t(r)):n(r)}}
vendor: 14,793 bytes, lines 43-56
43function jde(e,t,n){return pP(e,t,n,`directiveLeafLabel`,`directiveLeafLabelMarker`,`directiveLeafLabelString`,!0)}function Mde(e,t,n){return fP(e,t,n,`directiveLeafAttributes`,`directiveLeafAttributesMarker`,`directiveLeafAttribute`,`directiveLeafAttributeId`,`directiveLeafAttributeClass`,`directiveLeafAttributeName`,`directiveLeafAttributeInitializerMarker`,`directiveLeafAttributeValueLiteral`,`directiveLeafAttributeValue`,`directiveLeafAttributeValueMarker`,`directiveLeafAttributeValueData`,!0)}var Nde={tokenize:Lde,previous:Ide},Pde={tokenize:Rde,partial:!0},Fde={tokenize:zde,partial:!0};function Ide(e){return e!==58||this.events[this.events.length-1][1].type===`characterEscape`}function Lde(e,t,n){let r=this;return i;function i(t){return e.enter(`directiveText`),e.enter(`directiveTextMarker`),e.consume(t),e.exit(`directiveTextMarker`),mP.call(r,e,a,n,`directiveTextName`)}function a(t){return t===58?n(t):t===91?e.attempt(Pde,o,o)(t):o(t)}function o(t){return t===123?e.attempt(Fde,s,s)(t):s(t)}function s(n){return e.exit(`directiveText`),t(n)}}function Rde(e,t,n){return pP(e,t,n,`directiveTextLabel`,`directiveTextLabelMarker`,`directiveTextLabelString`)}function zde(e,t,n){return fP(e,t,n,`directiveTextAttributes`,`directiveTextAttributesMarker`,`directiveTextAttribute`,`directiveTextAttributeId`,`directiveTextAttributeClass`,`directiveTextAttributeName`,`directiveTextAttributeInitializerMarker`,`directiveTextAttributeValueLiteral`,`directiveTextAttributeValue`,`directiveTextAttributeValueMarker`,`directiveTextAttributeValueData`)}function Bde(){return{text:{58:Nde},flow:{58:[bde,Dde]}}}function Vde(){let e=this.data(),t=e.micromarkExtensions||=[],n=e.fromMarkdownExtensions||=[],r=e.toMarkdownExtensions||=[];t.push(Bde()),n.push(dde()),r.push(fde())}var gP=`phrasing`,_P=[`autolink`,`link`,`image`,`label`];function Hde(){return{transforms:[Yde],enter:{literalAutolink:Wde,literalAutolinkEmail:vP,literalAutolinkHttp:vP,literalAutolinkWww:vP},exit:{literalAutolink:Jde,literalAutolinkEmail:qde,literalAutolinkHttp:Gde,literalAutolinkWww:Kde}}}function Ude(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:gP,notInConstruct:_P},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:gP,notInConstruct:_P},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:gP,notInConstruct:_P}]}}function Wde(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function vP(e){this.config.enter.autolinkProtocol.call(this,e)}function Gde(e){this.config.exit.autolinkProtocol.call(this,e)}function Kde(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function qde(e){this.config.exit.autolinkEmail.call(this,e)}function Jde(e){this.exit(e)}function Yde(e){MA(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Xde],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Zde]],{ignore:[`link`,`linkReference`]})}function Xde(e,t,n,r,i){let a=``;if(!yP(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!Qde(n)))return!1;let o=$de(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function Zde(e,t,n,r){return!yP(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function Qde(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function $de(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=WN(e,`(`),a=WN(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function yP(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||DM(n)||EM(n))&&(!t||n!==47)}bP.peek=cfe;function efe(){this.buffer()}function tfe(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function nfe(){this.buffer()}function rfe(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function ife(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yM(this.sliceSerialize(e)).toLowerCase(),n.label=t}function afe(e){this.exit(e)}function ofe(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yM(this.sliceSerialize(e)).toLowerCase(),n.label=t}function sfe(e){this.exit(e)}function cfe(){return`[`}function bP(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function lfe(){return{enter:{gfmFootnoteCallString:efe,gfmFootnoteCall:tfe,gfmFootnoteDefinitionLabelString:nfe,gfmFootnoteDefinition:rfe},exit:{gfmFootnoteCallString:ife,gfmFootnoteCall:afe,gfmFootnoteDefinitionLabelString:ofe,gfmFootnoteDefinition:sfe}}}function ufe(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:bP},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?` 44`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?xP:dfe))),s(),o}}function dfe(e,t,n){return t===0?e:xP(e,t,n)}function xP(e,t,n){return(n?``:` `)+e}var ffe=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];SP.peek=_fe;function pfe(){return{canContainEols:[`delete`],enter:{strikethrough:hfe},exit:{strikethrough:gfe}}}function mfe(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:ffe}],handlers:{delete:SP}}}function hfe(e){this.enter({type:`delete`,children:[]},e)}function gfe(e){this.exit(e)}function SP(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function _fe(){return`~`}function vfe(e,t={}){let n=(t.align||[]).concat(),r=t.stringLength||bfe,i=[],a=[],o=[],s=[],c=0,l=-1;for(;++l<e.length;){let n=[],i=[],u=-1;for(e[l].length>c&&(c=e[l].length);++u<e[l].length;){let a=yfe(e[l][u]);if(t.alignDelimiters!==!1){let e=r(a);i[u]=e,(s[u]===void 0||e>s[u])&&(s[u]=e)}n.push(a)}a[l]=n,o[l]=i}let u=-1;if(typeof n==`object`&&`length`in n)for(;++u<c;)i[u]=CP(n[u]);else{let e=CP(n);for(;++u<c;)i[u]=e}u=-1;let d=[],f=[];for(;++u<c;){let e=i[u],n=``,r=``;e===99?(n=`:`,r=`:`):e===108?n=`:`:e===114&&(r=`:`);let a=t.alignDelimiters===!1?1:Math.max(1,s[u]-n.length-r.length),o=n+`-`.repeat(a)+r;t.alignDelimiters!==!1&&(a=n.length+a+r.length,a>s[u]&&(s[u]=a),f[u]=a),d[u]=o}a.splice(1,0,d),o.splice(1,0,f),l=-1;let p=[];for(;++l<a.length;){let e=a[l],n=o[l];u=-1;let r=[];for(;++u<c;){let a=e[u]||``,o=``,l=``;if(t.alignDelimiters!==!1){let e=s[u]-(n[u]||0),t=i[u];t===114?o=` `.repeat(e):t===99?e%2?(o=` `.repeat(e/2+.5),l=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),l=o):l=` `.repeat(e)}t.delimiterStart!==!1&&!u&&r.push(`|`),t.padding!==!1&&!(t.alignDelimiters===!1&&a===``)&&(t.delimiterStart!==!1||u)&&r.push(` `),t.alignDelimiters!==!1&&r.push(o),r.push(a),t.alignDelimiters!==!1&&r.push(l),t.padding!==!1&&r.push(` `),(t.delimiterEnd!==!1||u!==c-1)&&r.push(`|`)}p.push(t.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return p.join(` 45`)}function yfe(e){return e==null?``:String(e)}function bfe(e){return e.length}function CP(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function xfe(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),Sfe);return i(),o}function Sfe(e,t,n){return`>`+(n?``:` `)+e}function Cfe(e,t){return wP(e,t.inConstruct,!0)&&!wP(e,t.notInConstruct,!1)}function wP(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function TP(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===` 46`&&Cfe(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\ 47`}function EP(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function wfe(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Tfe(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Efe(e,t,n,r){let i=Tfe(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(wfe(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,Dfe);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(EP(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:` 48`,encode:["`"],...s.current()})),t()}return u+=s.move(` 49`),a&&(u+=s.move(a+` 50`)),u+=s.move(c),l(),u}function Dfe(e,t,n){return(n?``:` `)+e}function DP(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ofe(e,t,n,r){let i=DP(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:` 51`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function kfe(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function OP(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function kP(e,t,n){let r=MM(e),i=MM(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}AP.peek=Afe;function AP(e,t,n,r){let i=kfe(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=kP(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=OP(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=kP(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+OP(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Afe(e,t,n){return n.options.emphasis||`*`}function jfe(e,t){let n=!1;return xN(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&cM(e)&&(t.options.setext||n))}function Mfe(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(jfe(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:` 52`,after:` 53`});return r(),t(),o+` 54`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(` 55`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:` 56`,...a.current()});return/^[\t ]/.test(l)&&(l=OP(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}jP.peek=Nfe;function jP(e){return e.value||``}function Nfe(){return`<`}MP.peek=Pfe;function MP(e,t,n,r){let i=DP(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function Pfe(){return`!`}NP.peek=Ffe;function NP(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Ffe(){return`!`}PP.peek=Ife;function PP(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function Ife(){return"`"}function FP(e,t){let n=cM(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}IP.peek=Lfe;function IP(e,t,n,r){let i=DP(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(FP(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}
vendor: 11,193 bytes, lines 56-58
56))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function Lfe(e,t,n){return FP(e,n)?`<`:`[`}LP.peek=Rfe;function LP(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Rfe(){return`[`}function RP(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function zfe(e){let t=RP(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Bfe(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function zP(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Vfe(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?Bfe(n):RP(n),s=e.ordered?o===`.`?`)`:`.`:zfe(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),zP(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function Hfe(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Ufe(e,t,n,r){let i=Hfe(n),a=n.bulletCurrent||RP(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function Wfe(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var Gfe=bA([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function Kfe(e,t,n,r){return(e.children.some(function(e){return Gfe(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function qfe(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}BP.peek=Jfe;function BP(e,t,n,r){let i=qfe(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=kP(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=OP(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=kP(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+OP(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Jfe(e,t,n){return n.options.strong||`*`}function Yfe(e,t,n,r){return n.safe(e.value,r)}function Xfe(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Zfe(e,t,n){let r=(zP(n)+(n.options.ruleSpaces?` `:``)).repeat(Xfe(n));return n.options.ruleSpaces?r.slice(0,-1):r}var VP={blockquote:xfe,break:TP,code:Efe,definition:Ofe,emphasis:AP,hardBreak:TP,heading:Mfe,html:jP,image:MP,imageReference:NP,inlineCode:PP,link:IP,linkReference:LP,list:Vfe,listItem:Ufe,paragraph:Wfe,root:Kfe,strong:BP,text:Yfe,thematicBreak:Zfe};function Qfe(){return{enter:{table:$fe,tableData:UP,tableHeader:UP,tableRow:tpe},exit:{codeText:npe,table:epe,tableData:HP,tableHeader:HP,tableRow:HP}}}function $fe(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function epe(e){this.exit(e),this.data.inTable=void 0}function tpe(e){this.enter({type:`tableRow`,children:[]},e)}function HP(e){this.exit(e)}function UP(e){this.enter({type:`tableCell`,children:[]},e)}function npe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rpe));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function rpe(e,t){return t===`|`?t:e}function ipe(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:` 57`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(` 58`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return vfe(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=VP.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function ape(){return{exit:{taskListCheckValueChecked:WP,taskListCheckValueUnchecked:WP,paragraph:spe}}}function ope(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:cpe}}}function WP(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function spe(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function cpe(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=VP.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function lpe(){return[Hde(),lfe(),pfe(),Qfe(),ape()]}function upe(e){return{extensions:[Ude(),ufe(e),mfe(),ipe(e),ope()]}}var dpe={tokenize:_pe,partial:!0},GP={tokenize:vpe,partial:!0},KP={tokenize:ype,partial:!0},qP={tokenize:bpe,partial:!0},fpe={tokenize:xpe,partial:!0},JP={name:`wwwAutolink`,tokenize:hpe,previous:$P},YP={name:`protocolAutolink`,tokenize:gpe,previous:eF},XP={name:`emailAutolink`,tokenize:mpe,previous:tF},ZP={};function ppe(){return{text:ZP}}for(var QP=48;QP<123;)ZP[QP]=XP,QP++,QP===58?QP=65:QP===91&&(QP=97);ZP[43]=XP,ZP[45]=XP,ZP[46]=XP,ZP[95]=XP,ZP[72]=[XP,YP],ZP[104]=[XP,YP],ZP[87]=[XP,JP],ZP[119]=[XP,JP];function mpe(e,t,n){let r=this,i,a;return o;function o(t){return!nF(t)||!tF.call(r,r.previous)||rF(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return nF(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(fpe,u,l)(t):t===45||t===95||xM(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&bM(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function hpe(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!$P.call(r,r.previous)||rF(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(dpe,e.attempt(GP,e.attempt(KP,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function gpe(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&eF.call(r,r.previous)&&!rF(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(bM(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||SM(t)||wM(t)||DM(t)||EM(t)?n(t):e.attempt(GP,e.attempt(KP,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function _pe(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function vpe(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(qP,c,s)(t):t===null||wM(t)||DM(t)||t!==45&&EM(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function ype(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(qP,t,a)(o):o===null||wM(o)||DM(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function bpe(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||wM(o)||DM(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||wM(e)||DM(e)?t(e):r(e)}function a(e){return bM(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):bM(t)?(e.consume(t),o):n(t)}}function xpe(e,t,n){return r;function r(t){return e.consume(t),i}
vendor: 7,175 bytes, line 58
58function i(e){return xM(e)?n(e):t(e)}}function $P(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||wM(e)}function eF(e){return!bM(e)}function tF(e){return!(e===47||nF(e))}function nF(e){return e===43||e===45||e===46||e===95||xM(e)}function rF(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Spe={tokenize:Ape,partial:!0};function Cpe(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Dpe,continuation:{tokenize:Ope},exit:kpe}},text:{91:{name:`gfmFootnoteCall`,tokenize:Epe},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:wpe,resolveTo:Tpe}}}}function wpe(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=yM(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Tpe(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Epe(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||wM(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(yM(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return wM(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function Dpe(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||wM(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=yM(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return wM(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),AM(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Ope(e,t,n){return e.check(IM,t,e.attempt(Spe,t,n))}function kpe(e){e.exit(`gfmFootnoteDefinition`)}function Ape(e,t,n){let r=this;return AM(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function jpe(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&mM(o,o.length,0,NM(s,e.slice(r+1,n),t)),mM(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),mM(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=MM(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=MM(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Mpe=class{constructor(){this.map=[]}add(e,t,n){Npe(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function Npe(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Ppe(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Fpe(){return{flow:{null:{name:`table`,tokenize:Ipe,resolveAll:Lpe}}
vendor: 12,002 bytes, lines 58-62
58}}function Ipe(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):J(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):TM(t)?AM(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||wM(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,TM(t)?AM(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return TM(t)?AM(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||J(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return TM(t)?AM(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||J(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||J(n)?(e.exit(`tableRow`),t(n)):TM(n)?AM(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||wM(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Lpe(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Mpe;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(aF(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=iF(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=iF(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=iF(f,t,o,i,n,d)):(o[0]=o[1],d=iF(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&aF(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Ppe(t.events,n))}return e}function iF(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},oF(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=oF(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=oF(t.events,n[2]),a=oF(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},oF(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function aF(e,t,n,r,i){let a=[],o=oF(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function oF(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Rpe={name:`tasklistCheck`,tokenize:Bpe};function zpe(){return{text:{91:Rpe}}}function Bpe(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return wM(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return J(r)?t(r):TM(r)?e.check({tokenize:Vpe},t,n)(r):n(r)}}function Vpe(e,t,n){return AM(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Hpe(e){return _M([ppe(),Cpe(),jpe(e),Fpe(),zpe()])}var Upe={};function Wpe(e){let t=this,n=e||Upe,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Hpe(n)),a.push(lpe()),o.push(upe(n))}function Gpe(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(e){this.enter({type:`math`,meta:null,value:``,data:{hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[]}]}},e)}function t(){this.buffer()}function n(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:`text`,value:t}),this.data.mathFlowInside=void 0}function a(e){this.enter({type:`inlineMath`,value:``,data:{hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[]}},e),this.buffer()}function o(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:`text`,value:t})}function s(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}function Kpe(e){let t=(e||{}).singleDollarTextMath;return t??=!0,r.peek=i,{unsafe:[{character:`\r`,inConstruct:`mathFlowMeta`},{character:` 59`,inConstruct:`mathFlowMeta`},{character:`$`,after:t?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:n,inlineMath:r}};function n(e,t,n,r){let i=e.value||``,a=n.createTracker(r),o=`$`.repeat(Math.max(EP(i,`$`)+1,2)),s=n.enter(`mathFlow`),c=a.move(o);if(e.meta){let t=n.enter(`mathFlowMeta`);c+=a.move(n.safe(e.meta,{after:` 60`,before:c,encode:[`$`],...a.current()})),t()}return c+=a.move(` 61`),i&&(c+=a.move(i+` 62`)),c+=a.move(o),s(),c}function r(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function i(){return`$`}}var qpe={tokenize:Jpe,concrete:!0,name:`mathFlow`},sF={tokenize:Ype,partial:!0};function Jpe(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){return e.enter(`mathFlow`),e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),c(t)}function c(t){return t===36?(e.consume(t),o++,c):o<2?n(t):(e.exit(`mathFlowFenceSequence`),AM(e,l,`whitespace`)(t))}function l(t){return t===null||J(t)?d(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===null||J(t)?(e.exit(`chunkString`),e.exit(`mathFlowFenceMeta`),d(t)):t===36?n(t):(e.consume(t),u)}function d(n){return e.exit(`mathFlowFence`),r.interrupt?t(n):e.attempt(sF,f,g)(n)}function f(t){return e.attempt({tokenize:_,partial:!0},g,p)(t)}function p(t){return(a?AM(e,m,`linePrefix`,a+1):m)(t)}function m(t){return t===null?g(t):J(t)?e.attempt(sF,f,g)(t):(e.enter(`mathFlowValue`),h(t))}function h(t){return t===null||J(t)?(e.exit(`mathFlowValue`),m(t)):(e.consume(t),h)}function g(n){return e.exit(`mathFlow`),t(n)}function _(e,t,n){let i=0;return AM(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),s(t)}function s(t){return t===36?(i++,e.consume(t),s):i<o?n(t):(e.exit(`mathFlowFenceSequence`),AM(e,c,`whitespace`)(t))}function c(r){return r===null||J(r)?(e.exit(`mathFlowFence`),t(r)):n(r)}}}function Ype(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Xpe(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:Zpe,previous:Qpe,name:`mathText`};function n(e,n,r){let i=0,a,o;return s;function s(t){return e.enter(`mathText`),e.enter(`mathTextSequence`),c(t)}function c(n){return n===36?(e.consume(n),i++,c):i<2&&!t?r(n):(e.exit(`mathTextSequence`),l(n))}function l(t){return t===null?r(t):t===36?(o=e.enter(`mathTextSequence`),a=0,d(t)):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),l):J(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),l):(e.enter(`mathTextData`),u(t))}function u(t){return t===null||t===32||t===36||J(t)?(e.exit(`mathTextData`),l(t)):(e.consume(t),u)}function d(t){return t===36?(e.consume(t),a++,d):a===i?(e.exit(`mathTextSequence`),e.exit(`mathText`),n(t)):(o.type=`mathTextData`,u(t))}}}function Zpe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`mathTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Qpe(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function $pe(e){return{flow:{36:qpe},text:{36:Xpe(e)}}}var eme={};function tme(e){let t=this,n=e||eme,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push($pe(n)),a.push(Gpe()),o.push(Kpe(n))}var nme=Object.defineProperty,rme=Object.defineProperties,ime=Object.getOwnPropertyDescriptors,cF=Object.getOwnPropertySymbols,ame=Object.prototype.hasOwnProperty,ome=Object.prototype.propertyIsEnumerable,lF=(e,t,n)=>t in e?nme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uF=(e,t)=>{for(var n in t||={})ame.call(t,n)&&lF(e,n,t[n]);if(cF)for(var n of cF(t))ome.call(t,n)&&lF(e,n,t[n]);return e},dF=(e,t)=>rme(e,ime(t)),fF=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if(e[i]===`\\`&&i+1<e.length&&e[i+1]==="`"){i+=1;continue}if(e.substring(i,i+3)==="```"){r=!r,i+=2;continue}!r&&e[i]==="`"&&(n=!n)}return n||r},sme=(e,t)=>
62{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return n||r||i},cme=e=>{let t=0;for(let n=0;n<e.length;n+=1){if(e[n]===`\\`&&n+1<e.length&&e[n+1]==="`"){n+=1;continue}e[n]==="`"&&!sme(e,n)&&(t+=1)}return t},pF=(e,t)=>{let n=!1,r=!1,i=-1;for(let a=0;a<e.length;a+=1){if(e[a]===`\\`&&a+1<e.length&&e[a+1]==="`"){a+=1;continue}if(e.substring(a,a+3)==="```"){r=!r,a+=2;continue}if(!r&&e[a]==="`")if(n){if(i<t&&t<a)return!0;n=!1,i=-1}else n=!0,i=a}return!1},lme=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,ume=e=>!e||typeof e!=`string`||!e.includes(`>`)?e:e.replace(lme,(t,n,r,i)=>fF(e,i)?t:`${n}\\>${r}`),dme=/(\*\*)([^*]*\*?)$/,fme=/(__)([^_]*?)$/,pme=/(\*\*\*)([^*]*?)$/,mme=/(\*)([^*]*?)$/,hme=/(_)([^_]*?)$/,gme=/(`)([^`]*?)$/,_me=/(~~)([^~]*?)$/,mF=/^[\s_~*`]*$/,hF=/^[\s]*[-*+][\s]+$/,vme=/[\p{L}\p{N}_]/u,yme=/^```[^`\n]*```?$/,bme=/^\*{4,}$/,xme=/(__)([^_]+)_$/,Sme=/(~~)([^~]+)~$/,gF=/~~/g,_F=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:vme.test(e)},Cme=(e,t)=>{let n=1;for(let r=t-1;r>=0;--r)if(e[r]===`]`)n+=1;else if(e[r]===`[`&&(--n,n===0))return r;return-1},vF=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if(e[r]===`[`)n+=1;else if(e[r]===`]`&&(--n,n===0))return r;return-1},yF=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if(e[i]===`\\`&&e[i+1]===`$`){i+=1;continue}e[i]===`$`&&(e[i+1]===`$`?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},wme=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===`)`)return!0;if(e[n]===` 63`)return!1}return!1},bF=(e,t)=>{for(let n=t-1;n>=0;--n){if(e[n]===`)`)return!1;if(e[n]===`(`)return n>0&&e[n-1]===`]`?wme(e,t):!1;if(e[n]===` 64`)return!1}return!1},Tme=(e,t)=>
vendor: 5,130 bytes, lines 64-80
64{for(let n=t-1;n>=0;--n){if(e[n]===`>`)return!1;if(e[n]===`<`){let t=n+1<e.length?e[n+1]:``;return t>=`a`&&t<=`z`||t>=`A`&&t<=`Z`||t===`/`}if(e[n]===` 65`)return!1}return!1},xF=(e,t,n)=>{let r=0;for(let n=t-1;n>=0;--n)if(e[n]===` 66`){r=n+1;break}let i=e.length;for(let n=t;n<e.length;n+=1)if(e[n]===` 67`){i=n;break}let a=e.substring(r,i),o=0,s=!1;for(let e of a)if(e===n)o+=1;else if(e!==` `&&e!==` `){s=!0;break}return o>=3&&!s},Eme=(e,t,n,r)=>n===`\\`||e.includes(`$`)&&yF(e,t)?!0:n!==`*`&&r===`*`?(t<e.length-2?e[t+2]:``)!==`*`:!!(n===`*`||n&&r&&_F(n)&&_F(r)||(!n||n===` `||n===` `||n===` 68`)&&(!r||r===` `||r===` `||r===` 69`)),SF=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if(e[i]==="`"&&i+2<r&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n||e[i]!==`*`)continue;let a=i>0?e[i-1]:``,o=i<r-1?e[i+1]:``;Eme(e,i,a,o)||(t+=1)}return t},Dme=(e,t,n,r)=>!!(n===`\\`||e.includes(`$`)&&yF(e,t)||bF(e,t)||Tme(e,t)||n===`_`||r===`_`||n&&r&&_F(n)&&_F(r)),Ome=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if(e[i]==="`"&&i+2<r&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n||e[i]!==`_`)continue;let a=i>0?e[i-1]:``,o=i<r-1?e[i+1]:``;Dme(e,i,a,o)||(t+=1)}return t},kme=e=>{let t=0,n=0,r=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){n>=3&&(t+=Math.floor(n/3)),n=0,r=!r,i+=2;continue}r||(e[i]===`*`?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t},CF=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]===`*`&&r+1<e.length&&e[r+1]===`*`&&(t+=1,r+=1)}return t},wF=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]===`_`&&r+1<e.length&&e[r+1]===`_`&&(t+=1,r+=1)}return t},Ame=(e,t,n)=>{if(!t||mF.test(t))return!0;let r=e.substring(0,n).lastIndexOf(` 70`),i=r===-1?0:r+1,a=e.substring(i,n);return hF.test(a)&&t.includes(` 71`)?!0:xF(e,n,`*`)},jme=e=>{let t=e.match(dme);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return fF(e,r)||pF(e,r)||Ame(e,n,r)?e:CF(e)%2==1?n.endsWith(`*`)?`${e}*`:`${e}**`:e},Mme=(e,t,n)=>{if(!t||mF.test(t))return!0;let r=e.substring(0,n).lastIndexOf(` 72`),i=r===-1?0:r+1,a=e.substring(i,n);return hF.test(a)&&t.includes(` 73`)?!0:xF(e,n,`_`)},Nme=e=>{let t=e.match(fme);if(!t){let t=e.match(xme);if(t){let n=e.lastIndexOf(t[1]);if(!(fF(e,n)||pF(e,n))&&wF(e)%2==1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return fF(e,r)||pF(e,r)||Mme(e,n,r)?e:wF(e)%2==1?`${e}__`:e},Pme=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]===`*`&&e[n-1]!==`*`&&e[n+1]!==`*`&&e[n-1]!==`\\`&&!yF(e,n)){let t=n>0?e[n-1]:``,r=n<e.length-1?e[n+1]:``;if((!t||t===` `||t===` `||t===` 74`)&&(!r||r===` `||r===` `||r===` 75`)||t&&r&&_F(t)&&_F(r))continue;return n}}return-1},Fme=e=>{if(!e.match(mme))return e;let t=Pme(e);if(t===-1||fF(e,t)||pF(e,t))return e;let n=e.substring(t+1);return!n||mF.test(n)?e:SF(e)%2==1?`${e}*`:e},TF=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]===`_`&&e[n-1]!==`_`&&e[n+1]!==`_`&&e[n-1]!==`\\`&&!yF(e,n)&&!bF(e,n)){let t=n>0?e[n-1]:``,r=n<e.length-1?e[n+1]:``;if(t&&r&&_F(t)&&_F(r))continue;return n}}return-1},Ime=e=>{let t=e.length;for(;t>0&&e[t-1]===` 76`;)--t;return t<e.length?`${e.slice(0,t)}_${e.slice(t)}`:`${e}_`},Lme=e=>{if(!e.endsWith(`**`))return null;let t=e.slice(0,-2);if(CF(t)%2!=1)return null;let n=t.indexOf(`**`),r=TF(t);return n!==-1&&r!==-1&&n<r?`${t}_**`:null},Rme=e=>{if(!e.match(hme))return e;let t=TF(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||mF.test(n)||fF(e,t)||pF(e,t))return e;if(Ome(e)%2==1){let t=Lme(e);return t===null?Ime(e):t}return e},zme=e=>{let t=CF(e),n=SF(e);return t%2==0&&n%2==0},Bme=(e,t,n)=>!t||mF.test(t)||fF(e,n)||pF(e,n)?!0:xF(e,n,`*`),Vme=e=>{if(bme.test(e))return e;let t=e.match(pme);if(!t)return e;let n=t[2];return Bme(e,n,e.lastIndexOf(t[1]))?e:kme(e)%2==1?zme(e)?e:`${e}***`:e},Hme=/<[a-zA-Z/][^>]*$/,Ume=e=>{let t=e.match(Hme);return!t||t.index===void 0||fF(e,t.index)?e:e.substring(0,t.index).trimEnd()},Wme=e=>!e.match(yme)||e.includes(` 77`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,Gme=e=>(e.match(/```/g)||[]).length%2==1,Kme=e=>{let t=Wme(e);if(t!==null)return t;let n=e.match(gme);if(n&&!Gme(e)){let t=n[2];if(!t||mF.test(t))return e;if(cme(e)%2==1)return`${e}\``}return e},EF=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",qme=e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)e[r]==="`"&&!EF(e,r)&&(n=!n),!n&&e[r]===`$`&&e[r+1]===`$`&&(t+=1,r+=1);return t},Jme=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]===`\\`){r+=1;continue}if(e[r]==="`"&&!EF(e,r)){n=!n;continue}!n&&e[r]===`$`&&(r+1<e.length&&e[r+1]===`$`?r+=1:t+=1)}return t},Yme=e=>{if(e.endsWith(`$`)&&!e.endsWith(`$$`))return`${e}$`;let t=e.indexOf(`$$`);return t!==-1&&e.indexOf(` 78`,t)!==-1&&!e.endsWith(` 79`)?`${e} 80$$`:`${e}$$`},Xme=e=>qme(e)%2==0?e:Yme(e),Zme=e=>Jme(e)%2==1?`${e}
80$`:e,Qme=(e,t,n)=>{if(e.substring(t+2).includes(`)`))return null;let r=Cme(e,t);if(r===-1||fF(e,r))return null;let i=r>0&&e[r-1]===`!`,a=i?r-1:r,o=e.substring(0,a);if(i)return o;let s=e.substring(r+1,t);return n===`text-only`?`${o}${s}`:`${o}[${s}](streamdown:incomplete-link)`},DF=(e,t)=>{for(let n=0;n<t;n++)if(e[n]===`[`&&!fF(e,n)){if(n>0&&e[n-1]===`!`)continue;let t=vF(e,n);if(t===-1)return n;if(t+1<e.length&&e[t+1]===`(`){let r=e.indexOf(`)`,t+2);r!==-1&&(n=r)}}return t},$me=(e,t,n)=>{let r=t>0&&e[t-1]===`!`,i=r?t-1:t;if(!e.substring(t+1).includes(`]`)){let a=e.substring(0,i);if(r)return a;if(n===`text-only`){let n=DF(e,t);return e.substring(0,n)+e.substring(n+1)}return`${e}](streamdown:incomplete-link)`}if(vF(e,t)===-1){let a=e.substring(0,i);if(r)return a;if(n===`text-only`){let n=DF(e,t);return e.substring(0,n)+e.substring(n+1)}return`${e}](streamdown:incomplete-link)`}return null},OF=(e,t=`protocol`)=>{let n=e.lastIndexOf(`](`);if(n!==-1&&!fF(e,n)){let r=Qme(e,n,t);if(r!==null)return r}for(let n=e.length-1;n>=0;--n)if(e[n]===`[`&&!fF(e,n)){let r=$me(e,n,t);if(r!==null)return r}return e},ehe=/^-{1,2}$/,the=/^[\s]*-{1,2}[\s]+$/,nhe=/^={1,2}$/,rhe=/^[\s]*={1,2}[\s]+$/,ihe=e=>{if(!e||typeof e!=`string`)return e;let t=e.lastIndexOf(` 81`);if(t===-1)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(ehe.test(i)&&!n.match(the)){let t=r.split(` 82`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}if(nhe.test(i)&&!n.match(rhe)){let t=r.split(` 83`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}return e},ahe=RegExp(`(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])`,`gu`),ohe=e=>!e||typeof e!=`string`||!e.includes(`~`)?e:e.replace(ahe,(t,n)=>fF(e,n)?t:`\\~`),she=e=>{let t=e.match(_me);if(t){let n=t[2];if(!n||mF.test(n))return e;let r=e.lastIndexOf(t[1]);if(fF(e,r)||pF(e,r))return e;if(e.match(gF)?.length%2==1)return`${e}~~`}else{let t=e.match(Sme);if(t){let n=e.lastIndexOf(t[0].slice(0,2));if(fF(e,n)||pF(e,n))return e;if(e.match(gF)?.length%2==1)return`${e}~`}}return e},kF=e=>e!==!1,che=e=>e===!0,AF={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},lhe=[{handler:{name:`singleTilde`,handle:ohe,priority:AF.SINGLE_TILDE},optionKey:`singleTilde`},{handler:{name:`comparisonOperators`,handle:ume,priority:AF.COMPARISON_OPERATORS},optionKey:`comparisonOperators`},{handler:{name:`htmlTags`,handle:Ume,priority:AF.HTML_TAGS},optionKey:`htmlTags`},{handler:{name:`setextHeadings`,handle:ihe,priority:AF.SETEXT_HEADINGS},optionKey:`setextHeadings`},{handler:{name:`links`,handle:OF,priority:AF.LINKS},optionKey:`links`,earlyReturn:e=>e.endsWith(`](streamdown:incomplete-link)`)},{handler:{name:`boldItalic`,handle:Vme,priority:AF.BOLD_ITALIC},optionKey:`boldItalic`},{handler:{name:`bold`,handle:jme,priority:AF.BOLD},optionKey:`bold`},{handler:{name:`italicDoubleUnderscore`,handle:Nme,priority:AF.ITALIC_DOUBLE_UNDERSCORE},optionKey:`italic`},{handler:{name:`italicSingleAsterisk`,handle:Fme,priority:AF.ITALIC_SINGLE_ASTERISK},optionKey:`italic`},{handler:{name:`italicSingleUnderscore`,handle:Rme,priority:AF.ITALIC_SINGLE_UNDERSCORE},optionKey:`italic`},{handler:{name:`inlineCode`,handle:Kme,priority:AF.INLINE_CODE},optionKey:`inlineCode`},{handler:{name:`strikethrough`,handle:she,priority:AF.STRIKETHROUGH},optionKey:`strikethrough`},{handler:{name:`katex`,handle:Xme,priority:AF.KATEX},optionKey:`katex`},{handler:{name:`inlineKatex`,handle:Zme,priority:AF.INLINE_KATEX},optionKey:`inlineKatex`}],uhe=e=>{let t=e?.linkMode??`protocol`;return lhe.filter(({handler:t,optionKey:n})=>t.name===`links`?kF(e?.links)||kF(e?.images):t.name===`inlineKatex`?che(e?.inlineKatex):kF(e?.[n])).map(({handler:e,earlyReturn:n})=>e.name===`links`?{handler:dF(uF({},e),{handle:e=>OF(e,t)}),earlyReturn:t===`protocol`?n:void 0}:{handler:e,earlyReturn:n})},dhe=(e,t)=>{if(!e||typeof e!=`string`)return e;let n=e.endsWith(` `)&&!e.endsWith(` `)?e.slice(0,-1):e,r=uhe(t),i=(t?.handlers??[]).map(e=>({handler:dF(uF({},e),{priority:e.priority??AF.DEFAULT}),earlyReturn:void 0})),a=[...r,...i].sort((e,t)=>
83(e.handler.priority??0)-(t.handler.priority??0));for(let{handler:e,earlyReturn:t}of a)if(n=e.handle(n),t!=null&&t(n))return n;return n},fhe=`data:image/svg+xml,%3csvg%20width='301'%20height='165'%20viewBox='0%200%20301%20165'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M150.731%20101.547L98.1387%2073.7471L6.84674%2025.4969C6.7634%2025.4136%206.59674%2025.4136%206.51341%2025.4136C3.18007%2023.8303%20-0.236608%2027.1636%201.0134%2030.497L47.5302%20149.139L47.5385%20149.164C47.5885%20149.281%2047.6302%20149.397%2047.6802%20149.514C49.5885%20153.939%2053.7552%20156.672%2058.2886%20157.747C58.6719%20157.831%2058.9461%20157.906%2059.4064%20157.998C59.8645%20158.1%2060.5052%20158.239%2061.0552%20158.281C61.1469%20158.289%2061.2302%20158.289%2061.3219%20158.297H61.3886C61.4552%20158.306%2061.5219%20158.306%2061.5886%20158.314H61.6802C61.7386%20158.322%2061.8052%20158.322%2061.8636%20158.322H61.9719C62.0386%20158.331%2062.1052%20158.331%2062.1719%20158.331V158.331C121.084%20164.754%20180.519%20164.754%20239.431%20158.331V158.331C240.139%20158.331%20240.831%20158.297%20241.497%20158.231C241.714%20158.206%20241.922%20158.181%20242.131%20158.156C242.156%20158.147%20242.189%20158.147%20242.214%20158.139C242.356%20158.122%20242.497%20158.097%20242.639%20158.072C242.847%20158.047%20243.056%20158.006%20243.264%20157.964C243.681%20157.872%20243.87%20157.806%20244.436%20157.611C245.001%20157.417%20245.94%20157.077%20246.527%20156.794C247.115%20156.511%20247.522%20156.239%20248.014%20155.931C248.622%20155.547%20249.201%20155.155%20249.788%20154.715C250.041%20154.521%20250.214%20154.397%20250.397%20154.222L250.297%20154.164L150.731%20101.547Z'%20fill='%23FF4B4B'/%3e%3cpath%20d='M294.766%2025.4981H294.683L203.357%2073.7483L254.124%20149.357L300.524%2030.4981V30.3315C301.691%2026.8314%20298.108%2023.6648%20294.766%2025.4981'%20fill='%237D353B'/%3e%3cpath%20d='M155.598%202.55572C153.264%20-0.852624%20148.181%20-0.852624%20145.931%202.55572L98.1389%2073.7477L150.731%20101.548L250.398%20154.222C251.024%20153.609%20251.526%20153.012%20252.056%20152.381C252.806%20151.456%20253.506%20150.465%20254.123%20149.356L203.356%2073.7477L155.598%202.55572Z'%20fill='%23BD4043'/%3e%3c/svg%3e`,jF=(0,_.createContext)(!1);jF.displayName=`IsSidebarContext`;var phe=`-2.65rem`,mhe=G(`div`,{target:`e1plw2qp0`})(({theme:e,locked:t,target:n})=>({padding:`${e.spacing.sm} 0 ${e.spacing.sm} ${e.spacing.sm}`,position:`absolute`,top:t?phe:`-1rem`,right:e.spacing.none,transition:`none`,...!t&&{opacity:0,"&:active, &:focus-visible, &:hover":{transition:`opacity 150ms 100ms, top 100ms 100ms`,opacity:1,top:`-2.65rem`},...n&&{[`${n}:hover &, ${n}:active &, ${n}:focus-visible &`]:{transition:`opacity 150ms 100ms, top 100ms 100ms`,opacity:1,top:`-2.65rem`}}}})),MF=G(`div`,{target:`e1plw2qp1`})(({theme:e})=>({color:zC(e)?e.colors.fadedText60:e.colors.bodyText,display:`flex`,flexDirection:`row`,alignItems:`center`,justifyContent:`flex-end`,boxShadow:e.shadows.toolbar,borderRadius:e.radii.default,backgroundColor:e.colors.lightenedBg05,width:`fit-content`,zIndex:e.zIndices.sidebar+1,padding:e.spacing.twoXS})),hhe=G(`div`,{target:`e1plw2qp2`})(({height:e,useContainerWidth:t,topCentered:n,useContainerHeight:r})=>({position:`relative`,height:t&&e?e:r?e||`100%`:`fit-content`,maxWidth:`100%`,width:t?`100%`:`fit-content`,...n?{display:`flex`,justifyContent:`center`}:{}})),NF={"a > &":{color:`inherit`}},PF=G(`code`,{target:`e19xqh4f0`})(({theme:e})=>({padding:`0.2em 0.4em`,overflowWrap:`break-word`,whiteSpace:`pre-wrap`,margin:0,borderRadius:e.radii.sm,background:e.colors.codeBackgroundColor,color:e.colors.codeTextColor,fontFamily:e.genericFonts.codeFont,fontSize:e.fontSizes.inlineCodeFontSize,fontWeight:e.fontWeights.code,...NF})),FF=(e,t)=>({background:`transparent`,border:0,color:`inherit`,display:`inline`,fontFamily:e.genericFonts.codeFont,fontSize:e.fontSizes.codeFontSize,fontWeight:e.fontWeights.code,lineHeight:`inherit`,margin:0,overflowX:`auto`,padding:0,whiteSpace:t?`pre-wrap`:`pre`,overflowWrap:t?`break-word`:`normal`,...NF}),IF=G(`code`,{target:`e19xqh4f1`})(({theme:e,wrapLines:t})=>({...FF(e,t)})),LF=G(`pre`,{target:`e19xqh4f2`})(({theme:e,wrapLines:t})=>
83({height:`100%`,background:e.colors.codeBackgroundColor,borderRadius:e.radii.default,color:e.colors.bodyText,fontSize:e.fontSizes.twoSm,fontFamily:e.genericFonts.codeFont,display:`block`,margin:0,msOverflowStyle:`scrollbar`,overflow:`auto`,padding:e.spacing.lg,code:{...FF(e,t)},".comment.linenumber":{color:e.colors.fadedText40,fontSize:e.fontSizes.twoSm,alignSelf:`center`,minWidth:`${e.spacing.threeXL} !important`},".token.comment, .token.prolog, .token.doctype, .token.cdata":{color:e.colors.gray70},".token.punctuation":{color:e.colors.gray70},".namespace":{opacity:.7},".token.attr-name, .token.property, .token.variable":{color:e.colors.lightBlue80},".token.boolean, .token.constant, .token.symbol":{color:e.colors.green70},".token.number, .token.regex":{color:e.colors.blueGreen80},".token.string, .token.char, .token.attr-value":{color:e.colors.green80},".token.operator, .token.entity":{color:e.colors.orange90},".token.url":{color:e.colors.purple80},".token.decorator, .token.atrule":{color:e.colors.orange90},".token.keyword, .token.tag":{color:e.colors.blue70},".token.function, .token.class-name, .token.selector":{color:e.colors.blue70,fontWeight:e.fontWeights.codeExtraBold},".token.important":{color:e.colors.red70,fontWeight:e.fontWeights.codeExtraBold},".token.comment":{color:e.colors.gray70,fontStyle:`italic`},".token.italic":{fontStyle:`italic`},".token.entity":{cursor:`help`},".token.deleted.line, .token.deleted.prefix":{color:e.colors.red70},".token.inserted.line, .token.inserted.prefix":{color:e.colors.green70},".token.unchanged.line":{color:e.colors.gray70}})),RF=`opacity 300ms 150ms`,ghe=`${RF}, visibility 0ms linear 450ms`,_he=`${RF}, visibility 0ms linear 150ms`,zF=G(`div`,{target:`e19xqh4f3`})(({theme:e})=>({opacity:0,visibility:`hidden`,padding:`${e.spacing.sm} ${e.spacing.sm} 0 0`,top:0,right:0,position:`absolute`,zIndex:e.zIndices.sidebar+1,pointerEvents:`none`,transition:ghe})),BF=G(`div`,{target:`e19xqh4f4`})(({theme:e})=>({height:`100%`,position:`relative`,borderRadius:e.radii.default,marginLeft:e.spacing.none,marginRight:e.spacing.none,marginTop:e.spacing.none,marginBottom:void 0,"&:focus":{outline:`none`},"&:focus-visible":{boxShadow:e.shadows.focusRing},"&:hover, &:focus-visible, &:focus-within:has(:focus-visible)":{[`${zF}`]:{opacity:1,visibility:`visible`,pointerEvents:`auto`,transition:_he}}})),vhe=G(MF,{target:`e19xqh4f5`})({pointerEvents:`auto`});function VF(e,t,n={}){let r=(0,_.useRef)(null),i=(0,_.useRef)(e),a=(0,_.useRef)(t),{autoStart:o=!0}=n;(0,_.useEffect)(()=>{i.current=e},[e]),(0,_.useEffect)(()=>{a.current=t},[t]);let s=(0,_.useCallback)(()=>{r.current&&=(clearTimeout(r.current),null)},[]),c=(0,_.useCallback)(e=>{s();let t=e===void 0?a.current:e;t!==null&&(r.current=setTimeout(()=>{i.current()},t))},[s]);return(0,_.useEffect)(()=>{if(o)return c(),s},[o,t,c,s]),(0,_.useEffect)(()=>s,[s]),{clear:s,restart:(0,_.useCallback)(e=>{c(e)},[c])}}var HF={animationDuration:`750ms`,animationName:Aa(`0%,100%{opacity:0.5;}50%{opacity:1;}`),animationTimingFunction:`ease-in`,animationDirection:`normal`,animationIterationCount:`infinite`},yhe=G(`div`,{target:`e2obbcf0`})(({theme:e})=>({display:`flex`,flexDirection:`column`,gap:e.spacing.lg})),bhe=G(`div`,{target:`e2obbcf1`})(({theme:e})=>({height:e.fontSizes.fourXL,width:`calc(${e.sizes.contentMaxWidth} * 0.37)`,maxWidth:`75%`,background:e.colors.darkenedBgMix15,borderRadius:e.radii.default,...HF})),xhe=G(`div`,{target:`e2obbcf2`})(({theme:e})=>({display:`flex`,flexDirection:`column`,gap:e.spacing.sm})),UF=G(`div`,{target:`e2obbcf3`})(({theme:e,width:t})=>({height:e.fontSizes.md,width:t,background:e.colors.darkenedBgMix15,borderRadius:e.radii.default,...HF})),WF=G(`div`,{target:`e2obbcf4`})(({theme:e,height:t,width:n})=>({height:t??e.fontSizes.fourXL,width:n??`100%`,background:e.colors.darkenedBgMix15,borderRadius:e.radii.default,...HF})),She=500,Che=(0,_.memo)(()=>{let[e,t]=(0,_.useState)(!1);return VF(()=>{t(!0)},She),e?F(yhe,{className:`stAppSkeleton`,"data-testid":`stAppSkeleton`,children:[P(bhe,{}),F(xhe,{children:[P(UF,{width:`98%`}),P(UF,{width:`100%`}),P(UF,{width:`96%`}),P(UF,{width:`65%`})]}),P(WF,{width:`75%`,height:`9rem`})]}):P(Ht,{})}),GF=(0,_.memo)(({element:e})=>e.style==Fo.SkeletonStyle.APP?P(Che,{}):P(WF,{className:`stSkeleton`,"data-testid":`stSkeleton`,height:e?.height?e.height+`px`:void 0})),KF=function(e){return e.ERROR=`error`,e.INFO=`info`,e.SUCCESS=`success`,e.WARNING=`w
83arning`,e}({}),qF={[KF.ERROR]:{bg:`redBackgroundColor`,text:`redTextColor`},[KF.WARNING]:{bg:`yellowBackgroundColor`,text:`yellowTextColor`},[KF.INFO]:{bg:`blueBackgroundColor`,text:`blueTextColor`},[KF.SUCCESS]:{bg:`greenBackgroundColor`,text:`greenTextColor`}},whe=G(`div`,{target:`e7hqogy0`})(({theme:e,$kind:t,$width:n})=>({fontWeight:e.fontWeights.normal,marginTop:e.spacing.none,marginBottom:e.spacing.none,marginLeft:e.spacing.none,marginRight:e.spacing.none,...n?{width:`${n}px`}:{},borderRadius:e.radii.default,paddingTop:e.spacing.lg,paddingBottom:e.spacing.lg,paddingRight:e.spacing.lg,paddingLeft:e.spacing.lg,lineHeight:e.lineHeights.small,backgroundColor:e.colors[qF[t].bg],color:e.colors[qF[t].text]})),The=G(`div`,{target:`e7hqogy1`})(({theme:e})=>({pre:{backgroundColor:e.colors.transparent,paddingTop:e.spacing.lg,paddingBottom:e.spacing.lg,paddingRight:e.spacing.lg,paddingLeft:e.spacing.lg,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,"pre, code":{backgroundColor:e.colors.transparent,color:`inherit`}},code:{backgroundColor:e.colors.transparent,padding:e.spacing.none},"pre, code":{color:`inherit`},a:{color:`inherit`,textDecoration:`underline`}}));function JF({kind:e,width:t,children:n}){let r=e.charAt(0).toUpperCase()+e.slice(1);return P(whe,{$kind:e,$width:t,"data-testid":`stAlertContainer`,className:`stAlertContainer`,role:e===KF.ERROR||e===KF.WARNING?`alert`:`status`,children:P(The,{"data-testid":`stAlertContent${r}`,children:n})})}var YF=G(`pre`,{target:`e1p6lu300`})(({theme:e})=>({whiteSpace:`pre-wrap`,wordWrap:`break-word`,color:`inherit`,fontSize:e.fontSizes.codeFontSize,fontFamily:e.genericFonts.codeFont,fontWeight:e.fontWeights.code,backgroundColor:e.colors.transparent,overflowX:`auto`,margin:0,borderRadius:e.radii.default,padding:e.spacing.lg,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`})),Ehe=G(`strong`,{target:`e1p6lu301`})(({theme:e})=>({fontWeight:e.fontWeights.codeBold}));function XF(e){let{name:t,message:n,stack:r,width:i}=e,a=r?r.split(` 84`):[];a.shift();let o=a.map(e=>e.trim()).join(` 85`);return F(JF,{kind:KF.ERROR,width:i,children:[F(Ehe,{children:[t,`: `]}),n,r?P(YF,{"data-testid":`stErrorElementStack`,children:P(IF,{wrapLines:!1,children:o})}):null]})}var Dhe=(0,Zt.getLogger)(`ErrorBoundary`),ZF=class extends _.PureComponent{constructor(...e){super(...e),this.state={error:null},this.componentDidCatch=e=>{Dhe.error(`${e.name}: ${e.message}\n${e.stack}`)}}static{this.getDerivedStateFromError=e=>({error:e})}render(){let{error:e}=this.state;return e?e.name===`ChunkLoadError`?P(XF,{width:this.props.width,name:`Network issue`,message:F(`p`,{children:[`Cannot load Streamlit frontend code. This can happen when you update Streamlit while a Streamlit app is running.`,P(`br`,{}),`To fix this, simply reload this app by pressing`,` `,P(PF,{children:`F5`}),`,`,` `,P(PF,{children:`Ctrl+R`}),`, or`,` `,P(PF,{children:`Cmd+R`}),`.`,P(`br`,{}),`If the error persists, try force-clearing your browser's cache as described`,` `,P(`a`,{href:`https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Cache_clearing_and_disabling`,rel:`noopener noreferrer`,target:`_blank`,children:`here`})]})}):P(XF,{width:this.props.width,name:e.name,message:e.message,stack:e.stack}):this.props.children}},QF={auto:`auto`,topLeft:`topLeft`,top:`top`,topRight:`topRight`,rightTop:`rightTop`,right:`right`,rightBottom:`rightBottom`,bottomRight:`bottomRight`,bottom:`bottom`,bottomLeft:`bottomLeft`,leftBottom:`leftBottom`,left:`left`,leftTop:`leftTop`},$F={click:`click`,hover:`hover`},eI={open:`open`,close:`close`},tI={none:`none`,menu:`menu`,tooltip:`tooltip`},nI=Math.ceil(Math.sqrt(12**2/2));rx();function rI(e){"@babel/helpers - typeof";return rI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rI(e)}function iI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ohe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
85t%2?iI(Object(n),!0).forEach(function(t){lI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function khe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function aI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ahe(e,t,n){return t&&aI(e.prototype,t),n&&aI(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function jhe(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&oI(e,t)}function oI(e,t){return oI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oI(e,t)}function Mhe(e){var t=Phe();return function(){var n=cI(e),r;if(t){var i=cI(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Nhe(this,r)}}function Nhe(e,t){if(t&&(rI(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return sI(e)}function sI(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Phe(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cI(e){return cI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cI(e)}function lI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fhe=function(e,t){return t},uI=function(e){jhe(n,e);var t=Mhe(n);function n(){var e;khe(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),lI(sI(e),`state`,Ohe({isOpen:!1},e.props.initialState)),lI(sI(e),`onBlur`,function(t){e.props.onBlur&&e.props.onBlur(t),!(e.props.focusLock||e.props.autoFocus)&&e.close()}),lI(sI(e),`onClick`,function(t){e.props.onClick&&e.props.onClick(t),e.state.isOpen?e.close():e.open()}),lI(sI(e),`onClickOutside`,function(){e.close()}),lI(sI(e),`onEsc`,function(){e.close()}),lI(sI(e),`onFocus`,function(t){e.props.onFocus&&e.props.onFocus(t),Xb(t)&&e.open()}),lI(sI(e),`onMouseEnter`,function(t){e.props.onMouseEnter&&e.props.onMouseEnter(t),e.open()}),lI(sI(e),`onMouseLeave`,function(t){e.props.onMouseLeave&&e.props.onMouseLeave(t),e.close()}),lI(sI(e),`onContentClose`,function(){e.close()}),lI(sI(e),`renderContent`,function(){var t=e.props.content;return typeof t==`function`?t({close:e.onContentClose}):t}),e}return Ahe(n,[{key:`open`,value:function(){this.internalSetState(eI.open,{isOpen:!0}),this.props.onOpen&&this.props.onOpen()}},{key:`close`,value:function(){this.internalSetState(eI.close,{isOpen:!1}),this.props.onClose&&this.props.onClose()}},{key:`internalSetState`,value:function(e,t){var n=this.props.stateReducer;if(typeof n!=`function`){this.setState(t);return}this.setState(function(r){return n(e,t,r)})}},{key:`render`,value:function(){var e=this.props,t=e.accessibilityType,n=e.autoFocus,r=e.animateOutTime,i=e.dismissOnClickOutside,a=e.dismissOnEsc,o=e.focusLock,s=e.ignoreBoundary,c=e.mountNode,l=e.onBlur,u=e.onClick,d=e.onFocus,f=e.onMouseEnter,p=e.onMouseLeave,m=e.onMouseEnterDelay,h=e.onMouseLeaveDelay,g=e.overrides,_=e.placement,v=e.popperOptions,y=e.renderAll,b=e.returnFocus,x=e.showArrow,S=e.triggerType,C=e.popoverMargin,w=e.focusOptions,T={accessibilityType:t,animateOutTime:r,autoFocus:n,content:this.renderContent,focusLock:o,ignoreBoundary:s,isOpen:this.state.isOpen,mountNode:c,onBlur:l,onClick:u,onFocus:d,onMouseEnter:f,onMouseLeave:p,onMouseEnterDelay:m,onMouseLeaveDelay:h,overrides:g,placement:_,popperOptions:v,renderAll:y,returnFocus:b,showArrow:x,triggerType:S,popoverMargin:C,focusOptions:w};return i&&(T.onClickOutside=this.onClickOutside),a&&(T.onEsc=this.onEsc),S===$F.hover?(T.onBlur=this.onBlur,T.onFocus=this.onFocus,T.onMouseEnter=this.onMouseEnter,T.onMouseLeave=this.onMouseLeave):T.onClick=this.onClick,this.props.children(T)}}]),n}(_.Component);lI(uI,`defaultProps`,{accessibilityType:tI.menu,ignoreBoundary:!1,overrides:{},onMouseEnterDelay:200,onMouseLeaveDelay:200,placement:QF.auto,popperOptions:{},showArrow:!1,triggerType:$F.click,dismissOnClickOutside:!0,dismissOnEsc:!0,stateReducer:Fhe,popoverMargin:8});function dI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ihe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
85t%2?dI(Object(n),!0).forEach(function(t){fI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pI(e,t){return Bhe(e)||zhe(e,t)||Rhe(e,t)||Lhe()}function Lhe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 86In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rhe(e,t){if(e){if(typeof e==`string`)return mI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mI(e,t)}}function mI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zhe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Bhe(e){if(Array.isArray(e))return e}var Vhe={top:`bottom`,bottom:`top`,right:`left`,left:`right`};function hI(e){return Vhe[e]}function gI(e){return e===`top`||e===`bottom`}function Hhe(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Uhe(e){return QF[e.replace(/(top|bottom)-start$/,`$1Left`).replace(/(top|bottom)-end$/,`$1Right`).replace(/(left|right)-start$/,`$1Top`).replace(/(left|right)-end$/,`$1Bottom`)]||null}function _I(e){return(e.match(/^([a-z]+)([A-Z][a-z]+)?/)||[]).slice(1,3).filter(Boolean).map(function(e){return e.toLowerCase()})}function Whe(e,t,n){var r=pI(_I(t),1)[0],i=hI(r);return i?fI({},`margin${Hhe(i)}`,`${e+n}px`):null}function Ghe(e,t,n,r){e=Ihe({},e);var i=pI(_I(t),1)[0],a=(n>0?n:r)*2;return gI(i)?e.top+=i===`top`?a:-a:e.left+=i===`left`?a:-a,`translate3d(${e.left}px, ${e.top}px, 0)`}function vI(e){return`translate3d(${e.left}px, ${e.top}px, 0)`}function Khe(e,t){var n,r=pI(_I(t),1)[0],i=hI(r);if(!i)return null;var a=gI(r)?`left`:`top`;return n={},fI(n,a,`${e[a]}px`),fI(n,i,`-4px`),n}Vy();function yI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yI(Object(n),!0).forEach(function(t){qhe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qhe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xI(e){var t=e.$animationDuration,n=e.$isOpen,r=e.$isAnimating,i=e.$placement,a=e.$popoverOffset,o=e.$showArrow,s=e.$theme,c=e.$popoverMargin,l=e.$isHoverTrigger;return bI(bI({position:`absolute`,top:0,left:0,backgroundColor:s.colors.backgroundTertiary,borderTopLeftRadius:s.borders.popoverBorderRadius,borderTopRightRadius:s.borders.popoverBorderRadius,borderBottomRightRadius:s.borders.popoverBorderRadius,borderBottomLeftRadius:s.borders.popoverBorderRadius,boxShadow:s.lighting.shadow600,transitionProperty:`opacity,transform`,transitionDuration:r?n?`0.1s`:`${t}ms`:`0s`,transitionTimingFunction:n?s.animation.easeOutCurve:s.animation.easeInCurve,opacity:r&&n?1:0,transform:r&&n?vI(a):Ghe(a,i,o?6:0,c)},Whe(o?6:0,i,c)),l?{animationDuration:`.1s`,animationName:{"0%":{pointerEvents:`none`},"99%":{pointerEvents:`none`},"100%":{pointerEvents:`auto`}}}:{})}var SI=W(`div`,xI);SI.displayName=`Body`,SI.displayName=`Body`;function CI(e){var t=e.$arrowOffset,n=e.$placement,r=e.$theme;return bI({backgroundColor:r.colors.backgroundTertiary,boxShadow:r.lighting.shadow600,width:`${nI}px`,height:`${nI}
86px`,transform:`rotate(45deg)`,position:`absolute`},Khe(t,n))}var wI=W(`div`,CI);wI.displayName=`Arrow`,wI.displayName=`Arrow`;function TI(e){var t=e.$theme;return{backgroundColor:t.colors.backgroundTertiary,borderTopLeftRadius:t.borders.popoverBorderRadius,borderTopRightRadius:t.borders.popoverBorderRadius,borderBottomRightRadius:t.borders.popoverBorderRadius,borderBottomLeftRadius:t.borders.popoverBorderRadius,color:t.colors.contentPrimary,position:`relative`}}var EI=W(`div`,TI);EI.displayName=`Inner`,EI.displayName=`Inner`;var DI=W(`div`,{paddingLeft:`12px`,paddingTop:`12px`,paddingRight:`12px`,paddingBottom:`12px`});DI.displayName=`Padding`,DI.displayName=`Padding`;var OI=W(`div`,{display:`none`});OI.displayName=`Hidden`,OI.displayName=`Hidden`;var kI={accessibilityType:tI.menu,focusLock:!1,autoFocus:!0,returnFocus:!0,ignoreBoundary:!1,overrides:{},onMouseEnterDelay:200,onMouseLeaveDelay:200,placement:QF.auto,showArrow:!1,triggerType:$F.click,renderAll:!1};Jb(),NC(),Pb();function AI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?AI(Object(n),!0).forEach(function(t){RI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MI(){return MI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MI.apply(this,arguments)}function NI(e){"@babel/helpers - typeof";return NI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},NI(e)}function Jhe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function PI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yhe(e,t,n){return t&&PI(e.prototype,t),n&&PI(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Xhe(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&FI(e,t)}function FI(e,t){return FI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},FI(e,t)}function Zhe(e){var t=$he();return function(){var n=LI(e),r;if(t){var i=LI(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Qhe(this,r)}}function Qhe(e,t){if(t&&(NI(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return II(e)}function II(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function $he(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function LI(e){return LI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LI(e)}function RI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zI=function(e){Xhe(n,e);var t=Zhe(n);function n(){var e;Jhe(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),RI(II(e),`animateInTimer`,void 0),RI(II(e),`animateOutTimer`,void 0),RI(II(e),`animateOutCompleteTimer`,void 0),RI(II(e),`onMouseEnterTimer`,void 0),RI(II(e),`onMouseLeaveTimer`,void 0),RI(II(e),`anchorRef`,_.createRef()),RI(II(e),`popperRef`,_.createRef()),RI(II(e),`arrowRef`,_.createRef()),RI(II(e),`state`,e.getDefaultState(e.props)),RI(II(e),`animateIn`,function(){e.props.isOpen&&e.setState({isAnimating:!0})}),RI(II(e),`animateOut`,function(){e.props.isOpen||(e.setState({isAnimating:!0}),e.animateOutCompleteTimer=setTimeout(function(){e.setState({isAnimating:!1,placement:e.props.placement})},e.props.animateOutTime||0))}),RI(II(e),`onAnchorClick`,function(t){e.props.onClick&&e.props.onClick(t)}),RI(II(e),`onAnchorMouseEnter`,function(t){e.onMouseLeaveTimer&&clearTimeout(e.onMouseLeaveTimer),e.triggerOnM
86ouseEnterWithDelay(t)}),RI(II(e),`onAnchorMouseLeave`,function(t){e.onMouseEnterTimer&&clearTimeout(e.onMouseEnterTimer),e.triggerOnMouseLeaveWithDelay(t)}),RI(II(e),`onPopoverMouseEnter`,function(){e.onMouseLeaveTimer&&clearTimeout(e.onMouseLeaveTimer)}),RI(II(e),`onPopoverMouseLeave`,function(t){e.triggerOnMouseLeaveWithDelay(t)}),RI(II(e),`onPopperUpdate`,function(t,n){var r=Uhe(n.placement)||QF.top;return e.setState({arrowOffset:t.arrow,popoverOffset:t.popper,placement:r}),e.animateInTimer=setTimeout(e.animateIn,20),n}),RI(II(e),`triggerOnMouseLeave`,function(t){e.props.onMouseLeave&&e.props.onMouseLeave(t)}),RI(II(e),`triggerOnMouseEnter`,function(t){e.props.onMouseEnter&&e.props.onMouseEnter(t)}),RI(II(e),`onDocumentClick`,function(t){var n=t.composedPath?t.composedPath()[0]:t.target,r=e.popperRef.current,i=e.anchorRef.current;!r||r===n||n instanceof Node&&r.contains(n)||!i||i===n||n instanceof Node&&i.contains(n)||e.props.onClickOutside&&e.props.onClickOutside(t)}),e}return Yhe(n,[{key:`componentDidMount`,value:function(){this.setState({isMounted:!0})}},{key:`componentDidUpdate`,value:function(e,t){this.init(e,t),this.props.accessibilityType!==tI.tooltip&&this.props.autoFocus&&!this.state.autoFocusAfterPositioning&&this.popperRef.current!==null&&this.popperRef.current.getBoundingClientRect().top>0&&this.setState({autoFocusAfterPositioning:!0})}},{key:`init`,value:function(e,t){if(this.props.isOpen!==e.isOpen||this.state.isMounted!==t.isMounted||this.state.isLayerMounted!==t.isLayerMounted){if(this.props.isOpen&&this.state.isLayerMounted){this.clearTimers();return}if(!this.props.isOpen&&e.isOpen){this.animateOutTimer=setTimeout(this.animateOut,20);return}}}},{key:`componentWillUnmount`,value:function(){this.clearTimers()}},{key:`getDefaultState`,value:function(e){return{isAnimating:!1,arrowOffset:{left:0,top:0},popoverOffset:{left:0,top:0},placement:e.placement,isMounted:!1,isLayerMounted:!1,autoFocusAfterPositioning:!1}}},{key:`clearTimers`,value:function(){[this.animateInTimer,this.animateOutTimer,this.animateOutCompleteTimer,this.onMouseEnterTimer,this.onMouseLeaveTimer].forEach(function(e){e&&clearTimeout(e)})}},{key:`triggerOnMouseLeaveWithDelay`,value:function(e){var t=this,n=this.props.onMouseLeaveDelay;if(n){this.onMouseLeaveTimer=setTimeout(function(){return t.triggerOnMouseLeave(e)},n);return}this.triggerOnMouseLeave(e)}},{key:`triggerOnMouseEnterWithDelay`,value:function(e){var t=this,n=this.props.onMouseEnterDelay;if(n){this.onMouseEnterTimer=setTimeout(function(){return t.triggerOnMouseEnter(e)},n);return}this.triggerOnMouseEnter(e)}},{key:`isClickTrigger`,value:function(){return this.props.triggerType===$F.click}},{key:`isHoverTrigger`,value:function(){return this.props.triggerType===$F.hover}},{key:`isAccessibilityTypeMenu`,value:function(){return this.props.accessibilityType===tI.menu}},{key:`isAccessibilityTypeTooltip`,value:function(){return this.props.accessibilityType===tI.tooltip}},{key:`getAnchorIdAttr`,value:function(){var e=this.getPopoverIdAttr();return e?`${e}__anchor`:null}},{key:`getPopoverIdAttr`,value:function(){return this.props.id||null}},{key:`getAnchorProps`,value:function(){var e=this.props.isOpen,t={ref:this.anchorRef},n=this.getPopoverIdAttr();if(this.isAccessibilityTypeMenu()){var r=this.isClickTrigger()?`aria-controls`:`aria-owns`;t[r]=e?n:null,t[`aria-haspopup`]=!0,t[`aria-expanded`]=!!e}else this.isAccessibilityTypeTooltip()&&(t.id=this.getAnchorIdAttr(),t[`aria-describedby`]=e?n:null);return this.isHoverTrigger()?(t.onMouseEnter=this.onAnchorMouseEnter,t.onMouseLeave=this.onAnchorMouseLeave,t.onBlur=this.props.onBlur,t.onFocus=this.props.onFocus):t.onClick=this.onAnchorClick,t}},{key:`getPopoverBodyProps`,value:function(){var e={},t=this.getPopoverIdAttr();return this.isAccessibilityTypeMenu()?e.id=t:this.isAccessibilityTypeTooltip()&&(e.id=t,e.role=`tooltip`),this.isHoverTrigger()&&(e.onMouseEnter=this.onPopoverMouseEnter,e.onMouseLeave=this.onPopoverMouseLeave),e}},{key:`getSharedProps`,value:function(){var e=this.props,t=e.isOpen,n=e.showArrow,r=e.popoverMargin,i=r===void 0?8:r,a=this.state,o=a.isAnimating,s=a.arrowOffset,c=a.popoverOffset,l=a.placement;return{$showArrow:!!n,$arrowOffset:s,$popoverOffset:c,$placement:l,$isAnimating:o,$animationDuration:this.props.animateOutTime||0,$isOpen:t,$popoverMargin:i,$isHoverTrigger:this.isHoverTrigger()}}},{key:`getAnchorFromChildren`,value:function(){var e=this.props.children,t=_.Children.toArray(e);
86return t.length!==1&&console.error(`[baseui] Exactly 1 child must be passed to Popover/Tooltip, found ${t.length} children`),t[0]}},{key:`renderAnchor`,value:function(){var e=this.getAnchorFromChildren();if(!e)return null;var t=_.isValidElement(e),n=this.getAnchorProps();return NI(e)===`object`&&t?_.cloneElement(e,n):_.createElement(`span`,MI({key:`popover-anchor`},n),e)}},{key:`renderPopover`,value:function(e){var t=this.props,n=t.showArrow,r=t.overrides,i=r===void 0?{}:r,a=i.Arrow,o=i.Body,s=i.Inner,c=zb(a)||wI,l=zb(o)||SI,u=zb(s)||EI,d=this.getSharedProps(),f=this.getPopoverBodyProps();return _.createElement(l,MI({key:`popover-body`,ref:this.popperRef,"data-baseweb":this.props[`data-baseweb`]||`popover`},f,d,Bb(o)),n?_.createElement(c,MI({key:`popover-arrow`,ref:this.arrowRef},d,Bb(a))):null,_.createElement(u,MI({},d,Bb(s)),e))}},{key:`renderContent`,value:function(){var e=this.props.content;return typeof e==`function`?e():e}},{key:`render`,value:function(){var e=this,t=this.state.isMounted&&(this.props.isOpen||this.state.isAnimating),n=[this.renderAnchor()],r=t||this.props.renderAll?this.renderContent():null,i={modifiers:{preventOverflow:{enabled:!this.props.ignoreBoundary,padding:0}}};return r&&(t?n.push(_.createElement(Wx,{key:`new-layer`,mountNode:this.props.mountNode,onEscape:this.props.onEsc,onDocumentClick:this.isHoverTrigger()?void 0:this.onDocumentClick,isHoverLayer:this.isHoverTrigger(),onMount:function(){return e.setState({isLayerMounted:!0})},onUnmount:function(){return e.setState({isLayerMounted:!1})}},_.createElement(MC,{anchorRef:this.anchorRef.current,arrowRef:this.arrowRef.current,popperRef:this.popperRef.current,popperOptions:jI(jI({},i),this.props.popperOptions),onPopperUpdate:this.onPopperUpdate,placement:this.state.placement},this.props.focusLock&&this.props.accessibilityType!==tI.tooltip?_.createElement(RO,{disabled:!this.props.focusLock,noFocusGuards:!1,returnFocus:!this.isHoverTrigger()&&this.props.returnFocus,autoFocus:this.state.autoFocusAfterPositioning,crossFrame:!1,focusOptions:this.props.focusOptions},this.renderPopover(r)):_.createElement(LO,{disabled:!this.props.autoFocus||!this.state.autoFocusAfterPositioning},this.renderPopover(r))))):n.push(_.createElement(OI,{key:`hidden-layer`},r))),n}}]),n}(_.Component);RI(zI,`defaultProps`,kI);var BI=function(e){var t=e.innerRef,n=wb();return _.createElement(zI,MI({id:e.id||n,ref:t},e))};BI.defaultProps=kI;var ege=[`children`];function tge(e,t){if(e==null)return{};var n=nge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nge(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function VI(e){var t=e.children,n=tge(e,ege);return _.createElement(uI,n,function(e){return _.createElement(BI,e,t)})}VI.defaultProps={accessibilityType:tI.menu,ignoreBoundary:!1,overrides:{},onMouseEnterDelay:200,onMouseLeaveDelay:200,placement:QF.auto,showArrow:!1,triggerType:$F.click,dismissOnClickOutside:!0,dismissOnEsc:!0,stateReducer:function(e,t){return t},popoverMargin:8};var HI={accessibilityType:tI.tooltip,focusLock:!1,autoFocus:!1,returnFocus:!1,onMouseEnterDelay:200,onMouseLeaveDelay:200,overrides:{},placement:QF.auto,popoverMargin:0,showArrow:!1,triggerType:$F.hover,renderAll:!1};function UI(e){"@babel/helpers - typeof";return UI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},UI(e)}function WI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WI(Object(n),!0).forEach(function(t){JI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WI(Object(n)).forEac
86h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ige(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function GI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function age(e,t,n){return t&&GI(e.prototype,t),n&&GI(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function oge(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&KI(e,t)}function KI(e,t){return KI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KI(e,t)}function sge(e){var t=uge();return function(){var n=qI(e),r;if(t){var i=qI(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return cge(this,r)}}function cge(e,t){if(t&&(UI(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return lge(e)}function lge(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function uge(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qI(e){return qI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qI(e)}function JI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YI=function(e){oge(n,e);var t=sge(n);function n(){return ige(this,n),t.apply(this,arguments)}return age(n,[{key:`render`,value:function(){return _.createElement(uI,this.props)}}]),n}(_.Component);JI(YI,`defaultProps`,rge({},HI)),Vy();function XI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?XI(Object(n),!0).forEach(function(t){dge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QI=W(`div`,function(e){return ZI(ZI({},xI(e)),{},{backgroundColor:e.$theme.colors.tooltipBackground,borderTopLeftRadius:e.$theme.borders.radius300,borderTopRightRadius:e.$theme.borders.radius300,borderBottomRightRadius:e.$theme.borders.radius300,borderBottomLeftRadius:e.$theme.borders.radius300,boxShadow:e.$theme.lighting.shadow400,color:e.$theme.colors.tooltipText,transitionProperty:`opacity`,transform:vI(e.$popoverOffset)})});QI.displayName=`Body`,QI.displayName=`Body`;var $I=W(`div`,function(e){return ZI(ZI(ZI({},TI(e)),{},{backgroundColor:e.$theme.colors.tooltipBackground,borderTopLeftRadius:e.$theme.borders.radius300,borderTopRightRadius:e.$theme.borders.radius300,borderBottomRightRadius:e.$theme.borders.radius300,borderBottomLeftRadius:e.$theme.borders.radius300,paddingTop:e.$theme.sizing.scale300,paddingBottom:e.$theme.sizing.scale300,paddingLeft:e.$theme.sizing.scale600,paddingRight:e.$theme.sizing.scale600},e.$theme.typography.font150),{},{color:e.$theme.colors.tooltipText})});$I.displayName=`Inner`,$I.displayName=`Inner`;var eL=W(`div`,function(e){return ZI(ZI({},CI(e)),{},{backgroundColor:e.$theme.colors.tooltipBackground})});eL.displayName=`Arrow`,eL.displayName=`Arrow`,Jb();function tL(e){"@babel/helpers - typeof";return tL=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},tL(e)}function nL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}
86function fge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nL(Object(n),!0).forEach(function(t){sL(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rL(){return rL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rL.apply(this,arguments)}function pge(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function iL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mge(e,t,n){return t&&iL(e.prototype,t),n&&iL(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function hge(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&aL(e,t)}function aL(e,t){return aL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aL(e,t)}function gge(e){var t=yge();return function(){var n=oL(e),r;if(t){var i=oL(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _ge(this,r)}}function _ge(e,t){if(t&&(tL(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return vge(e)}function vge(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function yge(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function oL(e){return oL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oL(e)}function sL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cL=function(e){hge(n,e);var t=gge(n);function n(){return pge(this,n),t.apply(this,arguments)}return mge(n,[{key:`render`,value:function(){var e=Ub({Arrow:eL,Body:QI,Inner:$I},this.props.overrides);return _.createElement(BI,rL({autoFocus:!1,"data-baseweb":`tooltip`},this.props,{overrides:e}))}}]),n}(_.Component);sL(cL,`defaultProps`,fge({},HI));var bge=[`children`];function xge(e,t){if(e==null)return{};var n=Sge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sge(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function lL(e){var t=e.children,n=xge(e,bge);return _.createElement(YI,n,function(e){return _.createElement(cL,e,t)})}lL.defaultProps=YI.defaultProps;var Cge=G(`div`,{target:`e1bi6yfx0`})({display:`table`,tableLayout:`fixed`,width:`100%`}),wge=G(`div`,{target:`e1bi6yfx1`})({overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,display:`table-cell`}),uL=G(`div`,{target:`e1bi6yfx2`})(({theme:e})=>({boxSizing:`border-box`,fontSize:`${e.fontSizes.sm}`,maxWidth:`calc(${e.sizes.contentMaxWidth} - 2 * ${e.spacing.threeXL})`,maxHeight:e.sizes.maxTooltipHeight,overflow:`auto`,padding:`${e.spacing.xs} ${e.spacing.md}`,[`@media (max-width: ${e.breakpoints.sm})`]:{maxWidth:`calc(100% - ${e.spacing.threeXL})`},img:{maxWidth:`100%`},"*":{fontSize:e.fontSizes.sm}}));function Tge(e,t){let{innerWidth:n}=eZ();(0,_.useEffect)(()=>{let t=e?.parentElement;t&&(async()=>{let e=()=>{let e=t.getBoundingClientRect();return e.x!==0||e.y!==0?e:null},r=null,i=0;for(;!r&&i<5;)r=e(),r||(i++,await new Promise(e=>requestAnimationFrame(e)));r||=t.getBoundingClientRect();let a=r.x,o=a+r.width-n,s=t.parentElement;if(o>0&&s){let e=new DOMMatrix(window.getComputedStyle(s)?.transform);s.style.transform=`translate3d(${e.e-o}px, ${e.f}px, 0px)`}a<0&&(t.style.left=`${-a}px`)})()},[e,t,n])}var dL=function(e){return e.AUTO=`auto`,e.TOP_LEFT=`topLeft`,e.TOP=`top`,e.TOP_RIGHT=`topRight`,e.RIGHT_TOP=`rightTop`,e.RIGHT=`right`,e.RIGHT_BOTTOM=`rightBottom`,e.BOTTOM_RIGHT=`bottomRight`,e.BOTTOM=`bottom`,e.BOTTOM_LEFT=`bottomLeft`,e.LEFT_BOTTOM=`leftBottom`,e.
86LEFT=`left`,e.LEFT_TOP=`leftTop`,e}({}),Ege=(e,t)=>{let{colors:n,fontSizes:r,radii:i,fontWeights:a}=e;return{Body:{style:{borderTopLeftRadius:i.default,borderTopRightRadius:i.default,borderBottomLeftRadius:i.default,borderBottomRightRadius:i.default,paddingTop:`0 !important`,paddingBottom:`0 !important`,paddingLeft:`0 !important`,paddingRight:`0 !important`,backgroundColor:`transparent`}},Inner:{style:{backgroundColor:zC(e)?n.bgColor:n.secondaryBg,color:n.bodyText,fontSize:r.sm,fontWeight:a.normal,paddingTop:`0 !important`,paddingBottom:`0 !important`,paddingLeft:`0 !important`,paddingRight:`0 !important`},...t}}};function Dge({content:e,placement:t,children:n,inline:r,style:i,onMouseEnterDelay:a,overrides:o,containerWidth:s,error:c}){let l=fE(),[u,d]=(0,_.useState)(null),[f,p]=(0,_.useState)(!1),m=(0,_.useRef)(null),h=(0,_.useCallback)(()=>{p(!0)},[]),g=(0,_.useCallback)(()=>{p(!1),m.current=null},[]);(0,_.useEffect)(()=>()=>{m.current=null},[]);let v=(0,_.useCallback)(e=>{if(e.key!==`Escape`||!f)return;let t=e.currentTarget,n=t.ownerDocument?.activeElement;n instanceof HTMLElement&&t.contains(n)&&(m.current?.(),e.preventDefault(),e.stopPropagation())},[f]);Tge(u,f);let y=Ege(l,o),b=r?`span`:`div`,x=(0,_.useCallback)(({close:t})=>(m.current=t,P(uL,{className:c?`stTooltipErrorContent`:`stTooltipContent`,"data-testid":c?`stTooltipErrorContent`:`stTooltipContent`,ref:d,children:e})),[e,c,d]);return P(lL,{onOpen:h,onClose:g,content:e?x:null,placement:QF[t],accessibilityType:tI.tooltip,showArrow:!1,popoverMargin:10,onMouseEnterDelay:a,overrides:y,children:P(b,{style:{display:`flex`,flexDirection:`row`,justifyContent:r?`flex-end`:``,width:s?`100%`:`auto`,...i},onKeyDownCapture:v,"data-testid":c?`stTooltipErrorHoverTarget`:`stTooltipHoverTarget`,className:c?`stTooltipErrorHoverTarget`:`stTooltipHoverTarget`,children:n})})}var fL=(0,_.memo)(Dge),Oge=G(`button`,{target:`eqmt79k0`})(({theme:e})=>({background:`none`,border:`none`,padding:0,margin:0,color:`inherit`,display:`flex`,alignItems:`center`,justifyContent:`center`,lineHeight:0,cursor:`help`,"&:focus":{outline:`none`},"&:focus-visible":{boxShadow:e.shadows.focusRing,borderRadius:e.radii.default}})),kge=G(`span`,{target:`eqmt79k1`})(({isLatex:e,theme:t})=>({display:`flex`,alignItems:`center`,marginTop:e?t.spacing.md:`0`,"& .stTooltipHoverTarget svg.icon":{stroke:t.colors.fadedText60,strokeWidth:t.sizes.defaultStrokeWidth}})),pL=G(`div`,{target:`eqmt79k2`})(({isLatex:e})=>({display:`flex`,flexDirection:`row`,alignItems:`center`,visibility:`visible`,width:e?`fit-content`:`100%`,...e?{maxWidth:`100%`,marginInline:`auto`}:{}})),Age=G(`label`,{target:`eqmt79k3`})(({theme:e})=>({marginLeft:e.spacing.xs,position:`relative`,display:`flex`,flexDirection:`row`})),mL=(0,_.memo)(function(e){let{placement:t=dL.AUTO,isLatex:n=!1,content:r,markdownProps:i,onMouseEnterDelay:a,containerWidth:o=!1}=e,s=fE(),c=e=>P(Oge,{type:`button`,"aria-label":e,children:P(qA,{className:`icon`,"aria-hidden":`true`,focusable:`false`,size:qw(s.iconSizes.base)})}),l=()=>{if(`children`in e)return(0,_.isValidElement)(e.children)?e.children:c(`Help`);let t=e.ariaLabel.trim();return t.length?c(t):c(`Help`)};return P(kge,{className:`stTooltipIcon`,"data-testid":`stTooltipIcon`,isLatex:n,children:P(fL,{content:P(QL,{style:{fontSize:s.fontSizes.sm},source:r,allowHTML:!1,...i||{}}),placement:t,onMouseEnterDelay:a,inline:!0,containerWidth:o,children:l()})})});function hL(e){let t=e?.trim(),n=t?t.replace(/\s+/g,` `):null;return n?`Help for ${n}`:`Help`}var gL=({placement:e=dL.TOP_RIGHT,isLatex:t=!1,content:n,markdownProps:r,onMouseEnterDelay:i,containerWidth:a,ariaLabel:o=`Help`})=>P(Age,{children:P(mL,{placement:e,isLatex:t,content:n,markdownProps:r,onMouseEnterDelay:i,containerWidth:a,ariaLabel:o})}),jge=Aa(`0%{mask-position:600% center;-webkit-mask-position:600% center;}100%{mask-position:-600% center;-webkit-mask-position:-600% center;}`);function _L(e){return e.replace(/rem$/,`em`)}function vL(e){return{a:{color:e.colors.link,textDecoration:e.linkUnderline?`underline`:`none`,"&:focus":{outline:`none`,boxShadow:e.shadows.focusRing,borderRadius:e.radii.default},"&:focus:not(:focus-visible)":{boxShadow:e.shadows.none},"&:focus-visible":{boxShadow:e.shadows.focusRing,borderRadius:e.radii.default}}}}function yL(e,t,n){if(t){let t=pae(parseFloat(e)*.65),r=`${Math.max(t,.75)}rem`;return n?_L(r):r}return n?_L(e):e}function Mge(e,t,n,r){return{"h1, h2, h3, h4, h5, h6":{fontFamily:e.genericFonts.headingFont,lineHeight:e.lineHeights.headings,margin:0,color:`inherit`},h1:{fontSize:yL(e.fontSizes.h1FontSize,t,n),fontWeight:e.fontWeights.h1FontWeight,padding:r?0:`${e.spacing.xl} 0 ${e.spacing.lg} 0`},"h1 b, h1 strong":{fontWeight:e.fontWeights.h1FontWeight},"h2, h3":{letterSpacing:`-0.005em`},h2:{fontSize:yL(e.fontSizes.h2FontSize,t,n),fontWeight:e.fontWeights.h2FontWeight,padding:r?0:`${e.spacing.lg} 0 ${e.spacing.lg} 0`},h3:{fontSize:yL(e.fontSizes.h3FontSize,t,n),fontWeight:e.fontWeights.h3FontWeight,padding:r?0:`${e.spacing.md} 0 ${e.spacing.lg} 0`},h4:{fontSize:yL(e.fontSizes.h4FontSize,t,n),fontWeight:e.fontWeights.h4FontWeight,padding:r?0:`${e.spacing.sm} 0 ${e.spacing.lg} 0`},h5:{fontSize:yL(e.fontSizes.h5FontSize,t,n),fontWeight:e.fontWeights.h5FontWeight,padding:r?0:`${e.spacing.xs} 0 ${e.spacing.lg} 0`},h6:{fontSize:yL(e.fontSizes.h6FontSize,t,n),fontWeight:e.fontWeights.h6FontWeight,padding:r?0:`${e.spacing.twoXS} 0 ${e.spacing.lg} 0`}}}var bL=G(`div`,{target:`e1r33pru0`})(({theme:e,isCaption:t,isInDialog:n,isLabel:r,isInHorizontalLayout:i=!1,inheritFont:a,boldLabel:o,isToast:s,truncate:c})=>{let l=r||s||t;return{fontFamily:a?`inherit`:e.genericFonts.bodyFont,fontSize:a?`inherit`:l?e.fontSizes.sm:e.fontSizes.md,fontWeight:a?`inherit`:void 0,marginBottom:r||i?``:`-${e.spacing.lg}
86`,opacity:t?e.opacities.secondary:void 0,color:`inherit`,maxWidth:`100%`,width:r?``:`100%`,overflowWrap:`break-word`,...vL(e),...Mge(e,n,t,i),...c&&{overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,lineHeight:a?`inherit`:`normal`,"& p":{overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,lineHeight:a?`inherit`:`normal`}},"&:has(.katex-display)":{overflowX:`hidden`},p:{wordBreak:`break-word`,marginBottom:r?e.spacing.none:``,fontWeight:a?`inherit`:o?e.fontWeights.bold:void 0,marginTop:e.spacing.none,marginLeft:e.spacing.none,marginRight:e.spacing.none},img:{maxWidth:`100%`,maxHeight:r?`1em`:void 0,verticalAlign:`middle`,objectFit:`scale-down`},li:{margin:`0.2em 0 0.2em 1.15em`,padding:`0 0 0 0.3em`},"li.task-list-item":{listStyleType:`none`,padding:`0`,marginLeft:`0`,"input[type='checkbox']":{verticalAlign:`middle`,margin:`0 0.35em 0.1em 0`}},blockquote:{margin:`1em 0 1em 0`,padding:`0 0 0 0.75em`,borderLeft:`0.15em solid ${e.colors.borderColor}`,opacity:e.opacities.secondary},"b, strong":{fontWeight:e.fontWeights.bold},"b code, strong code":{fontWeight:e.fontWeights.codeBold},hr:{margin:`2em 0`,padding:0,color:`inherit`,backgroundColor:`transparent`,border:`none`,borderBottom:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,"&:not([size])":{height:e.sizes.borderWidth}},table:{display:`table`,borderCollapse:`collapse`,marginBottom:e.spacing.lg},tr:{borderTop:`${e.sizes.borderWidth} solid ${e.colors.dataframeBorderColor}`},th:{textAlign:`inherit`},"th, td":{padding:`${e.spacing.xs} ${e.spacing.md}`,border:`${e.sizes.borderWidth} solid ${e.colors.dataframeBorderColor}`},"span.stMarkdownColoredBackground":{borderRadius:e.radii.sm,padding:`${e.spacing.threeXS} ${e.spacing.twoXS}`,margin:e.spacing.none,boxDecorationBreak:`clone`},"span.stMarkdownBadge":{borderRadius:e.radii.sm,padding:`0 ${e.spacing.twoXS}`,margin:`0 ${e.spacing.px}`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,display:`inline-block`,verticalAlign:`middle`},"span.stMarkdownShimmer":{color:e.colors.fadedText60,maskImage:`linear-gradient( 87 90deg, 88 rgba(0, 0, 0, 0.4) 0%, 89 rgba(0, 0, 0, 0.4) 40%, 90 rgba(0, 0, 0, 1) 50%, 91 rgba(0, 0, 0, 0.4) 60%, 92 rgba(0, 0, 0, 0.4) 100% 93 )`,WebkitMaskImage:`linear-gradient( 94 90deg, 95 rgba(0, 0, 0, 0.4) 0%, 96 rgba(0, 0, 0, 0.4) 40%, 97 rgba(0, 0, 0, 1) 50%, 98 rgba(0, 0, 0, 0.4) 60%, 99 rgba(0, 0, 0, 0.4) 100% 100 )`,maskSize:`200% 100%`,WebkitMaskSize:`200% 100%`,animation:`${jge} 8s linear infinite`,"@media (prefers-reduced-motion: reduce)":{animation:`none`,maskImage:`none`,WebkitMaskImage:`none`}},"p, ol, ul, dl, li":{fontSize:`inherit`},"& > ul, & > ol":{display:`block`,width:`fit-content`,textAlign:`left`},"li > ul, li > ol":{display:`block`},".katex-display":{overflowX:`auto`,overflowY:`hidden`},".katex":{fontWeight:e.fontWeights.normal}}}),xL=G(`a`,{target:`e1r33pru1`})(({theme:e})=>({lineHeight:0,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,opacity:0,pointerEvents:`none`,transition:`opacity 150ms ease-in-out`,svg:{stroke:e.colors.fadedText60,strokeWidth:e.sizes.defaultStrokeWidth},"&:hover svg":{stroke:e.colors.bodyText},"&:focus-visible":{opacity:1,pointerEvents:`auto`}})),Nge=G(`div`,{target:`e1r33pru2`})(({theme:e})=>({"h1, h2, h3, h4, h5, h6, span":{scrollMarginTop:e.sizes.headerHeight},...vL(e),wordBreak:`break-word`,textWrap:`pretty`,"&:hover, &:focus-within":{[xL]:{opacity:1,pointerEvents:`auto`}}})),Pge=G(`span`,{target:`e1r33pru3`})(({theme:e})=>({marginLeft:e.spacing.sm,display:`inline-flex`,gap:e.spacing.sm,verticalAlign:`middle`,"& > *":{marginLeft:`0 !important`}})),Fge=G(`hr`,{target:`e1r33pru4`})(({theme:e,rainbow:t,color:n})=>({height:`${e.spacing.threeXS} !important`,marginTop:e.spacing.sm,marginBottom:e.spacing.none,border:`none`,borderRadius:e.radii.full,...t?{background:n}:{backgroundColor:n}})),Ige=G(`div`,{target:`e1r33pru5`})(({theme:e})=>({marginBottom:e.spacing.lg})),Lge=G(`span`,{target:`e1r33pru6`})({display:`inline-block`,verticalAlign:`middle`,transform:`translateY(-0.1em)`}),Rge=`modulepreload`,zge=function(e,t){return new URL(e,t).href},SL={},CL=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=zge(t,n),t in SL)return;SL[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Rge,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n
100)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},wL=Symbol(`plugin_load_failed`),TL={katex:null,raw:null,emoji:null},EL={katex:null,raw:null,emoji:null},Bge=()=>CL(()=>import(`./rehype-katex.B0awKBUY.js`),__vite__mapDeps([0,1,2]),import.meta.url),Vge=Qh(()=>{CL(()=>Promise.resolve().then(()=>OH),void 0,import.meta.url)}),Hge=()=>CL(()=>import(`./rehype-raw.CYCm9aNq.js`),__vite__mapDeps([3,1,2]),import.meta.url),Uge=()=>CL(()=>import(`./remark-emoji.v_eXGFRJ.js`),__vite__mapDeps([4,5]),import.meta.url);function DL(e){return e!==null&&e!==wL}function Wge(e,t){let n=[],r=e,i=0;for(;r&&typeof r==`object`&&`default`in r&&i<5;){let e=r.default;if(n.push(e),e===r)break;r=e,i+=1}n.push(e);for(let e of n)if(typeof e==`function`)return e;return console.warn(`[StreamlitMarkdown] Failed to load ${t} plugin`),wL}function OL(e,t){return n=>{let r=e(n);return(e,n)=>{if(!e)return e;try{return r(e,n)}catch(n){return console.error(`[StreamlitMarkdown] ${t} crashed while transforming`,n),e}}}}function Gge(e,t){return n=>{let r=e(n);return(e,n)=>{if(!e)return e;try{return r(e,n)}catch(n){return console.error(`[StreamlitMarkdown] ${t} crashed while transforming`,n),e}}}}function kL(e){let{key:t,needed:n,load:r,pluginName:i,onBeforeLoad:a}=e,o=n?TL[t]:null,[s,c]=(0,_.useState)(null);return(0,_.useEffect)(()=>{if(!n||o||s)return;let e=EL[t];if(e){let t=!1;return e.then(e=>{t||c(()=>e)}),()=>{t=!0}}a?.();let l=!1;return EL[t]=r().then(e=>Wge(e,i)).then(e=>(TL[t]=e,l||c(()=>e),e)).catch(()=>{let e=wL;return TL[t]=e,l||c(()=>e),e}).finally(()=>{EL[t]=null}),()=>{l=!0}},[n,o,s,t,r,i,a]),n?o??s:null}var Kge=(0,_.lazy)(()=>CL(()=>import(`./StreamlitSyntaxHighlighter.m6pCiOx6.js`),__vite__mapDeps([6,1]),import.meta.url));function qge(e){return/:(?!material\/|streamlit:)[\w+-][\w_+-]*:/.test(e)}function Jge(e){return/\$\$[\s\S]+?\$\$|\$(?!\s)[^$\n]+?(?<!\s)\$/.test(e)}var AL=function(e){return e.H1=`h1`,e.H2=`h2`,e.H3=`h3`,e}({});function Yge(){return e=>{xN(e,`element`,(e,t,n)=>{e.tagName===`code`&&(n?.type===`element`&&n.tagName===`pre`?e.properties={...e.properties,inline:!1}:e.properties={...e.properties,inline:!0})})}}function Xge(e){if(!e)return``;let t=vA(e);return t.length>0?t:ig.default.h32(e,43981).toString(16)}var Zge=[`javascript:`,`vbscript:`],Qge=/[\x00-\x1F]/g;function $ge(e){let t=e.replace(Qge,``).toLowerCase().trim();return Zge.some(e=>t.startsWith(e))?`#`:e}var e_e=Qh(e=>{e.scrollIntoView(!0)}),t_e=({elementId:e,help:t,hideAnchor:n})=>{let r=fE();return!t&&n?P(Ht,{}):F(Pge,{"data-testid":`stHeaderActionElements`,children:[t&&P(gL,{content:t}),e&&!n&&P(xL,{href:`#${e}`,"aria-label":`Link to heading`,children:P(ZA,{size:qw(r.iconSizes.base),"aria-hidden":`true`})})]})},jL=({tag:e,anchor:t,help:n,hideAnchor:r,children:i,tagProps:a})=>{let o=(0,_.useContext)(jF),s=(0,_.useContext)(hE),[c,l]=(0,_.useState)(t),u=(0,_.useCallback)(e=>{if(e===null)return;let n=t||Xge(e.textContent);l(n);let r=window.location.hash.slice(1);r&&r===n&&e_e(e)},[t]),d=o||s,f=P(t_e,{elementId:c,help:n,hideAnchor:r||d}),p=(0,_.useId)(),m=n||c&&!r&&!d?p:void 0,h=c?{id:c}:{},g=m?{"aria-labelledby":m}:{},v={...d?{}:{ref:u,...h},...g},y=F(e,{...a,...v,children:[m?P(`span`,{id:m,children:i}):i,f]});return d?y:P(Nge,{"data-testid":`stHeadingWithActionElements`,children:y})},ML=({node:e,children:t,...n})=>{let r=n[`data-anchor`];return P(jL,{tag:e.tagName,anchor:r,tagProps:n,children:t})},NL=({inline:e,className:t,children:n,...r})=>{let i=/language-(\w+)/.exec(t||``),a=String(n??``).replace(/^\n/,``).replace(/\n$/,``),o=i?.[1]||``;return e?P(PF,{className:t,...Zh(r,`node`),children:n}):P(ZF,{children:P(_.Suspense,{fallback:P(GF,{element:Fo.create({style:Fo.SkeletonStyle.ELEMENT})}),children:P(Kge,{language:o,showLineNumbers:!1,children:a})})})},PL=({children:e})=>P(Ige,{"data-testid":`stMarkdownPre`,children:e}),FL=({node:e,...t})=>{let n=dE(t.src),r=e.tagName;return P(r,{...t,crossOrigin:n})},IL=(0,_.createContext)(void 0);IL.displayName=`HelpTextContext`;var LL={pre:PL,code:NL,h1:ML,h2:ML,h3:ML,h4:ML,h5:ML,h6:ML,img:FL,video:FL,audio:FL,"streamlit-help-icon":({children:e})=>P(Lge,{children:P(gL,{content:(0,_.useContext)(IL)||(typeof e==`string`?e:``)})})};function RL(e){let{red:t,orange:n,yellow:r,green:i,blue:a,violet:
100o,purple:s,gray:c,primary:l}=kie(e),{redbg:u,orangebg:d,yellowbg:f,greenbg:p,bluebg:m,violetbg:h,purplebg:g,graybg:_,primarybg:v}=VC(e);return new Map(Object.entries({red:`color: ${t}`,orange:`color: ${n}`,yellow:`color: ${r}`,blue:`color: ${a}`,green:`color: ${i}`,violet:`color: ${o}`,gray:`color: ${c}`,grey:`color: ${c}`,primary:`color: ${l}`,rainbow:`color: transparent; background-clip: text; -webkit-background-clip: text; background-image: linear-gradient(to right, 101 ${t}, ${n}, ${r}, ${i}, ${a}, ${o}, ${s});`,"red-background":`background-color: ${u}`,"orange-background":`background-color: ${d}`,"yellow-background":`background-color: ${f}`,"blue-background":`background-color: ${m}`,"green-background":`background-color: ${p}`,"violet-background":`background-color: ${h}`,"gray-background":`background-color: ${_}`,"grey-background":`background-color: ${_}`,"primary-background":`background-color: ${v}`,"rainbow-background":`background: linear-gradient(to right, 102 ${u}, ${d}, ${f}, ${p}, ${m}, ${h}, ${g});`}))}function zL(){return()=>e=>(xN(e,`textDirective`,(e,t,n)=>{if(String(e.name)===`help`){let t=e.data||={};t.hName=`streamlit-help-icon`,t.hProperties=t.hProperties||{};return}}),e)}function BL(e){if(!e)return!1;try{return $g(e),!0}catch{return!1}}function VL(e,t){return()=>n=>(xN(n,`textDirective`,(n,r,i)=>{let a=String(n.name);if(a===`shimmer`){let e=n.data||={};e.hName=`span`,e.hProperties=e.hProperties||{},e.hProperties.className=`stMarkdownShimmer`;return}if(a===`small`){let t=n.data||={};t.hName=`span`,t.hProperties=t.hProperties||{},t.hProperties.style=`font-size: ${e.fontSizes.sm};`;return}if(a===`color`&&n.attributes){let{foreground:e,background:t}=n.attributes,r=e&&BL(e),i=t&&BL(t),a=n.data||={};if(a.hName=`span`,a.hProperties=a.hProperties||{},r||i){let n=[];r&&n.push(`color: ${e}`),i&&n.push(`background-color: ${t}`);let o=i?`stMarkdownColoredBackground`:`stMarkdownColoredText`;a.hProperties.style=n.join(`; `),a.hProperties.className=o}return}let o=a.match(/^(.+)-badge$/);if(o&&t.has(o[1])){let r=o[1];if(r===`rainbow`)return;let i=t.get(r),a=t.get(`${r}-background`);if(i&&a){let t=n.data||={};t.hName=`span`,t.hProperties=t.hProperties||{},t.hProperties.className=`stMarkdownBadge`,t.hProperties.style=`${a}; ${i}; font-size: ${e.fontSizes.sm};`;return}}if(t.has(a)){let e=n.data||={},r=t.get(a);e.hName=`span`,e.hProperties=e.hProperties||{},e.hProperties.style=r,e.hProperties.className=`stMarkdownColoredText`,r&&(/background-color:/.test(r)||/background:/.test(r))&&(e.hProperties.className=`stMarkdownColoredBackground`);return}}),n)}function HL(){return()=>e=>(xN(e,`textDirective`,(e,t,n)=>{if(!e.data?.hName&&n&&t!==void 0){let r={type:`text`,value:`:${e.name}`};n.children[t]=r}}),e)}function UL(e){return()=>t=>{function n(t,n){return{type:`text`,value:t,data:{hName:`span`,hProperties:{role:`img`,ariaLabel:n+` icon`,translate:`no`,style:` 103 display: inline-block; 104 font-family: ${e.genericFonts.iconFont}; 105 font-weight: ${e.fontWeights.normal}; 106 user-select: none; 107 vertical-align: bottom; 108 white-space: nowrap; 109 word-wrap: normal; 110 `},hChildren:[{type:`text`,value:n}]}}}return MA(t,[[/:material_(\w+):/g,n]]),t}}function WL(){return()=>e=>{function t(){return{type:`text`,value:``,data:{hName:`img`,hProperties:{src:fhe,alt:`Streamlit logo`,style:`display: inline-block; user-select: none; height: 0.75em; vertical-align: baseline; margin-bottom: -0.05ex;`}}}}return MA(e,[[/:streamlit:/g,t]]),e}}function GL(){return()=>e=>(xN(e,(e,t,n)=>{if(!(n&&(n.type===`link`||n.type===`linkReference`))&&e.type===`text`&&e.value){let t=[[/(^|\s)<->(\s|$)/g,`$1â$2`],[/(^|\s)->(\s|$)/g,`$1â$2`],[/(^|\s)<-(\s|$)/g,`$1â$2`],[/(^|\s)--(\s|$)/g,`$1â$2`],[/(^|\s)>=(\s|$)/g,`$1â¥$2`],[/(^|\s)<=(\s|$)/g,`$1â¤$2`],[/(^|\s)~=(\s|$)/g,`$1â$2`]],n=e.value;for(let[e,r]of t)n=n.replace(e,r);n!==e.value&&(e.value=n)}}),e)}var KL={handlers:[{name:`streamlit-directives`,priority:10,handle:e=>{let t=/:[a-z][a-z0-9-]*\[/,n=t.exec(e);if(!n)return e;let r=1,i=n.index+n[0].length;for(;i<e.length;){let n=e[i];if(n===`[`&&r>0){r+=1,i+=1;continue}if(n===`]`&&r>0){--r,i+=1;continue}if(n===`:`){let n=e.slice(i),a=t.exec(n);if(a?.index===0){r+=1,i+=a[0].length;continue}}i+=1}return r>0?e+`]`.repeat(r):e}}]},qL=[tme,Wpe,Vde,zL(),WL(),GL()],JL=[`table`,`thead`,`tbody`,`tr`,`th`,`td`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`ul`,`ol`,`li`,`input`,`hr`,`blockquote`],YL=[...JL,`a`];function XL(e){let{href:t}=e;if(t?.startsWith(`#`)){let{children:t,...n}=e;return P(`a`,{...Zh(n,`node`),children:t})}let{title:n,children:r,target:i,rel:a,...o}=e;return P(`a`,{href:t,title:n,target:i||`_blank`,rel:a||`noopener noreferrer`,...Zh(o,`node`),children:r})}var ZL=(0,_.memo)(function({allowHTML:e,source:t,overrideComponents:n,isLabel:r,disableLinks:i,helpText:a,unterminatedParsing:o}){let s=fE(),c=(0,_.useMemo)(()=>Jge(t),[t]),l=(0,_.useMemo)(()=>qge(t),[t]),u=kL({key:`katex`,needed:c,load:Bge,pluginName:`rehype-katex`,onBeforeLoad:Vge}),d=kL({key:`raw`,needed:e,load:Hge,pluginName:`rehype-raw`}),f=kL({key:`emoji`,needed:l,load:Uge,pluginName:`remark-emoji`}),p=(0,_.useMemo)(()=>RL(s),[s]),m=(0,_.useMemo)(()=>DL(u)?OL(u,`rehype-katex`):null,[u]),h=(0,_.useMemo)(()=>DL(d)?OL(d,`rehype-raw`):null,[d]),g=(0,_.useMemo)(()=>DL(f)?Gge(f,`remark-emoji`):null,[f]),v=(0,_.useMemo)(()=>{let e=[...qL,VL(s,p),UL(s)];return l&&g&&e.push(g),e.push(HL()),e},[s,p,l,g]),y=(0,_.useMemo)(()=>{let t=[];return c&&m&&t.push(m),e&&h&&t.push(h),t.push(Yge),t},[e,c,m,h]),b=(0,_.useMemo)(()=>({...LL,a:XL,...n}),[n]),x=(0,_.useMemo)(()=>{let n=t.replaceAll(`:material/`,`:material_`);return r&&(n=n.replace(/^(\s*)((?:[+\-*]|#+)(?=\s|$)|>)/gm,`$1\\$2`),n=n.replace(/^(\s*)(\d+)([.)])(?=\s|$)/gm,`$1$2\\$3`)),o&&!r&&!e&&(n=dhe(n,KL)),n},[t,r,e,o]),S=(0,_.useMemo)(()=>r?i?YL:JL:[],[r,i]);return c&&u===null||e&&d===null||l&&f===null?P(ZF,{children:P(GF,{element:Fo.create({style:Fo.SkeletonStyle.ELEMENT})})}):P(IL.Provider,{value:a,children:P(ZF,{children:P(Rue,{remarkPlugins:v,rehypePlugins:y,components:b,urlTransform:$ge,disallowedElements:S,unwrapDisallowed:!0,children:x})})})}),QL=(0,_.memo)(({source:e,allowHTML:t,style:n,isCaption:r,isLabel:i,boldLabel:a,disableLinks:o,isToast:s,inheritFont:c,helpText:l,truncate:u,unterminatedParsing:d})=>{let f=(0,_.useContext)(hE);return P(bL,{isCaption:!!r,isInDialog:f,isLabel:i,inheritFont:c,boldLabel:a,isToast:s,truncate:u,style:n,"data-testid":r?`stCaptionContainer`:`stMarkdownContainer`,children:P(ZL,{source:e,allowHTML:t,isLabel:i,disableLinks:o,helpText:l,unterminatedParsing:d})})}),$L=G(`div`,{target:`e1nw0ecc0`})(({theme:e})=>({display:`flex`,alignItems:`center`,gap:e.spacing.sm,marginRight:e.spacing.threeXL})),eR=G(`div`,{target:`e1nw0ecc1`})(()=>({display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0}));function tR(e){switch(e){case Co.Dialog.DialogWidth.MEDIUM:return`medium`;case Co.Dialog.DialogWidth.LARGE:return`large`;case Co.Dialog.DialogWidth.SMALL:return`default`;default:return ag(e),`default`}}var nR=({element:e,deltaMsgReceivedAt:t,children:n,widgetMgr:r,fragmentId:i})=>{let{title:a,dismissible:o,width:s,isOpen:c,id:l,icon:u}=e,[d,f]=(0,_.useState)(!1);(0,_.useEffect)(()=>{I(c)&&f(c)},[c,t]);let p=(0,_.useCallback)(()=>{f(!1),l&&r&&r.setTriggerValue({id:l,formId:``},{fromUi:!0},i)},[l,r,i]),m=(0,_.useCallback)(t=>{if(d&&t.key.toLowerCase()===`r`&&!e.dismissible){let e=t.target;if(e&&(e.isContentEditable||e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.tagName===`SELECT`))return;t.preventDefault(),t.stopPropagation()}},[d,e.dismissible]);return(0,_.useEffect)(()=>
110{if(d&&!e.dismissible)return document.addEventListener(`keydown`,m,!0),()=>{document.removeEventListener(`keydown`,m,!0)}},[d,e.dismissible,m]),d?F(oA,{isOpen:!0,closeable:o,onClose:p,size:tR(s),children:[P(tA,{children:F($L,{children:[u&&P(eR,{"data-testid":`stDialogIcon`,children:P(hT,{iconValue:u,size:`lg`})}),P(QL,{source:a,allowHTML:!1,isLabel:!0,inheritFont:!0})]})}),P(nA,{children:n})]}):P(Ht,{})};function rR(e){return P(hE.Provider,{value:!0,children:P(nR,{...e})})}var iR=(0,_.memo)(rR),aR=(e,t)=>e.length===t.length?e.every((e,n)=>Object.is(e,t[n])):!1,oR=(e,t,n=aR)=>{let[r,i]=(0,_.useState)(t);n(r,t)||(i(t),e())},sR=class{manageFormClearListener(e,t,n){I(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),Ag(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){this.formClearListener?.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}};function cR({element:e,widgetMgr:t,onFormCleared:n}){(0,_.useEffect)(()=>{if(!t||!Ag(e.formId))return;let r=t.addFormClearedListener(e.formId,n);return()=>{r.disconnect()}},[e,t,n])}var lR=({widgetMgr:e,id:t,formId:n,key:r,defaultValue:i})=>{(0,_.useEffect)(()=>{Ba(e.getElementState(t,r))&&I(i)&&e.setElementState(t,r,i)},[e,t,r,i]);let[a,o]=(0,_.useState)(e.getElementState(t,r)??i),s=(0,_.useCallback)(n=>{e.setElementState(t,r,n),o(n)},[e,t,r]);return cR({element:(0,_.useMemo)(()=>({formId:n||``}),[n]),widgetMgr:e,onFormCleared:(0,_.useCallback)(()=>s(i),[i,s])}),[a,s]},uR=`1s ease-in 0.5s`,dR={opacity:QC.stale,transition:`opacity ${uR}`},fR=G(`div`,{target:`e1wbovuq0`})({width:`100%`}),pR=G(`details`,{target:`e1wbovuq1`})(({isStale:e,isCompact:t,theme:n})=>({marginBottom:0,marginTop:0,width:`100%`,...t?{border:`none`,borderRadius:0}:{borderStyle:`solid`,borderWidth:n.sizes.borderWidth,borderColor:n.colors.borderColor,borderRadius:n.radii.default,...e?{borderColor:n.colors.borderColorLight,transition:`border ${uR}`}:{}}})),mR=G(`span`,{target:`e1wbovuq2`})(({theme:e})=>({display:`flex`,alignItems:`center`,flexGrow:1,minWidth:0,width:`100%`,maxWidth:`100%`,overflow:`hidden`,gap:e.spacing.sm})),hR=G(`div`,{target:`e1wbovuq3`})(({isCompact:e})=>({display:`flex`,overflow:`hidden`,...!e&&{width:`100%`,flexGrow:1}}
110)),gR=G(`summary`,{target:`e1wbovuq4`})(({theme:e,isStale:t,expanded:n,isCompact:r})=>({position:`relative`,display:`flex`,width:`100%`,minWidth:0,overflow:`hidden`,"&:focus":{outline:`none`},"&:focus-visible":{boxShadow:e.shadows.focusRing},fontSize:`inherit`,alignItems:`center`,cursor:`pointer`,listStyleType:`none`,"&::-webkit-details-marker":{display:`none`},...r?{paddingLeft:0,paddingRight:0,paddingTop:e.spacing.twoXS,paddingBottom:e.spacing.twoXS,backgroundColor:`transparent`,borderRadius:e.radii.default,opacity:e.opacities.secondary,transition:`opacity 150ms ease`,"&:hover, &:focus-visible":{opacity:1}}:{paddingLeft:e.spacing.md,paddingRight:e.spacing.md,paddingTop:e.spacing.twoXS,paddingBottom:e.spacing.twoXS,minHeight:`calc(${e.sizes.minElementHeight} - 2 * ${e.sizes.borderWidth})`,backgroundColor:n?e.colors.bgMix:`transparent`,borderRadius:n?`${e.radii.default} ${e.radii.default} 0 0`:e.radii.default,transition:n?`border-radius 200ms cubic-bezier(0.23, 1, 0.32, 1), background-color 150ms ease`:`border-radius 200ms cubic-bezier(0.23, 1, 0.32, 1) 300ms, background-color 150ms ease`,"&:hover, &:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"&:active":{backgroundColor:e.colors.darkenedBgMix25}},...t&&dR})),_R=G(`div`,{target:`e1wbovuq5`})(({theme:e,isCompact:t})=>t?{padding:0,paddingTop:e.spacing.sm,borderTop:`none`}:{padding:e.spacing.lg,borderTop:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`}),vR=500,yR=`cubic-bezier(0.23, 1, 0.32, 1)`;function bR(e,t,n,r={}){let{duration:i=vR,easing:a=yR,onFinish:o}=r,s=e.animate({height:[`${t}px`,`${n}px`]},{duration:i,easing:a});return{cancel:()=>s.cancel(),finished:new Promise(t=>{s.addEventListener(`finish`,()=>{e.style.height=``,e.style.overflow=``,o?.(),t()}),s.addEventListener(`cancel`,()=>{t()})})}}var xR=10,SR=5;function CR({backendExpanded:e,label:t,onToggle:n,isCompact:r=!1}){let[i,a]=(0,_.useState)(e??!1),o=r?0:2,s=(0,_.useRef)(null),c=(0,_.useRef)(null),l=(0,_.useRef)(null),u=(0,_.useRef)(null),d=(0,_.useRef)(i),f=(0,_.useRef)(t),p=(0,_.useRef)(!1),m=(0,_.useCallback)(()=>{u.current?.cancel(),u.current=null},[]),h=(0,_.useCallback)(e=>{let t=s.current,n=c.current,r=l.current;if(!t||!n)return;let i=t.getBoundingClientRect().height,a=n.getBoundingClientRect().height;if(m(),t.style.height=`${i}px`,t.style.overflow=`hidden`,e){t.open=!0;let e=r?.getBoundingClientRect().height??0;e>0&&(u.current=bR(t,i,a+e+o))}else u.current=bR(t,i,a+o,{onFinish:()=>{s.current&&(s.current.open=!1)}})},[m,o]),g=(0,_.useCallback)((e,t)=>{let n=s.current;n&&(m(),n.style.height=`${e}px`,n.style.overflow=`hidden`,u.current=bR(n,e,t))},[m]),{clear:v,restart:y}=VF(()=>{let e=l.current,t=s.current,n=c.current;if(!e||!t||!n||!t.open||!d.current)return;let r=e.getBoundingClientRect().height,i=n.getBoundingClientRect().height,a=t.getBoundingClientRect().height,u=i+r+o;Math.abs(a-u)>SR&&g(a,u)},xR,{autoStart:!1});return(0,_.useEffect)(()=>{let n=!p.current;p.current=!0;let r=t!==f.current;if(f.current=t,r){m();let t=e??!1;d.current=t,a(t),s.current&&(s.current.style.height=``,s.current.style.overflow=``,s.current.open=t);return}if(!Ba(e)){if(n){s.current&&(s.current.open=e);return}e!==d.current&&(d.current=e,a(e),h(e))}},[e,t,m,h]),(0,_.useEffect)(()=>{let e=l.current,t=s.current;if(!e||!t)return;let n=new ResizeObserver(()=>{t.open&&y()});return n.observe(e),()=>{n.disconnect(),v()}},[v,y]),(0,_.useEffect)(()=>()=>{m(),v()},[m,v]),{isOpen:i,detailsRef:s,summaryRef:c,contentRef:l,handleToggle:(0,_.useCallback)(e=>{e.preventDefault();let t=!d.current;d.current=t,a(t),h(t),n?.(t)},[n,h])}}var wR=e=>{let{icon:t}=e;return t?P(hT,{size:`base`,iconValue:t,testid:{":material/check:":`stExpanderIconCheck`,":material/error:":`stExpanderIconError`,spinner:`stExpanderIconSpinner`}[t]||`stExpanderIcon`}):P(Ht,{})},TR=(0,_.memo)(({element:e,isStale:t,widgetMgr:n,blockId:r,fragmentId:i,children:a})=>{let{label:o,icon:s,type:c}=e,[l,u]=(0,_.useState)(!1),d=e.id||void 0,f=!!(n&&d),p=!!r&&!f,[m,h]=lR({widgetMgr:n,id:p?r??``:``,key:`expanded`,defaultValue:e.expanded??!1}),g=p?m:e.expanded;oR(()=>{!d||!I(e.expanded)||n.setBoolValue({id:d},e.expanded,{fromUi:!1},i)},[d,e.expanded]);let v=(0,_.useCallback)(e=>{n&&d&&n.setBoolValue({id:d},e,{fromUi:!0},i)},[n,d,i]),y=(0,_.useCallback)(e=>{h(e)},[h]),b=f?v:p?y:void 0,x=c===Co.Expandable.Type.COMPACT,S=!x&&(!s||l),C=x?!!s:s&&!l,{isOpen:w,detailsRef:T,summaryRef:E,contentRef:D,handleToggle:O}=CR({backendExpanded:g,label:o,onToggle:b,isCompact:x});return P(fR,{className:`stExpander`,"data-testid":`stExpander`,children:F(pR,{isStale:t,isCompact:x,ref:T,onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},children:[P(gR,{onClick:O,ref:E,isStale:t,expanded:w,isCompact:x,children:F(mR,{children:[S&&P(hT,{iconValue:w?`:material/keyboard_arrow_down:`:`:material/keyboard_arrow_right:`,size:`base`}),C&&P(wR,{icon:s}),P(hR,{isCompact:x,children:P(QL,{source:o,allowHTML:!1,isLabel:!0})}),x&&P(hT,{iconValue:w?`:material/keyboard_arrow_down:`:`:material/chevron_right:`,size:`lg`})]})}),P(_R,{"data-testid":`stExpanderDetails`,ref:D,isCompact:x,inert:w?void 0:``,children:a})]})})}),ER=G(`div`,{target:`e150o2y10`})(({width:e=`100%`,height:t})=>({width:e,height:t})),DR=e=>{let t=zC(e);return{boxSizing:`border-box`,borderTopLeftRadius:e.radii.default,borderTopRightRadius:e.radii.default,borderBottomRightRadius:e.radii.default,borderBottomLeftRadius:e.radii.default,borderWidth:e.sizes.borderWidth,borderStyle:`solid`,borderColor:t?e.colors.bgColor:e.colors.borderColor,boxShadow:t?e.shadows.popover:e.shadows.none}},OR=(e,t)=>{let n=e.widgetBorderColor??e.secondaryBg;return t&&(n=e.primary),n};function kR({children:e,help:t,placement:n,containerWidth:r}
110){return t?F(Ht,{children:[P(Kk,{children:P(mL,{content:t,placement:n||dL.TOP,containerWidth:r,children:e})}),P(qk,{children:e})]}):e}var AR=typeof navigator<`u`?navigator.userAgent.toLowerCase().indexOf(`firefox`)>0:!1;function jR(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,n)}function MR(e,t,n,r){e&&(e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent(`on${t}`,n))}function NR(e,t){let n=t.slice(0,t.length-1),r=[];for(let t=0;t<n.length;t++)r.push(e[n[t].toLowerCase()]);return r}function PR(e){typeof e!=`string`&&(e=``),e=e.replace(/\s/g,``);let t=e.split(`,`),n=t.lastIndexOf(``);for(;n>=0;)t[n-1]+=`,`,t.splice(n,1),n=t.lastIndexOf(``);return t}function FR(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0;for(let e=0;e<n.length;e++)r.indexOf(n[e])===-1&&(i=!1);return i}function IR(e){let t=e.keyCode||e.which||e.charCode;return e.code&&/^Key[A-Z]$/.test(e.code)&&(t=e.code.charCodeAt(3)),t}var LR={backspace:8,"â«":8,tab:9,clear:12,enter:13,"â©":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"âª":20,",":188,".":190,"/":191,"`":192,"-":AR?173:189,"=":AR?61:187,";":AR?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},RR={"â§":16,shift:16,"â¥":18,alt:18,option:18,"â":17,ctrl:17,control:17,"â":91,cmd:91,meta:91,command:91},zR={16:`shiftKey`,18:`altKey`,17:`ctrlKey`,91:`metaKey`,shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},BR={16:!1,18:!1,17:!1,91:!1},VR={};for(let e=1;e<20;e++)LR[`f${e}`]=111+e;var HR=[],UR=null,WR=null,GR=`all`,KR=new Map,qR=e=>LR[e.toLowerCase()]||RR[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),JR=e=>Object.keys(LR).find(t=>LR[t]===e),YR=e=>Object.keys(RR).find(t=>RR[t]===e),XR=e=>{GR=e||`all`},ZR=()=>GR||`all`,QR=()=>HR.slice(0),$R=()=>HR.map(e=>JR(e)||YR(e)||String.fromCharCode(e)),ez=()=>{let e=[];return Object.keys(VR).forEach(t=>{VR[t].forEach(({key:t,scope:n,mods:r,shortcut:i})=>{e.push({scope:n,shortcut:i,mods:r,keys:t.split(`+`).map(e=>qR(e))})})}),e},tz=e=>{let t=e.target||e.srcElement,{tagName:n}=t,r=!0,i=n===`INPUT`&&![`checkbox`,`radio`,`range`,`button`,`file`,`reset`,`submit`,`color`].includes(t.type);return(t.isContentEditable||(i||n===`TEXTAREA`||n===`SELECT`)&&!t.readOnly)&&(r=!1),r},nz=e=>(typeof e==`string`&&(e=qR(e)),HR.indexOf(e)!==-1),rz=(e,t)=>{let n,r;e||=ZR();for(let t in VR)if(Object.prototype.hasOwnProperty.call(VR,t))for(n=VR[t],r=0;r<n.length;)n[r].scope===e?n.splice(r,1).forEach(({element:e})=>dz(e)):r++;ZR()===e&&XR(t||`all`)};function iz(e){let t=IR(e);e.key&&e.key.toLowerCase()===`capslock`&&(t=qR(e.key));let n=HR.indexOf(t);if(n>=0&&HR.splice(n,1),e.key&&e.key.toLowerCase()===`meta`&&HR.splice(0,HR.length),(t===93||t===224)&&(t=91),t in BR){BR[t]=!1;for(let e in RR)RR[e]===t&&(lz[e]=!1)}}var az=(e,...t)=>{if(e===void 0)Object.keys(VR).forEach(e=>{Array.isArray(VR[e])&&VR[e].forEach(e=>oz(e)),delete VR[e]}),dz(null);else if(Array.isArray(e))e.forEach(e=>{e.key&&oz(e)});else if(typeof e==`object`)e.key&&oz(e);else if(typeof e==`string`){let[n,r]=t;typeof n==`function`&&(r=n,n=``),oz({key:e,scope:n,method:r,splitKey:`+`})}},oz=({key:e,scope:t,method:n,splitKey:r=`+`})=>{PR(e).forEach(e=>{let i=e.split(r),a=i.length,o=i[a-1],s=o===`*`?`*`:qR(o);if(!VR[s])return;t||=ZR();let c=a>1?NR(RR,i):[],l=[];VR[s]=VR[s].filter(e=>{let r=(n?e.method===n:!0)&&e.scope===t&&FR(e.mods,c);return r&&l.push(e.element),!r}),l.forEach(e=>dz(e))})};function sz(e,t,n,r){if(t.element!==r)return;let i;if(t.scope===n||t.scope===`all`){i=t.mods.length>0;for(let e in BR)Object.prototype.hasOwnProperty.call(BR,e)&&(!BR[e]&&t.mods.indexOf(+e)>-1||BR[e]&&t.mods.indexOf(+e)===-1)&&(i=!1);(t.mods.length===0&&!BR[16]&&!BR[18]&&!BR[17]&&!BR[91]||i||t.shortcut===`*`)&&(t.keys=[],t.keys=t.keys.concat(HR),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&=!0))}}function cz(e,t){let n=VR[`*`],r=IR(e);if(e.key&&e.key.toLowerCase()===`capslock`||!(lz.filter||tz).call(this,e))return;if((r===93||r===224)&&(r=91),HR.indexOf(r)===-1&&r!==229&&HR.push(r),[`metaKey`,`ctrlKey`,`altKey`,`shiftKey`].forEach(t=>{let n=zR[t];e[t]&&HR.indexOf(n)===-1?HR.push(n):!e[t]&&HR.indexOf(n)>-1?HR.splice(HR.indexOf(n),1):t===`metaKey`&&e[t]&&(HR=HR.filter(e=>e in zR||e===r))}),r in BR){BR[r]=!0;for(let t in RR)Object.prototype.hasOwnProperty.call(RR,t)&&(lz[t]=e[zR[RR[t]]]);if(!n)return}for(let t in BR)Object.prototype.hasOwnProperty.call(BR,t)&&(BR[t]=e[zR[t]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState(`AltGraph`)&&(HR.indexOf(17)===-1&&HR.push(17),HR.indexOf(18)===-1&&HR.push(18),BR[17]=!0,BR[18]=!0);let i=ZR();if(n)for(let r=0;r<n.length;r++)n[r].scope===i&&(e.type===`keydown`&&n[r].keydown||e.type===`keyup`&&n[r].keyup)&&sz(e,n[r],i,t);
110if(!(r in VR))return;let a=VR[r],o=a.length;for(let n=0;n<o;n++)if((e.type===`keydown`&&a[n].keydown||e.type===`keyup`&&a[n].keyup)&&a[n].key){let r=a[n],{splitKey:o}=r,s=r.key.split(o),c=[];for(let e=0;e<s.length;e++)c.push(qR(s[e]));c.sort().join(``)===HR.sort().join(``)&&sz(e,r,i,t)}}var lz=function e(t,n,r){HR=[];let i=PR(t),a=[],o=`all`,s=document,c=0,l=!1,u=!0,d=`+`,f=!1,p=!1;if(r===void 0&&typeof n==`function`&&(r=n),Object.prototype.toString.call(n)===`[object Object]`){let e=n;e.scope&&(o=e.scope),e.element&&(s=e.element),e.keyup&&(l=e.keyup),e.keydown!==void 0&&(u=e.keydown),e.capture!==void 0&&(f=e.capture),typeof e.splitKey==`string`&&(d=e.splitKey),e.single===!0&&(p=!0)}for(typeof n==`string`&&(o=n),p&&az(t,o);c<i.length;c++){let e=i[c].split(d);a=[],e.length>1&&(a=NR(RR,e));let t=e[e.length-1];t=t===`*`?`*`:qR(t),t in VR||(VR[t]=[]),VR[t].push({keyup:l,keydown:u,scope:o,mods:a,shortcut:i[c],method:r,key:i[c],splitKey:d,element:s})}if(s!==void 0&&typeof window<`u`){if(!KR.has(s)){let e=(e=window.event)=>cz(e,s),t=(e=window.event)=>{cz(e,s),iz(e)};KR.set(s,{keydownListener:e,keyupListenr:t,capture:f}),jR(s,`keydown`,e,f),jR(s,`keyup`,t,f)}if(!UR){let e=()=>{HR=[]};UR={listener:e,capture:f},jR(window,`focus`,e,f)}if(!WR&&typeof document<`u`){let t=()=>{HR=[];for(let e in BR)BR[e]=!1;for(let t in RR)e[t]=!1},n=t,r=t;document.addEventListener(`fullscreenchange`,n),document.addEventListener(`webkitfullscreenchange`,r),WR={fullscreen:n,webkit:r}}}};function uz(e,t=`all`){Object.keys(VR).forEach(n=>{VR[n].filter(n=>n.scope===t&&n.shortcut===e).forEach(e=>{e&&e.method&&e.method({},e)})})}function dz(e){let t=Object.values(VR).flat();if(t.findIndex(({element:t})=>t===e)<0&&e){let{keydownListener:t,keyupListenr:n,capture:r}=KR.get(e)||{};t&&n&&(MR(e,`keyup`,n,r),MR(e,`keydown`,t,r),KR.delete(e))}if(t.length<=0||KR.size<=0){if(Array.from(KR.keys()).forEach(e=>{let{keydownListener:t,keyupListenr:n,capture:r}=KR.get(e)||{};t&&n&&(MR(e,`keyup`,n,r),MR(e,`keydown`,t,r),KR.delete(e))}),KR.clear(),Object.keys(VR).forEach(e=>delete VR[e]),UR){let{listener:e,capture:t}=UR;MR(window,`focus`,e,t),UR=null}WR&&typeof document<`u`&&(document.removeEventListener(`fullscreenchange`,WR.fullscreen),document.removeEventListener(`webkitfullscreenchange`,WR.webkit),WR=null)}}var fz={getPressedKeyString:$R,setScope:XR,getScope:ZR,deleteScope:rz,getPressedKeyCodes:QR,getAllKeyCodes:ez,isPressed:nz,filter:tz,trigger:uz,unbind:az,keyMap:LR,modifier:RR,modifierMap:zR};for(let e in fz){let t=e;Object.prototype.hasOwnProperty.call(fz,t)&&(lz[t]=fz[t])}if(typeof window<`u`){let e=window.hotkeys;lz.noConflict=t=>(t&&window.hotkeys===lz&&(window.hotkeys=e),lz),window.hotkeys=lz}typeof module<`u`&&module.exports&&(module.exports=lz,module.exports.default=lz);var pz=new Set([`INPUT`,`TEXTAREA`,`SELECT`]),mz=new Set([`ctrl`,`cmd`,`alt`,`shift`,`mod`]),hz=new Set([`ctrl`,`cmd`,`alt`,`mod`]),gz=[`ctrl`,`cmd`,`alt`,`shift`,`mod`],_z={ctrl:`Ctrl`,cmd:`â`,alt:`Alt`,shift:`Shift`,mod:`Mod`},vz={enter:`Enter`,space:`Space`,tab:`Tab`,escape:`Esc`,backspace:`Backspace`,delete:`Delete`,home:`Home`,end:`End`,pageup:`PageUp`,pagedown:`PageDown`,left:`â`,right:`â`,up:`â`,down:`â`},yz=new Set([`left`,`right`,`up`,`down`,`home`,`end`,`pageup`,`pagedown`,`backspace`,`delete`]),bz=!1;function xz(e){let t=e.composedPath?.();if(t?.length){for(let e of t){let t=e;if(t?.tagName&&(pz.has(t.tagName)||t.isContentEditable||t.getAttribute(`contenteditable`)===`true`))return t}return null}let n=e.target||e.srcElement;return n?.tagName&&(pz.has(n.tagName)||n.isContentEditable||n.getAttribute(`contenteditable`)===`true`)?n:null}function Sz(e){return e?!!xz(e):!1}function Cz(){bz||=(lz.filter=e=>{if(!xz(e)||e.key===`Escape`||e.ctrlKey||e.metaKey||e.altKey)return!0;if(e.shiftKey){let t=e.key??``;if(t.length>1&&!/^[a-z0-9]$/i.test(t))return!0}return!1},!0)}function wz(e){if(!e)return;let t=e.split(`+`).map(e=>e.trim().toLowerCase()).filter(Boolean);if(t.length===0)return;let n;for(let e=t.length-1;e>=0;--e){let r=t[e];if(!mz.has(r)){n=r;break}}let r=t.some(e=>hz.has(e));return{tokens:t,baseKey:n,hasSystemModifier:r}}function Tz(e,t){if(!xz(t)||e.hasSystemModifier)return!1;let n=e.baseKey;return!!(!n||n.length===1&&/^[a-z0-9]$/i.test(n)||n===`space`||n===`tab`||n===`enter`||yz.has(n))}function Ez(e){return e.map(e=>e===`cmd`?`command`:e).join(`+`)}function Dz(e){if(!e)return[];let{tokens:t}=e,n=Eg()?`cmd`:`ctrl`,r=t.map(e=>e===`cmd`||e===`ctrl`||e===`mod`?n:e);return[Ez(Array.from(new Set(r)))]}function Oz(e,t){return e===`cmd`||e===`ctrl`||e===`mod`?t?_z.cmd:_z.ctrl:e===`alt`&&t?`â¥`:_z[e]}function kz(e){return vz[e]?vz[e]:(e.length===1||e.startsWith(`f`)&&/^\d+$/.test(e.slice(1)),e.toUpperCase())}function Az(e,t){let n=wz(e);if(!n)return;let r=t?.isMac??!1,i=[];
110if(gz.forEach(e=>{if(n.tokens.includes(e)){let t=Oz(e,r);t&&i.push(t)}}),n.baseKey&&i.push(kz(n.baseKey)),i.length!==0)return i.join(` + `)}function jz({shortcut:e,disabled:t=!1,onActivate:n}){let r=(0,_.useMemo)(()=>wz(e),[e]),i=(0,_.useMemo)(()=>Dz(r),[r]);(0,_.useEffect)(()=>{if(!r||i.length===0||t)return;let e=(e,i)=>{t||Tz(r,e)||(e.preventDefault(),n())};return i.forEach(t=>{lz(t,e)}),()=>{i.forEach(t=>{lz.unbind(t,e)})}},[r,i,t,n])}var Mz=({icon:e,label:t,iconSize:n,iconPosition:r=`left`,shortcut:i})=>{let a=(0,_.useMemo)(()=>Az(i,{isMac:Eg()}),[i]);return P(Xk,{children:F(Zk,{"data-has-shortcut":!!a,children:[e&&r===`left`&&P(hT,{size:n??`base`,iconValue:e}),t&&P(QL,{source:t,allowHTML:!1,isLabel:!0,disableLinks:!0}),e&&r===`right`&&P(hT,{size:n??`base`,iconValue:e}),a&&P(Qk,{"aria-label":`Shortcut ${a}`,children:a})]})})};function Nz(e,t){let n=(0,_.useRef)(null),r=(0,_.useRef)(!1),i=(0,_.useRef)(e),a=(0,_.useRef)(null);(0,_.useEffect)(()=>{i.current=e},[e]);let{clear:o,restart:s}=VF((0,_.useCallback)(()=>{if(r.current=!1,n.current!==null){let e=n.current;n.current=null,i.current(...e),r.current=!0,a.current?.()}},[]),t,{autoStart:!1});(0,_.useEffect)(()=>{a.current=s},[s]);let c=(0,_.useCallback)(()=>{o(),n.current=null,r.current=!1},[o]);return{throttledCallback:(0,_.useCallback)((...e)=>{r.current?n.current=e:(i.current(...e),r.current=!0,s())},[s]),cancel:c}}var Pz=(e,t=[],n=0)=>{let r=(0,_.useRef)(null),[i,a]=(0,_.useState)([]),o=(0,_.useCallback)(()=>{if(!r.current)return[];let t=r.current.getBoundingClientRect();return e.map(e=>t[e])},[e]),{throttledCallback:s,cancel:c}=Nz((0,_.useCallback)(()=>{a(o())},[o]),Math.max(n,1));return(0,_.useEffect)(()=>{if(!r.current)return;a(o());let e,t=new ResizeObserver(()=>{e&&cancelAnimationFrame(e),e=window.requestAnimationFrame(()=>{n>0?s():a(o())})});return t.observe(r.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e),c()}},[e,o,n,s,c,...t]),{values:i,elementRef:r}},Fz=(e=[],t=-1,n=100)=>{let{values:[r,i],elementRef:a}=Pz((0,_.useMemo)(()=>[`width`,`height`],[]),e,n);return{width:r||t,height:i||t,elementRef:a}},Iz=G(`div`,{target:`eucf0wj0`})(({theme:e,$hideChevron:t})=>({display:`flex`,alignItems:`center`,gap:e.spacing.threeXS,marginRight:t?0:`calc(-${e.iconSizes.lg} * 0.25)`})),Lz=G(`div`,{target:`eucf0wj1`})(({theme:e})=>({display:`inline-flex`,marginTop:e.spacing.threeXS})),Rz=(0,_.memo)(({element:e,empty:t,children:n,stretchWidth:r,widgetMgr:i,blockId:a,fragmentId:o})=>{let s=(0,_.useContext)(jF),c=fE(),l=e.id,u=!!a&&!l,[d,f]=lR({widgetMgr:i,id:u?a??``:``,key:`open`,defaultValue:e.open??!1}),[p,m]=(0,_.useState)(u?d:e.open??!1);oR(()=>{!l||!I(e.open)||(m(e.open),i?.setBoolValue({id:l},e.open,{fromUi:!1},o))},[l,e.open]);let{width:h,elementRef:g}=Fz(),v=(0,_.useCallback)(()=>{let e=!p;m(e),l?i?.setBoolValue({id:l},e,{fromUi:!0},o):u&&f(e)},[p,i,l,o,u,f]),y=(0,_.useCallback)(()=>{m(!1),l?i?.setBoolValue({id:l},!1,{fromUi:!0},o):u&&f(!1)},[i,l,o,u,f]),b=xk.SECONDARY;e.type===`primary`?b=xk.PRIMARY:e.type===`tertiary`&&(b=xk.TERTIARY);let x=mT(e.icon,e.label);return P(ER,{"data-testid":`stPopover`,className:`stPopover`,ref:g,children:P(BI,{triggerType:$F.click,placement:QF.bottomLeft,content:()=>n,isOpen:p,onClickOutside:y,onClick:()=>p?y():void 0,onEsc:y,ignoreBoundary:s,popoverMargin:qw(c.spacing.twoXS),renderAll:!0,overrides:{Body:{props:{"data-testid":`stPopoverBody`},style:()=>({...DR(c),borderTopLeftRadius:c.radii.xl,borderTopRightRadius:c.radii.xl,borderBottomRightRadius:c.radii.xl,borderBottomLeftRadius:c.radii.xl,marginRight:c.spacing.lg,marginBottom:c.spacing.lg,maxHeight:`70vh`,overflow:`auto`,maxWidth:`calc(${c.sizes.contentMaxWidth} - 2*${c.spacing.lg})`,minWidth:r?`${Math.max(h,160)}px`:c.sizes.minPopupWidth,[`@media (max-width: ${c.breakpoints.sm})`]:{maxWidth:`calc(100% - ${c.spacing.threeXL})`},paddingRight:`calc(${c.spacing.twoXL} - ${c.sizes.borderWidth})`,paddingLeft:`calc(${c.spacing.twoXL} - ${c.sizes.borderWidth})`,paddingBottom:`calc(${c.spacing.twoXL} - ${c.sizes.borderWidth})`,paddingTop:`calc(${c.spacing.twoXL} - ${c.sizes.borderWidth})`})}},children:P(`div`,{children:P(kR,{help:e.help,containerWidth:!0,children:P($k,{"data-testid":`stPopoverButton`,kind:b,size:Sk.SMALL,disabled:t&&!l||e.disabled,containerWidth:!0,onClick:v,children:F(Iz,{$hideChevron:x,children:[P(Mz,{icon:e.icon,label:e.label}),!x&&P(Lz,{"aria-hidden":`true`,children:P(hT,{iconValue:p?`:material/expand_less:`:`:material/expand_more:`,size:`base`})})]})})})})})})});function zz(e,t){if(e==null)return{};var n,r,i=gE(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Bz=[`children`,`iconAttrs`,`iconVerticalAlign`,`iconViewBox`,`size`,`title`];function Vz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
110t%2?Vz(Object(n),!0).forEach(function(t){HE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Uz=sT(_.forwardRef(function(e,t){var n=e.children,r=e.iconAttrs;e.iconVerticalAlign;var i=e.iconViewBox,a=e.size,o=e.title,s=zz(e,Bz),c=Hz(Hz({viewBox:i,height:e.height===void 0?a:e.height,width:e.width===void 0?a:e.width,"aria-hidden":o==null?`true`:void 0,focusable:`false`,role:o==null?void 0:`img`},r),s);return _.createElement(`svg`,tt({},c,{ref:t}),o&&_.createElement(`title`,{key:`icon-title`},o),n)}),{target:`ex0cdmw0`})(`display:inline-block;vertical-align:`,function(e){return e.iconVerticalAlign},`;overflow:hidden;`),Wz=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),_.createElement(`path`,{d:`M20.5 6c-2.61.7-5.67 1-8.5 1s-5.89-.3-8.5-1L3 8c1.86.5 4 .83 6 1v13h2v-6h2v6h2V9c2-.17 4.14-.5 6-1l-.5-2zM12 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z`}))});Wz.displayName=`AccessibilityNew`;var Gz=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),_.createElement(`circle`,{cx:18,cy:4.54,r:2}),_.createElement(`path`,{d:`M15 17h-2c0 1.65-1.35 3-3 3s-3-1.35-3-3 1.35-3 3-3v-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5zm3-3.5h-1.86l1.67-3.67C18.42 8.5 17.44 7 15.96 7h-5.2c-.81 0-1.54.47-1.87 1.2L8.22 10l1.92.53.65-1.53H13l-1.83 4.1c-.6 1.33.39 2.9 1.85 2.9H18v5h2v-5.5c0-1.1-.9-2-2-2z`}))});Gz.displayName=`AccessibleForward`;var Kz=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),_.createElement(`path`,{d:`M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z`}))});Kz.displayName=`Check`;var qz=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),_.createElement(`path`,{d:`M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z`}))});qz.displayName=`ChevronLeft`;var Jz=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),_.createElement(`path`,{d:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z`}))});Jz.displayName=`ChevronRight`;var Yz=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),_.createElement(`path`,{d:`M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z`}))});Yz.displayName=`ContentCopy`;var Xz=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),_.createElement(`path`,{d:`M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5zm5.8-10l2.4-2.4.8.8c1.3 1.3 3 2.1 5.1 2.1V9c-1.5 0-2.7-.6-3.6-1.5l-1.9-1.9c-.5-.4-1-.6-1.6-.6s-1.1.2-1.4.6L7.8 8.4c-.4.4-.6.9-.6 1.4 0 .6.2 1.1.6 1.4L11 14v5h2v-6.2l-2.2-2.3zM19 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z`}))});Xz.displayName=`DirectionsBike`;var Zz=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),_.createElement(`path`,{d:`M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1l-5.2 2.2v4.7h2v-3.4l1.8-.7-1.6 8.1-4.9-1-.4 2 7 1.4z`}))});Zz.displayName=`DirectionsRun`;var Qz=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),_.createElement(`path`,{d:`M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z`}))});Qz.displayName=`Fullscreen`;var $z=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),_.createElement(`path`,{d:`M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z`}))});$z.displayName=`FullscreenExit`;var eB=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),_.createElement(`path`,{d:`M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z`}))});eB.displayName=`KeyboardArrowDown`;var tB=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}
110),_.createElement(`path`,{d:`M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6 1.41 1.41z`}))});tB.displayName=`KeyboardArrowUp`;var nB=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),_.createElement(`path`,{d:`M10 8l-3.25 3.25c.31.12.56.27.77.39.37.23.59.36 1.15.36s.78-.13 1.15-.36c.46-.27 1.08-.64 2.19-.64s1.73.37 2.18.64c.37.22.6.36 1.15.36.55 0 .78-.13 1.15-.36.12-.07.26-.15.41-.23L10.48 5C8.93 3.45 7.5 2.99 5 3v2.5c1.82-.01 2.89.39 4 1.5l1 1zm12 8.5h-.02.02zm-16.65-1c.55 0 .78.14 1.15.36.45.27 1.07.64 2.18.64s1.73-.37 2.18-.64c.37-.23.59-.36 1.15-.36.55 0 .78.14 1.15.36.45.27 1.07.64 2.18.64s1.73-.37 2.18-.64c.37-.23.59-.36 1.15-.36.55 0 .78.14 1.15.36.45.27 1.06.63 2.16.64v-2c-.55 0-.78-.14-1.15-.36-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.18.64c-.37.23-.6.36-1.15.36s-.78-.14-1.15-.36c-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.18.64c-.37.23-.59.36-1.15.36-.55 0-.78-.14-1.15-.36-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.18.64c-.37.23-.59.36-1.15.36v2c1.11 0 1.73-.37 2.2-.64.37-.23.6-.36 1.15-.36zM18.67 18c-1.11 0-1.73.37-2.18.64-.37.23-.6.36-1.15.36-.55 0-.78-.14-1.15-.36-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.19.64c-.37.23-.59.36-1.15.36s-.78-.13-1.15-.36c-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.19.64c-.37.23-.59.36-1.15.36v2c1.11 0 1.73-.37 2.19-.64.37-.23.6-.36 1.15-.36.55 0 .78.13 1.15.36.45.27 1.07.64 2.18.64s1.73-.37 2.19-.64c.37-.23.59-.36 1.15-.36.55 0 .78.14 1.15.36.45.27 1.07.64 2.18.64s1.72-.37 2.18-.64c.37-.23.59-.36 1.15-.36.55 0 .78.14 1.15.36.45.27 1.07.64 2.18.64v-2c-.56 0-.78-.13-1.15-.36-.45-.27-1.07-.64-2.18-.64z`}),_.createElement(`circle`,{cx:16.5,cy:5.5,r:2.5}))});nB.displayName=`Pool`;var rB=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0z`}),_.createElement(`path`,{d:`M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-2.16c1.66.03 3.61-.87 4.67-2.04l1.4-1.55c.19-.21.43-.38.69-.5.29-.14.62-.23.96-.23h.03C15.99 6.01 17 7.02 17 8.26v5.75c0 .84-.35 1.61-.92 2.16l-3.58-3.58v-2.27c-.63.52-1.43 1.02-2.29 1.39L16.5 18H18l3 3.01z`}))});rB.displayName=`Rowing`;var iB={vertical:`vertical`,horizontal:`horizontal`},aB={fixed:`fixed`,intrinsic:`intrinsic`},oB=function(e,t){return`tabs-${e}-tab-${t}`},sB=function(e,t){return`tabs-${e}-tabpanel-${t}`},cB=function(e){return e===iB.horizontal},lB=function(e){return e===iB.vertical},uB=function(e){return e===`rtl`},dB=function(e){return e===aB.intrinsic},fB=function(e){return e===aB.fixed};Vy();function pB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pB(Object(n),!0).forEach(function(t){hB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gB=W(`div`,function(e){e.$theme;var t=e.$orientation,n=t===void 0?iB.horizontal:t,r={transform:`scale(1)`};return lB(n)&&(r.display=`flex`),r});gB.displayName=`StyledRoot`,gB.displayName=`StyledRoot`;var _B=W(`div`,function(e){var t=e.$hasEndEnhancer,n=e.$orientation;return t||!cB(n)?{display:`flex`}:{}});_B.displayName=`StyledTabBar`,_B.displayName=`StyledTabBar`;var vB=W(`div`,function(e){var t=e.$theme,n=e.$fill,r=n===void 0?aB.intrinsic:n,i=e.$orientation,a=i===void 0?iB.horizontal:i,o={position:`relative`,display:`flex`,flexWrap:`nowrap`,flexGrow:1};return cB(a)?(o.flexDirection=`row`,o.paddingBottom=`5px`,o.marginBottom=`-5px`):(o.flexDirection=`column`,uB(t.direction)?(o.paddingLeft=`5px`,o.marginLeft=`-5px`):(o.paddingRight=`5px`,o.marginRight=`-5px`)),dB(r)&&(o[`::-webkit-scrollbar`]={display:`none`},o[`-ms-overflow-style`]=`none`,o.scrollbarWidth=`none`,cB(a)?o.overflowX=`scroll`:o.overflowY=`scroll`),o});vB.displayName=`StyledTabList`,vB.displayName=`StyledTabList`;var yB=W(`button`,function(e){var t=e.$theme,n=e.$orientation,r=n===void 0?iB.horizontal:n,i=e.$fill,a=i===void 0?aB.intrinsic:i,o=e.$focusVisible,s=o===void 0?!1:o;e.$isActive;var c=mB({cursor:`pointer`,WebkitAppearance:`none`,marginLeft:`0`,marginRight:`0`,marginTop:`0`,marginBottom:`0`,boxSizing:`border-box`,display:`inline-flex`,alignItems:`center`,paddingLeft:t.sizing.scale600,paddingTop:t.sizing.scale600,paddingRight:t.sizing.scale600,paddingBottom:t.sizing.scale600,borderLeftWidth:0,borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0,borderLeftStyle:`none`,borderTopStyle:`none`,borderRightStyle:`none`,borderBottomStyle:`none`,color:t.colors.contentPrimary,background:t.colors.backgroundPrimary,transitionProperty:`background`,transitionDuration:t.animation.timing200,transitionTimingFunction:t.animation.linearCurve,outline:`none`,outlineOffset:`-3px`,":disabled":{cursor:`not-allowed`,color:t.colors.contentStateDisabled},":hover":{background:t.colors.backgroundSecondary},":disabled:hover":{background:`none`}},t.typography.LabelSmall);return s&&(c.outline=`3px solid ${t.colors.accent}`),fB(a)&&(c.flexGrow=1,c.flexBasis=0),cB(r)?c.justifyContent=`center`:c.justifyContent=`flex-end`,c});yB.displayName=`StyledTab`,yB.displayName=`StyledTab`;var bB=W(`div`,function(e){var t=e.$theme;return hB({display:`flex`,alignItems:`center`,justifyContent:`flex-end`},t.direction===`rtl`?`marginRight`:`marginLeft`,t.sizing.scale600)});bB.displayName=`StyledEndEnhancerContainer`,bB.displayName=`StyledEndEnhancerContainer`;var xB=W(`div`,function(e){var t=e.$theme;e.$orientation===void 0&&iB.horizontal;var n={display:`flex`};return uB(t.direction)?n.marginLeft=t.sizing.scale300:n.marginRight=t.sizing.scale300,n});xB.displayName=`StyledArtworkContainer`,xB.displayName=`StyledArtworkContainer`;var SB=W(`div`,function(e){var t=e.$theme,n=e.$orientation,r=n===void 0?iB.horizontal:n,i={backgroundColor:t.colors.borderOpaque,position:`relative`};return cB(r)?i.height=`5px`:i.width=`5px`,i});SB.displayName=`StyledTabBorder`,SB.displayName=`StyledTabBorder`;var CB=W(`div`,function(e){var t=e.$theme,n=e.$orientation,r=n===void 0?iB.horizontal:n,i=e.$length,a=i===void 0?0:i,o=e.$distance,s=o===void 0?0:o,c=e.$animate,l=c===void 0?!1:c,u={backgroundColor:t.colors.borderSelected,position:`absolute`,zIndex:1};return cB(r)?(u.bottom=`0px`,u.left=`0px`,u.height=`5px`,u.width=`${a}px`,u.transform=`translateX(${s}px)`):(u.transform=`translateY(${s}px)`,u.width=`5px`,u.height=`${a}px`,uB(t.direction)?u.left=`0px`:u.right=`0px`),l&&(u.transitionProperty=`all`,u.transitionDuration=t.animation.timing400,u.transitionTimingFunction=t.animation.easeInOutQuinticCurve),u});CB.displayName=`StyledTabHighlight`,CB.displayName=`StyledTabHighlight`;var wB=W(`div`,function(e){var t=e.$theme,n=e.$pad,r=n===void 0?!0:n,i={flexGrow:1,outline:`none`};return r&&(i.paddingTop=t.sizing.scale600,i.paddingRight=t.sizing.scale600,i.paddingBottom=t.sizing.scale600,i.paddingLeft=t.sizing.scale600),i});wB.displayName=`StyledTabPanel`,wB.displayName=`StyledTabPanel`;var TB=u(rt());Pb(),Vy(),Jb(),rx();var EB=[`childKey`,`childIndex`,`activeKey`,`orientation`,`activeTabRef`,`updateHighlight`,`parseKeyDown`,`activateOnFocus`,`uid`,`disabled`,`sharedStylingProps`,`onChange`],DB=[`artwork`,`overrides`,`tabRef`,`onClick`,`title`],OB=[`childKey`,`childIndex`,`activeKey`,`uid`,`sharedStylingProps`,`renderAll`];function kB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
110t%2?kB(Object(n),!0).forEach(function(t){jB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MB(e){return FB(e)||PB(e)||VB(e)||NB()}function NB(){throw TypeError(`Invalid attempt to spread non-iterable instance. 111In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PB(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function FB(e){if(Array.isArray(e))return HB(e)}function IB(e,t){if(e==null)return{};var n=LB(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function LB(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function RB(){return RB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RB.apply(this,arguments)}function zB(e,t){return WB(e)||UB(e,t)||VB(e,t)||BB()}function BB(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 112In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VB(e,t){if(e){if(typeof e==`string`)return HB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HB(e,t)}}function HB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function UB(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function WB(e){if(Array.isArray(e))return e}var GB={next:`next`,previous:`previous`},KB=function(e,t){return e?lB(t)?{length:e.clientHeight,distance:e.offsetTop}:{length:e.clientWidth,distance:e.offsetLeft}:{length:0,distance:0}},qB=function(e){var t=e.parentNode.getBoundingClientRect(),n=t.x,r=t.y,i=t.width,a=t.height,o=e.getBoundingClientRect(),s=o.x,c=o.y,l=o.width,u=o.height,d={x:s-n+l/2,y:c-r+u/2},f=e.parentNode,p=f.scrollLeft,m=f.scrollTop,h={x:p+d.x-i/2,y:m+d.y-a/2};e.parentNode.scroll(h.x,h.y)};function JB(e){var t=e.Enhancer;return typeof t==`string`?t:TB.isValidElementType(t)?_.createElement(t,null):t}function YB(e){var t=e.activeKey,n=t===void 0?`0`:t,r=e.disabled,i=r===void 0?!1:r,a=e.children,o=e.fill,s=o===void 0?aB.intrinsic:o,c=e.activateOnFocus,l=c===void 0?!0:c,u=e.onChange,d=e.orientation,f=d===void 0?iB.horizontal:d,p=e.overrides,m=p===void 0?{}:p,h=e.renderAll,g=h===void 0?!1:h,v=e.uid,y=v===void 0?null:v,b=e.endEnhancer,x=wb(),S=y||x,C=m.Root,w=m.TabList,T=m.TabHighlight,E=m.TabBorder,D=zB(Hb(C,gB),2),O=D[0],k=D[1],A=zB(Hb(w,vB),2),ee=A[0],te=A[1],ne=zB(Hb(T,CB),2),re=ne[0],ie=ne[1],ae=zB(Hb(E,SB),2),oe=ae[0],j=ae[1],se=zB(Hb(m.EndEnhancerContainer,bB),2),ce=se[0],le=se[1],M=zB(_.useState(0),2),N=M[0],ue=M[1];_.useEffect(function(){ue(N+1)},[n]);var de=_.useRef(),fe=zB(_.useState({length:0,distance:0}),2),pe=fe[0],me=fe[1],he=_.useCallback(function(){de.current&&me(KB(de.current,f))},[de.current,f]);_.useEffect(he,[de.current,f]),_.useEffect(function(){de.current&&(cB(f)?de.current.parentNode.scrollWidth>de.current.parentNode.clientWidth:de.current.parentNode.scrollHeight>de.current.parentNode.clientHeight)&&(N>1?de.current.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`nearest`}):qB(de.current))},[de.current]);var ge={$orientation:f,$fill:s},_e=zB(Ry(),2)[1],ve=_.useCallback(function(e){if(cB(f))if(uB(_e.direction))switch(e.keyCode){case 39:return GB.previous;case 37:return GB.next;default:return null}else switch(e.keyCode){case 37:return GB.previous;case 39:return GB.next;default:return null}else switch(e.keyCode){case 38:return GB.previous;case 40:return GB.next;default:return null}},[f,_e.direction]);return _.createElement(O,RB({},ge,k),_.createElement(_B,{$hasEndEnhancer:!!b,$orientation:f},_.createElement(ee,RB({"data-baseweb":`tab-list`,role:`tablist`,"aria-orientation":f},ge,te),_.Children.map(a,function(e,t){if(e)return _.createElement(XB,RB({childKey:e.key,childIndex:t,activeKey:n,orientation:f,activeTabRef:de,updateHighlight:he,parseKeyDown:ve,activateOnFocus:l,uid:S,disabled:i,sharedStylingProps:ge,onChange:u},e.props))}),_.createElement(re,RB({"data-baseweb":`tab-highlight`,$length:pe.length,$distance:pe.distance,$animate:N>1,"aria-hidden":`true`,role:`presentation`},ge,ie))),f===iB.horizontal&&b!=null&&_.createElement(ce,RB({},le,{$orientation:f}),_.createElement(JB,{Enhancer:b}))),_.createElement(oe,RB({"data-baseweb":`tab-border`,"aria-hidden":`true`,role:`presentation`},ge,j)),_.Children.map(a,function(e,t){if(e)return _.createElement(ZB,RB({childKey:e.key,childIndex:t,activeKey:n,uid:S,sharedStylingProps:ge,renderAll:g},e.props))}))}function XB(e){var t=e.childKey,n=e.childIndex,r=e.activeKey,i=e.orientation,a=e.activeTabRef,o=e.updateHighlight,s=e.parseKeyDown,c=e.activateOnFocus,l=e.uid,u=e.disabled,d=e.sharedStylingProps,f=e.onChange,p=IB(e,EB),m=t||String(n),h=m==r,g=p.artwork,v=p.overrides,y=v===void 0?{}:v,b=p.tabRef,x=p.onClick,S=p.title,C=IB(p,DB),w=_.useRef();_.useImperativeHandle(b,function(){return h?a.current:w.current});var T=_.useRef({length:0,distance:0});_.useEffect(function(){T.current=KB(h?a.current:w.current,i)}),_.useEffect(function(){if(window.ResizeObserver){var e=new window.ResizeObserver(function(e){if(e[0]&&e[0].target){var t=KB(e[0].target,i
112);(t.length!==T.current.length||t.distance!==T.current.distance)&&o()}});return e.observe(h?a.current:w.current),function(){e.disconnect()}}},[r,i]),_.useEffect(o,[S]);var E=y.Tab,D=y.ArtworkContainer,O=zB(Hb(E,yB),2),k=O[0],A=O[1],ee=zB(Hb(D,xB),2),te=ee[0],ne=ee[1],re=zB(_.useState(!1),2),ie=re[0],ae=re[1],oe=_.useCallback(function(e){Xb(e)&&ae(!0)},[]),j=_.useCallback(function(e){ie!==!1&&ae(!1)},[ie]),se=_.useCallback(function(e){var t=MB(e.target.parentNode.childNodes).filter(function(e){return!e.disabled&&e.getAttribute(`role`)===`tab`});if(t.length!==1){var n=t.indexOf(e.target),r=s(e);if(r){var a;r===GB.previous?a=t[n-1]?t[n-1]:t[t.length-1]:r===GB.next&&(a=t[n+1]?t[n+1]:t[0]),a&&(a.focus(),c&&a.click()),lB(i)&&e.preventDefault()}}});return _.createElement(k,RB({"data-baseweb":`tab`,key:m,id:oB(l,m),role:`tab`,onKeyDown:se,"aria-selected":h,"aria-controls":sB(l,m),tabIndex:h?`0`:`-1`,ref:h?a:w,disabled:!h&&u,type:`button`,$focusVisible:ie,$isActive:h},d,C,A,{onClick:function(e){typeof f==`function`&&f({activeKey:m}),typeof x==`function`&&x(e)},onFocus:tx(AB(AB({},C),A),oe),onBlur:nx(AB(AB({},C),A),j)}),g?_.createElement(te,RB({"data-baseweb":`artwork-container`},d,ne),_.createElement(g,{size:20,color:`contentPrimary`})):null,S||m)}function ZB(e){var t=e.childKey,n=e.childIndex,r=e.activeKey,i=e.uid,a=e.sharedStylingProps,o=e.renderAll,s=IB(e,OB),c=t||String(n),l=c==r,u=s.overrides,d=u===void 0?{}:u,f=s.children,p=d.TabPanel,m=zB(Hb(p,wB),2),h=m[0],g=m[1];return _.createElement(h,RB({"data-baseweb":`tab-panel`,key:c,role:`tabpanel`,id:sB(i,c),"aria-labelledby":oB(i,c),hidden:!l},a,g),l||o?f:null)}function QB(e){return null}function $B(e){return e===qg.HORIZONTAL?`stHorizontalBlock`:`stVerticalBlock`}function eV(e,t){return e!==`empty`||t!==nT.RUNNING}function tV(e,t,n,r){return t===nT.RERUN_REQUESTED?!0:t===nT.RUNNING?r?.length?!!(e.fragmentId&&r.includes(e.fragmentId)&&e.scriptRunId!==n):e.scriptRunId!==n:!1}function nV(e,t,n,r,i){return!e||tV(t,n,r,i)}function rV(e,t){let n=Oie(t),r=Object.keys(n),{blue:i,green:a,orange:o,red:s,violet:c,yellow:l}=n,u={blue:i,green:a,orange:o,red:s,violet:c,yellow:l},d=Object.keys(u),f=0;for(let t of Hg.collectElements(e)){let e=t.heading?.divider;if(t.type===`heading`&&e)if(e===`auto`){let e=d[f];t.heading.divider=u[e],f+=1,f===d.length&&(f=0)}else r.includes(e)&&(t.heading.divider=n[e])}}function iV(e){return e?`st-key-`+e.trim().replace(/[^a-zA-Z0-9_-]/g,`-`):``}function aV(e){if(!e||!Og(e))return;let t=e.split(`-`).slice(2).join(`-`);return t===`None`?void 0:t}function oV(e){return e.gapConfig?.gapSize?e.gapConfig.gapSize:co.GapSize.SMALL}function sV(e){return!!(e.flexContainer||e.vertical||e.horizontal)}function cV(e){if(!e.deltaBlock.heightConfig?.pixelHeight)return!1;let{autoscroll:t}=e.deltaBlock;return t??e.children.some(e=>e instanceof Bg&&e.deltaBlock.type===`chatMessage`)}function lV(e){return e.flexContainer?.border||e.vertical?.border||!1}var uV=G(`div`,{target:`e11fun1i0`})(({isOverflowing:e,width:t,flex:n})=>({position:e?`relative`:void 0,width:t||void 0,flex:n||void 0})),dV=G(`button`,{target:`e11fun1i1`})(({theme:e,position:t,tabHeight:n})=>({position:`absolute`,top:0,[t]:0,zIndex:e.zIndices.priority,display:`flex`,alignItems:`center`,justifyContent:`center`,height:n,width:e.spacing.xl,padding:0,border:`none`,cursor:`pointer`,color:e.colors.fadedText60,background:`transparent`,backgroundImage:t===`right`?`linear-gradient(to right, ${G_(e.colors.bgColor,1)}, ${e.colors.bgColor} 40%)`:`linear-gradient(to left, ${G_(e.colors.bgColor,1)}, ${e.colors.bgColor} 40%)`,"&:hover":{color:e.colors.bodyText},"&:focus":{outline:`none`},"&:focus-visible":{boxShadow:e.shadows.focusRing}})),fV=200,pV=1;function mV(e,t,n){let r=e.getElementState(t,`activeTabLabel`);if(!r)return null;let i=n.indexOf(r);return i>=0?{index:i,label:r}:null}function hV(e){let{widgetsDisabled:t,node:n,isStale:r,width:i,flex:a,widgetMgr:o,fragmentId:s}=e,{scriptRunState:c,scriptRunId:l,fragmentIdsThisRun:u}=(0,_.useContext)(rT),d=n.deltaBlock?.tabContainer?.defaultTabIndex??0,f=n.deltaBlock?.tabContainer?.id,p=n.deltaBlock?.id??``,m=!!f,h=!!p&&!m,g=aV(p),v=(0,_.useMemo)(()=>n.children.map((e,t)=>e?.deltaBlock?.tab?.label??t.toString()),[n.children]),[y,b]=(0,_.useState)(()=>
112{if(h){let e=mV(o,p,v);if(e)return e.index}return d}),x=(0,_.useRef)(void 0);if(x.current===void 0){if(h){let e=mV(o,p,v);e&&(x.current=e.label)}x.current===void 0&&(x.current=n.children[d]?.deltaBlock?.tab?.label??`0`)}let S=(0,_.useRef)(null),C=fE(),[w,T]=(0,_.useState)(!1),[E,D]=(0,_.useState)(!1),O=w||E,k=(0,_.useCallback)(()=>{if(S.current){let{scrollLeft:e,scrollWidth:t,clientWidth:n}=S.current;T(e>pV),D(e+n<t-pV)}},[]),A=(0,_.useCallback)(e=>{S.current?.scrollBy({left:e===`left`?-fV:fV,behavior:`smooth`})},[]),ee=(0,_.useCallback)(()=>A(`left`),[A]),te=(0,_.useCallback)(()=>A(`right`),[A]),ne=(0,_.useRef)(d);(0,_.useEffect)(()=>{if(m&&v.length>0&&d!==ne.current){let e=v[d];e&&(b(d),x.current=e),ne.current=d}},[d,m,v]),(0,_.useEffect)(()=>{if(h){let e=mV(o,p,v);if(e){b(e.index),x.current=e.label;return}}if(v.indexOf(x.current??`0`)===-1){let e=v[d];b(d),x.current=e,h&&o.setElementState(p,`activeTabLabel`,e)}},[v]),(0,_.useEffect)(()=>{let e=S.current;if(e){e.addEventListener(`scroll`,k,{passive:!0});let t=new ResizeObserver(()=>{k()});return t.observe(e),()=>{e.removeEventListener(`scroll`,k),t.disconnect()}}},[k]),(0,_.useEffect)(()=>{if(k(),h){let e=mV(o,p,v);if(e){b(e.index),x.current=e.label;return}}let e=v.indexOf(x.current??`0`);if(e!==-1)b(e),x.current=v[e];else{let e=v[d];b(d),x.current=e,h&&o.setElementState(p,`activeTabLabel`,e)}},[n.children.length,k]);let re=C.sizes.tabHeight,ie=C.spacing.threeXS;return F(uV,{className:(0,Kg.default)(`stTabs`,iV(g)),"data-testid":`stTabs`,isOverflowing:O,width:i,flex:a,children:[P(YB,{activateOnFocus:!0,activeKey:y,onChange:({activeKey:e})=>{let t=v[e];b(e),x.current=t,h&&o.setElementState(p,`activeTabLabel`,t),m&&f&&o&&o.setStringValue({id:f,formId:``},t,{fromUi:!0},s)},renderAll:!0,overrides:{TabHighlight:{style:()=>({backgroundColor:C.colors.primary,height:ie})},TabBorder:{style:()=>({backgroundColor:C.colors.borderColorLight,height:ie})},TabList:{props:{ref:S},style:()=>({gap:C.spacing.lg,marginBottom:`-${ie}`,paddingBottom:ie,overflowY:`hidden`,...r&&dR})},Root:{style:()=>({transform:`none`})}},children:n.children.map((n,i)=>{let a=tV(n,c,l,u),o={...e,isStale:r||a,widgetsDisabled:t,node:n},s=v[i]??i.toString(),d=y.toString()===i.toString();return P(QB,{"data-testid":`stTab`,title:P(QL,{source:s,allowHTML:!1,isLabel:!0}),disabled:!r&&a,overrides:{TabPanel:{style:()=>({paddingLeft:C.spacing.none,paddingRight:C.spacing.none,paddingBottom:C.spacing.none,paddingTop:C.spacing.lg})},Tab:{style:()=>({height:re,whiteSpace:`nowrap`,paddingLeft:C.spacing.none,paddingRight:C.spacing.none,paddingTop:C.spacing.none,paddingBottom:C.spacing.none,fontSize:C.fontSizes.sm,background:`transparent`,color:C.colors.bodyText,":focus":{outline:`none`,color:C.colors.primary,background:`none`},":hover":{color:C.colors.primary,background:`none`},...d?{color:C.colors.primary}:{},...!r&&a&&dR})}},children:e.renderTabContent(o)},i)})}),w&&P(dV,{position:`left`,tabHeight:re,onClick:ee,"aria-label":`Scroll tabs left`,"data-testid":`stTabsScrollLeft`,children:P(uT,{content:qz,size:`lg`})}),E&&P(dV,{position:`right`,tabHeight:re,onClick:te,"aria-label":`Scroll tabs right`,"data-testid":`stTabsScrollRight`,children:P(uT,{content:Jz,size:`lg`})})]})}var gV=(0,_.memo)(hV),_V=(0,_.createContext)(null);_V.displayName=`FormsContext`;var vV=G(`div`,{target:`ee8gipb0`})(({theme:e,$hasTitle:t})=>({display:`flex`,flexDirection:t?`column`:`row`,gap:t?e.spacing.twoXS:e.spacing.sm,width:`100%`,[`${BF} code`]:{paddingRight:e.spacing.lg}})),yV=G(`div`,{target:`ee8gipb1`})(({theme:e})=>({display:`flex`,alignItems:`flex-start`,gap:e.spacing.sm})),bV=G(`div`,{target:`ee8gipb2`})(({theme:e})=>({position:`relative`,top:e.spacing.threeXS,flexShrink:0})),xV=G(`strong`,{target:`ee8gipb3`})(({theme:e})=>({fontSize:e.fontSizes.md,"& p":{fontWeight:e.fontWeights.bold}})),SV=G(`div`,{target:`ee8gipb4`})({width:`100%`});function CV({icon:e,body:t,title:n,kind:r}){let i=fE(),a=e?{width:`calc(100% - (${i.iconSizes.lg} + ${i.spacing.sm}))`}:void 0,o=e?P(bV,{children:P(hT,{iconValue:e,size:`lg`,testid:`stAlertDynamicIcon`})}):null;return P(`div`,{className:`stAlert`,"data-testid":`stAlert`,children:P(JF,{kind:r,children:P(vV,{$hasTitle:!!n,children:n?F(Ht,{children:[F(yV,{children:[o,P(xV,{"data-testid":`stAlertTitle`,children:P(QL,{source:n,allowHTML:!1,isLabel:!0,inheritFont:!0})})]}),P(SV,{children:P(QL,{source:t,allowHTML:!1})})]}):F(Ht,{children:[o,P(QL,{source:t,allowHTML:!1,style:a})]})})})})}var wV=(0,_.memo)(CV),TV=e=>{let t=(0,_.useContext)(e);if(t==null)throw Error(`useRequiredContext: ${e.displayName??`context`} not found`);return t},EV=G(`div`,{target:`e183a4a60`})({display:`flex`}),DV=G(`div`,{target:`e183a4a61`})(({theme:e,border:t,overflow:n})=>({...t&&{border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,borderRadius:e.radii.default,padding:`calc(${e.spacing.lg} - ${e.sizes.borderWidth})`},width:`100%`,height:`100%`,overflow:n})),OV=G(`div`,{target:`e183a4a62`})(({theme:e})=>({marginTop:e.spacing.lg})),kV=`**Missing Submit Button** 113 114This form has no submit button, which means that user interactions will never be sent to your Streamlit app. 115 116To create a submit button, use the \`st.form_submit_button()\` function. 117 118For more information, refer to the [documentation for forms](https://docs.streamlit.io/develop/api-reference/execution-flow/st.form).`;function AV(e){let{formId:t,widgetMgr:n,children:r,clearOnSubmit:i,enterToSubmit:a,border:o,overflow:s}=e,{formsData:c}=TV(_V),l=c.submitButtons.get(t),u=l!==void 0&&l.length>0,{scriptRunState:d}=(0,_.useContext)(rT),f=d===nT.NOT_RUNNING;(0,_.useEffect)(()=>{n.setFormSubmitBehaviors(t,i,a)},[n,t,i,a]);let[p,m]=(0,_.useState)(!1);u&&p?m(!1):!u&&!p&&f&&m(!0);let h;return p&&(h=P(OV,{children:P(wV,{body:kV,kind:KF.ERROR})})),F(DV,{className:`stForm`,"data-testid":`stForm`,border:o,overflow:s,children:[r,h]})}var jV=(0,_.memo)(AV);function MV(e,t){let n=Math.sign(t-e),r=e+Math.sqrt(Math.abs(t-e))*n;return n>0?Math.min(t,r):Math.max(t,r)}function NV(e,t,n,r){let i=e;for(let e=0;e<r;e++)i=n(i,t);return i}function PV(e,t,n,r){let i=(0,_.useRef)(0),a=(0,_.useCallback)((n,r,o=Date.now())=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{if(e){let i=e.scrollHeight-e.offsetHeight,s=NV(n,i,MV,(Date.now()-o)/5);Math.abs(i-s)<1.5&&(s=i),e.scrollTop=s,i===s?t():a(n,r+1,o)}})},[i,t,e]),o=(0,_.useCallback)(()=>{cancelAnimationFrame(i.current),t()},[t]);(0,_.useLayoutEffect)(()=>
118{if(!(!e||!n||!r))return a(e.scrollTop,1),e?(e.addEventListener(`pointerdown`,o,{passive:!0}),e.addEventListener(`wheel`,o,{passive:!0}),()=>{e.removeEventListener(`pointerdown`,o),e.removeEventListener(`wheel`,o),cancelAnimationFrame(i.current)}):()=>cancelAnimationFrame(i.current)},[a,i,o,e,n,r])}var FV=100;function IV(e,t,n){let r=(0,_.useRef)(t),i=(0,_.useRef)(0),a=(0,_.useRef)();(0,_.useEffect)(()=>{r.current=t},[t]);let{clear:o,restart:s}=VF(()=>{a.current&&(r.current(a.current),a.current=void 0,i.current=Date.now())},FV,{autoStart:!1}),c=(0,_.useCallback)(e=>{let t=Date.now(),n=t-i.current;if(n>FV){o(),a.current=void 0,r.current(e),i.current=t;return}a.current=e,s(Math.max(0,FV-n))},[o,s]),l=(0,_.useCallback)(e=>{c({timeStampLow:Date.now(),target:e.target})},[c]);(0,_.useLayoutEffect)(()=>!e||!n?()=>{o(),a.current=void 0}:(e.addEventListener(`scroll`,l,{passive:!0}),c({timeStampLow:Date.now(),target:e}),()=>{e.removeEventListener(`scroll`,l),o(),a.current=void 0}),[n,o,c,l,e])}function LV(e){let[t,n]=(0,_.useState)(e),r=(0,_.useRef)(e);return r.current=t,[t,n,r]}var RV=1,zV=34,BV=17;function VV(e,t){return e(),setInterval(e,t)}function HV({scrollHeight:e,offsetHeight:t,scrollTop:n}){return e-n-t<RV}function UV(e){let t=(0,_.useRef)(null),[n,r,i]=LV(!1),[a,o,s]=LV(!0);(0,_.useEffect)(()=>{r(!0)},[r]);let c=(0,_.useRef)(0),l=(0,_.useRef)(0),u=(0,_.useRef)(0),d=(0,_.useCallback)(()=>{c.current=Date.now(),s.current||r(!1),o(!1)},[c,s,o,r]),f=(0,_.useCallback)(({timeStampLow:e})=>{let{current:n}=t,a=s.current;if(e<=c.current||!n)return;let d=HV(n),{offsetHeight:f,scrollHeight:p}=n,{current:m}=l,{current:h}=u,g=f!==m,_=p!==h;if(g&&(l.current=f),_&&(u.current=p),!g&&!_){let e=a||d;i.current!==e&&r(e)}else i.current&&(o(!0),r(!0))},[c,l,u,s,i,o,r]);return(0,_.useEffect)(()=>{if(t.current&&e){let e=0,n=VV(()=>{let{current:n}=t,a=s.current;i.current&&n?HV(n)?e=0:e?Date.now()-e>zV&&(a||(o(!0),r(!0)),e=0):e=Date.now():n&&n.scrollHeight<=n.offsetHeight&&!i.current&&r(!0)},BV);return()=>clearInterval(n)}},[t,n,a,s,i,r,o,e]),(0,_.useEffect)(()=>{let n=t.current;if(n&&e){let e=()=>{u.current=n.scrollHeight};return n.addEventListener(`focus`,e,{capture:!0,passive:!0}),()=>{n.removeEventListener(`focus`,e,{capture:!0})}}},[t,e]),IV(t.current,f,e),PV(t.current,d,a,e),t}var WV=(0,_.memo)(function({children:e}){return P(Ht,{children:e})},(e,t)=>!(e.enable||t.enable));function GV(e){switch(e){case so.Format.ERROR:return KF.ERROR;case so.Format.INFO:return KF.INFO;case so.Format.SUCCESS:return KF.SUCCESS;case so.Format.WARNING:return KF.WARNING;default:throw Error(`Unexpected alert type: ${e}`)}}var KV=(0,Zt.getLogger)(`useCopyToClipboard`),qV=({timeout:e=2e3}={})=>{let[t,n]=(0,_.useState)(!1),{restart:r}=VF((0,_.useCallback)(()=>{n(!1)},[]),t?e:null);return{isCopied:t,copyToClipboard:(0,_.useCallback)(e=>{(async()=>{try{await navigator.clipboard.writeText(e),n(!0),r()}catch(e){KV.error(`Failed to copy text to clipboard:`,e),n(!1)}})()},[r]),label:t?`Copied`:`Copy to clipboard`}},JV=G(`div`,{target:`ezyeuvd0`})(({theme:e})=>({marginTop:e.spacing.sm,"&:first-of-type":{marginTop:0}})),YV=G(`span`,{target:`ezyeuvd1`})(({theme:e})=>({fontWeight:e.fontWeights.bold})),XV=G(`div`,{target:`ezyeuvd2`})(({theme:e})=>({marginBottom:e.spacing.sm})),ZV=G(`div`,{target:`ezyeuvd3`})({display:`inline-block`,minWidth:`100%`}),QV=G(`div`,{target:`ezyeuvd4`})({wordWrap:`break-word`}),$V=G(`div`,{target:`ezyeuvd5`})(({theme:e})=>({fontSize:e.fontSizes.sm,display:`flex`,flexWrap:`wrap`,gap:e.spacing.md,justifyContent:`flex-end`})),eH=G(`button`,{target:`ezyeuvd6`})({all:`unset`,font:`inherit`,textDecoration:`underline`}),tH=G(`div`,{target:`ezyeuvd7`})(({theme:e})=>({display:`flex`,flexDirection:`column`,gap:e.spacing.lg}));function nH(e){return I(e)&&e!==``}function rH({type:e,message:t,messageIsMarkdown:n}){if(n){let n=t??``;return e.length!==0&&(n=`**${e}**: ${n}`),P(QL,{source:n,allowHTML:!1})}return F(Ht,{children:[P(YV,{children:e}),e.length!==0&&`: `,nH(t)?t:null]})}function iH({stackTrace:e}){return F(`div`,{children:[P(XV,{children:`Traceback:`}),P(YF,{children:P(ZV,{children:P(IF,{wrapLines:!1,children:e.map((e,t)=>P(JV,{"data-testid":`stExceptionTraceRow`,children:e},t))})})})]})}function aH({element:e}){let{showErrorLinks:t=Ko.ShowErrorLinks.SHOW_ERROR_LINKS_AUTO}=(0,_.useContext)(gT),n=t===Ko.ShowErrorLinks.SHOW_ERROR_LINKS_TRUE||t===Ko.ShowErrorLinks.SHOW_ERROR_LINKS_AUTO&&Va(),r=`${e.type}: ${e.message}`,i=`${r}\n\n${e.stackTrace?.join(` 119`)}`,a=`https://www.google.com/search?q=${encodeURIComponent(r)}`,o=`https://chatgpt.com/?q=${encodeURIComponent(i)}`,{copyToClipboard:s}=qV(),c=(0,_.useCallback)(()=>{s(i)},[s,i]);return P(`div`,{className:`stException`,"data-testid":`stException`,children:P(JF,{kind:e.isWarning?KF.WARNING:KF.ERROR,children:F(tH,{children:[P(QV,{"data-testid":`stExceptionMessage`,children:P(rH,{type:e.type,message:e.message,messageIsMarkdown:e.messageIsMarkdown})}),e.stackTrace&&e.stackTrace.length>0?P(iH,{stackTrace:e.stackTrace}):null,n&&F($V,{children:[P(eH,{onClick:c,children:`Copy`}),P(`a`,{href:a,target:`_blank`,rel:`noopener noreferrer`,children:`Ask Google`}),P(`a`,{href:o,target:`_blank`,rel:`noopener noreferrer`,children:`Ask ChatGPT`})]})]})})})}var oH=(0,_.memo)(aH),sH=G(`span`,{target:`e1xlgy2u0`})(({theme:e})=>({"& > *":{marginRight:e.spacing.sm}})),cH=G(`span`,{target:`e1xlgy2u1`})(({theme:e})=>({fontWeight:e.fontWeights.codeBold})),lH=G(`span`,{target:`e1xlgy2u2`})(({theme:e})=>({color:e.colors.codeTextColor})),uH=G(`span`,{target:`e1xlgy2u3`})(),dH=G(`span`,{target:`e1xlgy2u4`})(({theme:e})=>({display:`flex`,flexDirection:`column`,borderRadius:e.radii.default,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,fontFamily:e.genericFonts.codeFont,fontSize:e.fontSizes.codeFontSize,fontWeight:e.fontWeights.code})),fH=G(`div`,{target:`e1xlgy2u5`})(({theme:e})=>({padding:`${e.spacing.sm} ${e.spacing.lg}`,backgroundColor:e.colors.bgMix,borderBottom:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,borderTopLeftRadius:e.radii.default,borderTopRightRadius:e.radii.default,fontSize:e.fontSizes.codeFontSize,overflow:`auto`})),pH=G(`div`,{target:`e1xlgy2u6`})(({theme:e})=>({whiteSpace:`pre`,overflow:`auto`,maxHeight:`30.5rem`,padding:`${e.spacing.sm} ${e.spacing.lg}`,fontSize:e.fontSizes.codeFontSize,"&:not(:last-child)":{borderBottom:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`}})),mH=G(`table`,{target:`e1xlgy2u7`})(({theme:e})=>({width:`100%`,fontSize:e.fontSizes.codeFontSize,backgroundColor:e.colors.bgMix,tableLayout:`fixed`,borderCollapse:`collapse`,borderBottomLeftRadius:e.radii.default,borderBottomRightRadius:e.radii.default})),hH=G(`tr`,{target:`e1xlgy2u8`})(({theme:e})=>({"&:not(:last-child)":{borderBottom:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`}})),gH=G(`td`,{target:`e1xlgy2u9`})(({theme:e})=>({width:`30%`,overflow:`auto`,padding:`${e.spacing.sm} ${e.spacing.lg}`,"& > *":{marginRight:e.spacing.sm}})),_H=G(`td`,{target:`e1xlgy2u10`})(({theme:e})=>({width:`70%`,overflow:`auto`,padding:`${e.spacing.sm} ${e.spacing.lg}`})),vH=(0,_.memo)(function({member:e}){let{name:t,type:n,value:r,docString:i}=e;return F(hH,{"data-testid":`stHelpMember`,children:[F(gH,{children:[t?P(cH,{"data-testid":`stHelpMemberDocName`,children:t}):null,n?P(lH,{"data-testid":`stHelpMemberDocType`,children:n}):null]}),P(_H,{children:r?P(uH,{"data-testid":`stHelpMemberDocValue`,children:r}):P(uH,{"data-testid":`stHelpMemberDocString`,children:i||`No docs available`})})]})});function yH({element:e}){let{name:t,type:n,value:r,docString:i,members:a}=e;return F(dH,{className:`stHelp`,"data-testid":`stHelp`,children:[P(fH,{children:F(sH,{children:[t?P(cH,{"data-testid":`stHelpName`,children:t}):null,n?P(lH,{"data-testid":`stHelpType`,children:n}):null,r?P(uH,{"data-testid":`stHelpValue`,children:r}):null]})}),P(pH,{"data-testid":`stHelpDoc`,children:i||`No docs available`}),a.length>0?P(mH,{"data-testid":`stHelpMembersTable`,children:P(`tbody`,{children:a.map(e=>P(vH,{member:e},e.name))})}):null]})}
119var bH=(0,_.memo)(yH),xH=/^:\w+-badge\[((?:\\.|[^\]\\])*)\]$/;function SH({element:e}){let{allowHtml:t,body:n,elementType:r,help:i,unterminatedParsing:a}=e,o=r===jo.Type.CAPTION,s=r===jo.Type.LATEX,c=r===jo.Type.NATIVE&&xH.test(n.trim()),l;return l=i&&c?P(kR,{help:i,containerWidth:!1,children:P(QL,{isCaption:o,source:n,allowHTML:t,unterminatedParsing:a})}):i&&s?F(pL,{isLatex:s,children:[P(QL,{isCaption:o,source:n,allowHTML:t,unterminatedParsing:a}),P(gL,{content:i,isLatex:s})]}):i&&t?F(pL,{children:[P(QL,{isCaption:o,source:n,allowHTML:t,unterminatedParsing:a}),P(gL,{content:i})]}):P(pL,{isLatex:s,children:P(QL,{isCaption:o,source:i?`${n} :help[]`:n,allowHTML:t,helpText:i,unterminatedParsing:a})}),P(`div`,{className:`stMarkdown`,"data-testid":`stMarkdown`,children:l})}var CH=(0,_.memo)(SH),wH=G(`span`,{target:`e1fbzn630`})(({theme:e})=>({fontFamily:e.genericFonts.bodyFont,color:e.colors.bodyText,whiteSpace:`pre-line`,whiteSpaceCollapse:`preserve`,wordBreak:`break-word`,display:`inline-block`,verticalAlign:`middle`,width:`100%`})),TH=G(`span`,{target:`e1fbzn631`})(({theme:e})=>({display:`inline-block`,verticalAlign:`middle`,marginLeft:e.spacing.twoXS,transform:`translateY(-0.05em)`}));function EH({element:e}){return P(pL,{className:`stText`,"data-testid":`stText`,children:F(wH,{children:[e.body,e.help&&P(TH,{children:P(gL,{content:e.help})})]})})}var DH=(0,_.memo)(EH),OH=c({});function kH(e,t){switch(e.toLowerCase()){case AL.H1:return`# ${t}`;case AL.H2:return`## ${t}`;case AL.H3:return`### ${t}`;default:throw Error(`Unrecognized tag for header: ${e}`)}}var AH={p:_.Fragment,h1:_.Fragment,h2:_.Fragment,h3:_.Fragment,h4:_.Fragment,h5:_.Fragment,h6:_.Fragment};function jH(e){let{element:t}=e,{tag:n,anchor:r,body:i,help:a,hideAnchor:o,divider:s}=t,c=(0,_.useContext)(hE),l=(0,_.useContext)(Yg),[u,...d]=i.split(` 120`);return F(`div`,{className:`stHeading`,"data-testid":`stHeading`,children:[F(bL,{isCaption:!1,isInDialog:c,isInHorizontalLayout:l?.isInHorizontalLayout,"data-testid":`stMarkdownContainer`,children:[P(jL,{anchor:r,help:a,hideAnchor:o,tag:n,children:P(ZL,{allowHTML:!1,source:kH(n,u),overrideComponents:AH})}),d.length>0&&P(ZL,{source:d.join(` 121`),allowHTML:!1})]}),s&&P(Fge,{"data-testid":`stHeadingDivider`,rainbow:s.includes(`linear`),color:s})]})}var MH=(0,_.createContext)({isFullScreen:!1,setFullScreen:()=>{}});MH.displayName=`ViewStateContext`;var NH=G(`div`,{target:`etdahpg0`})(({theme:e})=>({display:`flex`,alignItems:`center`,minHeight:e.sizes.smallElementHeight})),PH=G(`div`,{target:`etdahpg1`})(({visibility:e})=>({display:e===jg.Collapsed?`none`:`flex`,visibility:e===jg.Hidden?`hidden`:`visible`,verticalAlign:`middle`,flexDirection:`row`,alignItems:`center`}));function FH(e,t){switch(e){case co.GapSize.XXSMALL:return t.spacing.twoXS;case co.GapSize.XSMALL:return t.spacing.sm;case co.GapSize.SMALL:return t.spacing.lg;case co.GapSize.MEDIUM:return t.spacing.threeXL;case co.GapSize.LARGE:return t.spacing.fourXL;case co.GapSize.XLARGE:return t.spacing.fiveXL;case co.GapSize.XXLARGE:return t.spacing.sixXL;case co.GapSize.NONE:return t.spacing.none;default:return t.spacing.lg}}var IH=G(`div`,{target:`e1rw0b1u0`})({width:`100%`,height:`100%`}),LH=[`balloons`,`snow`],RH=G(`div`,{target:`e1rw0b1u1`})(({theme:e,isStale:t,width:n,height:r,elementType:i,overflow:a,flex:o,minWidth:s,textAlign:c})=>({width:n,height:r,textAlign:c,maxWidth:`100%`,minWidth:n===`0px`?0:s??`1rem`,position:`relative`,overflow:a,flex:o,"@media print":{overflow:`visible`},":has(> .stCacheSpinner)":{height:e.spacing.none,overflow:`visible`,visibility:`visible`,marginBottom:`-${e.spacing.lg}`,zIndex:e.zIndices.cacheSpinner},":has(> .stPageLink)":{marginTop:`-${e.spacing.xs}`,marginBottom:`-${e.spacing.xs}`},...t&&i!==`skeleton`&&dR,...i===`empty`?{display:`none`}:{},...i===`space`?{minWidth:0,minHeight:0}:{},...LH.includes(i)?{marginBottom:`-${e.spacing.lg}`}:{}})),zH=G(`div`,{target:`e1rw0b1u2`})(({theme:e,weight:t,gap:n,showBorder:r,verticalAlignment:i})=>{let{VerticalAlignment:a}=Co.Column,o=t*100,s=FH(n,e),c=s===e.spacing.none?`${o}%`:`calc(${o}% - ${s})`;return{width:c,flex:`1 1 ${c}`,[`@media (max-width: ${e.breakpoints.columns})`]:{minWidth:`calc(100% - ${e.spacing.twoXL})`},...i===a.BOTTOM&&{marginTop:`auto`,[`& ${RH}:last-of-type > ${NH}`]:{marginBottom:e.spacing.sm}},...i===a.TOP&&{[`& ${RH}:first-of-type > ${NH}`]:{marginTop:e.spacing.sm}},...i===a.CENTER&&{marginTop:`auto`,marginBottom:`auto`},...r&&{border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,borderRadius:e.radii.default,padding:`calc(${e.spacing.lg} - ${e.sizes.borderWidth})`}}
121}),BH=e=>{switch(e){case Co.FlexContainer.Align.ALIGN_START:return`start`;case Co.FlexContainer.Align.ALIGN_CENTER:return`center`;case Co.FlexContainer.Align.ALIGN_END:return`end`;case Co.FlexContainer.Align.STRETCH:return`stretch`;case Co.FlexContainer.Align.ALIGN_UNDEFINED:case void 0:case null:return`stretch`;default:return ag(e)}},VH=e=>{switch(e){case Co.FlexContainer.Justify.JUSTIFY_START:return`start`;case Co.FlexContainer.Justify.JUSTIFY_CENTER:return`center`;case Co.FlexContainer.Justify.JUSTIFY_END:return`end`;case Co.FlexContainer.Justify.SPACE_BETWEEN:return`space-between`;case Co.FlexContainer.Justify.JUSTIFY_UNDEFINED:case void 0:case null:return`start`;default:return ag(e)}},HH=G(`div`,{target:`e1rw0b1u3`})(({theme:e,direction:t,gap:n,flex:r,$wrap:i,height:a,border:o,align:s,justify:c,overflow:l})=>{let u;return n!==void 0&&(u=FH(n,e)),{display:`flex`,gap:u,width:`100%`,maxWidth:`100%`,height:a??`auto`,minWidth:`1rem`,flexDirection:t,flex:r,alignItems:BH(s),justifyContent:VH(c),flexWrap:i?`wrap`:`nowrap`,...o&&{border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,borderRadius:e.radii.default,padding:`calc(${e.spacing.lg} - ${e.sizes.borderWidth})`},overflow:l}}),UH=G(`div`,{target:`e1rw0b1u4`})(({width:e,height:t,flex:n})=>({display:`flex`,flexDirection:`column`,width:e,maxWidth:`100%`,minWidth:`1rem`,height:t,flex:n})),WH=({node:e,config:t,...n})=>{let{isInHorizontalLayout:r}=TV(Yg),i=(0,_.useMemo)(()=>t.computeStyleOverrides(),[t]),a=(0,_.useMemo)(()=>t.getMinStretchBehavior(),[t]),o=tT({element:e.element,subElement:Qw(e.element),styleOverrides:i,minStretchBehavior:a});return e.element.type===`space`&&(o=r?{...o,height:`auto`}:{...o,width:`auto`}),P(RH,{...n,...o})},GH=(0,_.memo)(function({node:e,config:t,isStale:n,children:r}){let{isFullScreen:i}=(0,_.useContext)(MH),a=e.element.type||``;return P(WH,{className:(0,Kg.default)(`stElementContainer`,`element-container`,iV(aV(kg(e.element)))),"data-testid":`stElementContainer`,"data-stale":n,isStale:n&&!i,elementType:a,node:e,config:t,children:P(ZF,{children:P(_.Suspense,{fallback:P(GF,{element:Fo.create({style:Fo.SkeletonStyle.ELEMENT})}),children:r})})})}),KH=function(e){return e.LARGE=`14rem`,e.MEDIUM=`8rem`,e.FIT_CONTENT=`fit-content`,e.NONE=`none`,e}({}),Y=class e{static{this.DEFAULT=new e({})}static{this.LARGE_ELEMENT=new e({minStretchWidth:`14rem`})}static{this.MEDIUM_ELEMENT=new e({minStretchWidth:`8rem`})}static{this.FIT_CONTENT_ELEMENT=new e({minStretchWidth:`fit-content`})}static{this.FULL_WIDTH=new e({styleOverrides:{width:`100%`}})}static{this.LARGE_OVERFLOW_VISIBLE=new e({minStretchWidth:`14rem`,styleOverrides:{overflow:`visible`}})}constructor(e={}){this.minStretchWidth=e.minStretchWidth??`none`,this.styleOverrides=e.styleOverrides}with(t){return new e({minStretchWidth:t.minStretchWidth??this.minStretchWidth,styleOverrides:t.styleOverrides===void 0?this.styleOverrides:{...this.styleOverrides,...t.styleOverrides}})}computeStyleOverrides(){return this.styleOverrides??{}}getMinStretchBehavior(){return this.minStretchWidth===`none`?void 0:this.minStretchWidth}},qH=(0,_.lazy)(()=>CL(()=>import(`./Table.Dvqmsc8I.js`),__vite__mapDeps([7,8,9,10,11]),import.meta.url)),JH=(0,_.lazy)(()=>CL(()=>import(`./ArrowVegaLiteChart.DsP3UX0J.js`),__vite__mapDeps([12,13,14,15,16,17,18,8,9,10,11,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url)),YH=(0,_.lazy)(()=>CL(()=>import(`./Audio.DKv5NaCU.js`),[],import.meta.url)),XH=(0,_.lazy)(()=>CL(()=>import(`./Balloons.BCjQXBJE.js`),__vite__mapDeps([32,33]),import.meta.url)),ZH=(0,_.lazy)(()=>CL(()=>import(`./DeckGlJsonChart.CTNT18ux.js`),__vite__mapDeps([34,17,35,25,14,15,28,36]),import.meta.url)),QH=(0,_.lazy)(()=>CL(()=>import(`./GraphVizChart.Bllt1Ft5.js`),__vite__mapDeps([37,17,15,16]),import.meta.url)),$H=(0,_.lazy)(()=>CL(()=>import(`./Html.oJkhUkEr.js`),[],import.meta.url)),eU=(0,_.lazy)(()=>CL(()=>import(`./IFrame.BTtn53Z-.js`),__vite__mapDeps([38,39]),import.meta.url)),tU=(0,_.lazy)(()=>CL(()=>import(`./ImageList.Cf-EPneU.js`),__vite__mapDeps([40,17]),import.meta.url)),nU=(0,_.lazy)(()=>CL(()=>import(`./Json.u4FUnqt5.js`),__vite__mapDeps([41,23,24,28]),import.meta.url)),rU=(0,_.lazy)(()=>CL(()=>import(`./LinkButton.DxA99x2a.js`),__vite__mapDeps([42,43]),import.meta.url)),iU=(0,_.lazy)(()=>CL(()=>import(`./Metric.BruI98GJ.js`),__vite__mapDeps([44,13,14,15,16,21,22,11]),import.meta.url)),aU=(0,_.lazy)(()=>CL(()=>import(`./PageLink.C2ii4mfx.js`),__vite__mapDeps([45,43]),import.meta.url)),oU=(0,_.lazy)(()=>CL(()=>import(`./PlotlyChart.DE72Bh5O.js`),__vite__mapDeps([46,17,24]),import.meta.url)),sU=(0,_.lazy)(()=>CL(()=>import(`./Progress.COTepsCQ.js`),__vite__mapDeps([47,48]),import.meta.url)),cU=(0,_.lazy)(()=>CL(()=>import(`./Snow.BYLr0edY.js`),__vite__mapDeps([49,33]),import.meta.url)),lU=(0,_.lazy)(()=>CL(()=>import(`./Spinner.Bhf5zkTL.js`),[],import.meta.url)),uU=(0,_.lazy)(()=>CL(()=>import(`./StreamlitSyntaxHighlighter.m6pCiOx6.js`),__vite__mapDeps([6,1]),import.meta.url)),dU=(0,_.lazy)(()=>CL(()=>import(`./Toast.D6_XSULo.js`),[],import.meta.url)),fU=(0,_.lazy)(()=>CL(()=>import(`./Video.BCEttUSn.js`),[],import.meta.url)),pU=(0,_.lazy)(()=>CL(()=>import(`./AudioInput.DCUCqL6V.js`),__vite__mapDeps([50,51,52,19,26,53]),import.meta.url)),mU=(0,_.lazy)(()=>CL(()=>
121import(`./DataFrame.Dqn1eUs1.js`).then(e=>e.n),__vite__mapDeps([18,17,8,9,10,11,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url)),hU=(0,_.lazy)(()=>CL(()=>import(`./Button.D0kRCRsF.js`),__vite__mapDeps([54,43]),import.meta.url)),gU=(0,_.lazy)(()=>CL(()=>import(`./ButtonGroup.C-5OFb1K.js`),__vite__mapDeps([55,35]),import.meta.url)),_U=(0,_.lazy)(()=>CL(()=>import(`./ComponentInstance.DsmFJHtV.js`),__vite__mapDeps([56,57,52,39]),import.meta.url)),vU=(0,_.lazy)(()=>CL(()=>import(`./CameraInput.l7STegSi.js`),__vite__mapDeps([58,48,59,52]),import.meta.url)),yU=(0,_.lazy)(()=>CL(()=>import(`./ChatInput.Cc_cBlnM.js`),__vite__mapDeps([60,51,61,59,62,63,31,64,65,66,53]),import.meta.url)),bU=(0,_.lazy)(()=>CL(()=>import(`./Checkbox.CG2u7VZC.js`),__vite__mapDeps([67,35,27]),import.meta.url)),xU=(0,_.lazy)(()=>CL(()=>import(`./ColorPicker.BVI1RUj8.js`),__vite__mapDeps([68,35]),import.meta.url)),SU=(0,_.lazy)(()=>CL(()=>import(`./DateInput.DUiBPN6F.js`),__vite__mapDeps([69,70,71,65,72,35,63,10]),import.meta.url)),CU=(0,_.lazy)(()=>CL(()=>import(`./DateTimeInput.CMDzUm2n.js`),__vite__mapDeps([73,74,70,71,65,72,35,63,10]),import.meta.url)),wU=(0,_.lazy)(()=>CL(()=>import(`./DownloadButton.BFV-IdVs.js`),__vite__mapDeps([75,43,19]),import.meta.url)),TU=(0,_.lazy)(()=>CL(()=>
121import(`./Feedback.CNkRs1-z.js`),__vite__mapDeps([76,35]),import.meta.url)),EU=(0,_.lazy)(()=>CL(()=>import(`./FileUploader.tT_CsfpY.js`),__vite__mapDeps([77,59,62,63,31,53]),import.meta.url)),DU=(0,_.lazy)(()=>CL(()=>import(`./FormSubmitContent.CncrHuwk.js`).then(e=>({default:e.FormSubmitContent})),__vite__mapDeps([78,43]),import.meta.url)),OU=(0,_.lazy)(()=>CL(()=>import(`./Multiselect.-_yiHvfM.js`),__vite__mapDeps([79,35,29,9]),import.meta.url)),kU=(0,_.lazy)(()=>CL(()=>import(`./MenuButton.Bs5qNFhL.js`),[],import.meta.url)),AU=(0,_.lazy)(()=>CL(()=>import(`./NumberInput.C2RC3TUO.js`),__vite__mapDeps([80,61,35,22,72,65]),import.meta.url)),jU=(0,_.lazy)(()=>CL(()=>import(`./Pagination.1Lva0_GS.js`),__vite__mapDeps([81,35]),import.meta.url)),MU=(0,_.lazy)(()=>CL(()=>import(`./Radio.CUhr8Ytd.js`),__vite__mapDeps([82,35]),import.meta.url)),NU=(0,_.lazy)(()=>CL(()=>import(`./Selectbox.BVJhx6w-.js`),__vite__mapDeps([83,35]),import.meta.url)),PU=(0,_.lazy)(()=>CL(()=>import(`./Slider.BQM0-JZh.js`),__vite__mapDeps([84,57,35,20,21,22,11,10]),import.meta.url)),FU=(0,_.lazy)(()=>CL(()=>import(`./TextArea.D19944vu.js`),__vite__mapDeps([85,61,35,86,66,64,65]),import.meta.url)),IU=(0,_.lazy)(()=>CL(()=>import(`./TextInput.Cyh_WsIr.js`),__vite__mapDeps([87,61,35,86,66,72,65]),import.meta.url)),LU=(0,_.lazy)(()=>CL(()=>import(`./TimeInput.DrjtlXkN.js`),__vite__mapDeps([88,74,35,71]),import.meta.url)),RU=(0,_.lazy)(()=>CL(()=>import(`./BidiComponent.CkIPSJhn.js`),[],import.meta.url));function zU(e,t){return e?P(Ht,{}):t}var BU=e=>{let{node:t,isStale:n}=e,{isInRoot:r,isInHorizontalLayout:i}=TV(Yg);if(!t)throw Error(`ElementNode not found.`);let a={disableFullscreenMode:e.disableFullscreenMode,widthConfig:t.element.widthConfig,heightConfig:t.element.heightConfig},o={...a,widgetMgr:e.widgetMgr,disabled:e.widgetsDisabled,fragmentId:t.fragmentId,componentRegistry:e.componentRegistry};switch(t.element.type){case`alert`:{let e=t.element.alert;return P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(wV,{icon:e.icon,body:e.body,title:e.title,kind:GV(e.format),...a})})}case`table`:{let e=t.element.table;return P(GH,{node:t,config:Y.LARGE_ELEMENT,isStale:n,children:P(qH,{element:e,elementHash:t.elementHash,...a})})}case`audio`:return P(GH,{node:t,config:Y.LARGE_ELEMENT,isStale:n,children:P(YH,{element:t.element.audio,endpoints:e.endpoints,...a,elementMgr:e.widgetMgr})});case`balloons`:return zU(n,P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(XH,{scriptRunId:t.scriptRunId})}));case`code`:{let e=t.element.code;return P(GH,{node:t,config:Y.LARGE_ELEMENT,isStale:n,children:P(uU,{language:e.language,showLineNumbers:e.showLineNumbers,wrapLines:e.wrapLines,children:e.codeText})})}case`deckGlJsonChart`:{let e=t.element.deckGlJsonChart;return P(GH,{node:t,config:Y.LARGE_OVERFLOW_VISIBLE,isStale:n,children:P(ZH,{element:e,...o},e.id||void 0)})}case`helpInfo`:return P(GH,{node:t,config:Y.LARGE_ELEMENT,isStale:n,children:P(bH,{element:t.element.helpInfo,...a})});case`empty`:return P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(`div`,{className:`stEmpty`,"data-testid":`stEmpty`})});case`exception`:return P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(oH,{element:t.element.exception,...a})});case`graphvizChart`:return P(GH,{node:t,config:Y.LARGE_OVERFLOW_VISIBLE,isStale:n,children:P(QH,{element:t.element.graphvizChart,...a})});case`heading`:return P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(jH,{element:t.element.heading,...a})});case`iframe`:return P(GH,{node:t,config:Y.LARGE_OVERFLOW_VISIBLE,isStale:n,children:P(eU,{element:t.element.iframe,...a})});case`imgs`:return P(GH,{node:t,config:!t.element.widthConfig||t.element.widthConfig.useStretch?Y.FULL_WIDTH:new Y({styleOverrides:{width:`auto`}}),isStale:n,children:P(tU,{element:t.element.imgs,endpoints:e.endpoints,...a})});case`json`:return P(GH,{node:t,config:Y.LARGE_ELEMENT,isStale:n,children:P(nU,{element:t.element.json,...a})});case`markdown`:return P(GH,{node:t,config:t.element.widthConfig?Y.DEFAULT:i?new Y({styleOverrides:{width:`fit-content`}}):Y.FULL_WIDTH,isStale:n,children:P(CH,{element:t.element.markdown,...a})});case`metric`:{let e=t.element.metric;return P(GH,{node:t,config:e.chartData&&e.chartData.length>0?Y.LARGE_ELEMENT:Y.DEFAULT,isStale:n,children:P(iU,{element:e,...a})})}case`html`:return P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P($H,{element:t.element.html,...a})});case`pageLink`:{let e=t.element.pageLink,r=o.disabled||e.disabled;return P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(aU,{element:e,disabled:r,...a})})}case`progress`:return P(GH,{node:t,config:Y.MEDIUM_ELEMENT,isStale:n,children:P(sU,{element:t.element.progress,...a})});case`skeleton`:return P(GH,{node:t,config:Y.FULL_WIDTH,isStale:n,children:P(GF,{element:t.element.skeleton})});case`snow`:return zU(n,P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(cU,{scriptRunId:t.scriptRunId})}));case`space`:return P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(IH,{className:`stSpace`,"data-testid":`stSpace`})});case`spinner`:return P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(lU,{element:t.element.spinner,...a})});case`text`:return P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(DH,{element:t.element.text,...a})});case`video`:return P(GH,{node:t,config:Y.LARGE_ELEMENT,isStale:n,children:P(fU,{element:t.element.video,endpoints:e.endpoints,...a,elementMgr:e.widgetMgr})});case`toast`:{let e=t.element.toast;return P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(dU,{element:e,...a},t.scriptRunId)})}case`dataframe`:{let e=t.element.dataframe;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:t.element.widthConfig?.useContent&&r?new Y({minStretchWidth:KH.LARGE,styleOverrides:{overflow:`visible`,width:`100%`}}):Y.LARGE_OVERFLOW_VISIBLE,isStale:n,children:P(mU,{element:e,elementHash:t.elementHash,...o}
121,e.id||void 0)})}case`vegaLiteChart`:{let e=t.element.vegaLiteChart,a=t.element.widthConfig?.useContent&&r,s=i&&!t.element.widthConfig;return P(GH,{node:t,config:a||s?new Y({minStretchWidth:KH.LARGE,styleOverrides:{overflow:`visible`,...a&&{width:`100%`},...s&&{flex:`1 1 14rem`}}}):Y.LARGE_OVERFLOW_VISIBLE,isStale:n,children:P(JH,{element:e,elementHash:t.elementHash,...o},e.id||void 0)})}case`audioInput`:{let r=t.element.audioInput;return o.disabled=o.disabled||r.disabled,P(GH,{node:t,config:Y.LARGE_ELEMENT,isStale:n,children:P(pU,{uploadClient:e.uploadClient,element:r,...o},r.id)})}case`button`:{let e=t.element.button;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:e.isFormSubmitter?P(DU,{element:e,...o}):P(hU,{element:e,...o})})}case`buttonGroup`:{let e=t.element.buttonGroup;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.LARGE_ELEMENT,isStale:n,children:P(gU,{element:e,...o},e.id)})}case`downloadButton`:{let r=t.element.downloadButton;return o.disabled=o.disabled||r.disabled,P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(wU,{endpoints:e.endpoints,element:r,...o},r.id)})}case`feedback`:{let e=t.element.feedback;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.FIT_CONTENT_ELEMENT,isStale:n,children:P(TU,{element:e,...o},e.id)})}case`pagination`:{let e=t.element.pagination;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.FULL_WIDTH,isStale:n,children:P(jU,{element:e,...o},e.id)})}case`cameraInput`:{let r=t.element.cameraInput;return o.disabled=o.disabled||r.disabled,P(GH,{node:t,config:Y.LARGE_ELEMENT,isStale:n,children:P(vU,{element:r,uploadClient:e.uploadClient,...o},r.id)})}case`chatInput`:{let r=t.element.chatInput;o.disabled=o.disabled||r.disabled;let a=t.element.heightConfig;return P(GH,{node:t,config:new Y({minStretchWidth:KH.MEDIUM,styleOverrides:a?.useStretch?{height:`100%`,flex:`1 1 8rem`}:a?.pixelHeight?{height:`auto`,overflow:`visible`,...i?{}:{flex:``}}:void 0}),isStale:n,children:P(yU,{element:r,uploadClient:e.uploadClient,...o},r.id)})}case`checkbox`:{let e=t.element.checkbox;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(bU,{element:e,...o},e.id)})}case`colorPicker`:{let e=t.element.colorPicker;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(xU,{element:e,...o},e.id)})}case`componentInstance`:return P(GH,{node:t,config:Y.FULL_WIDTH,isStale:n,children:P(_U,{element:t.element.componentInstance,...o})});case`dateInput`:{let e=t.element.dateInput;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.MEDIUM_ELEMENT,isStale:n,children:P(SU,{element:e,...o},e.id)})}case`fileUploader`:{let r=t.element.fileUploader;return o.disabled=o.disabled||r.disabled,P(GH,{node:t,config:Y.LARGE_ELEMENT,isStale:n,children:P(EU,{element:r,uploadClient:e.uploadClient,...o},r.id)})}case`linkButton`:{let r=t.element.linkButton;return P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(rU,{element:r,widgetMgr:e.widgetMgr,fragmentId:t.fragmentId})})}case`multiselect`:{let e=t.element.multiselect;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.MEDIUM_ELEMENT,isStale:n,children:P(OU,{element:e,...o},e.id)})}case`menuButton`:{let e=t.element.menuButton;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(kU,{element:e,...o})})}case`numberInput`:{let e=t.element.numberInput;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.MEDIUM_ELEMENT,isStale:n,children:P(AU,{element:e,...o},e.id)})}case`plotlyChart`:{let e=t.element.plotlyChart;return P(GH,{node:t,config:Y.LARGE_ELEMENT,isStale:n,children:P(oU,{element:e,...o},e.id)})}case`radio`:{let e=t.element.radio;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.MEDIUM_ELEMENT,isStale:n,children:P(MU,{element:e,...o},e.id)})}case`selectbox`:{let e=t.element.selectbox;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.MEDIUM_ELEMENT,isStale:n,children:P(NU,{element:e,...o},e.id)})}case`slider`:{let e=t.element.slider;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.MEDIUM_ELEMENT,isStale:n,children:P(PU,{element:e,...o}
121,e.id)})}case`textArea`:{let e=t.element.textArea;o.disabled=o.disabled||e.disabled;let r=t.element.heightConfig?.useStretch;return P(GH,{node:t,config:new Y({minStretchWidth:KH.MEDIUM,styleOverrides:r?{height:`100%`,flex:`1 1 8rem`}:{height:`auto`,...i?{}:{flex:``}}}),isStale:n,children:P(FU,{element:e,outerElement:t.element,...o},e.id)})}case`textInput`:{let e=t.element.textInput;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.MEDIUM_ELEMENT,isStale:n,children:P(IU,{element:e,...o},e.id)})}case`dateTimeInput`:{let e=t.element.dateTimeInput;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(CU,{element:e,...o},e.id)})}case`timeInput`:{let e=t.element.timeInput;return o.disabled=o.disabled||e.disabled,P(GH,{node:t,config:Y.MEDIUM_ELEMENT,isStale:n,children:P(LU,{element:e,...o},e.id)})}case`bidiComponent`:{let e=t.element.bidiComponent;return P(GH,{node:t,config:Y.DEFAULT,isStale:n,children:P(RU,{element:e,...o},e.id)})}default:throw Error(`Unrecognized Element type ${t.element.type}`)}},VU=e=>{let{scriptRunState:t,scriptRunId:n,fragmentIdsThisRun:r}=(0,_.useContext)(rT),{node:i}=e,a=eV(i.element.type||``,t),o=nV(a,i,t,n,r);return P(WV,{enable:a,children:P(BU,{...e,isStale:o})})},HU=class e{constructor(e,t){this.props=e,this.elementKeyOverride=t,this.elementKeySet=new Set,this.reactElements=[],this.index=0,this.transientElementCount=0}getCurrentKey(e){return this.elementKeyOverride||e||this.index.toString()}conformToArray(e){return e?Array.isArray(e)?e:[e]:[]}visitBlockNode(e){let t={...this.props,node:e},n=this.getCurrentKey(e.deltaBlock?.id||void 0);this.index+=1;let r=P(JU,{...t},n);return this.reactElements.push(r),r}visitTransientNode(t){let n=[];t.transientNodes.forEach(t=>{let r=this.getCurrentKey(`transient-${this.transientElementCount}`);this.transientElementCount+=1;let i=t.accept(new e(this.props,r));n.push(...this.conformToArray(i))}),this.reactElements.push(...n);let r=t.anchor?.accept(this);return n.push(...this.conformToArray(r)),n}visitElementNode(e){let t={...this.props,node:e},n=this.getCurrentKey(kg(e.element));if(this.index+=1,this.elementKeySet.has(n))return null;this.elementKeySet.add(n);let r=P(VU,{...t},n);return this.reactElements.push(r),r}static collectReactElements(t){if(!t.node.children)return[];let n=new e(t);return t.node.children.forEach(e=>e.accept(n)),n.reactElements}},UU=e=>{rV(e.node,fE());let{node:t,widgetsDisabled:n,disableFullscreenMode:r,endpoints:i,widgetMgr:a,uploadClient:o,componentRegistry:s}=e;return P(Ht,{children:(0,_.useMemo)(()=>HU.collectReactElements({node:t,widgetsDisabled:n,disableFullscreenMode:r,endpoints:i,widgetMgr:a,uploadClient:o,componentRegistry:s}),[t,n,r,i,a,o,s])})},WU=e=>{let t=(0,_.useContext)(Yg),n={direction:qg.VERTICAL,flex:1,gap:co.GapSize.SMALL,height:e.height,border:!1};return P(Xg,{direction:qg.VERTICAL,isRoot:e.isRoot,parentContext:t,children:P(HH,{...n,className:$B(qg.VERTICAL),"data-testid":$B(qg.VERTICAL),children:P(UU,{...e})})})},GU=e=>{let t=Mne(e.node.deltaBlock),n=(0,_.useContext)(Yg),r=cV(e.node),i=UV(r),a=tT({element:e.node.deltaBlock,subElement:Qw(e.node.deltaBlock)}),o={gap:e.node.deltaBlock.flexContainer?.gapConfig?.gapSize??co.GapSize.SMALL,direction:t,$wrap:e.node.deltaBlock.flexContainer?.wrap??!1,overflow:a.overflow,border:lV(e.node.deltaBlock),height:a.height,flex:`1`,align:e.node.deltaBlock.flexContainer?.align,justify:e.node.deltaBlock.flexContainer?.justify},s=aV(e.node.deltaBlock.id);return P(Xg,{direction:t,parentWidth:e.node.deltaBlock.widthConfig?.pixelWidth??void 0,hasContentWidth:e.node.deltaBlock.widthConfig?.useContent??!1,hasFixedWidth:(e.node.deltaBlock.widthConfig?.pixelWidth??0)>0||(e.node.deltaBlock.widthConfig?.remWidth??0)>0,parentContext:n,children:P(HH,{...o,className:(0,Kg.default)($B(t),iV(s)),"data-testid":$B(t),ref:i,"data-test-scroll-behavior":r?`scroll-to-bottom`:`normal`,children:P(UU,{...e})})})},KU=[`tabContainer`],qU=[`chatInput`],JU=e=>{let{node:t}=e,{scriptRunState:n,scriptRunId:r,fragmentIdsThisRun:i}=(0,_.useContext)(rT),a;KU.includes(t.deltaBlock.type??``)?a=`14rem`:qU.includes(t.deltaBlock.type??``)?a=`8rem`:t.deltaBlock.type===`chatMessage`?t.isEmpty&&(a=`8rem`):(t.deltaBlock.type===`flexContainer`||t.deltaBlock.column||t.deltaBlock.expandable)&&(t.isEmpty||(a=`8rem`));let o=tT({element:t.deltaBlock,subElement:Qw(t.deltaBlock),minStretchBehavior:a});if(t.isEmpty&&!t.deltaBlock.allowEmpty)return P(Ht,{});let s=nV(eV(``,n),t,n,r,i),c={...e,node:t},l=e.disableFullscreenMode||I(t.deltaBlock.dialog)||I(t.deltaBlock.popover),u,d=!1,f=aV(t.deltaBlock.id),p=P(WU,{...c,disableFullscreenMode:l,height:`100%`});if(sV(t.deltaBlock)&&(u=P(GU,{...c})),t.deltaBlock.dialog)return P(iR,{element:t.deltaBlock.dialog,deltaMsgReceivedAt:t.deltaMsgReceivedAt,widgetMgr:e.widgetMgr,fragmentId:t.fragmentId,children:p});if(t.deltaBlock.expandable&&(d=!0,u=P(TR,{isStale:s,element:t.deltaBlock.expandable,widgetMgr:e.widgetMgr,blockId:t.deltaBlock.id||void 0,fragmentId:t.fragmentId,children:p})),t.deltaBlock.popover&&(d=!0,u=P(Rz,{empty:t.isEmpty,element:t.deltaBlock.popover,stretchWidth:Jg(t.deltaBlock.widthConfig),widgetMgr:e.widgetMgr,blockId:t.deltaBlock.id||void 0,fragmentId:t.fragmentId,children:p})),t.deltaBlock.type===`form`){let{formId:n,clearOnSubmit:r,enterToSubmit:i,border:a}=t.deltaBlock.form;u=P(jV,{formId:n,clearOnSubmit:r,enterToSubmit:i,widgetMgr:e.widgetMgr,border:a,overflow:o.overflow,children:p})}if(t.deltaBlock.chatMessage&&(u=P(loe,{element:t.deltaBlock.chatMessage,endpoints:e.endpoints,children:p})),t.deltaBlock.column)return P(zH,{weight:t.deltaBlock.column.weight??0,gap:oV(t.deltaBlock.column),verticalAlignment:t.deltaBlock.column.verticalAlignment??void 0,showBorder:t.deltaBlock.column.showBorder??!1,className:`stColumn`,"data-testid":`stColumn`,children:p});if(t.deltaBlock.tabContainer){let e=e=>P(WU,{...e,height:`auto`});return P(gV,{...c,isStale:s,renderTabContent:e,width:o.width,flex:o.flex,fragmentId:t.fragmentId})}return u?P(UH,{"data-testid":`stLayoutWrapper`,className:iV(d?f:void 0),...o,children:u}):p},YU=(0,_.createContext)({backendOperationClient:void 0});YU.displayName=`BackendOperationContext`;var XU=(0,_.createContext)({pageLinkBaseUrl:``,currentPageScriptHash:``,onPageChange:()=>{},navSections:[],appPages:[]});XU.displayName=`NavigationContext`;var ZU=G(`div`,{target:`egah9gy0`})(({theme:e})=>({position:`fixed`,top:0,left:0,zIndex:e.zIndices.tablePortal,lineHeight:`100%`,...!zC(e)&&{"& input[type='date'], & input[type='time'], & input[type='datetime-local']":{"&::-webkit-calendar-picker-indicator":{filter:`brightness(0) invert(1)`,opacity:1}}}})),QU=G(`small`,{target:`egah9gy1`})(({theme:e})=>({color:e.colors.redTextColor,fontSize:e.fontSizes.sm,marginTop:e.spacing.twoXS,display:`block`})),$U=(0,_.createContext)(null);$U.displayName=`PortalContext`;var eW=({children:e})=>{let t=(0,_.useRef)(null),n=(0,_.useCallback)(()=>t.current,[]);return F($U.Provider,{value:n,children:[e,P(ZU,{"data-testid":`portal`,id:`portal`,ref:t})]})},tW=(0,_.createContext)({initialSidebarState:Jo.SidebarState.AUTO,appLogo:null,sidebarChevronDownshift:0,exp
121andSidebarNav:!1,hideSidebarNav:!1});tW.displayName=`SidebarConfigContext`;var nW=(0,_.createContext)({activeTheme:Uw(),setTheme:()=>{},availableThemes:[]});nW.displayName=`ThemeContext`;function rW({theme:e,baseuiTheme:t,children:n}){return P(Ty,{theme:t||uw,children:P(Ft,{theme:e,children:n})})}function iW({label:e,show_label:t,icon:n,onClick:r}){let i=fE(),a=t?e:``;return P(`div`,{"data-testid":`stElementToolbarButton`,children:P(fL,{content:P(QL,{source:e,allowHTML:!1,style:{fontSize:i.fontSizes.sm}}),placement:dL.TOP,onMouseEnterDelay:1e3,inline:!0,children:F($k,{onClick:e=>{r&&r(),e.stopPropagation()},kind:xk.ELEMENT_TOOLBAR,"aria-label":e,children:[n&&P(uT,{content:n,size:`md`,testid:`stElementToolbarButtonIcon`}),a&&P(`span`,{children:a})]})})})}var aW=({onExpand:e,onCollapse:t,isFullScreen:n,locked:r,children:i,target:a,disableFullscreenMode:o})=>P(mhe,{className:`stElementToolbar`,"data-testid":`stElementToolbar`,locked:r||n,target:a,children:F(MF,{"data-testid":`stElementToolbarButtonContainer`,children:[i,e&&!o&&!n&&P(iW,{label:`Fullscreen`,icon:Qz,onClick:()=>e()}),t&&!o&&n&&P(iW,{label:`Close fullscreen`,icon:$z,onClick:()=>t()})]})});function oW({text:e}){let{isCopied:t,copyToClipboard:n,label:r}=qV(),i=(0,_.useCallback)(()=>{n(e)},[n,e]);return P(zF,{children:P(vhe,{children:P(iW,{label:r,icon:t?Kz:Yz,onClick:i})})})}var sW=(0,_.memo)(oW);function cW({children:e}){let t=typeof e==`string`&&e.trim().length>0;return F(BF,{className:`stErrorCodeBlock`,"data-testid":`stErrorCodeBlock`,tabIndex:t?0:void 0,children:[P(LF,{wrapLines:!1,children:P(IF,{wrapLines:!1,children:e})}),t&&P(sW,{text:e})]})}var lW=(0,_.memo)(cW);function uW(e){let t=e.match(/^:(.+)\/(.+):$/);return t===null?``:`https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsrounded/${t[2]}/default/24px.svg`}function dW(e,t,n){let r=e=>{pW(e),t({type:`SET_PAGE_FAVICON`,favicon:e})};if(e.startsWith(`:material`)){r(uW(e));return}if(e.startsWith(`emoji:`)){r(fW(e.substring(6)));return}/^:[a-zA-Z0-9_+-]+:$/.test(e)?mW(e).then(t=>{r(t?fW(t):n.buildMediaURL(e))}).catch(()=>{r(n.buildMediaURL(e))}):r(n.buildMediaURL(e))}function fW(e){return`data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>${e}</text></svg>`}function pW(e){let t=document.querySelector(`link[rel='shortcut icon']`);t&&(t.href=e)}async function mW(e){let t=await CL(()=>import(`./lib.BAKrLDmv.js`),[],import.meta.url),n=e.replace(/-/g,`_`),r=t.get(n);return r&&r!==n&&t.has(r)?r:``}var hW=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.flattenNames=void 0;var t=a((Pte(),d(Mte))),n=a((Gh(),d(Wh))),r=a((qd(),d(zd))),i=a((Uh(),d(kte)));function a(e){return e&&e.__esModule?e:{default:e}}e.default=e.flattenNames=function e(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=[];return(0,i.default)(a,function(i){Array.isArray(i)?e(i).map(function(e){return o.push(e)}):(0,r.default)(i)?(0,n.default)(i,function(e,t){e===!0&&o.push(t),o.push(t+`-`+e)}):(0,t.default)(i)&&o.push(i)}),o}})),gW=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeClasses=void 0;var t=i((Gh(),d(Wh))),n=i((ote(),d(ate))),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function i(e){return e&&e.__esModule?e:{default:e}}e.default=e.mergeClasses=function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=e.default&&(0,n.default)(e.default)||{};return i.map(function(n){var i=e[n];return i&&(0,t.default)(i,function(e,t){a[t]||(a[t]={}),a[t]=r({},a[t],i[t])}),n}),a}})),_W=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.autoprefix=void 0;var t=r((Gh(),d(Wh))),n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){return e&&e.__esModule?e:{default:e}}var i={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}}
121,boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(` `);return{position:`absolute`,top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){return t[e]||{extend:e}}};e.default=e.autoprefix=function(e){var r={};return(0,t.default)(e,function(e,a){var o={};(0,t.default)(e,function(e,t){var r=i[t];r?o=n({},o,r(e)):o[t]=e}),r[a]=o}),r}})),vW=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hover=void 0;var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=r(m());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=e.hover=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`span`;return function(s){o(c,s);function c(){var o,s,l,u;i(this,c);var d=[...arguments];return u=(s=(l=a(this,(o=c.__proto__||Object.getPrototypeOf(c)).call.apply(o,[this].concat(d))),l),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return n.default.createElement(r,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},n.default.createElement(e,t({},l.props,l.state)))},s),a(l,u)}return c}(n.default.Component)}})),yW=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.active=void 0;var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=r(m());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=e.active=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`span`;return function(s){o(c,s);function c(){var o,s,l,u;i(this,c);var d=[...arguments];return u=(s=(l=a(this,(o=c.__proto__||Object.getPrototypeOf(c)).call.apply(o,[this].concat(d))),l),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return n.default.createElement(r,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},n.default.createElement(e,t({},l.props,l.state)))},s),a(l,u)}return c}(n.default.Component)}})),bW=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=function(e,t){var n={},r=function(e){n[e]=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0};return e===0&&r(`first-child`),e===t-1&&r(`last-child`),(e===0||e%2==0)&&r(`even`),Math.abs(e%2)===1&&r(`odd`),r(`nth-child`,e),n}})),xW=u(s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReactCSS=e.loop=e.handleActive=e.handleHover=e.hover=void 0;
121var t=s(hW()),n=s(gW()),r=s(_W()),i=s(vW()),a=s(yW()),o=s(bW());function s(e){return e&&e.__esModule?e:{default:e}}e.hover=i.default,e.handleHover=i.default,e.handleActive=a.default,e.loop=o.default,e.default=e.ReactCSS=function(e){var i=[...arguments].slice(1),a=(0,t.default)(i),o=(0,n.default)(e,a);return(0,r.default)(o)}}))()),SW=function(e,t,n,r,i){var a=i.clientWidth,o=i.clientHeight,s=typeof e.pageX==`number`?e.pageX:e.touches[0].pageX,c=typeof e.pageY==`number`?e.pageY:e.touches[0].pageY,l=s-(i.getBoundingClientRect().left+window.pageXOffset),u=c-(i.getBoundingClientRect().top+window.pageYOffset);if(n===`vertical`){var d=void 0;if(d=u<0?0:u>o?1:Math.round(u*100/o)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:`rgb`}}else{var f=void 0;if(f=l<0?0:l>a?1:Math.round(l*100/a)/100,r!==f)return{h:t.h,s:t.s,l:t.l,a:f,source:`rgb`}}return null},CW={},wW=function(e,t,n,r){if(typeof document>`u`&&!r)return null;var i=r?new r:document.createElement(`canvas`);i.width=n*2,i.height=n*2;var a=i.getContext(`2d`);return a?(a.fillStyle=e,a.fillRect(0,0,i.width,i.height),a.fillStyle=t,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),i.toDataURL()):null},TW=function(e,t,n,r){var i=e+`-`+t+`-`+n+(r?`-server`:``);if(CW[i])return CW[i];var a=wW(e,t,n,r);return CW[i]=a,a},EW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DW=function(e){var t=e.white,n=e.grey,r=e.size,i=e.renderers,a=e.borderRadius,o=e.boxShadow,s=e.children,c=(0,xW.default)({default:{grid:{borderRadius:a,boxShadow:o,absolute:`0px 0px 0px 0px`,background:`url(`+TW(t,n,r,i.canvas)+`) center left`}}});return(0,_.isValidElement)(s)?_.cloneElement(s,EW({},s.props,{style:EW({},s.props.style,c.grid)})):_.createElement(`div`,{style:c.grid})};DW.defaultProps={size:8,white:`transparent`,grey:`rgba(0,0,0,.08)`,renderers:{}};var OW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kW=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function AW(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function jW(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function MW(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var NW=function(e){MW(t,e);function t(){var e,n,r,i;AW(this,t);var a=[...arguments];return i=(n=(r=jW(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r),r.handleChange=function(e){var t=SW(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&typeof r.props.onChange==`function`&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener(`mousemove`,r.handleChange),window.addEventListener(`mouseup`,r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener(`mousemove`,r.handleChange),window.removeEventListener(`mouseup`,r.handleMouseUp)},n),jW(r,i)}return kW(t,[{key:`componentWillUnmount`,value:function(){this.unbindEventListeners()}},{key:`render`,value:function(){var e=this,t=this.props.rgb,n=(0,xW.default)({default:{alpha:{absolute:`0px 0px 0px 0px`,borderRadius:this.props.radius},checkboard:{absolute:`0px 0px 0px 0px`,overflow:`hidden`,borderRadius:this.props.radius},gradient:{absolute:`0px 0px 0px 0px`,background:`linear-gradient(to right, rgba(`+t.r+`,`+t.g+`,`+t.b+`, 0) 0%, 122 rgba(`+t.r+`,`+t.g+`,`+t.b+`, 1) 100%)`,boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:`relative`,height:`100%`,margin:`0 3px`},pointer:{position:`absolute`,left:t.a*100+`%`},slider:{width:`4px`,borderRadius:`1px`,height:`8px`,boxShadow:`0 0 2px rgba(0, 0, 0, .6)`,background:`#fff`,marginTop:`1px`,transform:`translateX(-2px)`}},vertical:{gradient:{background:`linear-gradient(to bottom, rgba(`+t.r+`,`+t.g+`,`+t.b+`, 0) 0%, 123 rgba(`+t.r+`,`+t.g+`,`+t.b+`, 1) 100%)`},pointer:{left:0,top:t.a*100+`%`}},overwrite:OW({},this.props.style)},{vertical:this.props.direction===`vertical`,overwrite:!0});return _.createElement(`div`,{style:n.alpha},_.createElement(`div`,{style:n.checkboard},_.createElement(DW,{renderers:this.props.renderers})),_.createElement(`div`,{style:n.gradient}),_.createElement(`div`,{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},_.createElement(`div`,{style:n.pointer},this.props.pointer?_.createElement(this.props.pointer,this.props):_.createElement(`div`,{style:n.slider}))))}}]),t}(_.PureComponent||_.Component),PW=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function FW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IW(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function LW(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function RW(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var zW=1,BW=38,VW=[BW,40],HW=function(e){return VW.indexOf(e)>-1},UW=function(e){return Number(String(e).replace(/%/g,``))},WW=1,GW=function(e){RW(t,e);function t(e){IW(this,t);var n=LW(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t=UW(e.target.value);if(!isNaN(t)&&HW(e.keyCode)){var r=n.getArrowOffset(),i=e.keyCode===BW?t+r:t-r;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener(`mousemove`,n.handleDrag),window.addEventListener(`mouseup`,n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener(`mousemove`,n.handleDrag),window.removeEventListener(`mouseup`,n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId=`rc-editable-input-`+ WW++,n}return PW(t,[{key:`componentDidUpdate`,value:function(e,t){this.props.value!==this.state.value&&(e.value!==this.props.value||t.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:`componentWillUnmount`,value:function(){this.unbindEventListeners()}},{key:`getValueObjectWithLabel`,value:function(e){return FW({},this.props.label,e)}},{key:`getArrowOffset`,value:function(){return this.props.arrowOffset||zW}},{key:`setUpdatedValue`,value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:`render`,value:function(){var e=this,t=(0,xW.default)({default:{wrap:{position:`relative`}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:`ew-resize`}}},{"user-override":!0},this.props);return _.createElement(`div`,{style:t.wrap},_.createElement(`input`,{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:`false`}),this.props.label&&!this.props.hideLabel?_.createElement(`label`,{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(_.PureComponent||_.Component),KW=function(e,t,n,r){var i=r.clientWidth,a=r.clientHeight,o=typeof e.pageX==`number`?e.pageX:e.touches[0].pageX,s=typeof e.pageY==`number`?e.pageY:e.touches[0].pageY,c=o-(r.getBoundingClientRect().left+window.pageXOffset),l=s-(r.getBoundingClientRect().top+window.pageYOffset);if(t===`vertical`){var u=void 0;if(u=l<0?359:l>a?0:360*(-(l*100/a)+100)/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:`hsl`}}else{var d=void 0;if(d=c<0?0:c>i?359:360*(c*100/i)/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:`hsl`}}return null},qW=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function JW(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function YW(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function XW(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ZW=function(e){XW(t,e);function t(){var e,n,r,i;JW(this,t);var a=[...arguments];return i=(n=(r=YW(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r),r.handleChange=function(e){var t=KW(e,r.props.direction,r.props.hsl,r.container);t&&typeof r.props.onChange==`function`&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener(`mousemove`,r.handleChange),window.addEventListener(`mouseup`,r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},n),YW(r,i)}return qW(t,[{key:`componentWillUnmount`,value:function(){this.unbindEventListeners()}},{key:`unbindEventListeners`,value:function(){window.removeEventListener(`mousemove`,this.handleChange),window.removeEventListener(`mouseup`,this.handleMouseUp)}},{key:`render`,value:function(){var e=this,t=this.props.direction,n=t===void 0?`horizontal`:t,r=(0,xW.default)({default:{hue:{absolute:`0px 0px 0px 0px`,borderRadius:this.props.radius,boxSh
123adow:this.props.shadow},container:{padding:`0 2px`,position:`relative`,height:`100%`,borderRadius:this.props.radius},pointer:{position:`absolute`,left:this.props.hsl.h*100/360+`%`},slider:{marginTop:`1px`,width:`4px`,borderRadius:`1px`,height:`8px`,boxShadow:`0 0 2px rgba(0, 0, 0, .6)`,background:`#fff`,transform:`translateX(-2px)`}},vertical:{pointer:{left:`0px`,top:-(this.props.hsl.h*100/360)+100+`%`}}},{vertical:n===`vertical`});return _.createElement(`div`,{style:r.hue},_.createElement(`div`,{className:`hue-`+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},_.createElement(`style`,null,` 124 .hue-horizontal { 125 background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 126 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); 127 background: -webkit-linear-gradient(to right, #f00 0%, #ff0 128 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); 129 } 130 131 .hue-vertical { 132 background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%, 133 #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); 134 background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%, 135 #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); 136 } 137 `),_.createElement(`div`,{style:r.pointer},this.props.pointer?_.createElement(this.props.pointer,this.props):_.createElement(`div`,{style:r.slider}))))}}]),t}(_.PureComponent||_.Component),QW=function(e){var t=e.zDepth,n=e.radius,r=e.background,i=e.children,a=e.styles,o=a===void 0?{}:a,s=(0,xW.default)(Xh({default:{wrap:{position:`relative`,display:`inline-block`},content:{position:`relative`},bg:{absolute:`0px 0px 0px 0px`,boxShadow:`0 `+t+`px `+t*4+`px rgba(0,0,0,.24)`,borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:`none`}},"zDepth-1":{bg:{boxShadow:`0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)`}},"zDepth-2":{bg:{boxShadow:`0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)`}},"zDepth-3":{bg:{boxShadow:`0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)`}},"zDepth-4":{bg:{boxShadow:`0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)`}},"zDepth-5":{bg:{boxShadow:`0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)`}},square:{bg:{borderRadius:`0`}},circle:{bg:{borderRadius:`50%`}}},o),{"zDepth-1":t===1});return _.createElement(`div`,{style:s.wrap},_.createElement(`div`,{style:s.bg}),_.createElement(`div`,{style:s.content},i))};QW.propTypes={background:K.default.string,zDepth:K.default.oneOf([0,1,2,3,4,5]),radius:K.default.number,styles:K.default.object},QW.defaultProps={background:`#fff`,zDepth:1,radius:2,styles:{}};var $W=function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,a=r.height,o=typeof e.pageX==`number`?e.pageX:e.touches[0].pageX,s=typeof e.pageY==`number`?e.pageY:e.touches[0].pageY,c=o-(n.getBoundingClientRect().left+window.pageXOffset),l=s-(n.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>i&&(c=i),l<0?l=0:l>a&&(l=a);var u=c/i,d=1-l/a;return{h:t.h,s:u,v:d,a:t.a,source:`hsv`}},eG=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function tG(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function nG(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function rG(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var iG=function(e){rG(t,e);function t(e){tG(this,t);var n=nG(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){typeof n.props.onChange==`function`&&n.throttle(n.props.onChange,$W(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener(`mousemove`,n.handleChange),t.addEventListener(`mouseup`,n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=tg(function(e,t,n){e(t,n)},50),n}return eG(t,[{key:`componentWillUnmount`,value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:`getContainerRenderWindow`,value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:`unbindEventListeners`,value:function(){var e=this.getContainerRenderWindow();e.removeEventListener(`mousemove`,this.handleChange),e.removeEventListener(`mouseup`,this.handleMouseUp)}},{key:`render`,value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,a=t.pointer,o=t.circle,s=(0,xW.default)({default:{color:{absolute:`0px 0px 0px 0px`,background:`hsl(`+this.props.hsl.h+`,100%, 50%)`,borderRadius:this.props.radius},white:{absolute:`0px 0px 0px 0px`,borderRadius:this.props.radius},black:{absolute:`0px 0px 0px 0px`,boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:`absolute`,top:-(this.props.hsv.v*100)+100+`%`,left:this.props.hsv.s*100+`%`,cursor:`default`}
137,circle:{width:`4px`,height:`4px`,boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 138 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:`50%`,cursor:`hand`,transform:`translate(-2px, -2px)`}},custom:{color:n,white:r,black:i,pointer:a,circle:o}},{custom:!!this.props.style});return _.createElement(`div`,{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},_.createElement(`style`,null,` 139 .saturation-white { 140 background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0)); 141 background: linear-gradient(to right, #fff, rgba(255,255,255,0)); 142 } 143 .saturation-black { 144 background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0)); 145 background: linear-gradient(to top, #000, rgba(0,0,0,0)); 146 } 147 `),_.createElement(`div`,{style:s.white,className:`saturation-white`},_.createElement(`div`,{style:s.black,className:`saturation-black`}),_.createElement(`div`,{style:s.pointer},this.props.pointer?_.createElement(this.props.pointer,this.props):_.createElement(`div`,{style:s.circle}))))}}]),t}(_.PureComponent||_.Component);function aG(e){"@babel/helpers - typeof";return aG=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},aG(e)}var oG=/^\s+/,sG=/\s+$/;function X(e,t){if(e||=``,t||={},e instanceof X)return e;if(!(this instanceof X))return new X(e,t);var n=cG(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}X.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255,i=t<=.03928?t/12.92:((t+.055)/1.055)**2.4,a=n<=.03928?n/12.92:((n+.055)/1.055)**2.4,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4;return .2126*i+.7152*a+.0722*o},setAlpha:function(e){return this._a=MG(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=fG(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=fG(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.v*100);return this._a==1?`hsv(`+t+`, `+n+`%, `+r+`%)`:`hsva(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHsl:function(){var e=uG(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=uG(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.l*100);return this._a==1?`hsl(`+t+`, `+n+`%, `+r+`%)`:`hsla(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHex:function(e){return mG(this._r,this._g,this._b,e)},toHexString:function(e){return`#`+this.toHex(e)},toHex8:function(e){return hG(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return`#`+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?`rgb(`+Math.round(this._r)+`, `+Math.round(this._g)+`, `+Math.round(this._b)+`)`:`rgba(`+Math.round(this._r)+`, `+Math.round(this._g)+`, `+Math.round(this._b)+`, `+this._roundA+`)`},toPercentageRgb:function(){return{r:Math.round(NG(this._r,255)*100)+`%`,g:Math.round(NG(this._g,255)*100)+`%`,b:Math.round(NG(this._b,255)*100)+`%`,a:this._a}},toPercentageRgbString:function(){return this._a==1?`rgb(`+Math.round(NG(this._r,255)*100)+`%, `+Math.round(NG(this._g,255)*100)+`%, `+Math.round(NG(this._b,255)*100)+`%)`:`rgba(`+Math.round(NG(this._r,255)*100)+`%, `+Math.round(NG(this._g,255)*100)+`%, `+Math.round(NG(this._b,255)*100)+`%, `+this._roundA+`)`},toName:function(){return this._a===0?`transparent`:this._a<1?!1:AG[mG(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t=`#`+gG(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?`GradientType = 1, `:``;if(e){var i=X(e);n=`#`+gG(i._r,i._g,i._b,i._a)}return`progid:DXImageTransform.Microsoft.gradient(`+r+`startColorstr=`+t+`,endColorstr=`+n+`)`},toString:function(e){var t=!!e;e||=this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&(e===`hex`||e===`hex6`||e===`hex3`||e===`hex4`||e===`hex8`||e===`name`)?e===`name`&&this._a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return X(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(bG,arguments)},brighten:function(){return this._applyModification(xG,arguments)},darken:function(){return this._applyModification(SG,arguments)},desaturate:function(){return this._applyModification(_G,arguments)},saturate:function(){return this._applyModification(vG,arguments)},greyscale:function(){return this._applyModification(yG,arguments)},spin:function(){return this._applyModification(CG,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(DG,arguments)},complement:function(){return this._applyCombination(wG,arguments)},monochromatic:function(){return this._applyCombination(OG,arguments)},splitcomplement:function(){return this._applyCombination(EG,arguments)},triad:function(){return this._applyCombination(TG,[3])},tetrad:function(){return this._applyCombination(TG,[4])}},X.fromRatio=function(e,t){if(aG(e)==`object`){var n={};for(var r in e)e.hasOwnProperty(r)&&(r===`a`?n[r]=e[r]:n[r]=zG(e[r]));e=n}return X(e,t)};function cG(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e==`string`&&(e=WG(e)),aG(e)==`object`&&(UG(e.r)&&UG(e.g)&&UG(e.b)?(t=lG(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):UG(e.h)&&UG
vendor: 4,341 bytes, line 147
147(e.s)&&UG(e.v)?(r=zG(e.s),i=zG(e.v),t=pG(e.h,r,i),o=!0,s=`hsv`):UG(e.h)&&UG(e.s)&&UG(e.l)&&(r=zG(e.s),a=zG(e.l),t=dG(e.h,r,a),o=!0,s=`hsl`),e.hasOwnProperty(`a`)&&(n=e.a)),n=MG(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function lG(e,t,n){return{r:NG(e,255)*255,g:NG(t,255)*255,b:NG(n,255)*255}}function uG(e,t,n){e=NG(e,255),t=NG(t,255),n=NG(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=(r+i)/2;if(r==i)a=o=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s:o,l:s}}function dG(e,t,n){var r,i,a;e=NG(e,360),t=NG(t,100),n=NG(n,100);function o(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function fG(e,t,n){e=NG(e,255),t=NG(t,255),n=NG(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=r,c=r-i;if(o=r===0?0:c/r,r==i)a=0;else{switch(r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s:o,v:s}}function pG(e,t,n){e=NG(e,360)*6,t=NG(t,100),n=NG(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),o=n*(1-i*t),s=n*(1-(1-i)*t),c=r%6,l=[n,o,a,a,s,n][c],u=[s,n,n,o,a,a][c],d=[a,a,s,n,n,o][c];return{r:l*255,g:u*255,b:d*255}}function mG(e,t,n,r){var i=[RG(Math.round(e).toString(16)),RG(Math.round(t).toString(16)),RG(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(``)}function hG(e,t,n,r,i){var a=[RG(Math.round(e).toString(16)),RG(Math.round(t).toString(16)),RG(Math.round(n).toString(16)),RG(BG(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join(``)}function gG(e,t,n,r){return[RG(BG(r)),RG(Math.round(e).toString(16)),RG(Math.round(t).toString(16)),RG(Math.round(n).toString(16))].join(``)}X.equals=function(e,t){return!e||!t?!1:X(e).toRgbString()==X(t).toRgbString()},X.random=function(){return X.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function _G(e,t){t=t===0?0:t||10;var n=X(e).toHsl();return n.s-=t/100,n.s=PG(n.s),X(n)}function vG(e,t){t=t===0?0:t||10;var n=X(e).toHsl();return n.s+=t/100,n.s=PG(n.s),X(n)}function yG(e){return X(e).desaturate(100)}function bG(e,t){t=t===0?0:t||10;var n=X(e).toHsl();return n.l+=t/100,n.l=PG(n.l),X(n)}function xG(e,t){t=t===0?0:t||10;var n=X(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),X(n)}function SG(e,t){t=t===0?0:t||10;var n=X(e).toHsl();return n.l-=t/100,n.l=PG(n.l),X(n)}function CG(e,t){var n=X(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,X(n)}function wG(e){var t=X(e).toHsl();return t.h=(t.h+180)%360,X(t)}function TG(e,t){if(isNaN(t)||t<=0)throw Error(`Argument to polyad must be a positive number`);for(var n=X(e).toHsl(),r=[X(e)],i=360/t,a=1;a<t;a++)r.push(X({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function EG(e){var t=X(e).toHsl(),n=t.h;return[X(e),X({h:(n+72)%360,s:t.s,l:t.l}),X({h:(n+216)%360,s:t.s,l:t.l})]}function DG(e,t,n){t||=6,n||=30;var r=X(e).toHsl(),i=360/n,a=[X(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(X(r));return a}function OG(e,t){t||=6;for(var n=X(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(X({h:r,s:i,v:a})),a=(a+s)%1;return o}X.mix=function(e,t,n){n=n===0?0:n||50;var r=X(e).toRgb(),i=X(t).toRgb(),a=n/100;return X({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},X.readability=function(e,t){var n=X(e),r=X(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},X.isReadable=function(e,t,n){var r=X.readability(e,t),i,a=!1;switch(i=GG(n),i.level+i.size){case`AAsmall`:case`AAAlarge`:a=r>=4.5;break;case`AAlarge`:a=r>=3;break;case`AAAsmall`:a=r>=7;break}return a},X.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,c;n||={},o=n.includeFallbackColors,s=n.level,c=n.size;
vendor: 4,365 bytes, line 147
147for(var l=0;l<t.length;l++)a=X.readability(e,t[l]),a>i&&(i=a,r=X(t[l]));return X.isReadable(e,r,{level:s,size:c})||!o?r:(n.includeFallbackColors=!1,X.mostReadable(e,[`#fff`,`#000`],n))};var kG=X.names={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`0ff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`00f`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,burntsienna:`ea7e5d`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`0ff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`f0f`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`},AG=X.hexNames=jG(kG);function jG(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function MG(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function NG(e,t){IG(e)&&(e=`100%`);var n=LG(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function PG(e){return Math.min(1,Math.max(0,e))}function FG(e){return parseInt(e,16)}function IG(e){return typeof e==`string`&&e.indexOf(`.`)!=-1&&parseFloat(e)===1}function LG(e){return typeof e==`string`&&e.indexOf(`%`)!=-1}function RG(e){return e.length==1?`0`+e:``+e}function zG(e){return e<=1&&(e=e*100+`%`),e}function BG(e){return Math.round(parseFloat(e)*255).toString(16)}function VG(e){return FG(e)/255}var HG=function(){var e=`(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)`,t=`[\\s|\\(]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)\\s*\\)?`,n=`[\\s|\\(]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)\\s*\\)?`;return{CSS_UNIT:new RegExp(e),rgb:RegExp(`rgb`+t),rgba:RegExp(`rgba`+n),hsl:RegExp(`hsl`+t),hsla:RegExp(`hsla`+n),hsv:RegExp(`hsv`+t),hsva:RegExp(`hsva`+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}
147}();function UG(e){return!!HG.CSS_UNIT.exec(e)}function WG(e){e=e.replace(oG,``).replace(sG,``).toLowerCase();var t=!1;if(kG[e])e=kG[e],t=!0;else if(e==`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};var n;return(n=HG.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=HG.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=HG.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=HG.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=HG.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=HG.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=HG.hex8.exec(e))?{r:FG(n[1]),g:FG(n[2]),b:FG(n[3]),a:VG(n[4]),format:t?`name`:`hex8`}:(n=HG.hex6.exec(e))?{r:FG(n[1]),g:FG(n[2]),b:FG(n[3]),format:t?`name`:`hex`}:(n=HG.hex4.exec(e))?{r:FG(n[1]+``+n[1]),g:FG(n[2]+``+n[2]),b:FG(n[3]+``+n[3]),a:VG(n[4]+``+n[4]),format:t?`name`:`hex8`}:(n=HG.hex3.exec(e))?{r:FG(n[1]+``+n[1]),g:FG(n[2]+``+n[2]),b:FG(n[3]+``+n[3]),format:t?`name`:`hex`}:!1}function GG(e){var t,n;return e||={level:`AA`,size:`small`},t=(e.level||`AA`).toUpperCase(),n=(e.size||`small`).toLowerCase(),t!==`AA`&&t!==`AAA`&&(t=`AA`),n!==`small`&&n!==`large`&&(n=`small`),{level:t,size:n}}var KG=function(e){var t=[`r`,`g`,`b`,`a`,`h`,`s`,`l`,`v`],n=0,r=0;return Ote(t,function(t){e[t]&&(n+=1,isNaN(e[t])||(r+=1),(t===`s`||t===`l`)&&/^\d+%$/.test(e[t])&&(r+=1))}),n===r?e:!1},qG=function(e,t){var n=e.hex?X(e.hex):X(e),r=n.toHsl(),i=n.toHsv(),a=n.toRgb(),o=n.toHex();return r.s===0&&(r.h=t||0,i.h=t||0),{hsl:r,hex:o===`000000`&&a.a===0?`transparent`:`#`+o,rgb:a,hsv:i,oldHue:e.h||t||r.h,source:e.source}},JG=function(e){if(e===`transparent`)return!0;var t=+(String(e).charAt(0)===`#`);return e.length!==4+t&&e.length<7+t&&X(e).isValid()},YG=function(e){if(!e)return`#fff`;var t=qG(e);return t.hex===`transparent`?`rgba(0,0,0,0.4)`:(t.rgb.r*299+t.rgb.g*587+t.rgb.b*114)/1e3>=128?`#000`:`#fff`},XG=function(e,t){var n=e.replace(`°`,``);return X(t+` (`+n+`)`)._ok},ZG=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QG=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function $G(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function eK(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function tK(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var nK=function(e){var t=function(t){tK(n,t);function n(e){$G(this,n);var t=eK(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(KG(e)){var r=qG(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(KG(e)){var r=qG(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=ZG({},qG(e.color,0)),t.debounce=Mh(function(e,t,n){e(t,n)},100),t}return QG(n,[{key:`render`,value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),_.createElement(e,ZG({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return ZG({},qG(e.color,t.oldHue))}}]),n}(_.PureComponent||_.Component);return t.propTypes=ZG({},e.propTypes),t.defaultProps=ZG({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t},rK=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iK=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function aK(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function oK(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function sK(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var cK=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`span`;return function(n){sK(r,n);function r(){var e,t,n,i;aK(this,r);var a=[...arguments];return i=(t=(n=oK(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(a))),n),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},t),oK(n,i)}return iK(r,[{key:`render`,value:function(){return _.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},_.createElement(e,rK({},this.props,this.state)))}}]),r}(_.Component)},lK=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uK=13,dK=cK(function(e){var t=e.color,n=e.style,r=e.onClick,i=r===void 0?function(){}
147:r,a=e.onHover,o=e.title,s=o===void 0?t:o,c=e.children,l=e.focus,u=e.focusStyle,d=u===void 0?{}:u,f=t===`transparent`,p=(0,xW.default)({default:{swatch:lK({background:t,height:`100%`,width:`100%`,cursor:`pointer`,position:`relative`,outline:`none`},n,l?d:{})}}),m=function(e){return i(t,e)},h=function(e){return e.keyCode===uK&&i(t,e)},g=function(e){return a(t,e)},v={};return a&&(v.onMouseOver=g),_.createElement(`div`,lK({style:p.swatch,onClick:m,title:s,tabIndex:0,onKeyDown:h},v),c,f&&_.createElement(DW,{borderRadius:p.swatch.borderRadius,boxShadow:`inset 0 0 0 1px rgba(0,0,0,0.1)`}))}),fK=function(e){var t=e.direction,n=(0,xW.default)({default:{picker:{width:`18px`,height:`18px`,borderRadius:`50%`,transform:`translate(-9px, -1px)`,backgroundColor:`rgb(248, 248, 248)`,boxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.37)`}},vertical:{picker:{transform:`translate(-3px, -9px)`}}},{vertical:t===`vertical`});return _.createElement(`div`,{style:n.picker})},pK=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mK=function(e){var t=e.rgb,n=e.hsl,r=e.width,i=e.height,a=e.onChange,o=e.direction,s=e.style,c=e.renderers,l=e.pointer,u=e.className,d=u===void 0?``:u,f=(0,xW.default)({default:{picker:{position:`relative`,width:r,height:i},alpha:{radius:`2px`,style:s}}});return _.createElement(`div`,{style:f.picker,className:`alpha-picker `+d},_.createElement(NW,pK({},f.alpha,{rgb:t,hsl:n,pointer:l,renderers:c,onChange:a,direction:o})))};mK.defaultProps={width:`316px`,height:`16px`,direction:`horizontal`,pointer:fK},nK(mK);var hK=function(e){var t=e.colors,n=e.onClick,r=e.onSwatchHover,i=(0,xW.default)({default:{swatches:{marginRight:`-10px`},swatch:{width:`22px`,height:`22px`,float:`left`,marginRight:`10px`,marginBottom:`10px`,borderRadius:`4px`},clear:{clear:`both`}}});return _.createElement(`div`,{style:i.swatches},Hh(t,function(e){return _.createElement(dK,{key:e,color:e,style:i.swatch,onClick:n,onHover:r,focusStyle:{boxShadow:`0 0 4px `+e}})}),_.createElement(`div`,{style:i.clear}))},gK=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,i=e.colors,a=e.width,o=e.triangle,s=e.styles,c=s===void 0?{}:s,l=e.className,u=l===void 0?``:l,d=r===`transparent`,f=function(e,n){JG(e)&&t({hex:e,source:`hex`},n)},p=(0,xW.default)(Xh({default:{card:{width:a,background:`#fff`,boxShadow:`0 1px rgba(0,0,0,.1)`,borderRadius:`6px`,position:`relative`},head:{height:`110px`,background:r,borderRadius:`6px 6px 0 0`,display:`flex`,alignItems:`center`,justifyContent:`center`,position:`relative`},body:{padding:`10px`},label:{fontSize:`18px`,color:YG(r),position:`relative`},triangle:{width:`0px`,height:`0px`,borderStyle:`solid`,borderWidth:`0 10px 10px 10px`,borderColor:`transparent transparent `+r+` transparent`,position:`absolute`,top:`-10px`,left:`50%`,marginLeft:`-10px`},input:{width:`100%`,fontSize:`12px`,color:`#666`,border:`0px`,outline:`none`,height:`22px`,boxShadow:`inset 0 0 0 1px #ddd`,borderRadius:`4px`,padding:`0 7px`,boxSizing:`border-box`}},"hide-triangle":{triangle:{display:`none`}}},c),{"hide-triangle":o===`hide`});return _.createElement(`div`,{style:p.card,className:`block-picker `+u},_.createElement(`div`,{style:p.triangle}),_.createElement(`div`,{style:p.head},d&&_.createElement(DW,{borderRadius:`6px 6px 0 0`}),_.createElement(`div`,{style:p.label},r)),_.createElement(`div`,{style:p.body},_.createElement(hK,{colors:i,onClick:f,onSwatchHover:n}),_.createElement(GW,{style:{input:p.input},value:r,onChange:f})))};gK.propTypes={width:K.default.oneOfType([K.default.string,K.default.number]),colors:K.default.arrayOf(K.default.string),triangle:K.default.oneOf([`top`,`hide`]),styles:K.default.object},gK.defaultProps={width:170,colors:[`#D9E3F0`,`#F47373`,`#697689`,`#37D67A`,`#2CCCE4`,`#555555`,`#dce775`,`#ff8a65`,`#ba68c8`],triangle:`top`,styles:{}},nK(gK);var _K={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,a100:`#ff8a80`,a200:`#ff5252`,a400:`#ff1744`,a700:`#d50000`},vK={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,8
14700:`#ad1457`,900:`#880e4f`,a100:`#ff80ab`,a200:`#ff4081`,a400:`#f50057`,a700:`#c51162`},yK={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,a100:`#ea80fc`,a200:`#e040fb`,a400:`#d500f9`,a700:`#aa00ff`},bK={50:`#ede7f6`,100:`#d1c4e9`,200:`#b39ddb`,300:`#9575cd`,400:`#7e57c2`,500:`#673ab7`,600:`#5e35b1`,700:`#512da8`,800:`#4527a0`,900:`#311b92`,a100:`#b388ff`,a200:`#7c4dff`,a400:`#651fff`,a700:`#6200ea`},xK={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,a100:`#8c9eff`,a200:`#536dfe`,a400:`#3d5afe`,a700:`#304ffe`},SK={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,a100:`#82b1ff`,a200:`#448aff`,a400:`#2979ff`,a700:`#2962ff`},CK={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,a100:`#80d8ff`,a200:`#40c4ff`,a400:`#00b0ff`,a700:`#0091ea`},wK={50:`#e0f7fa`,100:`#b2ebf2`,200:`#80deea`,300:`#4dd0e1`,400:`#26c6da`,500:`#00bcd4`,600:`#00acc1`,700:`#0097a7`,800:`#00838f`,900:`#006064`,a100:`#84ffff`,a200:`#18ffff`,a400:`#00e5ff`,a700:`#00b8d4`},TK={50:`#e0f2f1`,100:`#b2dfdb`,200:`#80cbc4`,300:`#4db6ac`,400:`#26a69a`,500:`#009688`,600:`#00897b`,700:`#00796b`,800:`#00695c`,900:`#004d40`,a100:`#a7ffeb`,a200:`#64ffda`,a400:`#1de9b6`,a700:`#00bfa5`},EK={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,a100:`#b9f6ca`,a200:`#69f0ae`,a400:`#00e676`,a700:`#00c853`},DK={50:`#f1f8e9`,100:`#dcedc8`,200:`#c5e1a5`,300:`#aed581`,400:`#9ccc65`,500:`#8bc34a`,600:`#7cb342`,700:`#689f38`,800:`#558b2f`,900:`#33691e`,a100:`#ccff90`,a200:`#b2ff59`,a400:`#76ff03`,a700:`#64dd17`},OK={50:`#f9fbe7`,100:`#f0f4c3`,200:`#e6ee9c`,300:`#dce775`,400:`#d4e157`,500:`#cddc39`,600:`#c0ca33`,700:`#afb42b`,800:`#9e9d24`,900:`#827717`,a100:`#f4ff81`,a200:`#eeff41`,a400:`#c6ff00`,a700:`#aeea00`},kK={50:`#fffde7`,100:`#fff9c4`,200:`#fff59d`,300:`#fff176`,400:`#ffee58`,500:`#ffeb3b`,600:`#fdd835`,700:`#fbc02d`,800:`#f9a825`,900:`#f57f17`,a100:`#ffff8d`,a200:`#ffff00`,a400:`#ffea00`,a700:`#ffd600`},AK={50:`#fff8e1`,100:`#ffecb3`,200:`#ffe082`,300:`#ffd54f`,400:`#ffca28`,500:`#ffc107`,600:`#ffb300`,700:`#ffa000`,800:`#ff8f00`,900:`#ff6f00`,a100:`#ffe57f`,a200:`#ffd740`,a400:`#ffc400`,a700:`#ffab00`},jK={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,a100:`#ffd180`,a200:`#ffab40`,a400:`#ff9100`,a700:`#ff6d00`},MK={50:`#fbe9e7`,100:`#ffccbc`,200:`#ffab91`,300:`#ff8a65`,400:`#ff7043`,500:`#ff5722`,600:`#f4511e`,700:`#e64a19`,800:`#d84315`,900:`#bf360c`,a100:`#ff9e80`,a200:`#ff6e40`,a400:`#ff3d00`,a700:`#dd2c00`},NK={50:`#efebe9`,100:`#d7ccc8`,200:`#bcaaa4`,300:`#a1887f`,400:`#8d6e63`,500:`#795548`,600:`#6d4c41`,700:`#5d4037`,800:`#4e342e`,900:`#3e2723`},PK={50:`#eceff1`,100:`#cfd8dc`,200:`#b0bec5`,300:`#90a4ae`,400:`#78909c`,500:`#607d8b`,600:`#546e7a`,700:`#455a64`,800:`#37474f`,900:`#263238`},FK=function(e){var t=e.color,n=e.onClick,r=e.onSwatchHover,i=e.hover,a=e.active,o=e.circleSize,s=e.circleSpacing,c=(0,xW.default)({default:{swatch:{width:o,height:o,marginRight:s,marginBottom:s,transform:`scale(1)`,transition:`100ms transform ease`},Swatch:{borderRadius:`50%`,background:`transparent`,boxShadow:`inset 0 0 0 `+(o/2+1)+`px `+t,transition:`100ms box-shadow ease`}},hover:{swatch:{transform:`scale(1.2)`}},active:{Swatch:{boxShadow:`inset 0 0 0 3px `+t}}},{hover:i,active:a});return _.createElement(`div`,{style:c.swatch},_.createElement(dK,{style:c.Swatch,color:t,onClick:n,onHover:r,focusStyle:{boxShadow:c.Swatch.boxShadow+`, 0 0 5px `+t}}))};FK.defaultProps={circleSize:28,circleSpacing:14};var IK=(0,xW.handleHover)(FK);Uh();var LK=function(e){var t=e.width,n=e.onChange,r=e.onSwatchHover,i=e.colors,a=e.hex,o=e.circleSize,s=e.styles,c=s===void 0?{}:s,l=e.circleSpacing,u=e.className,d=u===void 0?``:u,f=(0,xW.default)(Xh({default:{card:{width:t,display:`flex`,flexWrap:`wrap`,marginRight:-l,marginBottom:-l}}},c)),p=function(e,t){return n({hex:e,source:`hex`},t)};return _.createElement(`div`,{style:f.card,className:`circle-picker `+d},Hh(i,function(e){return _.createElement(IK,{key:e,color:e,onClick:p,onSwatchHover:r,active:a===e.toLowerCase(),circleSize:o,circleSpacing:l})}))};LK.propTypes={width:K.default.oneOfType([K.default.string,K.default.number]),circleSize:K.default.number,cir
147cleSpacing:K.default.number,styles:K.default.object},LK.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[_K[500],vK[500],yK[500],bK[500],xK[500],SK[500],CK[500],wK[500],TK[500],EK[500],DK[500],OK[500],kK[500],AK[500],jK[500],MK[500],NK[500],PK[500]],styles:{}},nK(LK);var RK=u(s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=r(m());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var a=24;e.default=function(e){var r=e.fill,o=r===void 0?`currentColor`:r,s=e.width,c=s===void 0?a:s,l=e.height,u=l===void 0?a:l,d=e.style,f=d===void 0?{}:d,p=i(e,[`fill`,`width`,`height`,`style`]);return n.default.createElement(`svg`,t({viewBox:`0 0 `+a+` `+a,style:t({fill:o,width:c,height:u},f)},p),n.default.createElement(`path`,{d:`M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z`}))}}))()),zK=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function BK(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function VK(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function HK(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var UK=function(e){HK(t,e);function t(e){BK(this,t);var n=VK(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view===`hex`?n.setState({view:`rgb`}):n.state.view===`rgb`?n.setState({view:`hsl`}):n.state.view===`hsl`&&(n.props.hsl.a===1?n.setState({view:`hex`}):n.setState({view:`rgb`}))},n.handleChange=function(e,t){e.hex?JG(e.hex)&&n.props.onChange({hex:e.hex,source:`hex`},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:`rgb`},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(e.a*100)/100,source:`rgb`},t)):(e.h||e.s||e.l)&&(typeof e.s==`string`&&e.s.includes(`%`)&&(e.s=e.s.replace(`%`,``)),typeof e.l==`string`&&e.l.includes(`%`)&&(e.l=e.l.replace(`%`,``)),e.s==1?e.s=.01:e.l==1&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(Yh(e.s)?n.props.hsl.s:e.s),l:Number(Yh(e.l)?n.props.hsl.l:e.l),source:`hsl`},t))},n.showHighlight=function(e){e.currentTarget.style.background=`#eee`},n.hideHighlight=function(e){e.currentTarget.style.background=`transparent`},e.hsl.a!==1&&e.view===`hex`?n.state={view:`rgb`}:n.state={view:e.view},n}return zK(t,[{key:`render`,value:function(){var e=this,t=(0,xW.default)({default:{wrap:{paddingTop:`16px`,display:`flex`},fields:{flex:`1`,display:`flex`,marginLeft:`-6px`},field:{paddingLeft:`6px`,width:`100%`},alpha:{paddingLeft:`6px`,width:`100%`},toggle:{width:`32px`,textAlign:`right`,position:`relative`},icon:{marginRight:`-4px`,marginTop:`12px`,cursor:`pointer`,position:`relative`},iconHighlight:{position:`absolute`,width:`24px`,height:`28px`,background:`#eee`,borderRadius:`4px`,top:`10px`,left:`12px`,display:`none`},input:{fontSize:`11px`,color:`#333`,width:`100%`,borderRadius:`2px`,border:`none`,boxShadow:`inset 0 0 0 1px #dadada`,height:`21px`,textAlign:`center`},label:{textTransform:`uppercase`,fontSize:`11px`,lineHeight:`11px`,color:`#969696`,textAlign:`center`,display:`block`,marginTop:`12px`},svg:{fill:`#333`,width:`24px`,height:`24px`,border:`1px transparent solid`,borderRadius:`5px`}},disableAlpha:{alpha:{display:`none`}}},this.props,this.state),n=void 0;return this.state.view===`hex`?n=_.createElement(`div`,{style:t.fields,className:`flexbox-fix`},_.createElement(`div`,{style:t.field},_.createElement(GW,{style:{input:t.input,label:t.label},label:`hex`,value:this.props.hex,onChange:this.handleChange}
147))):this.state.view===`rgb`?n=_.createElement(`div`,{style:t.fields,className:`flexbox-fix`},_.createElement(`div`,{style:t.field},_.createElement(GW,{style:{input:t.input,label:t.label},label:`r`,value:this.props.rgb.r,onChange:this.handleChange})),_.createElement(`div`,{style:t.field},_.createElement(GW,{style:{input:t.input,label:t.label},label:`g`,value:this.props.rgb.g,onChange:this.handleChange})),_.createElement(`div`,{style:t.field},_.createElement(GW,{style:{input:t.input,label:t.label},label:`b`,value:this.props.rgb.b,onChange:this.handleChange})),_.createElement(`div`,{style:t.alpha},_.createElement(GW,{style:{input:t.input,label:t.label},label:`a`,value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view===`hsl`&&(n=_.createElement(`div`,{style:t.fields,className:`flexbox-fix`},_.createElement(`div`,{style:t.field},_.createElement(GW,{style:{input:t.input,label:t.label},label:`h`,value:Math.round(this.props.hsl.h),onChange:this.handleChange})),_.createElement(`div`,{style:t.field},_.createElement(GW,{style:{input:t.input,label:t.label},label:`s`,value:Math.round(this.props.hsl.s*100)+`%`,onChange:this.handleChange})),_.createElement(`div`,{style:t.field},_.createElement(GW,{style:{input:t.input,label:t.label},label:`l`,value:Math.round(this.props.hsl.l*100)+`%`,onChange:this.handleChange})),_.createElement(`div`,{style:t.alpha},_.createElement(GW,{style:{input:t.input,label:t.label},label:`a`,value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),_.createElement(`div`,{style:t.wrap,className:`flexbox-fix`},n,_.createElement(`div`,{style:t.toggle},_.createElement(`div`,{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},_.createElement(RK.default,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.hsl.a!==1&&t.view===`hex`?{view:`rgb`}:null}}]),t}(_.Component);UK.defaultProps={view:`hex`};var WK=function(){var e=(0,xW.default)({default:{picker:{width:`12px`,height:`12px`,borderRadius:`6px`,transform:`translate(-6px, -1px)`,backgroundColor:`rgb(248, 248, 248)`,boxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.37)`}}});return _.createElement(`div`,{style:e.picker})},GK=function(){var e=(0,xW.default)({default:{picker:{width:`12px`,height:`12px`,borderRadius:`6px`,boxShadow:`inset 0 0 0 1px #fff`,transform:`translate(-6px, -6px)`}}});return _.createElement(`div`,{style:e.picker})},KK=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,i=e.rgb,a=e.hsl,o=e.hsv,s=e.hex,c=e.renderers,l=e.styles,u=l===void 0?{}:l,d=e.className,f=d===void 0?``:d,p=e.defaultView,m=(0,xW.default)(Xh({default:{picker:{width:t,background:`#fff`,borderRadius:`2px`,boxShadow:`0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)`,boxSizing:`initial`,fontFamily:`Menlo`},saturation:{width:`100%`,paddingBottom:`55%`,position:`relative`,borderRadius:`2px 2px 0 0`,overflow:`hidden`},Saturation:{radius:`2px 2px 0 0`},body:{padding:`16px 16px 12px`},controls:{display:`flex`},color:{width:`32px`},swatch:{marginTop:`6px`,width:`16px`,height:`16px`,borderRadius:`8px`,position:`relative`,overflow:`hidden`},active:{absolute:`0px 0px 0px 0px`,borderRadius:`8px`,boxShadow:`inset 0 0 0 1px rgba(0,0,0,.1)`,background:`rgba(`+i.r+`, `+i.g+`, `+i.b+`, `+i.a+`)`,zIndex:`2`},toggles:{flex:`1`},hue:{height:`10px`,position:`relative`,marginBottom:`8px`},Hue:{radius:`2px`},alpha:{height:`10px`,position:`relative`},Alpha:{radius:`2px`}},disableAlpha:{color:{width:`22px`},alpha:{display:`none`},hue:{marginBottom:`0px`},swatch:{width:`10px`,height:`10px`,marginTop:`0px`}}},u),{disableAlpha:r});return _.createElement(`div`,{style:m.picker,className:`chrome-picker `+f},_.createElement(`div`,{style:m.saturation},_.createElement(iG,{style:m.Saturation,hsl:a,hsv:o,pointer:GK,onChange:n})),_.createElement(`div`,{style:m.body},_.createElement(`div`,{style:m.controls,className:`flexbox-fix`},_.createElement(`div`,{style:m.color},_.createElement(`div`,{style:m.swatch},_.createElement(`div`,{style:m.active}),_.createElement(DW,{renderers:c}))),_.createElement(`div`,{style:m.toggles},_.createElement(`div`,{style:m.hue},_.createElement(ZW,{style:m.Hue,hsl:a,pointer:WK,onChange:n})),_.createElement(`div`,{style:m.alpha},_.createElement(NW,{style:m.Alpha,rgb:i,hsl:a,pointer:WK,renderers:c,onChange:n})))),_.createElement(UK,{rgb:i,hsl:a,hex:s,view:p,onChange:n,disableAlpha:r})))};KK.propTypes={width:K.default.oneOfType([K.default.string,K.default.number]),disableAlpha:K.default.bool,styles:K.default.object,defaultView:K.default.oneOf([`hex`,`rgb`,`hsl`])},KK.defaultProps={width:225,disableAlpha:!1,styles:{}};var qK=nK(KK),JK=function(e){var t=e.color,n=e.onClick,r=n===void 0?function(){}:n,i=e.onSwatchHover,a=e.active,o=(0,xW.default)({default:{color:{background:t,width:`15px`,height:`15px`,float:`left`,marginRight:`5px`,marginBottom:`5px`,position:`relative`,cursor:`pointer`},dot:{absolute:`5px 5px 5px 5px`,background:YG(t),borderRadius:`50%`,opacity:`0`}},active:{dot:{opacity:`1`}},"color-#FFFFFF":{color:{boxShadow:`inset 0 0 0 1px #ddd`},dot:{background:`#000`}},transparent:{dot:{background:`#000`}}},{active:a,"color-#FFFFFF":t===`#FFFFFF`,transparent:t===`transparent`});return _.createElement(dK,{style:o.color,color:t,onClick:r,onHover:i,focusStyle:{boxShadow:`0 0 4px `+t}},_.createElement(`div`,{style:o.dot}))},YK=function(e){var t=e.hex,n=e.rgb,r=e.onChange,i=(0,xW.default)({default:{fields:{display:`flex`,paddingBottom:`6px`,paddingRight:`5px`,position:`relative`},active:{position:`absolute`,top:`6px`,left:`5px`,height:`9px`,width:`9px`,background:t},HEXwrap:{flex:`6`,position:`relative`},HEXinput:{width:`80%`,padding:`0px`,paddingLeft:`20%`,border:`none`,outline:`none`,background:`none`,fontSize:`12px`,color:`#333`,height:`16px`},HEXlabel:{display:`none`},RGBwrap:{flex:`3`,position:`relative`},RGBinput:{width:`70%`,padding:`0px`,paddingLeft:`30%`,border:`none`,outline:`none`,background:`none`,fontSize:`12px`,color:`#333`,height:`16px`},RGBlabel:{position:`absolute`,top:`3px`,left:`0px`,lineHeight:`16px`,textTransform:`uppercase`,fontSize:`12px`,color:`#999`}}}),a=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:`rgb`},t):r({hex:e.hex,source:`hex`},t)};return _.createElement(`div`,{style:i.fields,className:`flexbox-fix`},_.createElement(`div`,{style:i.active}
147),_.createElement(GW,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:`hex`,value:t,onChange:a}),_.createElement(GW,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:`r`,value:n.r,onChange:a}),_.createElement(GW,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:`g`,value:n.g,onChange:a}),_.createElement(GW,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:`b`,value:n.b,onChange:a}))};Uh();var XK=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,i=e.hex,a=e.rgb,o=e.styles,s=o===void 0?{}:o,c=e.className,l=c===void 0?``:c,u=(0,xW.default)(Xh({default:{Compact:{background:`#f6f6f6`,radius:`4px`},compact:{paddingTop:`5px`,paddingLeft:`5px`,boxSizing:`initial`,width:`240px`},clear:{clear:`both`}}},s)),d=function(e,n){e.hex?JG(e.hex)&&t({hex:e.hex,source:`hex`},n):t(e,n)};return _.createElement(QW,{style:u.Compact,styles:s},_.createElement(`div`,{style:u.compact,className:`compact-picker `+l},_.createElement(`div`,null,Hh(r,function(e){return _.createElement(JK,{key:e,color:e,active:e.toLowerCase()===i,onClick:d,onSwatchHover:n})}),_.createElement(`div`,{style:u.clear})),_.createElement(YK,{hex:i,rgb:a,onChange:d})))};XK.propTypes={colors:K.default.arrayOf(K.default.string),styles:K.default.object},XK.defaultProps={colors:`#4D4D4D.#999999.#FFFFFF.#F44E3B.#FE9200.#FCDC00.#DBDF00.#A4DD00.#68CCCA.#73D8FF.#AEA1FF.#FDA1FF.#333333.#808080.#cccccc.#D33115.#E27300.#FCC400.#B0BC00.#68BC00.#16A5A5.#009CE0.#7B64FF.#FA28FF.#000000.#666666.#B3B3B3.#9F0500.#C45100.#FB9E00.#808900.#194D33.#0C797D.#0062B1.#653294.#AB149E`.split(`.`),styles:{}},nK(XK);var ZK=(0,xW.handleHover)(function(e){var t=e.hover,n=e.color,r=e.onClick,i=e.onSwatchHover,a={position:`relative`,zIndex:`2`,outline:`2px solid #fff`,boxShadow:`0 0 5px 2px rgba(0,0,0,0.25)`},o=(0,xW.default)({default:{swatch:{width:`25px`,height:`25px`,fontSize:`0`}},hover:{swatch:a}},{hover:t});return _.createElement(`div`,{style:o.swatch},_.createElement(dK,{color:n,onClick:r,onHover:i,focusStyle:a}))});Uh();var QK=function(e){var t=e.width,n=e.colors,r=e.onChange,i=e.onSwatchHover,a=e.triangle,o=e.styles,s=o===void 0?{}:o,c=e.className,l=c===void 0?``:c,u=(0,xW.default)(Xh({default:{card:{width:t,background:`#fff`,border:`1px solid rgba(0,0,0,0.2)`,boxShadow:`0 3px 12px rgba(0,0,0,0.15)`,borderRadius:`4px`,position:`relative`,padding:`5px`,display:`flex`,flexWrap:`wrap`},triangle:{position:`absolute`,border:`7px solid transparent`,borderBottomColor:`#fff`},triangleShadow:{position:`absolute`,border:`8px solid transparent`,borderBottomColor:`rgba(0,0,0,0.15)`}},"hide-triangle":{triangle:{display:`none`},triangleShadow:{display:`none`}},"top-left-triangle":{triangle:{top:`-14px`,left:`10px`},triangleShadow:{top:`-16px`,left:`9px`}},"top-right-triangle":{triangle:{top:`-14px`,right:`10px`},triangleShadow:{top:`-16px`,right:`9px`}},"bottom-left-triangle":{triangle:{top:`35px`,left:`10px`,transform:`rotate(180deg)`},triangleShadow:{top:`37px`,left:`9px`,transform:`rotate(180deg)`}},"bottom-right-triangle":{triangle:{top:`35px`,right:`10px`,transform:`rotate(180deg)`},triangleShadow:{top:`37px`,right:`9px`,transform:`rotate(180deg)`}}},s),{"hide-triangle":a===`hide`,"top-left-triangle":a===`top-left`,"top-right-triangle":a===`top-right`,"bottom-left-triangle":a===`bottom-left`,"bottom-right-triangle":a===`bottom-right`}),d=function(e,t){return r({hex:e,source:`hex`},t)};return _.createElement(`div`,{style:u.card,className:`github-picker `+l},_.createElement(`div`,{style:u.triangleShadow}),_.createElement(`div`,{style:u.triangle}),Hh(n,function(e){return _.createElement(ZK,{color:e,key:e,onClick:d,onSwatchHover:i})}))};QK.propTypes={width:K.default.oneOfType([K.default.string,K.default.number]),colors:K.default.arrayOf(K.default.string),triangle:K.default.oneOf([`hide`,`top-left`,`top-right`,`bottom-left`,`bottom-right`]),styles:K.default.object},QK.defaultProps={width:200,colors:[`#B80000`,`#DB3E00`,`#FCCB00`,`#008B02`,`#006B76`,`#1273DE`,`#004DCF`,`#5300EB`,`#EB9694`,`#FAD0C3`,`#FEF3BD`,`#C1E1C5`,`#BEDADC`,`#C4DEF6`,`#BED3F3`,`#D4C4FB`],triangle:`top-left`,styles:{}},nK(QK);var $K=function(e){var t=e.direction,n=(0,xW.default)({default:{picker:{width:`18px`,he
147ight:`18px`,borderRadius:`50%`,transform:`translate(-9px, -1px)`,backgroundColor:`rgb(248, 248, 248)`,boxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.37)`}},vertical:{picker:{transform:`translate(-3px, -9px)`}}},{vertical:t===`vertical`});return _.createElement(`div`,{style:n.picker})},eq=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tq=function(e){var t=e.width,n=e.height,r=e.onChange,i=e.hsl,a=e.direction,o=e.pointer,s=e.styles,c=s===void 0?{}:s,l=e.className,u=l===void 0?``:l,d=(0,xW.default)(Xh({default:{picker:{position:`relative`,width:t,height:n},hue:{radius:`2px`}}},c));return _.createElement(`div`,{style:d.picker,className:`hue-picker `+u},_.createElement(ZW,eq({},d.hue,{hsl:i,pointer:o,onChange:function(e){return r({a:1,h:e.h,l:.5,s:1})},direction:a})))};tq.propTypes={styles:K.default.object},tq.defaultProps={width:`316px`,height:`16px`,direction:`horizontal`,pointer:$K,styles:{}},nK(tq),nK(function(e){var t=e.onChange,n=e.hex,r=e.rgb,i=e.styles,a=i===void 0?{}:i,o=e.className,s=o===void 0?``:o,c=(0,xW.default)(Xh({default:{material:{width:`98px`,height:`98px`,padding:`16px`,fontFamily:`Roboto`},HEXwrap:{position:`relative`},HEXinput:{width:`100%`,marginTop:`12px`,fontSize:`15px`,color:`#333`,padding:`0px`,border:`0px`,borderBottom:`2px solid `+n,outline:`none`,height:`30px`},HEXlabel:{position:`absolute`,top:`0px`,left:`0px`,fontSize:`11px`,color:`#999999`,textTransform:`capitalize`},Hex:{style:{}},RGBwrap:{position:`relative`},RGBinput:{width:`100%`,marginTop:`12px`,fontSize:`15px`,color:`#333`,padding:`0px`,border:`0px`,borderBottom:`1px solid #eee`,outline:`none`,height:`30px`},RGBlabel:{position:`absolute`,top:`0px`,left:`0px`,fontSize:`11px`,color:`#999999`,textTransform:`capitalize`},split:{display:`flex`,marginRight:`-10px`,paddingTop:`11px`},third:{flex:`1`,paddingRight:`10px`}}},a)),l=function(e,n){e.hex?JG(e.hex)&&t({hex:e.hex,source:`hex`},n):(e.r||e.g||e.b)&&t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:`rgb`},n)};return _.createElement(QW,{styles:a},_.createElement(`div`,{style:c.material,className:`material-picker `+s},_.createElement(GW,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:`hex`,value:n,onChange:l}),_.createElement(`div`,{style:c.split,className:`flexbox-fix`},_.createElement(`div`,{style:c.third},_.createElement(GW,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:`r`,value:r.r,onChange:l})),_.createElement(`div`,{style:c.third},_.createElement(GW,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:`g`,value:r.g,onChange:l})),_.createElement(`div`,{style:c.third},_.createElement(GW,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:`b`,value:r.b,onChange:l})))))});var n_e=function(e){var t=e.onChange,n=e.rgb,r=e.hsv,i=e.hex,a=(0,xW.default)({default:{fields:{paddingTop:`5px`,paddingBottom:`9px`,width:`80px`,position:`relative`},divider:{height:`5px`},RGBwrap:{position:`relative`},RGBinput:{marginLeft:`40%`,width:`40%`,height:`18px`,border:`1px solid #888888`,boxShadow:`inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC`,marginBottom:`5px`,fontSize:`13px`,paddingLeft:`3px`,marginRight:`10px`},RGBlabel:{left:`0px`,top:`0px`,width:`34px`,textTransform:`uppercase`,fontSize:`13px`,height:`18px`,lineHeight:`22px`,position:`absolute`},HEXwrap:{position:`relative`},HEXinput:{marginLeft:`20%`,width:`80%`,height:`18px`,border:`1px solid #888888`,boxShadow:`inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC`,marginBottom:`6px`,fontSize:`13px`,paddingLeft:`3px`},HEXlabel:{position:`absolute`,top:`0px`,left:`0px`,width:`14px`,textTransform:`uppercase`,fontSize:`13px`,height:`18px`,lineHeight:`22px`},fieldSymbols:{position:`absolute`,top:`5px`,right:`-7px`,fontSize:`13px`},symbol:{height:`20px`,lineHeight:`22px`,paddingBottom:`7px`}}}),o=function(e,i){e[`#`]?JG(e[`#`])&&t({hex:e[`#`],source:`hex`},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:`rgb`},i):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:`hsv`},i)};return _.createElement(`div`,{style:a.fields}
147,_.createElement(GW,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:`h`,value:Math.round(r.h),onChange:o}),_.createElement(GW,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:`s`,value:Math.round(r.s*100),onChange:o}),_.createElement(GW,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:`v`,value:Math.round(r.v*100),onChange:o}),_.createElement(`div`,{style:a.divider}),_.createElement(GW,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:`r`,value:n.r,onChange:o}),_.createElement(GW,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:`g`,value:n.g,onChange:o}),_.createElement(GW,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:`b`,value:n.b,onChange:o}),_.createElement(`div`,{style:a.divider}),_.createElement(GW,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:`#`,value:i.replace(`#`,``),onChange:o}),_.createElement(`div`,{style:a.fieldSymbols},_.createElement(`div`,{style:a.symbol},`°`),_.createElement(`div`,{style:a.symbol},`%`),_.createElement(`div`,{style:a.symbol},`%`)))},r_e=function(e){var t=e.hsl,n=(0,xW.default)({default:{picker:{width:`12px`,height:`12px`,borderRadius:`6px`,boxShadow:`inset 0 0 0 1px #fff`,transform:`translate(-6px, -6px)`}},"black-outline":{picker:{boxShadow:`inset 0 0 0 1px #000`}}},{"black-outline":t.l>.5});return _.createElement(`div`,{style:n.picker})},i_e=function(){var e=(0,xW.default)({default:{triangle:{width:0,height:0,borderStyle:`solid`,borderWidth:`4px 0 4px 6px`,borderColor:`transparent transparent transparent #fff`,position:`absolute`,top:`1px`,left:`1px`},triangleBorder:{width:0,height:0,borderStyle:`solid`,borderWidth:`5px 0 5px 8px`,borderColor:`transparent transparent transparent #555`},left:{Extend:`triangleBorder`,transform:`translate(-13px, -4px)`},leftInside:{Extend:`triangle`,transform:`translate(-8px, -5px)`},right:{Extend:`triangleBorder`,transform:`translate(20px, -14px) rotate(180deg)`},rightInside:{Extend:`triangle`,transform:`translate(-8px, -5px)`}}});return _.createElement(`div`,{style:e.pointer},_.createElement(`div`,{style:e.left},_.createElement(`div`,{style:e.leftInside})),_.createElement(`div`,{style:e.right},_.createElement(`div`,{style:e.rightInside})))},nq=function(e){var t=e.onClick,n=e.label,r=e.children,i=e.active,a=(0,xW.default)({default:{button:{backgroundImage:`linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)`,border:`1px solid #878787`,borderRadius:`2px`,height:`20px`,boxShadow:`0 1px 0 0 #EAEAEA`,fontSize:`14px`,color:`#000`,lineHeight:`20px`,textAlign:`center`,marginBottom:`10px`,cursor:`pointer`}},active:{button:{boxShadow:`0 0 0 1px #878787`}}},{active:i});return _.createElement(`div`,{style:a.button,onClick:t},n||r)},a_e=function(e){var t=e.rgb,n=e.currentColor,r=(0,xW.default)({default:{swatches:{border:`1px solid #B3B3B3`,borderBottom:`1px solid #F0F0F0`,marginBottom:`2px`,marginTop:`1px`},new:{height:`34px`,background:`rgb(`+t.r+`,`+t.g+`, `+t.b+`)`,boxShadow:`inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000`},current:{height:`34px`,background:n,boxShadow:`inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000`},label:{fontSize:`14px`,color:`#000`,textAlign:`center`}}});return _.createElement(`div`,null,_.createElement(`div`,{style:r.label},`new`),_.createElement(`div`,{style:r.swatches},_.createElement(`div`,{style:r.new}),_.createElement(`div`,{style:r.current})),_.createElement(`div`,{style:r.label},`current`))},o_e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function s_e(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function c_e(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function l_e(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var rq=function(e){l_e(t,e);function t(e){s_e(this,t);var n=c_e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return o_e(t,[{key:`render`,value:function(){var e=this.props,t=e.styles,n=t===void 0?{}:t,r=e.className,i=r===void 0?``:r,a=(0,xW.default)(Xh({default:{picker:{background:`#DCDCDC`,borderRadius:`4px`,boxShadow:`0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)`,boxSizing:`initial`,width:`513px`},head:{backgroundImage:`linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)`,borderBottom:`1px solid #B1B1B1`,boxShadow:`inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)`,height:`23px`,lineHeight:`24px`,borderRadius:`4px 4px 0 0`,fontSize:`13px`,color:`#4D4D4D`,textAlign:`center`},body:{padding:`15px 15px 0`,display:`flex`},saturation:{width:`256px`,height:`256px`,position:`relative`,border:`2px solid #B3B3B3`,borderBottom:`2px solid #F0F0F0`,overflow:`hidden`},hue:{position:`relative`,height:`256px`,width:`19px`,marginLeft:`10px`,border:`2px solid #B3B3B3`,borderBottom:`2px solid #F0F0F0`}
147,controls:{width:`180px`,marginLeft:`10px`},top:{display:`flex`},previews:{width:`60px`},actions:{flex:`1`,marginLeft:`20px`}}},n));return _.createElement(`div`,{style:a.picker,className:`photoshop-picker `+i},_.createElement(`div`,{style:a.head},this.props.header),_.createElement(`div`,{style:a.body,className:`flexbox-fix`},_.createElement(`div`,{style:a.saturation},_.createElement(iG,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:r_e,onChange:this.props.onChange})),_.createElement(`div`,{style:a.hue},_.createElement(ZW,{direction:`vertical`,hsl:this.props.hsl,pointer:i_e,onChange:this.props.onChange})),_.createElement(`div`,{style:a.controls},_.createElement(`div`,{style:a.top,className:`flexbox-fix`},_.createElement(`div`,{style:a.previews},_.createElement(a_e,{rgb:this.props.rgb,currentColor:this.state.currentColor})),_.createElement(`div`,{style:a.actions},_.createElement(nq,{label:`OK`,onClick:this.props.onAccept,active:!0}),_.createElement(nq,{label:`Cancel`,onClick:this.props.onCancel}),_.createElement(n_e,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(_.Component);rq.propTypes={header:K.default.string,styles:K.default.object},rq.defaultProps={header:`Color Picker`,styles:{}},nK(rq);var u_e=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,i=e.hex,a=e.disableAlpha,o=(0,xW.default)({default:{fields:{display:`flex`,paddingTop:`4px`},single:{flex:`1`,paddingLeft:`6px`},alpha:{flex:`1`,paddingLeft:`6px`},double:{flex:`2`},input:{width:`80%`,padding:`4px 10% 3px`,border:`none`,boxShadow:`inset 0 0 0 1px #ccc`,fontSize:`11px`},label:{display:`block`,textAlign:`center`,fontSize:`11px`,color:`#222`,paddingTop:`3px`,paddingBottom:`4px`,textTransform:`capitalize`}},disableAlpha:{alpha:{display:`none`}}},{disableAlpha:a}),s=function(e,i){e.hex?JG(e.hex)&&t({hex:e.hex,source:`hex`},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:`rgb`},i):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:`rgb`},i))};return _.createElement(`div`,{style:o.fields,className:`flexbox-fix`},_.createElement(`div`,{style:o.double},_.createElement(GW,{style:{input:o.input,label:o.label},label:`hex`,value:i.replace(`#`,``),onChange:s})),_.createElement(`div`,{style:o.single},_.createElement(GW,{style:{input:o.input,label:o.label},label:`r`,value:n.r,onChange:s,dragLabel:`true`,dragMax:`255`})),_.createElement(`div`,{style:o.single},_.createElement(GW,{style:{input:o.input,label:o.label},label:`g`,value:n.g,onChange:s,dragLabel:`true`,dragMax:`255`})),_.createElement(`div`,{style:o.single},_.createElement(GW,{style:{input:o.input,label:o.label},label:`b`,value:n.b,onChange:s,dragLabel:`true`,dragMax:`255`}
147)),_.createElement(`div`,{style:o.alpha},_.createElement(GW,{style:{input:o.input,label:o.label},label:`a`,value:Math.round(n.a*100),onChange:s,dragLabel:`true`,dragMax:`100`})))},d_e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iq=function(e){var t=e.colors,n=e.onClick,r=n===void 0?function(){}:n,i=e.onSwatchHover,a=(0,xW.default)({default:{colors:{margin:`0 -10px`,padding:`10px 0 0 10px`,borderTop:`1px solid #eee`,display:`flex`,flexWrap:`wrap`,position:`relative`},swatchWrap:{width:`16px`,height:`16px`,margin:`0 10px 10px 0`},swatch:{borderRadius:`3px`,boxShadow:`inset 0 0 0 1px rgba(0,0,0,.15)`}},"no-presets":{colors:{display:`none`}}},{"no-presets":!t||!t.length}),o=function(e,t){r({hex:e,source:`hex`},t)};return _.createElement(`div`,{style:a.colors,className:`flexbox-fix`},t.map(function(e){var t=typeof e==`string`?{color:e}:e,n=``+t.color+(t.title||``);return _.createElement(`div`,{key:n,style:a.swatchWrap},_.createElement(dK,d_e({},t,{style:a.swatch,onClick:o,onHover:i,focusStyle:{boxShadow:`inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px `+t.color}})))}))};iq.propTypes={colors:K.default.arrayOf(K.default.oneOfType([K.default.string,K.default.shape({color:K.default.string,title:K.default.string})])).isRequired};var f_e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aq=function(e){var t=e.width,n=e.rgb,r=e.hex,i=e.hsv,a=e.hsl,o=e.onChange,s=e.onSwatchHover,c=e.disableAlpha,l=e.presetColors,u=e.renderers,d=e.styles,f=d===void 0?{}:d,p=e.className,m=p===void 0?``:p,h=(0,xW.default)(Xh({default:f_e({picker:{width:t,padding:`10px 10px 0`,boxSizing:`initial`,background:`#fff`,borderRadius:`4px`,boxShadow:`0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)`},saturation:{width:`100%`,paddingBottom:`75%`,position:`relative`,overflow:`hidden`},Saturation:{radius:`3px`,shadow:`inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)`},controls:{display:`flex`},sliders:{padding:`4px 0`,flex:`1`},color:{width:`24px`,height:`24px`,position:`relative`,marginTop:`4px`,marginLeft:`4px`,borderRadius:`3px`},activeColor:{absolute:`0px 0px 0px 0px`,borderRadius:`2px`,background:`rgba(`+n.r+`,`+n.g+`,`+n.b+`,`+n.a+`)`,boxShadow:`inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)`},hue:{position:`relative`,height:`10px`,overflow:`hidden`},Hue:{radius:`2px`,shadow:`inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)`},alpha:{position:`relative`,height:`10px`,marginTop:`4px`,overflow:`hidden`},Alpha:{radius:`2px`,shadow:`inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)`}},f),disableAlpha:{color:{height:`10px`},hue:{height:`10px`},alpha:{display:`none`}}},f),{disableAlpha:c});return _.createElement(`div`,{style:h.picker,className:`sketch-picker `+m},_.createElement(`div`,{style:h.saturation},_.createElement(iG,{style:h.Saturation,hsl:a,hsv:i,onChange:o})),_.createElement(`div`,{style:h.controls,className:`flexbox-fix`},_.createElement(`div`,{style:h.sliders},_.createElement(`div`,{style:h.hue},_.createElement(ZW,{style:h.Hue,hsl:a,onChange:o})),_.createElement(`div`,{style:h.alpha},_.createElement(NW,{style:h.Alpha,rgb:n,hsl:a,renderers:u,onChange:o}))),_.createElement(`div`,{style:h.color},_.createElement(DW,null),_.createElement(`div`,{style:h.activeColor}))),_.createElement(u_e,{rgb:n,hsl:a,hex:r,onChange:o,disableAlpha:c}),_.createElement(iq,{colors:l,onClick:o,onSwatchHover:s}))};aq.propTypes={disableAlpha:K.default.bool,width:K.default.oneOfType([K.default.string,K.default.number]),styles:K.default.object},aq.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:[`#D0021B`,`#F5A623`,`#F8E71C`,`#8B572A`,`#7ED321`,`#417505`,`#BD10E0`,`#9013FE`,`#4A90E2`,`#50E3C2`,`#B8E986`,`#000000`,`#4A4A4A`,`#9B9B9B`,`#FFFFFF`]},nK(aq);var oq=function(e){var t=e.hsl,n=e.offset,r=e.onClick,i=r===void 0?function(){}:r,a=e.active,o=e.first,s=e.last,c=(0,xW.default)({default:{swatch:{height:`12px`,background:`hsl(`+t.h+`, 50%, `+n*100+`%)`,curs
147or:`pointer`}},first:{swatch:{borderRadius:`2px 0 0 2px`}},last:{swatch:{borderRadius:`0 2px 2px 0`}},active:{swatch:{transform:`scaleY(1.8)`,borderRadius:`3.6px/2px`}}},{active:a,first:o,last:s});return _.createElement(`div`,{style:c.swatch,onClick:function(e){return i({h:t.h,s:.5,l:n,source:`hsl`},e)}})},p_e=function(e){var t=e.onClick,n=e.hsl,r=(0,xW.default)({default:{swatches:{marginTop:`20px`},swatch:{boxSizing:`border-box`,width:`20%`,paddingRight:`1px`,float:`left`},clear:{clear:`both`}}}),i=.1;return _.createElement(`div`,{style:r.swatches},_.createElement(`div`,{style:r.swatch},_.createElement(oq,{hsl:n,offset:`.80`,active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:t,first:!0})),_.createElement(`div`,{style:r.swatch},_.createElement(oq,{hsl:n,offset:`.65`,active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:t})),_.createElement(`div`,{style:r.swatch},_.createElement(oq,{hsl:n,offset:`.50`,active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:t})),_.createElement(`div`,{style:r.swatch},_.createElement(oq,{hsl:n,offset:`.35`,active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:t})),_.createElement(`div`,{style:r.swatch},_.createElement(oq,{hsl:n,offset:`.20`,active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:t,last:!0})),_.createElement(`div`,{style:r.clear}))},m_e=function(){var e=(0,xW.default)({default:{picker:{width:`14px`,height:`14px`,borderRadius:`6px`,transform:`translate(-7px, -1px)`,backgroundColor:`rgb(248, 248, 248)`,boxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.37)`}}});return _.createElement(`div`,{style:e.picker})},sq=function(e){var t=e.hsl,n=e.onChange,r=e.pointer,i=e.styles,a=i===void 0?{}:i,o=e.className,s=o===void 0?``:o,c=(0,xW.default)(Xh({default:{hue:{height:`12px`,position:`relative`},Hue:{radius:`2px`}}},a));return _.createElement(`div`,{style:c.wrap||{},className:`slider-picker `+s},_.createElement(`div`,{style:c.hue},_.createElement(ZW,{style:c.Hue,hsl:t,pointer:r,onChange:n})),_.createElement(`div`,{style:c.swatches},_.createElement(p_e,{hsl:t,onClick:n})))};sq.propTypes={styles:K.default.object},sq.defaultProps={pointer:m_e,styles:{}},nK(sq);var h_e=u(s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=r(m());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var a=24;e.default=function(e){var r=e.fill,o=r===void 0?`currentColor`:r,s=e.width,c=s===void 0?a:s,l=e.height,u=l===void 0?a:l,d=e.style,f=d===void 0?{}:d,p=i(e,[`fill`,`width`,`height`,`style`]);return n.default.createElement(`svg`,t({viewBox:`0 0 `+a+` `+a,style:t({fill:o,width:c,height:u},f)},p),n.default.createElement(`path`,{d:`M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z`}))}}))()),g_e=function(e){var t=e.color,n=e.onClick,r=n===void 0?function(){}:n,i=e.onSwatchHover,a=e.first,o=e.last,s=e.active,c=(0,xW.default)({default:{color:{width:`40px`,height:`24px`,cursor:`pointer`,background:t,marginBottom:`1px`},check:{color:YG(t),marginLeft:`8px`,display:`none`}},first:{color:{overflow:`hidden`,borderRadius:`2px 2px 0 0`}},last:{color:{overflow:`hidden`,borderRadius:`0 0 2px 2px`}},active:{check:{display:`block`}},"color-#FFFFFF":{color:{boxShadow:`inset 0 0 0 1px #ddd`},check:{color:`#333`}},transparent:{check:{color:`#333`}}},{first:a,last:o,active:s,"color-#FFFFFF":t===`#FFFFFF`,transparent:t===`transparent`});return _.createElement(dK,{color:t,style:c.color,onClick:r,onHover:i,focusStyle:{boxShadow:`0 0 4px `+t}},_.createElement(`div`,{style:c.check},_.createElement(h_e.default,null)))};Uh();var __e=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,i=e.active,a=(0,xW.default)({default:{group:{paddingBottom:`10px`,width:`40px`,float:`left`,marginRight:`10px`}}});return _.createElement(`div`,{style:a.group},Hh(r,function(e,a){return _.createElement(g_e,{key:e,color:e,active:e.toLowerCase()===i,first:a===0,last:a===r.length-1,onClick:t,onSwatchHover:n})}))};Uh();
147var cq=function(e){var t=e.width,n=e.height,r=e.onChange,i=e.onSwatchHover,a=e.colors,o=e.hex,s=e.styles,c=s===void 0?{}:s,l=e.className,u=l===void 0?``:l,d=(0,xW.default)(Xh({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:`scroll`},body:{padding:`16px 0 6px 16px`},clear:{clear:`both`}}},c)),f=function(e,t){return r({hex:e,source:`hex`},t)};return _.createElement(`div`,{style:d.picker,className:`swatches-picker `+u},_.createElement(QW,null,_.createElement(`div`,{style:d.overflow},_.createElement(`div`,{style:d.body},Hh(a,function(e){return _.createElement(__e,{key:e.toString(),group:e,active:o,onClick:f,onSwatchHover:i})}),_.createElement(`div`,{style:d.clear})))))};cq.propTypes={width:K.default.oneOfType([K.default.string,K.default.number]),height:K.default.oneOfType([K.default.string,K.default.number]),colors:K.default.arrayOf(K.default.arrayOf(K.default.string)),styles:K.default.object},cq.defaultProps={width:320,height:240,colors:[[_K[900],_K[700],_K[500],_K[300],_K[100]],[vK[900],vK[700],vK[500],vK[300],vK[100]],[yK[900],yK[700],yK[500],yK[300],yK[100]],[bK[900],bK[700],bK[500],bK[300],bK[100]],[xK[900],xK[700],xK[500],xK[300],xK[100]],[SK[900],SK[700],SK[500],SK[300],SK[100]],[CK[900],CK[700],CK[500],CK[300],CK[100]],[wK[900],wK[700],wK[500],wK[300],wK[100]],[TK[900],TK[700],TK[500],TK[300],TK[100]],[`#194D33`,EK[700],EK[500],EK[300],EK[100]],[DK[900],DK[700],DK[500],DK[300],DK[100]],[OK[900],OK[700],OK[500],OK[300],OK[100]],[kK[900],kK[700],kK[500],kK[300],kK[100]],[AK[900],AK[700],AK[500],AK[300],AK[100]],[jK[900],jK[700],jK[500],jK[300],jK[100]],[MK[900],MK[700],MK[500],MK[300],MK[100]],[NK[900],NK[700],NK[500],NK[300],NK[100]],[PK[900],PK[700],PK[500],PK[300],PK[100]],[`#000000`,`#525252`,`#969696`,`#D9D9D9`,`#FFFFFF`]],styles:{}},nK(cq),Uh();var lq=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,i=e.colors,a=e.width,o=e.triangle,s=e.styles,c=s===void 0?{}:s,l=e.className,u=l===void 0?``:l,d=(0,xW.default)(Xh({default:{card:{width:a,background:`#fff`,border:`0 solid rgba(0,0,0,0.25)`,boxShadow:`0 1px 4px rgba(0,0,0,0.25)`,borderRadius:`4px`,position:`relative`},body:{padding:`15px 9px 9px 15px`},label:{fontSize:`18px`,color:`#fff`},triangle:{width:`0px`,height:`0px`,borderStyle:`solid`,borderWidth:`0 9px 10px 9px`,borderColor:`transparent transparent #fff transparent`,position:`absolute`},triangleShadow:{width:`0px`,height:`0px`,borderStyle:`solid`,borderWidth:`0 9px 10px 9px`,borderColor:`transparent transparent rgba(0,0,0,.1) transparent`,position:`absolute`},hash:{background:`#F0F0F0`,height:`30px`,width:`30px`,borderRadius:`4px 0 0 4px`,float:`left`,color:`#98A1A4`,display:`flex`,alignItems:`center`,justifyContent:`center`},input:{width:`100px`,fontSize:`14px`,color:`#666`,border:`0px`,outline:`none`,height:`28px`,boxShadow:`inset 0 0 0 1px #F0F0F0`,boxSizing:`content-box`,borderRadius:`0 4px 4px 0`,float:`left`,paddingLeft:`8px`},swatch:{width:`30px`,height:`30px`,float:`left`,borderRadius:`4px`,margin:`0 6px 6px 0`},clear:{clear:`both`}},"hide-triangle":{triangle:{display:`none`},triangleShadow:{display:`none`}},"top-left-triangle":{triangle:{top:`-10px`,left:`12px`},triangleShadow:{top:`-11px`,left:`12px`}},"top-right-triangle":{triangle:{top:`-10px`,right:`12px`},triangleShadow:{top:`-11px`,right:`12px`}}},c),{"hide-triangle":o===`hide`,"top-left-triangle":o===`top-left`,"top-right-triangle":o===`top-right`}),f=function(e,n){JG(e)&&t({hex:e,source:`hex`},n)};return _.createElement(`div`,{style:d.card,className:`twitter-picker `+u},_.createElement(`div`,{style:d.triangleShadow}),_.createElement(`div`,{style:d.triangle}),_.createElement(`div`,{style:d.body},Hh(i,function(e,t){return _.createElement(dK,{key:t,color:e,hex:e,style:d.swatch,onClick:f,onHover:n,focusStyle:{boxShadow:`0 0 4px `+e}})}),_.createElement(`div`,{style:d.hash},`#`),_.createElement(GW,{label:null,style:{input:d.input},value:r.replace(`#`,``),onChange:f}),_.createElement(`div`,{style:d.clear})))};lq.propTypes={width:K.default.oneOfType([K.default.string,K.default.number]),triangle:K.default.oneOf([`hide`,`top-left`,`top-right`]),colors:K.default.arrayOf(K.default.string),styles:K.default.object},lq.defaultProps={width:276,colors:[`#FF6900`,`#FCB900`,`#7BDCB5`,`#00D084`,`#8ED1FC`,`#0693E3`,`#ABB8C3`,`#EB144C`,`#F78DA7`,`#9900EF`],triangle:`top-left`,styles:{}},nK(lq);var uq=function(e){var t=(0,xW.default)({default:{picker:{width:`20px`,height:`20px`,borderRadius:`22px`,border:`2px #fff solid`,transform:`translate(-12px, -13px)`,background:`hsl(`+Math.round(e.hsl.h)+`, `+Math.round(e.hsl.s*100)+`%, `+Math.round(e.hsl.l*100)+`%)`}}});return _.createElement(`div`,{style:t.picker})};uq.propTypes={hsl:K.default.shape({h:K.default.number,s:K.default.number,l:K.default.number,a:K.default.number})},uq.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var dq=function(e){var t=(0,xW.default)({default:{picker:{width:`20px`,height:`20px`,borderRadius:`22px`,transform:`translate(-10px, -7px)`,background:`hsl(`+Math.round(e.hsl.h)+`, 100%, 50%)`,border:`2px white solid`}}});return _.createElement(`div`,{style:t.picker})};
147dq.propTypes={hsl:K.default.shape({h:K.default.number,s:K.default.number,l:K.default.number,a:K.default.number})},dq.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var v_e=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,i=e.hex,a=e.hsv,o=function(e,n){if(e.hex)JG(e.hex)&&t({hex:e.hex,source:`hex`},n);else if(e.rgb){var r=e.rgb.split(`,`);XG(e.rgb,`rgb`)&&t({r:r[0],g:r[1],b:r[2],a:1,source:`rgb`},n)}else if(e.hsv){var i=e.hsv.split(`,`);XG(e.hsv,`hsv`)&&(i[2]=i[2].replace(`%`,``),i[1]=i[1].replace(`%`,``),i[0]=i[0].replace(`°`,``),i[1]==1?i[1]=.01:i[2]==1&&(i[2]=.01),t({h:Number(i[0]),s:Number(i[1]),v:Number(i[2]),source:`hsv`},n))}else if(e.hsl){var a=e.hsl.split(`,`);XG(e.hsl,`hsl`)&&(a[2]=a[2].replace(`%`,``),a[1]=a[1].replace(`%`,``),a[0]=a[0].replace(`°`,``),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),t({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:`hsl`},n))}},s=(0,xW.default)({default:{wrap:{display:`flex`,height:`100px`,marginTop:`4px`},fields:{width:`100%`},column:{paddingTop:`10px`,display:`flex`,justifyContent:`space-between`},double:{padding:`0px 4.4px`,boxSizing:`border-box`},input:{width:`100%`,height:`38px`,boxSizing:`border-box`,padding:`4px 10% 3px`,textAlign:`center`,border:`1px solid #dadce0`,fontSize:`11px`,textTransform:`lowercase`,borderRadius:`5px`,outline:`none`,fontFamily:`Roboto,Arial,sans-serif`},input2:{height:`38px`,width:`100%`,border:`1px solid #dadce0`,boxSizing:`border-box`,fontSize:`11px`,textTransform:`lowercase`,borderRadius:`5px`,outline:`none`,paddingLeft:`10px`,fontFamily:`Roboto,Arial,sans-serif`},label:{textAlign:`center`,fontSize:`12px`,background:`#fff`,position:`absolute`,textTransform:`uppercase`,color:`#3c4043`,width:`35px`,top:`-6px`,left:`0`,right:`0`,marginLeft:`auto`,marginRight:`auto`,fontFamily:`Roboto,Arial,sans-serif`},label2:{left:`10px`,textAlign:`center`,fontSize:`12px`,background:`#fff`,position:`absolute`,textTransform:`uppercase`,color:`#3c4043`,width:`32px`,top:`-6px`,fontFamily:`Roboto,Arial,sans-serif`},single:{flexGrow:`1`,margin:`0px 4.4px`}}}),c=n.r+`, `+n.g+`, `+n.b,l=Math.round(r.h)+`°, `+Math.round(r.s*100)+`%, `+Math.round(r.l*100)+`%`,u=Math.round(a.h)+`°, `+Math.round(a.s*100)+`%, `+Math.round(a.v*100)+`%`;return _.createElement(`div`,{style:s.wrap,className:`flexbox-fix`},_.createElement(`div`,{style:s.fields},_.createElement(`div`,{style:s.double},_.createElement(GW,{style:{input:s.input,label:s.label},label:`hex`,value:i,onChange:o})),_.createElement(`div`,{style:s.column},_.createElement(`div`,{style:s.single},_.createElement(GW,{style:{input:s.input2,label:s.label2},label:`rgb`,value:c,onChange:o})),_.createElement(`div`,{style:s.single},_.createElement(GW,{style:{input:s.input2,label:s.label2},label:`hsv`,value:u,onChange:o})),_.createElement(`div`,{style:s.single},_.createElement(GW,{style:{input:s.input2,label:s.label2},label:`hsl`,value:l,onChange:o})))))},fq=function(e){var t=e.width,n=e.onChange,r=e.rgb,i=e.hsl,a=e.hsv,o=e.hex,s=e.header,c=e.styles,l=c===void 0?{}:c,u=e.className,d=u===void 0?``:u,f=(0,xW.default)(Xh({default:{picker:{width:t,background:`#fff`,border:`1px solid #dfe1e5`,boxSizing:`initial`,display:`flex`,flexWrap:`wrap`,borderRadius:`8px 8px 0px 0px`},head:{height:`57px`,width:`100%`,paddingTop:`16px`,paddingBottom:`16px`,paddingLeft:`16px`,fontSize:`20px`,boxSizing:`border-box`,fontFamily:`Roboto-Regular,HelveticaNeue,Arial,sans-serif`},saturation:{width:`70%`,padding:`0px`,position:`relative`,overflow:`hidden`},swatch:{width:`30%`,height:`228px`,padding:`0px`,background:`rgba(`+r.r+`, `+r.g+`, `+r.b+`, 1)`,position:`relative`,overflow:`hidden`},body:{margin:`auto`,width:`95%`},controls:{display:`flex`,boxSizing:`border-box`,height:`52px`,paddingTop:`22px`},color:{width:`32px`},hue:{height:`8px`,position:`relative`,margin:`0px 16px 0px 16px`,width:`100%`},Hue:{radius:`2px`}}},l));return _.createElement(`div`,{style:f.picker,className:`google-picker `+d},_.createElement(`div`,{style:f.head},s),_.createElement(`div`,{style:f.swatch}),_.createElement(`div`,{style:f.saturation},_.createElement(iG,{hsl:i,hsv:a,pointer:uq,onChange:n})),_.createElement(`div`,{style:f.body},_.createElement(`div`,{style:f.controls,className:`flexbox-fix`},_.createElement(`div`,{style:f.hue},_.createElement(ZW,{style:f.Hue,hsl:i,radius:`4px`,pointer:dq,onChange:n}))),_.createElement(v_e,{rgb:r,hsl:i,hex:o,hsv:a,onChange:n})))};fq.propTypes={width:K.default.oneOfType([K.default.string,K.default.number]),styles:K.default.object,header:K.default.string},fq.defaultProps={width:652,styles:{},header:`Color picker`},nK(fq);var pq=G(`label`,{target:`e1kt9bl70`})(({disabled:e,labelVisibility:t,theme:n})=>({fontSize:n.fontSizes.sm,color:e?n.colors.fadedText40:n.colors.bodyText,display:t===jg.Collapsed?`none`:`flex`,visibility:t===jg.Hidden?`hidden`:`visible`,marginBottom:n.spacing.twoXS,height:`auto`,minHeight:n.fontSizes.xl,verticalAlign:`middle`,flexDirection:`row`,alignItems:`center`})),y_e=G(`div`,{target:`e1kt9bl71`})({display:`flex`,flexDirection:`row`,justifyContent:`flex-end`,flex:1}),b_e=G(`div`,{target:`e1kt9bl72`})(({theme:e})=>
147({fontSize:e.fontSizes.twoSm,color:e.colors.fadedText60,margin:e.spacing.none,textAlign:`right`,position:`absolute`,bottom:e.spacing.threeXS,right:`calc(${e.fontSizes.mdLg} * 0.5)`})),x_e=G(`span`,{target:`e1kt9bl73`})(({theme:e})=>({marginLeft:e.spacing.xs,position:`relative`,display:`flex`,flexDirection:`row`}));function mq({label:e,children:t,disabled:n,labelVisibility:r,htmlFor:i}){return Ba(e)?P(Ht,{}):F(pq,{"data-testid":`stWidgetLabel`,disabled:n,labelVisibility:r,htmlFor:i,children:[P(`span`,{"aria-hidden":`true`,children:P(QL,{source:e,allowHTML:!1,isLabel:!0})}),t]})}function hq({content:e,label:t,ariaLabel:n,placement:r=dL.TOP_RIGHT,isLatex:i,markdownProps:a,onMouseEnterDelay:o,containerWidth:s}){return P(x_e,{children:P(mL,{content:e,placement:r,isLatex:i,markdownProps:a,onMouseEnterDelay:o,containerWidth:s,ariaLabel:n??hL(t)})})}var S_e=G(`div`,{target:`eyayyff0`})(({disabled:e,theme:t})=>({fontFamily:t.genericFonts.bodyFont,display:`flex`,flexDirection:`column`,alignItems:`flex-start`,cursor:e?`not-allowed`:`default`,minWidth:t.sizes.minElementHeight})),C_e=G(`div`,{target:`eyayyff1`})(({theme:e})=>({div:{fontFamily:`${e.genericFonts.bodyFont} !important`},label:{fontSize:`${e.fontSizes.sm} !important`,color:`${e.colors.bodyText} !important`},input:{fontSize:`${e.fontSizes.sm} !important`,height:`${e.sizes.minElementHeight} !important`,backgroundColor:`${e.colors.secondaryBg} !important`,color:`${e.colors.bodyText} !important`,borderRadius:`${e.radii.default} !important`,boxShadow:`none !important`,"&:focus-visible":{outline:`${e.sizes.borderWidth} solid ${e.colors.primary} !important`}},svg:{fill:`${e.colors.bodyText} !important`}})),w_e=G(`div`,{target:`eyayyff2`})(({disabled:e,theme:t})=>({height:t.sizes.minElementHeight,borderRadius:t.radii.default,borderColor:t.colors.borderColor,cursor:e?`not-allowed`:`pointer`,pointerEvents:e?`none`:`auto`,boxShadow:`none`,lineHeight:t.lineHeights.base,gap:t.spacing.md,"&:focus":{outline:`none`},display:`flex`})),T_e=G(`div`,{target:`eyayyff3`})(({backgroundColor:e,disabled:t,theme:n})=>({width:n.sizes.minElementHeight,height:n.sizes.minElementHeight,borderRadius:n.radii.default,borderColor:n.colors.borderColor,borderWidth:n.sizes.borderWidth,opacity:t?`0.4`:``,backgroundColor:e,borderStyle:`solid`,cursor:`pointer`,lineHeight:n.lineHeights.base,"&:focus":{outline:`none`}})),E_e=G(`div`,{target:`eyayyff4`})({display:`flex`,alignItems:`center`});iG.prototype.getContainerRenderWindow=function(){let e=this.container,t=window,n=window;try{for(;!t.document.contains(e)&&t.parent!==t;)n=t,t=t.parent}catch{t=n}return t};var D_e=(0,_.memo)(e=>{let{disabled:t,value:n,showValue:r,label:i,labelVisibility:a,onChange:o,help:s}=e,[c,l]=(0,_.useState)(n),u=fE();oR(()=>l(n),[n]);let d=(0,_.useCallback)(e=>{l(e.hex)},[]),f=(0,_.useCallback)(()=>{o(c)},[o,c]),p={default:{picker:{borderRadius:u.radii.default,boxShadow:`none`,backgroundColor:u.colors.bgColor},saturation:{borderRadius:`${u.radii.default} ${u.radii.default} 0 0`,userSelect:`none`},body:{padding:u.spacing.xl}}};return F(S_e,{className:`stColorPicker`,"data-testid":`stColorPicker`,disabled:t,children:[P(mq,{label:i,disabled:t,labelVisibility:a,children:s&&P(hq,{content:s,placement:dL.TOP_RIGHT,label:i})}),P(VI,{onClose:f,placement:`bottomLeft`,popoverMargin:qw(u.spacing.twoXS),content:()=>P(C_e,{"data-testid":`stColorPickerPopover`,children:P(qK,{color:c,onChange:d,disableAlpha:!0,styles:p})}),overrides:{Body:{style:DR(u)}},children:F(w_e,{disabled:t,children:[P(T_e,{"data-testid":`stColorPickerBlock`,backgroundColor:c,disabled:t}),r&&P(E_e,{children:c.toUpperCase()})]})})]})});Vy();function gq(e){var t=e.$theme,n=e.$size,r=e.$color,i=t.sizing.scale600;n&&(i=t.sizing[n]?t.sizing[n]:typeof n==`number`?`${n}px`:n);var a=`currentColor`;return r&&(a=t.colors[r]?t.colors[r]:r),{display:`inline-block`,fill:a,color:a,height:i,width:i}}var _q=W(`svg`,gq);_q.displayName=`Svg`,_q.displayName=`Svg`;function vq(e){var t={};for(var n in e)n[0]!==`$`&&(t[n]=e[n]);return t}Jb();var O_e=[`children`,`title`,`size`,`color`,`overrides`];function yq(){return yq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yq.apply(this,arguments)}function bq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
147t%2?bq(Object(n),!0).forEach(function(t){k_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k_e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A_e(e,t){return P_e(e)||N_e(e,t)||M_e(e,t)||j_e()}function j_e(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 148In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M_e(e,t){if(e){if(typeof e==`string`)return Sq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sq(e,t)}}function Sq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function N_e(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function P_e(e){if(Array.isArray(e))return e}function F_e(e,t){if(e==null)return{};var n=I_e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function I_e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Cq=_.forwardRef(function(e,t){var n=e.children,r=e.title,i=e.size,a=e.color,o=e.overrides,s=o===void 0?{}:o,c=F_e(e,O_e),l=A_e(Hb(s.Svg,_q),2),u=l[0],d=l[1],f=u.__STYLETRON__?xq(xq({title:r,$color:a,$size:i},c),d):xq(xq({title:r,color:a,size:i},vq(c)),vq(d));return _.createElement(u,yq({"data-baseweb":`icon`,ref:t},f),r?_.createElement(`title`,null,r):null,n)});Vy(),Jb();var L_e=[`title`,`size`,`color`,`overrides`];function wq(){return wq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wq.apply(this,arguments)}function R_e(e,t){if(e==null)return{};var n=z_e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function z_e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function B_e(e,t){return W_e(e)||U_e(e,t)||H_e(e,t)||V_e()}function V_e(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 149In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H_e(e,t){if(e){if(typeof e==`string`)return Tq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tq(e,t)}}function Tq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function U_e(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function W_e(e){if(Array.isArray(e))return e}function G_e(e,t){var n=B_e(Ry(),2)[1],r=e.title,i=r===void 0?`Down`:r,a=e.size,o=e.color,s=e.overrides,c=s===void 0?{}:s,l=R_e(e,L_e),u=Wb({component:n.icons&&n.icons.ChevronDown?n.icons.ChevronDown:null},c&&c.Svg?Vb(c.Svg):{});return _.createElement(Cq,wq({viewBox:`0 0 24 24`,ref:t,title:i,size:a,color:o,overrides:{Svg:u}},l),_.createElement(`path`,{transform:`rotate(270, 12, 12)`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M9 12C9 12.2652 9.10536 12.5196 9.29289 12.7071L13.2929 16.7071C13.6834 17.0976 14.3166 17.0976 14.7071 16.7071C15.0976 16.3166 15.0976 15.6834 14.7071 15.2929L11.4142 12L14.7071 8.70711C15.0976 8.31658 15.0976 7.68342 14.7071 7.29289C14.3166 6.90237 13.6834 6.90237 13.2929 7.29289L9.29289 11.2929C9.10536 11.4804 9 11.7348 9 12Z`}))}var Eq=_.forwardRef(G_e);Vy(),Jb();var K_e=[`title`,`size`,`color`,`overrides`];function Dq(){return Dq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dq.apply(this,arguments)}function q_e(e,t){if(e==null)return{};var n=J_e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function J_e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Y_e(e,t){return $_e(e)||Q_e(e,t)||Z_e(e,t)||X_e()}
149function X_e(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 150In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z_e(e,t){if(e){if(typeof e==`string`)return Oq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oq(e,t)}}function Oq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Q_e(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function $_e(e){if(Array.isArray(e))return e}function eve(e,t){var n=Y_e(Ry(),2)[1],r=e.title,i=r===void 0?`Delete Alt`:r,a=e.size,o=e.color,s=e.overrides,c=s===void 0?{}:s,l=q_e(e,K_e),u=Wb({component:n.icons&&n.icons.DeleteAlt?n.icons.DeleteAlt:null},c&&c.Svg?Vb(c.Svg):{});return _.createElement(Cq,Dq({viewBox:`0 0 24 24`,ref:t,title:i,size:a,color:o,overrides:{Svg:u}},l),_.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 20C16.4183 20 20 16.4183 20 12C20 7.58173 16.4183 4 12 4C7.58173 4 4 7.58173 4 12C4 16.4183 7.58173 20 12 20ZM10.0303 8.96967C9.73743 8.67679 9.26257 8.67679 8.96967 8.96967C8.67676 9.26257 8.67676 9.73743 8.96967 10.0303L10.9393 12L8.96967 13.9697C8.67676 14.2626 8.67676 14.7374 8.96967 15.0303C9.26257 15.3232 9.73743 15.3232 10.0303 15.0303L12 13.0607L13.9697 15.0303C14.2626 15.3232 14.7374 15.3232 15.0303 15.0303C15.3232 14.7374 15.3232 14.2626 15.0303 13.9697L13.0607 12L15.0303 10.0303C15.3232 9.73743 15.3232 9.26257 15.0303 8.96967C14.7374 8.67679 14.2626 8.67679 13.9697 8.96967L12 10.9393L10.0303 8.96967Z`}))}var kq=_.forwardRef(eve);Vy(),Jb();var tve=[`title`,`size`,`color`,`overrides`];function Aq(){return Aq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aq.apply(this,arguments)}function nve(e,t){if(e==null)return{};var n=rve(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ive(e,t){return cve(e)||sve(e,t)||ove(e,t)||ave()}function ave(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 151In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ove(e,t){if(e){if(typeof e==`string`)return jq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jq(e,t)}}function jq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sve(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function cve(e){if(Array.isArray(e))return e}function lve(e,t){var n=ive(Ry(),2)[1],r=e.title,i=r===void 0?`Delete`:r,a=e.size,o=e.color,s=e.overrides,c=s===void 0?{}:s,l=nve(e,tve),u=Wb({component:n.icons&&n.icons.Delete?n.icons.Delete:null},c&&c.Svg?Vb(c.Svg):{});return _.createElement(Cq,Aq({viewBox:`0 0 24 24`,ref:t,title:i,size:a,color:o,overrides:{Svg:u}},l),_.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7.29289 7.29289C7.68342 6.90237 8.31658 6.90237 8.70711 7.29289L12 10.5858L15.2929 7.29289C15.6834 6.90237 16.3166 6.90237 16.7071 7.29289C17.0976 7.68342 17.0976 8.31658 16.7071 8.70711L13.4142 12L16.7071 15.2929C17.0976 15.6834 17.0976 16.3166 16.7071 16.7071C16.3166 17.0976 15.6834 17.0976 15.2929 16.7071L12 13.4142L8.70711 16.7071C8.31658 17.0976 7.68342 17.0976 7.29289 16.7071C6.90237 16.3166 6.90237 15.6834 7.29289 15.2929L10.5858 12L7.29289 8.70711C6.90237 8.31658 6.90237 7.68342 7.29289 7.29289Z`}))}var Mq=_.forwardRef(lve);Vy(),Jb();var uve=[`title`,`size`,`color`,`overrides`];function Nq(){return Nq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nq.apply(this,arguments)}function dve(e,t){if(e==null)return{};var n=fve(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function pve(e,t){return _ve(e)||gve(e,t)||hve(e,t)||mve()}
151function mve(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 152In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hve(e,t){if(e){if(typeof e==`string`)return Pq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pq(e,t)}}function Pq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gve(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function _ve(e){if(Array.isArray(e))return e}function vve(e,t){var n=pve(Ry(),2)[1],r=e.title,i=r===void 0?`Search`:r,a=e.size,o=e.color,s=e.overrides,c=s===void 0?{}:s,l=dve(e,uve),u=Wb({component:n.icons&&n.icons.Search?n.icons.Search:null},c&&c.Svg?Vb(c.Svg):{});return _.createElement(Cq,Nq({viewBox:`0 0 24 24`,ref:t,title:i,size:a,color:o,overrides:{Svg:u}},l),_.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11 6C8.79086 6 7 7.79086 7 10C7 12.2091 8.79086 14 11 14C13.2091 14 15 12.2091 15 10C15 7.79086 13.2091 6 11 6ZM5 10C5 6.68629 7.68629 4 11 4C14.3137 4 17 6.68629 17 10C17 11.2958 16.5892 12.4957 15.8907 13.4765L19.7071 17.2929C20.0976 17.6834 20.0976 18.3166 19.7071 18.7071C19.3166 19.0976 18.6834 19.0976 18.2929 18.7071L14.4765 14.8907C13.4957 15.5892 12.2958 16 11 16C7.68629 16 5 13.3137 5 10Z`}))}var yve=_.forwardRef(vve);Vy(),Jb();var bve=[`title`,`size`,`color`,`overrides`];function Fq(){return Fq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fq.apply(this,arguments)}function xve(e,t){if(e==null)return{};var n=Sve(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Cve(e,t){return Dve(e)||Eve(e,t)||Tve(e,t)||wve()}function wve(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 153In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tve(e,t){if(e){if(typeof e==`string`)return Iq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iq(e,t)}}function Iq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Eve(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Dve(e){if(Array.isArray(e))return e}function Ove(e,t){var n=Cve(Ry(),2)[1],r=e.title,i=r===void 0?`Triangle Down`:r,a=e.size,o=e.color,s=e.overrides,c=s===void 0?{}:s,l=xve(e,bve),u=Wb({component:n.icons&&n.icons.TriangleDown?n.icons.TriangleDown:null},c&&c.Svg?Vb(c.Svg):{});return _.createElement(Cq,Fq({viewBox:`0 0 24 24`,ref:t,title:i,size:a,color:o,overrides:{Svg:u}},l),_.createElement(`path`,{d:`M12.7071 15.2929L17.1464 10.8536C17.4614 10.5386 17.2383 10 16.7929 10L7.20711 10C6.76165 10 6.53857 10.5386 6.85355 10.8536L11.2929 15.2929C11.6834 15.6834 12.3166 15.6834 12.7071 15.2929Z`}))}var kve=_.forwardRef(Ove),Ave={textarea:`textarea`},jve={none:`none`,left:`left`,right:`right`,both:`both`},Lq={mini:`mini`,default:`default`,compact:`compact`,large:`large`},Mve={start:`start`,end:`end`},Rq={select:`select`,search:`search`},zq=Object.freeze({select:`select`,remove:`remove`,clear:`clear`}),Bq={click:`click`,moveUp:`moveUp`,moveDown:`moveDown`,mouseEnter:`mouseEnter`,mouseLeave:`mouseLeave`,focus:`focus`,reset:`reset`,character:`character`,enter:`enter`},Vq={ArrowUp:`ArrowUp`,ArrowDown:`ArrowDown`,ArrowLeft:`ArrowLeft`,ArrowRight:`ArrowRight`,Enter:`Enter`,Space:` `,Escape:`Escape`,Backspace:`Backspace`,Home:`Home`,End:`End`},Hq={default:`default`,compact:`compact`};Vy();var Nve=[`item`];function Pve(e,t){if(e==null)return{};var n=Fve(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Uq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
153t%2?Uq(Object(n),!0).forEach(function(t){Ive(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ive(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gq=W(`ul`,function(e){var t=e.$theme,n=e.$isFocusVisible;return{backgroundColor:t.colors.menuFill,position:`relative`,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,paddingTop:t.sizing.scale300,paddingBottom:t.sizing.scale300,paddingLeft:0,paddingRight:0,borderTopLeftRadius:t.borders.popoverBorderRadius,borderTopRightRadius:t.borders.popoverBorderRadius,borderBottomRightRadius:t.borders.popoverBorderRadius,borderBottomLeftRadius:t.borders.popoverBorderRadius,boxShadow:t.lighting.shadow600,overflow:`auto`,":focus":{outline:n?`3px solid ${t.colors.accent}`:`none`}}});Gq.displayName=`StyledList`,Gq.displayName=`StyledList`;function Kq(e){return e.$disabled?e.$theme.colors.menuFontDisabled:e.$isHighlighted&&e.$isFocused?e.$theme.colors.menuFontHighlighted:e.$isHighlighted&&!e.$isFocused?e.$theme.colors.menuFontSelected:e.$theme.colors.menuFontDefault}function Lve(e){return e.$disabled?`transparent`:e.$isHighlighted?e.$theme.colors.menuFillHover:`transparent`}var qq=W(`li`,function(e){var t=e.$theme,n=e.$size;return Wq(Wq({},n===Hq.compact?t.typography.font100:t.typography.font200),{},{position:`relative`,display:`block`,color:t.colors.menuFontDisabled,textAlign:`center`,cursor:`not-allowed`,backgroundColor:`transparent`,marginBottom:0,paddingTop:t.sizing.scale800,paddingBottom:t.sizing.scale800,paddingRight:t.sizing.scale800,paddingLeft:t.sizing.scale800})});qq.displayName=`StyledEmptyState`,qq.displayName=`StyledEmptyState`;var Jq=W(`li`,function(e){var t=e.$theme.sizing.scale300,n=e.$theme.sizing.scale200;return Wq(Wq({},e.$theme.typography.font250),{},{color:e.$theme.colors.contentPrimary,paddingTop:n,paddingBottom:n,paddingRight:t,paddingLeft:t})});Jq.displayName=`StyledOptgroupHeader`,Jq.displayName=`StyledOptgroupHeader`;var Yq=W(`a`,function(e){return{display:`block`,color:Kq(e)}});Yq.displayName=`StyledListItemAnchor`,Yq.displayName=`StyledListItemAnchor`;var Xq=W(`li`,function(e){var t=e.$disabled,n=e.$theme,r=e.$size;return Wq(Wq({},r===Hq.compact?n.typography.font100:n.typography.font200),{},{boxSizing:`border-box`,position:`relative`,display:`block`,color:Kq(e),cursor:t?`not-allowed`:`pointer`,backgroundColor:Lve(e),transitionProperty:`color, background-color`,transitionDuration:n.animation.timing200,transitionTimingFunction:n.animation.easeOutCurve,marginBottom:0,paddingTop:r===Hq.compact?n.sizing.scale100:n.sizing.scale300,paddingBottom:r===Hq.compact?n.sizing.scale100:n.sizing.scale300,paddingRight:r===Hq.compact?n.sizing.scale900:n.sizing.scale600,paddingLeft:r===Hq.compact?n.sizing.scale900:n.sizing.scale600,":focus":{outline:`none`}})});Xq.displayName=`StyledListItemElement`,Xq.displayName=`StyledListItemElement`;var Zq=Py(Xq,function(e){return(function(t){t.item;var n=Pve(t,Nve);return _.createElement(e,n)})}),Qq=W(`li`,function(e){var t=e.$theme;return{position:`relative`,display:`flex`,alignItems:`center`,cursor:`pointer`,paddingTop:t.sizing.scale300,paddingBottom:t.sizing.scale300,paddingRight:t.sizing.scale800,paddingLeft:t.sizing.scale800,transitionProperty:`color, background-color`,transitionDuration:t.animation.timing200,transitionTimingFunction:t.animation.easeOutCurve,":hover":{backgroundColor:t.colors.menuFillHover}}});
153Qq.displayName=`StyledListItemProfile`,Qq.displayName=`StyledListItemProfile`;var $q=W(`div`,{width:`60px`,height:`60px`,display:`flex`,justifyContent:`center`,alignItems:`center`});$q.displayName=`StyledProfileImgContainer`,$q.displayName=`StyledProfileImgContainer`;var eJ=W(`img`,{width:`100%`,height:`100%`,borderTopLeftRadius:`50%`,borderTopRightRadius:`50%`,borderBottomRightRadius:`50%`,borderBottomLeftRadius:`50%`});eJ.displayName=`StyledProfileImg`,eJ.displayName=`StyledProfileImg`;var tJ=W(`div`,function(e){var t=e.$theme,n=t.direction,r=t.sizing;return Wq({alignSelf:n===`rtl`?`flex-end`:`flex-start`,display:`flex`,flexDirection:`column`},n===`rtl`?{marginRight:r.scale600}:{marginLeft:r.scale600})});tJ.displayName=`StyledProfileLabelsContainer`,tJ.displayName=`StyledProfileLabelsContainer`;var nJ=W(`h6`,function(e){var t=e.$theme;return Wq(Wq({},t.typography.font350),{},{color:t.colors.contentPrimary,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0})});nJ.displayName=`StyledProfileTitle`,nJ.displayName=`StyledProfileTitle`;var rJ=W(`p`,function(e){var t=e.$theme;return Wq(Wq({},t.typography.font200),{},{color:t.colors.contentPrimary,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0})});rJ.displayName=`StyledProfileSubtitle`,rJ.displayName=`StyledProfileSubtitle`;var iJ=W(`p`,function(e){var t=e.$theme;return Wq(Wq({},t.typography.font100),{},{color:t.colors.contentPrimary,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0})});iJ.displayName=`StyledProfileBody`,iJ.displayName=`StyledProfileBody`;var aJ=W(`li`,function(e){var t=e.$theme;return{color:t.colors.contentPrimary,borderBottomWidth:t.borders.border300.borderWidth,borderBottomStyle:t.borders.border300.borderStyle,borderBottomColor:t.borders.border300.borderColor,marginTop:t.sizing.scale100,marginBottom:t.sizing.scale100,marginLeft:t.sizing.scale500,marginRight:t.sizing.scale500,listStyle:`none`,height:0}});aJ.displayName=`StyledMenuDivider`,iJ.displayName=`StyledMenuDivider`;var oJ=_.createContext({addMenuToNesting:function(){},removeMenuFromNesting:function(){},getParentMenu:function(){},getChildMenu:function(){},nestedMenuHoverIndex:-1,isNestedMenuVisible:function(){return!1},mountRef:{current:null}});Jb();function sJ(){return sJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sJ.apply(this,arguments)}function Rve(e,t){return Hve(e)||Vve(e,t)||Bve(e,t)||zve()}function zve(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 154In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bve(e,t){if(e){if(typeof e==`string`)return cJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cJ(e,t)}}function cJ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Vve(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Hve(e){if(Array.isArray(e))return e}var Uve=function(e){if(!e.getChildMenu)return e.children;var t=e.getChildMenu(e.item);if(!t)return e.children;var n=e.overrides,r=Rve(Hb((n===void 0?{}:n).ChildMenuPopover,BI),2),i=r[0],a=r[1];return _.createElement(oJ.Consumer,null,function(n){return _.createElement(i,sJ({focusLock:!1,autoFocus:!1,isOpen:e.isOpen,renderAll:e.renderAll,content:t,ignoreBoundary:!0,mountNode:n.mountRef.current?n.mountRef.current:void 0,onClick:e.onClick,onMouseEnterDelay:30,onMouseLeaveDelay:30,onEsc:e.resetParentMenu,placement:`rightTop`},a,{overrides:Ub({Body:{props:{onKeyDown:function(e){e.keyCode===9&&e.preventDefault()}}}},a.overrides)}),e.children)})};ab(),Jb();var Wve=[`getChildMenu`,`getItemLabel`,`item`,`onClick`,`onMouseEnter`,`overrides`,`renderHrefAsAnchor`,`resetMenu`,`size`,`$isHighlighted`,`renderAll`];function lJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
154t%2?lJ(Object(n),!0).forEach(function(t){Kve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uJ(){return uJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uJ.apply(this,arguments)}function dJ(e,t){return Xve(e)||Yve(e,t)||Jve(e,t)||qve()}function qve(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 155In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jve(e,t){if(e){if(typeof e==`string`)return fJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fJ(e,t)}}function fJ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yve(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Xve(e){if(Array.isArray(e))return e}function Zve(e,t){if(e==null)return{};var n=Qve(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function $ve(e,t){var n=e.getChildMenu,r=e.getItemLabel,i=r===void 0?function(e){return e?e.label:``}:r,a=e.item,o=e.onClick,s=o===void 0?function(){}:o,c=e.onMouseEnter,l=c===void 0?function(){}:c,u=e.overrides,d=u===void 0?{}:u,f=e.renderHrefAsAnchor,p=f===void 0?!0:f,m=e.resetMenu,h=m===void 0?function(){}:m,g=e.size,v=g===void 0?Hq.default:g,y=e.$isHighlighted,b=e.renderAll,x=Zve(e,Wve),S=dJ(Hb(d.ListItem,Zq),2),C=S[0],w=S[1],T=dJ(Hb(d.ListItemAnchor,Yq),2),E=T[0],D=T[1],O=function(e){return e.href&&p?_.createElement(E,uJ({$item:e,href:e.href},D),i(e)):_.createElement(_.Fragment,null,i(e))};return _.createElement(rb.Consumer,null,function(e){return _.createElement(Uve,{getChildMenu:n,isOpen:!!y,item:a,resetParentMenu:h,renderAll:b,onClick:s,overrides:d},_.createElement(C,uJ({ref:t,"aria-label":n&&n(a)?e.menu.parentMenuItemAriaLabel:null,item:a,onClick:s,onMouseEnter:l,$size:v,$isHighlighted:y},x,w),O(Gve({isHighlighted:y},a))))})}function pJ(e,t){if(!e||!t)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function eye(e,t){return e.$isHighlighted===t.$isHighlighted&&e.$isFocused===t.$isFocused&&pJ(e.item,t.item)&&pJ(e.overrides,t.overrides)&&e.size===t.size&&e.getItemLabel===t.getItemLabel&&e.getChildMenu===t.getChildMenu&&e.resetMenu===t.resetMenu}var mJ=_.forwardRef($ve);mJ.displayName=`OptionList`;var tye=_.memo(mJ,eye);ab(),Jb(),rx();var nye=[`disabled`,`isFocused`,`isHighlighted`,`resetMenu`];function rye(e,t){if(e==null)return{};var n=iye(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iye(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function hJ(){return hJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hJ.apply(this,arguments)}function gJ(e,t){return cye(e)||sye(e,t)||oye(e,t)||aye()}
155function aye(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 156In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oye(e,t){if(e){if(typeof e==`string`)return _J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _J(e,t)}}function _J(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sye(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function cye(e){if(Array.isArray(e))return e}function lye(e){var t=e.overrides,n=t===void 0?{}:t,r=e[`aria-label`],i=r===void 0?`Menu`:r,a=e.rootRef,o=a===void 0?_.createRef():a,s=e.focusMenu,c=s===void 0?function(){}:s,l=e.unfocusMenu,u=l===void 0?function(){}:l,d=e.handleMouseLeave,f=d===void 0?function(){}:d,p=e.handleKeyDown,m=p===void 0?function(e){}:p,h=e.renderAll,g=h===void 0?!1:h,v=gJ(_.useState(!1),2),y=v[0],b=v[1],x=function(e){Xb(e)&&b(!0)},S=function(e){y!==!1&&b(!1)},C=gJ(Hb(n.List,Gq),2),w=C[0],T=C[1],E=gJ(Hb(n.Option,tye),2),D=E[0],O=E[1],k=gJ(Hb(n.EmptyState,qq),2),A=k[0],ee=k[1],te=gJ(Hb(n.OptgroupHeader,Jq),2),ne=te[0],re=te[1],ie=gJ(Hb(n.MenuDivider,aJ),2),ae=ie[0],oe=ie[1],j=Array.isArray(e.items)?{__ungrouped:e.items}:e.items,se=Object.keys(j),ce=gJ(se.reduce(function(t,n){var r=gJ(t,2),i=r[0],a=r[1];n!==`__ungrouped`&&i.push(_.createElement(ne,hJ({key:n},re),n));var o=j[n].map(function(t,n){a+=1;var r=e.getRequiredItemProps,i=r===void 0?function(e,t){return{}}:r;if(t.divider===!0)return _.createElement(ae,oe);var o=i(t,a),s=o.disabled,c=o.isFocused,l=o.isHighlighted,u=o.resetMenu,d=u===void 0?function(){}:u,f=rye(o,nye);return _.createElement(D,hJ({renderAll:g,key:a,item:t,overrides:e.overrides,resetMenu:d,role:`option`,$disabled:s,$isFocused:c,$isHighlighted:l,"aria-disabled":s,"aria-selected":l&&c},f,O))});return[i.concat(o),a]},[[],-1]),1)[0],le=se.every(function(e){return!j[e].length});return _.createElement(rb.Consumer,null,function(t){return _.createElement(w,hJ({"aria-activedescendant":e.activedescendantId||null,role:`listbox`,"aria-label":i,ref:o,onMouseEnter:c,onMouseLeave:f,onMouseOver:c,onFocus:tx({onFocus:c},x),onBlur:nx({onBlur:u},S),onKeyDown:function(t){e.isFocused&&m(t)},tabIndex:0,"data-baseweb":`menu`,$isFocusVisible:y},T),le?_.createElement(A,hJ({"aria-live":`polite`,"aria-atomic":!0},ee),e.noResultsMsg||t.menu.noResultsMsg):ce)})}function vJ(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:`auto`;if(e){var a=e.getBoundingClientRect(),o=t.getBoundingClientRect();a.bottom>o.bottom?r?t.scrollTop=t.scrollHeight-o.height:t.scrollTop=e.offsetTop+a.height-(i===`center`?Math.round((o.height+a.height)/2):o.height):a.top<o.top&&(n?t.scrollTop=0:t.scrollTop=e.offsetTop-(i===`center`?Math.round((o.height-a.height)/2):0))}}Pb();function yJ(e){"@babel/helpers - typeof";return yJ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},yJ(e)}var uye=[`disabled`],dye=[`initialState`,`stateReducer`,`children`,`onItemSelect`,`addMenuToNesting`,`removeMenuFromNesting`,`getParentMenu`,`getChildMenu`,`forceHighlight`];function bJ(){return bJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bJ.apply(this,arguments)}function xJ(e,t){if(e==null)return{};var n=fye(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fye(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function SJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
156t%2?SJ(Object(n),!0).forEach(function(t){OJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pye(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function wJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mye(e,t,n){return t&&wJ(e.prototype,t),n&&wJ(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function hye(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&TJ(e,t)}function TJ(e,t){return TJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TJ(e,t)}function gye(e){var t=vye();return function(){var n=DJ(e),r;if(t){var i=DJ(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _ye(this,r)}}function _ye(e,t){if(t&&(yJ(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return EJ(e)}function EJ(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function vye(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function DJ(e){return DJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},DJ(e)}function OJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kJ={initialState:{highlightedIndex:-1,isFocused:!1},typeAhead:!0,keyboardControlNode:{current:null},stateReducer:function(e,t){return t},onItemSelect:function(){},getRequiredItemProps:function(){return{}},children:function(){return null},addMenuToNesting:function(){},removeMenuFromNesting:function(){},getParentMenu:function(){},getChildMenu:function(){},nestedMenuHoverIndex:-1,isNestedMenuVisible:function(){return!1},forceHighlight:!1},AJ=function(e){hye(n,e);var t=gye(n);function n(){var e;pye(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),OJ(EJ(e),`state`,CJ(CJ({},e.constructor.defaultProps.initialState),e.props.initialState)),OJ(EJ(e),`rootRef`,_.createRef()),OJ(EJ(e),`keyboardControlNode`,e.props.keyboardControlNode.current),OJ(EJ(e),`refList`,[]),OJ(EJ(e),`optionIds`,[]),OJ(EJ(e),`typeAheadChars`,``),OJ(EJ(e),`typeAheadTimeOut`,null),OJ(EJ(e),`onKeyDown`,function(t){switch(t.key){case Vq.ArrowUp:case Vq.ArrowDown:case Vq.ArrowLeft:case Vq.ArrowRight:case Vq.Home:case Vq.End:e.handleArrowKey(t);break;case Vq.Enter:if(t.keyCode===229)break;e.handleEnterKey(t);break;default:e.props.typeAhead&&(clearTimeout(e.typeAheadTimeOut),e.handleAlphaDown(t));break}}),OJ(EJ(e),`handleAlphaDown`,function(t){var n=e.props.rootRef?e.props.rootRef:e.rootRef,r=e.state.highlightedIndex;e.typeAheadChars+=t.key,e.typeAheadTimeOut=setTimeout(function(){e.typeAheadChars=``},500);var i=r,a=e.getItems();if(!(a.length===0||!(`label`in a[0]))){for(var o=!0,s=0;s<a.length;s++){var c=a[s].label;if(c&&c.toUpperCase&&c.toUpperCase().indexOf(e.typeAheadChars.toUpperCase())===0){i=s,o=!1;break}}if(o)for(var l=0;l<a.length;l++){var u=a[l].label;if(u&&u.toUpperCase&&u.toUpperCase().indexOf(e.typeAheadChars.toUpperCase())>0){i=l;break}}e.internalSetState(Bq.character,{highlightedIndex:i}),e.refList[i]&&vJ(e.refList[i].current,n.current,i===0,i===a.length-1)}}),OJ(EJ(e),`handleArrowKey`,function(t){var n=e.props.rootRef?e.props.rootRef:e.rootRef,r=e.state.highlightedIndex,i=r;if(t.key===Vq.ArrowUp)t.preventDefault(),i=Math.max(0,r-1),e.internalSetState(Bq.moveUp,{highlightedIndex:i});else if(t.key===Vq.ArrowDown)t.preventDefault(),i=Math.min(r+1,e.getItems().length-1),e.internalSetState(Bq.moveDown,{highlightedIndex:i});else if(t.key===Vq.Home)t.preventDefault(),i=0,e.internalSetState(Bq.moveUp,{highlightedIndex:i});else if(t.key===Vq.End)t.preventDefault(),i=e.getItems().length-1,e.internalSetState(Bq.moveDown,{highlightedIndex:i});else if(t.key===Vq.ArrowLeft){if(e.props.getParentMenu){var a=e.props.getParentMenu(n);a&&a.current&&a.current.focus()}}else if(t.key===Vq.ArrowRight&&e.props.getChildMenu){var o=e.props.getChildMenu(n);o&&o.current&&o.current.focus()}e.refList[i]&&vJ(e.refList[i].current,n.current,i===0,i===e.getItems().length-1)}),OJ(EJ(e),`handleEnterKey`,function(t){var n=e.props.onItemSelect,r=e.state.highlightedIndex,i=e.getItems();i[r]&&n&&!i[r].disabled&&(t.preventDefault(),n({item:i[r],event:t}))}
156),OJ(EJ(e),`handleItemClick`,function(t,n,r){e.props.onItemSelect&&!n.disabled&&(e.props.onItemSelect({item:n,event:r}),e.internalSetState(Bq.click,{highlightedIndex:t,activedescendantId:e.optionIds[t]}))}),OJ(EJ(e),`handleMouseEnter`,function(t){e.internalSetState(Bq.mouseEnter,{highlightedIndex:t,activedescendantId:e.optionIds[t]})}),OJ(EJ(e),`handleMouseLeave`,function(e){}),OJ(EJ(e),`getRequiredItemProps`,function(t,n){var r=e.refList[n];r||(r=_.createRef(),e.refList[n]=r,e.optionIds[n]=e.props.uidSeed(n));var i=e.props.getRequiredItemProps(t,n),a=i.disabled,o=xJ(i,uye),s=typeof a==`boolean`?a:!!t.disabled;return CJ(CJ({id:o.id||e.optionIds[n],disabled:s,ref:r,isFocused:e.state.isFocused,isHighlighted:e.state.highlightedIndex===n,resetMenu:e.resetMenu},s?{}:{onClick:e.handleItemClick.bind(EJ(e),n,t),onMouseEnter:e.handleMouseEnter.bind(EJ(e),n)}),o)}),OJ(EJ(e),`focusMenu`,function(t){var n=e.props.rootRef?e.props.rootRef:e.rootRef;!e.state.isFocused&&n.current&&n.current.contains(t.target)&&(e.state.highlightedIndex<0?e.internalSetState(Bq.focus,{isFocused:!0,highlightedIndex:0}):e.internalSetState(Bq.focus,{isFocused:!0}),n.current.focus())}),OJ(EJ(e),`unfocusMenu`,function(){e.internalSetState(Bq.focus,{isFocused:!1})}),OJ(EJ(e),`resetMenu`,function(){e.internalSetState(Bq.reset,{isFocused:!1,highlightedIndex:-1,activedescendantId:null})}),e}return mye(n,[{key:`getItems`,value:function(){var e=this;return Array.isArray(this.props.items)?this.props.items:Object.keys(this.props.items).reduce(function(t,n){return t.concat(e.props.items[n])},[])}},{key:`componentDidMount`,value:function(){var e=this.props.rootRef?this.props.rootRef:this.rootRef;typeof document<`u`&&(e.current&&this.state.highlightedIndex>-1&&this.refList[this.state.highlightedIndex]&&vJ(this.refList[this.state.highlightedIndex].current,e.current,this.state.highlightedIndex===0,this.state.highlightedIndex===this.getItems().length-1,`center`),this.state.isFocused&&this.keyboardControlNode&&this.keyboardControlNode.addEventListener(`keydown`,this.onKeyDown)),this.props.addMenuToNesting&&this.props.addMenuToNesting(e)}},{key:`componentWillUnmount`,value:function(){var e=this.props.rootRef?this.props.rootRef:this.rootRef;typeof document<`u`&&this.keyboardControlNode&&this.keyboardControlNode.removeEventListener(`keydown`,this.onKeyDown),this.props.removeMenuFromNesting&&this.props.removeMenuFromNesting(e)}},{key:`componentDidUpdate`,value:function(e,t){typeof document<`u`&&(!t.isFocused&&this.state.isFocused?this.keyboardControlNode&&this.keyboardControlNode.addEventListener(`keydown`,this.onKeyDown):t.isFocused&&!this.state.isFocused&&this.keyboardControlNode&&this.keyboardControlNode.removeEventListener(`keydown`,this.onKeyDown));var n=this.getItems().length;this.props.forceHighlight&&this.state.highlightedIndex===-1&&n>0&&this.internalSetState(Bq.enter,{highlightedIndex:0}),n===0&&this.state.highlightedIndex!==-1?this.internalSetState(Bq.enter,{highlightedIndex:-1}):this.state.highlightedIndex>=n&&this.internalSetState(Bq.enter,{highlightedIndex:0}),this.props.isNestedMenuVisible&&this.props.nestedMenuHoverIndex!==e.nestedMenuHoverIndex&&!this.props.isNestedMenuVisible(this.rootRef)&&!this.props.forceHighlight&&this.setState({highlightedIndex:-1})}},{key:`internalSetState`,value:function(e,t){var n=this.props.stateReducer;this.props.onActiveDescendantChange&&typeof t.highlightedIndex==`number`&&this.state.highlightedIndex!==t.highlightedIndex&&this.props.onActiveDescendantChange(this.optionIds[t.highlightedIndex]),this.setState(n(e,t,this.state))}},{key:`render`,value:function(){var e=this,t=this.props;t.initialState,t.stateReducer,t.children,t.onItemSelect,t.addMenuToNesting,t.removeMenuFromNesting,t.getParentMenu,t.getChildMenu,t.forceHighlight;var n=xJ(t,dye);return this.props.children(CJ(CJ({},n),{},{rootRef:this.props.rootRef?this.props.rootRef:this.rootRef,activedescendantId:this.optionIds[this.state.highlightedIndex],getRequiredItemProps:function(t,n){return e.getRequiredItemProps(t,n)},handleMouseLeave:this.handleMouseLeave,highlightedIndex:this.state.highlightedIndex,isFocused:this.state.isFocused,handleKeyDown:this.props.keyboardControlNode.current?function(e){}:this.onKeyDown,focusMenu:this.focusMenu,unfocusMenu:this.unfocusMenu}))}}]),n}(_.Component);OJ(AJ,`defaultProps`,kJ);var jJ=function(e){return _.createElement(AJ,bJ({uidSeed:Tb()},e))};jJ.defaultProps=kJ;function MJ(e){"@babel/helpers - typeof";return MJ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},MJ(e)}var yye=[`overrides`];function NJ(){return NJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NJ.apply(this,arguments)}function bye(e,t){if(e==null)return{};var n=xye(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xye(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Sye(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function PJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
156function Cye(e,t,n){return t&&PJ(e.prototype,t),n&&PJ(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function wye(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&FJ(e,t)}function FJ(e,t){return FJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},FJ(e,t)}function Tye(e){var t=Oye();return function(){var n=IJ(e),r;if(t){var i=IJ(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Eye(this,r)}}function Eye(e,t){if(t&&(MJ(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Dye(e)}function Dye(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Oye(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function IJ(e){return IJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IJ(e)}var LJ=function(e){wye(n,e);var t=Tye(n);function n(){return Sye(this,n),t.apply(this,arguments)}return Cye(n,[{key:`render`,value:function(){var e=this.props,t=e.overrides,n=bye(e,yye);return _.createElement(oJ.Consumer,null,function(e){return _.createElement(jJ,NJ({},e,n),function(e){return _.createElement(lye,NJ({},e,{overrides:t}))})})}}]),n}(_.PureComponent),kye={small:`small`,medium:`medium`,large:`large`};Vy();var Aye={from:{transform:`rotate(0deg)`},to:{transform:`rotate(360deg)`}},RJ=W(`i`,function(e){var t=e.$theme,n=e.$color,r=n===void 0?t.colors.contentAccent:n,i=e.$borderWidth,a=e.$size,o=a===void 0?kye.medium:a,s={large:t.sizing.scale300,medium:t.sizing.scale100,small:t.sizing.scale0}[i||o],c={large:t.sizing.scale1000,medium:t.sizing.scale900,small:t.sizing.scale800}[o];return s||(s=t.sizing[i],s||=`${parseInt(i)}px`),c||(c=t.sizing[o],c||=`${parseInt(o)}px`),{display:`block`,animationName:Aye,animationDuration:t.animation.timing1000,animationIterationCount:`infinite`,animationTimingFunction:`linear`,borderLeftStyle:`solid`,borderRightStyle:`solid`,borderTopStyle:`solid`,borderBottomStyle:`solid`,borderRadius:`50%`,borderTopColor:r,borderRightColor:t.colors.backgroundTertiary,borderBottomColor:t.colors.backgroundTertiary,borderLeftColor:t.colors.backgroundTertiary,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,borderBottomWidth:s,width:c,height:c,cursor:`wait`}});RJ.displayName=`StyledSpinner`,RJ.displayName=`StyledSpinner`,Vy(),iv();function zJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zJ(Object(n),!0).forEach(function(t){VJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function VJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HJ(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lq.default,n=arguments.length>1?arguments[1]:void 0;return(e={},VJ(e,Lq.mini,n.font100),VJ(e,Lq.compact,n.font200),VJ(e,Lq.default,n.font300),VJ(e,Lq.large,n.font400),e)[t]}function jye(e,t){var n=t.inputBorderRadius;return e===Lq.mini&&(n=t.inputBorderRadiusMini),{borderTopLeftRadius:n,borderBottomLeftRadius:n,borderTopRightRadius:n,borderBottomRightRadius:n}}function Mye(e){var t,n,r,i,a,o=e.$theme,s=e.$theme.sizing,c=e.$size,l=c===void 0?Lq.default:c,u=e.$type,d=e.$multi,f=e.$isEmpty,p=u===Rq.search?`calc(${s.scale1000} - ${s.scale0})`:s.scale400,m=o.direction===`rtl`?`paddingRight`:`paddingLeft`,h=o.direction===`rtl`?`paddingLeft`:`paddingRight`;return(a={}
156,VJ(a,Lq.mini,(t={paddingTop:d&&!f?0:s.scale100,paddingBottom:d&&!f?0:s.scale100},VJ(t,m,d&&!f?`calc(${p} - ${s.scale0})`:p),VJ(t,h,`0`),t)),VJ(a,Lq.compact,(n={paddingTop:d&&!f?`calc(${s.scale100} - ${s.scale0})`:s.scale200,paddingBottom:d&&!f?`calc(${s.scale100} - ${s.scale0})`:s.scale200},VJ(n,m,d&&!f?`calc(${p} - ${s.scale0})`:p),VJ(n,h,`0`),n)),VJ(a,Lq.default,(r={paddingTop:d&&!f?`calc(${s.scale400} - ${s.scale0})`:s.scale400,paddingBottom:d&&!f?`calc(${s.scale400} - ${s.scale0})`:s.scale400},VJ(r,m,d&&!f?`calc(${p} + ${s.scale0})`:p),VJ(r,h,0),r)),VJ(a,Lq.large,(i={paddingTop:d&&!f?`calc(${s.scale600} - ${s.scale0})`:s.scale550,paddingBottom:d&&!f?`calc(${s.scale600} - ${s.scale0})`:s.scale550},VJ(i,m,d&&!f?`calc(${p} - ${s.scale0})`:p),VJ(i,h,0),i)),a)[l]}var UJ=W(`div`,function(e){return{width:`${String(e.$width)}px`}});UJ.displayName=`StyledDropdownContainer`,UJ.displayName=`StyledDropdownContainer`;var Nye=Gq,WJ=Zq,GJ=W(`div`,function(e){var t=e.$isHighlighted,n=e.$selected,r=e.$disabled,i=e.$theme;return{cursor:r?`not-allowed`:`pointer`,color:n&&!t?i.colors.menuFontSelected:null,fontWeight:n?`bold`:`normal`}});GJ.displayName=`StyledOptionContent`,GJ.displayName=`StyledOptionContent`;var KJ=W(`div`,function(e){var t=e.$theme.typography,n=e.$size;return BJ(BJ({},HJ(n,t)),{},{boxSizing:`border-box`,position:`relative`,width:`100%`})});KJ.displayName=`StyledRoot`,KJ.displayName=`StyledRoot`;function Pye(e,t,n,r,i,a){return e?{color:a.inputTextDisabled,borderLeftColor:a.inputFillDisabled,borderRightColor:a.inputFillDisabled,borderTopColor:a.inputFillDisabled,borderBottomColor:a.inputFillDisabled,backgroundColor:a.inputFillDisabled}:t||n?{color:a.contentPrimary,borderLeftColor:a.borderSelected,borderRightColor:a.borderSelected,borderTopColor:a.borderSelected,borderBottomColor:a.borderSelected,backgroundColor:a.inputFillActive}:i?{color:a.contentPrimary,borderLeftColor:a.inputBorderError,borderRightColor:a.inputBorderError,borderTopColor:a.inputBorderError,borderBottomColor:a.inputBorderError,backgroundColor:a.inputFillError}:r?{color:a.contentPrimary,borderLeftColor:a.inputBorderPositive,borderRightColor:a.inputBorderPositive,borderTopColor:a.inputBorderPositive,borderBottomColor:a.inputBorderPositive,backgroundColor:a.inputFillPositive}:{color:a.contentPrimary,borderLeftColor:a.inputBorder,borderRightColor:a.inputBorder,borderTopColor:a.inputBorder,borderBottomColor:a.inputBorder,backgroundColor:a.inputFill}}var qJ=W(`div`,function(e){var t=e.$disabled,n=e.$error,r=e.$positive,i=e.$isFocused,a=e.$isPseudoFocused,o=e.$type,s=e.$searchable,c=e.$size,l=e.$theme,u=l.borders,d=l.colors,f=l.animation;return BJ(BJ({},jye(c,u)),{},{boxSizing:`border-box`,overflow:`hidden`,width:`100%`,display:`flex`,justifyContent:`space-between`,cursor:t?`not-allowed`:s||o===Rq.search?`text`:`pointer`,borderLeftWidth:`2px`,borderRightWidth:`2px`,borderTopWidth:`2px`,borderBottomWidth:`2px`,borderLeftStyle:`solid`,borderRightStyle:`solid`,borderTopStyle:`solid`,borderBottomStyle:`solid`,transitionProperty:`border, box-shadow, background-color`,transitionDuration:f.timing200,transitionTimingFunction:f.easeOutCurve},Pye(t,i,a,r,n,d))});qJ.displayName=`StyledControlContainer`,qJ.displayName=`StyledControlContainer`;var JJ=W(`div`,function(e){var t=Mye(e);return BJ({boxSizing:`border-box`,position:`relative`,flexGrow:1,flexShrink:1,flexBasis:`0%`,display:`flex`,alignItems:`center`,flexWrap:e.$multi?`wrap`:`nowrap`,overflow:`hidden`},t)});JJ.displayName=`StyledValueContainer`,JJ.displayName=`StyledValueContainer`;var YJ=W(`div`,function(e){var t=e.$disabled,n=e.$theme.colors;return{color:t?n.inputPlaceholderDisabled:n.inputPlaceholder,maxWidth:`100%`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}});YJ.displayName=`StyledPlaceholder`,YJ.displayName=`StyledPlaceholder`;var XJ=W(`div`,function(e){var t,n=e.$searchable,r=e.$size,i=e.$theme,a=e.$theme.typography,o=HJ(r,a),s=i.direction===`rtl`?`marginRight`:`marginLeft`;return BJ((t={lineHeight:n?`inherit`:o.lineHeight,boxSizing:`border-box`},VJ(t,s,i.sizing.scale0),VJ(t,`height`,`100%`),VJ(t,`maxWidth`,`100%`),t),rv)});
156XJ.displayName=`StyledSingleValue`,XJ.displayName=`StyledSingleValue`;var ZJ=W(`div`,function(e){var t=e.$size,n=e.$searchable,r=e.$theme,i=r.typography,a=r.sizing,o=e.$isEmpty,s=HJ(t,i);return{position:`relative`,display:`inline-block`,maxWidth:`100%`,backgroundColor:`transparent`,borderLeftStyle:`none`,borderTopStyle:`none`,borderRightStyle:`none`,borderBottomStyle:`none`,boxShadow:`none`,boxSizing:`border-box`,outline:`none`,marginTop:0,marginBottom:0,marginLeft:o?0:a.scale0,marginRight:0,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,height:String(n?`auto`:s.lineHeight),maxHeight:String(s.lineHeight)}});ZJ.displayName=`StyledInputContainer`,ZJ.displayName=`StyledInputContainer`;var QJ=W(`input`,function(e){var t=e.$theme,n=t.colors,r=t.typography,i=e.$size,a=e.$searchable,o=e.$width;return BJ(BJ({},HJ(i,r)),{},{color:n.contentPrimary,boxSizing:`content-box`,width:a?o||`100%`:`1px`,maxWidth:`100%`,background:`transparent`,borderLeftStyle:`none`,borderTopStyle:`none`,borderRightStyle:`none`,borderBottomStyle:`none`,boxShadow:`none`,display:`inline-block`,outline:`none`,marginTop:`0`,marginBottom:`0`,marginLeft:`0`,marginRight:`0`,paddingTop:`0`,paddingBottom:`0`,paddingLeft:`0`,paddingRight:`0`})});QJ.displayName=`StyledInput`,QJ.displayName=`StyledInput`;var $J=W(`div`,function(e){var t,n=e.$size,r=e.$theme,i=e.$theme.typography,a=r.direction===`rtl`?`right`:`left`;return BJ(BJ({},HJ(n,i)),{},(t={position:`absolute`,top:0},VJ(t,a,0),VJ(t,`visibility`,`hidden`),VJ(t,`height`,0),VJ(t,`overflow`,`scroll`),VJ(t,`whiteSpace`,`pre`),t))});$J.displayName=`StyledInputSizer`,$J.displayName=`StyledInputSizer`;var eY=W(`div`,function(e){var t=e.$theme,n=e.$theme.sizing;return VJ({boxSizing:`border-box`,position:`relative`,display:`flex`,flexShrink:0,alignItems:`center`,alignSelf:`stretch`},t.direction===`rtl`?`paddingLeft`:`paddingRight`,n.scale500)});eY.displayName=`StyledIconsContainer`,eY.displayName=`StyledIconsContainer`;function tY(e){var t=e.$theme;return{display:`inline-block`,fill:`currentColor`,color:`currentColor`,height:t.sizing.scale600,width:t.sizing.scale600}}var nY=W(`svg`,function(e){var t,n=e.$theme,r=e.$disabled,i=e.$size,a=n.colors,o=(t={},VJ(t,Lq.mini,16),VJ(t,Lq.compact,16),VJ(t,Lq.default,20),VJ(t,Lq.large,24),t),s=o[Lq.default];return i&&(s=o[i]),BJ(BJ({},tY({$theme:n})),{},{color:r?a.inputTextDisabled:a.contentPrimary,cursor:r?`not-allowed`:`pointer`,height:`${s}px`,width:`${s}px`})});nY.displayName=`StyledSelectArrow`,nY.displayName=`StyledSelectArrow`;
156var rY=W(`svg`,function(e){var t,n=e.$theme,r=e.$size,i=n.colors,a=(t={},VJ(t,Lq.mini,15),VJ(t,Lq.compact,15),VJ(t,Lq.default,18),VJ(t,Lq.large,22),t),o=a[Lq.default];return r&&(o=a[r]),BJ(BJ({},tY({$theme:n})),{},{color:i.contentPrimary,cursor:`pointer`,height:`${o}px`,width:`${o}px`})});rY.displayName=`StyledClearIcon`,rY.displayName=`StyledClearIcon`;var iY=Ly(RJ,function(e){var t=e.$theme;return{borderTopWidth:`2px`,borderRightWidth:`2px`,borderBottomWidth:`2px`,borderLeftWidth:`2px`,borderRightColor:t.colors.borderOpaque,borderBottomColor:t.colors.borderOpaque,borderLeftColor:t.colors.borderOpaque,width:`16px`,height:`16px`}});iY.displayName=`StyledLoadingIndicator`,iY.displayName=`StyledLoadingIndicator`;var aY=W(`div`,function(e){var t,n=e.$disabled,r=e.$theme,i=r.colors,a=r.sizing,o=r.direction===`rtl`?`right`:`left`;return BJ(BJ({},tY(e)),{},(t={color:n?i.inputTextDisabled:i.contentPrimary,cursor:n?`not-allowed`:`pointer`,position:`absolute`,top:0},VJ(t,o,a.scale500),VJ(t,`display`,`flex`),VJ(t,`alignItems`,`center`),VJ(t,`height`,`100%`),t))});aY.displayName=`StyledSearchIconContainer`,aY.displayName=`StyledSearchIconContainer`,Jb();function oY(e){"@babel/helpers - typeof";return oY=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},oY(e)}var Fye=[`overrides`,`inputRef`];function sY(){return sY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sY.apply(this,arguments)}function cY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?cY(Object(n),!0).forEach(function(t){hY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Iye(e,t){return Bye(e)||zye(e,t)||Rye(e,t)||Lye()}function Lye(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 157In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rye(e,t){if(e){if(typeof e==`string`)return uY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uY(e,t)}}function uY(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zye(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Bye(e){if(Array.isArray(e))return e}function Vye(e,t){if(e==null)return{};var n=Hye(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hye(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Uye(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function dY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wye(e,t,n){return t&&dY(e.prototype,t),n&&dY(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Gye(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&fY(e,t)}function fY(e,t){return fY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fY(e,t)}function Kye(e){var t=Jye();return function(){var n=mY(e),r;if(t){var i=mY(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return qye(this,r)}}function qye(e,t){if(t&&(oY(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return pY(e)}function pY(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}
157function Jye(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mY(e){return mY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mY(e)}function hY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gY=function(e){Gye(n,e);var t=Kye(n);function n(){var e;Uye(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),hY(pY(e),`mounted`,void 0),hY(pY(e),`sizer`,void 0),hY(pY(e),`state`,{inputWidth:5}),hY(pY(e),`sizerRef`,function(t){e.sizer=t}),e}return Wye(n,[{key:`componentDidMount`,value:function(){this.mounted=!0,this.updateInputWidth()}},{key:`componentDidUpdate`,value:function(e,t){this.updateInputWidth()}},{key:`componentWillUnmount`,value:function(){this.mounted=!1}},{key:`updateInputWidth`,value:function(){if(!(!this.mounted||!this.sizer||this.sizer.scrollWidth===void 0)){var e=this.sizer.scrollWidth+2;e!==this.state.inputWidth&&this.sizer.scrollWidth!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:`render`,value:function(){var e=this.props,t=e.overrides,n=t===void 0?{}:t,r=e.inputRef,i=Vye(e,Fye),a=Iye(Hb(n.Input,QJ),2),o=a[0],s=a[1],c=[this.props.defaultValue,this.props.value,``].reduce(function(e,t){return e??t}),l=lY(lY({},i),{},{$width:`${this.state.inputWidth}px`});return _.createElement(_.Fragment,null,_.createElement(o,sY({},l,{ref:r},s)),_.createElement($J,{$size:this.props.$size,ref:this.sizerRef,$style:s.$style?s.$style:null},c))}}]),n}(_.Component);hY(gY,`defaultProps`,{inputRef:_.createRef(),value:``,overrides:{}});function _Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_Y(Object(n),!0).forEach(function(t){Yye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_Y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xye=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)},yY=function(e){return e!=null&&e!==``},Zye={filterOption:null,ignoreCase:!0,labelKey:`label`,matchPos:`any`,matchProp:`any`,trimFilter:!0,valueKey:`value`},bY=function(e,t,n,r){var i=vY(vY({},Zye),r);i.ignoreCase&&(t=t.toLowerCase()),i.trimFilter&&(t=t.trim());var a=(n||[]).reduce(function(e,t){return e.add(t[i.valueKey]),e},new Set),o=RegExp(`${i.matchPos===`start`?`^`:``}${Xye(t)}`,i.ignoreCase?`i`:``);return e.filter(function(e){if(a.has(e[i.valueKey]))return!1;if(i.filterOption)return i.filterOption.call(void 0,e,t);if(!t)return!0;var n=e[i.valueKey],r=e[i.labelKey],s=yY(n),c=yY(r);if(!s&&!c)return!1;var l=s?String(n):null,u=c?String(r):null;return l&&i.matchProp!==`label`&&o.test(l)||u&&i.matchProp!==`value`&&o.test(u)})},Qye={"aria-label":null,"aria-describedby":null,"aria-errormessage":null,"aria-labelledby":null,autoFocus:!1,backspaceRemoves:!0,clearable:!0,closeOnSelect:!0,creatable:!1,deleteRemoves:!0,disabled:!1,error:!1,positive:!1,escapeClearsValue:!0,filterOptions:bY,filterOutSelected:!0,getOptionLabel:null,getValueLabel:null,ignoreCase:!0,isLoading:!1,labelKey:`label`,maxDropdownHeight:`40vh`,multi:!1,onBlur:function(){},onBlurResetsInput:!0,onChange:function(){},onFocus:function(){},onInputChange:function(){},onCloseResetsInput:!0,onSelectResetsInput:!0,onOpen:null,onClose:null,openOnClick:!0,startOpen:!1,options:[],overrides:{},required:!1,searchable:!0,size:Lq.default,type:Rq.select,value:[],valueKey:`id`};Jb();function xY(e){"@babel/helpers - typeof";return xY=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xY(e)}var $ye=[`overrides`];function SY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
157t%2?SY(Object(n),!0).forEach(function(t){jY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ebe(e,t){if(e==null)return{};var n=tbe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tbe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function wY(){return wY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wY.apply(this,arguments)}function TY(e,t){return abe(e)||ibe(e,t)||rbe(e,t)||nbe()}function nbe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 158In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rbe(e,t){if(e){if(typeof e==`string`)return EY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EY(e,t)}}function EY(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ibe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function abe(e){if(Array.isArray(e))return e}function obe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function DY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sbe(e,t,n){return t&&DY(e.prototype,t),n&&DY(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function cbe(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&OY(e,t)}function OY(e,t){return OY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OY(e,t)}function lbe(e){var t=dbe();return function(){var n=AY(e),r;if(t){var i=AY(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ube(this,r)}}function ube(e,t){if(t&&(xY(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return kY(e)}function kY(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function dbe(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function AY(e){return AY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},AY(e)}function jY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fbe(e){return e.reduce(function(e,t){return t.__optgroup?(e[t.__optgroup]||(e[t.__optgroup]=[]),e[t.__optgroup].push(t)):e.__ungrouped.push(t),e},{__ungrouped:[]})}var pbe=function(e){cbe(n,e);var t=lbe(n);function n(){var e;obe(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),jY(kY(e),`getItemLabel`,function(t){var n=e.props,r=n.getOptionLabel,i=n.overrides,a=i===void 0?{}:i,o=n.value,s=n.valueKey,c=TY(Hb(a.OptionContent,GJ),2),l=c[0],u=c[1],d=Array.isArray(o)?!!o.find(function(e){return e&&e[s]===t[s]}):o[s]===t[s],f={$selected:d,$disabled:t.disabled,$isHighlighted:t.isHighlighted};return _.createElement(l,wY({"aria-readonly":t.disabled,"aria-selected":d,key:t[s]},e.getSharedProps(),f,u),r({option:t,optionState:f}))}),jY(kY(e),`onMouseDown`,function(e){e.nativeEvent.stopImmediatePropagation()}),jY(kY(e),`getHighlightedIndex`,function(){var t=e.props,n=t.value,r=t.options,i=t.valueKey,a={};if(Array.isArray(n)&&n.length>0?a=n[0]:n instanceof Array||(a=n),Object.keys(a).length>0){var o=r.findIndex(function(e){return e&&e[i]===a[i]});return o===-1?0:o}return 0}),e}return sbe(n,[{key:`getSharedProps`,value:function(){var e=this.props,t=e.error,n=e.isLoading,r=e.multi,i=e.required,a=e.size;
158return{$error:t,$isLoading:n,$multi:r,$required:i,$searchable:e.searchable,$size:a,$type:e.type,$width:e.width}}},{key:`render`,value:function(){var e=this,t=this.props,n=t.maxDropdownHeight,r=t.multi,i=t.noResultsMsg,a=t.onItemSelect,o=t.options,s=o===void 0?[]:o,c=t.overrides,l=c===void 0?{}:c,u=t.size,d=TY(Hb(l.DropdownContainer,UJ),2),f=d[0],p=d[1],m=TY(Hb(l.DropdownListItem,WJ),2),h=m[0],g=m[1],v=TY(Hb(l.StatefulMenu,LJ),2),y=v[0],b=v[1],x=b.overrides,S=x===void 0?{}:x,C=ebe(b,$ye),w=this.getHighlightedIndex(),T=fbe(s);return _.createElement(f,wY({"data-no-focus-lock":!0,ref:this.props.innerRef},this.getSharedProps(),p),_.createElement(y,wY({noResultsMsg:i,onActiveDescendantChange:function(t){e.props.onActiveDescendantChange&&e.props.onActiveDescendantChange(t)},onItemSelect:a,items:T,size:u,initialState:{isFocused:!0,highlightedIndex:w},typeAhead:!1,keyboardControlNode:this.props.keyboardControlNode,forceHighlight:!0,overrides:Ub({List:{component:Nye,style:function(e){return{maxHeight:e.$maxHeight||null}},props:{id:this.props.id?this.props.id:null,$maxHeight:n,"aria-multiselectable":r}},Option:{props:{getItemLabel:this.getItemLabel,onMouseDown:this.onMouseDown,overrides:{ListItem:{component:h,props:CY(CY({},g),{},{role:`option`}),style:g.$style}},renderHrefAsAnchor:!1}}},CY({List:l.Dropdown||{},Option:l.DropdownOption||{}},S))},C)))}}]),n}(_.Component);function MY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function NY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?MY(Object(n),!0).forEach(function(t){mbe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mbe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hbe(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return t.concat(r.map(function(e){return NY(NY({},e),{},{__optgroup:n})}))},[])}function PY(e){return e?Array.isArray(e)?e:hbe(e):[]}var gbe=function(e,t){if(!t.options)return e;for(var n=PY(t.options),r=0;r<n.length;r++)if(String(n[r][t.valueKey])===String(e[t.valueKey]))return n[r];return e};Jb(),ab(),Pb();function FY(e){"@babel/helpers - typeof";return FY=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},FY(e)}var _be=[`$size`],vbe=[`$size`];function IY(e,t){if(e==null)return{};var n=ybe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ybe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function LY(){return LY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LY.apply(this,arguments)}function RY(e,t){return Sbe(e)||xbe(e,t)||BY(e,t)||bbe()}function bbe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 159In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xbe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Sbe(e){if(Array.isArray(e))return e}function zY(e){return Tbe(e)||wbe(e)||BY(e)||Cbe()}function Cbe(){throw TypeError(`Invalid attempt to spread non-iterable instance. 160In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BY(e,t){if(e){if(typeof e==`string`)return VY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VY(e,t)}}function wbe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Tbe(e){if(Array.isArray(e))return VY(e)}function VY(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ebe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function HY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dbe(e,t,n){return t&&HY(e.prototype,t),n&&HY(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Obe(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&UY(e,t)}function UY(e,t){return UY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UY(e,t)}function kbe(e){var t=jbe();return function(){var n=GY(e),r;if(t){var i=GY(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Abe(this,r)}}function Abe(e,t){if(t&&(FY(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return WY(e)}function WY(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function jbe(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function GY(e){return GY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GY(e)}function KY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mbe(){return null}var qY=function(e){return e.type===`click`},JY=function(e){return e.button!==null&&e.button!==void 0&&e.button===0},YY=function(e,t){if(typeof document<`u`)return t&&e&&e.contains(t)};function Nbe(e,t){if(e instanceof Element)for(var n=e;n&&n!==t;){var r=n.getAttribute(`role`);if(r===`button`||r===`link`)return!0;n.tagName&&(n=n.parentElement)}return!1}var XY=function(e){Obe(n,e);var t=kbe(n);function n(e){var r;return Ebe(this,n),r=t.call(this,e),KY(WY(r),`anchor`,_.createRef()),KY(WY(r),`dropdown`,_.createRef()),KY(WY(r),`input`,void 0),KY(WY(r),`dragging`,void 0),KY(WY(r),`focusAfterClear`,void 0),KY(WY(r),`openAfterFocus`,void 0),KY(WY(r),`justSelected`,void 0),KY(WY(r),`options`,[]),KY(WY(r),`state`,{activeDescendant:null,inputValue:``,isFocused:!1,isOpen:r.props.startOpen,isPseudoFocused:!1}),KY(WY(r),`isItMounted`,!1),KY(WY(r),`handleTouchOutside`,function(e){YY(r.dropdown.current,e.target)||YY(r.anchor.current,e.target)||r.closeMenu()}),KY(WY(r),`handleTouchMove`,function(){return r.dragging=!0}),KY(WY(r),`handleTouchStart`,function(){return r.dragging=!1}),KY(WY(r),`handleTouchEnd`,function(e){r.dragging||r.handleClick(e)}),KY(WY(r),`handleClick`,function(e){if(!(r.props.disabled||!qY(e)&&!JY(e))){if(e.target===r.input){r.state.isFocused||(r.openAfterFocus=r.props.openOnClick,r.focus()),r.state.isOpen||r.setState({isOpen:!0,isFocused:!0,isPseudoFocused:!1});return}if(!(r.input&&Nbe(e.target,r.input))){if(!r.props.searchable){r.focu
160s(),r.state.isOpen?r.setState({isOpen:!1,isFocused:!1}):r.setState({isOpen:!0,isFocused:!0});return}r.state.isFocused?(r.focus(),r.input&&(r.input.value=``),r.setState(function(e){return{isOpen:!r.focusAfterClear&&!e.isOpen,isPseudoFocused:!1}}),r.focusAfterClear=!1):(r.focusAfterClear=!1,r.openAfterFocus=r.props.openOnClick,r.focus())}}}),KY(WY(r),`handleInputFocus`,function(e){if(!r.props.disabled){r.props.onFocus&&r.props.onFocus(e);var t=r.state.isOpen||r.openAfterFocus;t=!r.focusAfterClear&&t,r.setState({isFocused:!0,isOpen:!!t}),r.focusAfterClear=!1,r.openAfterFocus=!1}}),KY(WY(r),`handleBlur`,function(e){if(e.relatedTarget){if(YY(r.anchor.current,e.relatedTarget)||YY(r.dropdown.current,e.relatedTarget))return}else if(YY(r.anchor.current,e.target))return;r.props.onBlur&&r.props.onBlur(e),r.isItMounted&&r.setState({isFocused:!1,isOpen:!1,isPseudoFocused:!1,inputValue:r.props.onBlurResetsInput?``:r.state.inputValue})}),KY(WY(r),`handleClickOutside`,function(e){if(r.justSelected){r.justSelected=!1;return}YY(r.dropdown.current,e.target)||(r.state.isFocused||r.state.isPseudoFocused)&&!YY(r.anchor.current,e.target)&&r.handleBlur(e)}),KY(WY(r),`handleInputChange`,function(e){var t=e.target.value;r.setState({inputValue:t,isOpen:!0,isPseudoFocused:!1}),r.props.onInputChange&&r.props.onInputChange(e)}),KY(WY(r),`handleKeyDown`,function(e){if(!r.props.disabled)switch(e.keyCode){case 8:!r.state.inputValue&&r.props.backspaceRemoves&&(e.preventDefault(),r.backspaceValue());break;case 9:r.setState(function(e){return{isPseudoFocused:!1,isFocused:!1,isOpen:!1,inputValue:!r.props.onCloseResetsInput||!r.props.onBlurResetsInput?e.inputValue:``}});break;case 27:!r.state.isOpen&&r.props.clearable&&r.props.escapeClearsValue&&(r.clearValue(e),r.setState({isFocused:!1,isPseudoFocused:!1}));break;case 32:if(r.props.searchable)break;e.preventDefault(),r.state.isOpen||r.setState({isOpen:!0});break;case 38:e.preventDefault(),r.state.isOpen||r.setState({isOpen:!0});break;case 40:e.preventDefault(),r.state.isOpen||r.setState({isOpen:!0});break;case 33:e.preventDefault(),r.state.isOpen||r.setState({isOpen:!0});break;case 34:e.preventDefault(),r.state.isOpen||r.setState({isOpen:!0});break;case 35:if(e.shiftKey)break;e.preventDefault(),r.state.isOpen||r.setState({isOpen:!0});break;case 36:if(e.shiftKey)break;e.preventDefault(),r.state.isOpen||r.setState({isOpen:!0});break;case 46:!r.state.inputValue&&r.props.deleteRemoves&&(e.preventDefault(),r.popValue());break}}),KY(WY(r),`getOptionLabel`,function(e,t){var n=t.option;return n.isCreatable?`${e.select.create} â${n[r.props.labelKey]}â`:n[r.props.labelKey]}),KY(WY(r),`getValueLabel`,function(e){return e.option[r.props.labelKey]}),KY(WY(r),`handleActiveDescendantChange`,function(e){e?r.setState({activeDescendant:e}):r.setState({activeDescendant:null})}),KY(WY(r),`handleInputRef`,function(e){r.input=e,typeof r.props.inputRef==`function`?r.props.inputRef(e):r.props.inputRef&&(r.props.inputRef.current=e),r.props.controlRef&&typeof r.props.controlRef==`function`&&r.props.controlRef(e)}),KY(WY(r),`selectValue`,function(e){var t=e.item;if(!t.disabled){r.justSelected=!0;var n=r.props.onSelectResetsInput?``:r.state.inputValue;r.props.multi?r.setState({inputValue:n,isOpen:!r.props.closeOnSelect},function(){r.props.value.some(function(e){return e[r.props.valueKey]===t[r.props.valueKey]})?r.removeValue(t):r.addValue(t)}):(r.focus(),r.setState({inputValue:n,isOpen:!r.props.closeOnSelect,isFocused:!0,isPseudoFocused:!1},function(){r.setValue([t],t,zq.select)}))}}),KY(WY(r),`addValue`,function(e){var t=zY(r.props.value);r.setValue(t.concat(e),e,zq.select)}),KY(WY(r),`backspaceValue`,function(){var e=r.popValue();if(e){var t=r.props.value.length,n=(r.props.getValueLabel||r.getValueLabel)({option:e,index:t-1});if(!r.props.backspaceClearsInputValue&&typeof n==`string`){var i=n.slice(0,-1);r.setState({inputValue:i,isOpen:!0})}}}),KY(WY(r),`popValue`,function(){var e=zY(r.props.value),t=e.length;if(t&&e[t-1].clearableValue!==!1){var n=e.pop();return r.setValue(e,n,zq.remove),n}}),KY(WY(r),`removeValue`,function(e){var t=zY(r.props.value);r.setValue(t.filter(function(t){return t[r.props.valueKey]!==e[r.props.valueKey]}),e,zq.remove),r.focus()}),KY(WY(r),`clearValue`,function(e){if(!(qY(e)&&!JY(e))){if(r.props.value){var t=r.props.value.filter(function(e){return e.clearableValue===!1});r.setValue(t,null,zq.clear)}r.setState({inputValue:``,isOpen:!1}),r.focus(),r.focusAfterClear=!0}}),KY(WY(r),`shouldShowPlaceholder`,function(){return!(r.state.inputValue||r.props.value&&r.props.value.length)}),KY(WY(r),`shouldShowValue`,function(){return!r.state.inputValue}),r.options=PY(e.options),r}return Dbe(n,[{key:`componentDidMount`,value:function(){this.props.autoFocus&&this.focus(),this.isItMounted=!0;var e=this.props.controlRef;e&&typeof e!=`function`&&(e.current={setDropdownOpen:this.handleDropdownOpen.bind(this),setInputValue:this.handleSetInputValue.bind(this),setInputFocus:this.handleSetInputFocus.bind(this),setInputBlur:this.handleSetInputBlur.bind(this),focus:this.handleSetInputFocus.bind(this),blur:this.handleSetInputBlur.bind(this)})}},{key:`componentDidUpdate`,value:function(e,t){var n=this;typeof document<`u`&&(t.isOpen!==this.state.isOpen&&(this.state.isOpen?(this.props.onOpen&&this.props.onOpen(),document.addEventListener(`touchstart`,this.handleTouchOutside)):(this.props.onClose&&this.props.onClose(),document.removeEventListener(`touchstart`,this.handleTouchOutside))),!t.isFocused&&this.state.isFocused&&setTimeout(function(){return document.addEventListener(`click`,n.handleClickOutside)},0))}},{key:`componentWillUnmount`,value:function(){typeof document<`u`&&(document.removeEventListener(`touchstart`,this.handleTouchOutside),document.removeEventListener(`click`,this.handleClickOutside)),this.isItMounted=!1}},{key:`focus`,value:function(){this.input&&this.input.focus()}},{key:`handleDropdownOpen`,value:function(e){this.setState({isOpen:e})}},{key:`handleSetInputValue`,value:function(e){this.setState({inputValue:e})}},{key:`handleSetInputFocus`,value:function(){this.input.focus()}},{key:`handleSetInputBlur`,value:function(){this.input.blur()}},{key:`closeMenu`,value:function(){this.props.onCloseResetsInput?this.setState({inputValue:``,isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi})}},{key:`getValueArray`,value:function(e){var t=this;if(!Array.isArray(e)){if(e==null)return[];e=[e]}return e.map(function(e){return gbe(e,t.props)})}},{key:`setValue`,value:function(e,t,n){this.props.onChange&&this.props.onChange({value:e,option:t,type:n})}},{key:`renderLoading`,value:function(){if(this.props.isLoading){var e=this.props.overrides,t=RY(Hb((e===void 0?{}:e).LoadingIndicator,iY),2),n=t[0],r=t[1];return _.createElement(n,LY({role:`status`},r),_.createElement(`span`,{style:{position:`absolute`,width:`1px`,height:`1px`,padding:0,margin:`-1px`,overflow:`hidden`,clip:`rect(0,0,0,0)`,whiteSpace:`nowrap`,border:0}},`Loading`))}}},{key:`renderValue`,value:function(e){var t=this,n=this.props.overrides,r=n===void 0?{}:n,i=this.getSharedProps(),a=this.props.getValueLabel||this.getValueLabel,o=this.props.valueComponent||Mbe;if(!e.length)return null;if(this.props.multi)return e.map(function(e,n){var s=i.$disabled||e.clearableValue===!1;return _.createElement(o,LY({value:e,key:`value-${n}-${e[t.props.valueKey]}`,removeValue:function(){return t.removeValue(e)},disabled:s,overrides:{Tag:r.Tag,MultiValue:r.MultiValue}},i,{$disabled:s}),a({option:e,index:n}))});if(this.shouldShowValue())return _.createElement(o,LY({value:e[0][this.props.valueKey],disabled:this.props.disabled,overrides:{SingleValue:r.SingleValue}},i),a({option:e[0]}))}},{key:`renderInput`,value:function(e){var t=this,n=this.props.overrides,r=n===void 0?{}:n,i=RY(Hb(r.InputContainer,ZJ),2),a=i[0],o=i[1],s=this.getSharedProps(),c=this.state.isOpen,l=this.getValueArray(this.props.value).map(function(e){return e[t.props.labelKey]}).join(`, `),u=`${l.length?`Selected ${l}. `:``}${this.props[`aria-label`]||``}`;return this.props.searchable?_.createElement(a,LY({},s,o),_.createElement(gY,LY({"aria-activedescendant":this.state.activeDescendant,"aria-autocomplete":`list`,"aria-controls":this.state.isOpen?e:null,"aria-describedby":this.props[`aria-describedby`],"aria-errormessage":this.props[`aria-errormessage`],"aria-disabled":this.props.disabled||null,"aria-expanded":c,"aria-haspopup":`listbox`,"aria-label":u,"aria-labelledby":this.props[`aria-labelledby`],"aria-required":this.props.required||null,disabled:this.props.disabled||null,id:this.props.id||null,inputRef:this.handleInputRef,onChange:this.handleInputChange,onFocus:this.handleInputFocus,overrides:{Input:r.Input},required:this.props.required&&!this.props.value.length||null,role:`combobox`,value:this.state.inputValue,tabIndex:0},s))):_.createElement(a,LY({"aria-activedescendant":this.state.activeDescendant,"aria-describedby":this.props[`aria-describedby`],"aria-errormessage":this.props[`aria-errormessage`],"aria-disabled":this.props.disabled,"aria-labelledby":this.props[`aria-labelledby`],"aria-owns":this.state.isOpen?e:null,"aria-required":this.props.required||null,onFocus:this.handleInputFocus,tabIndex:0},s,o),_.createElement(`input`,LY({"aria-hidden":!0,id:this.props.id||null,ref:this.handleInputRef,style:{opacity:0,width:0,overflow:`hidden`,border:`none`,padding:0},tabIndex:-1},r.Input&&r.Input.props?r.Input.props:{})))}},{key:`renderClear`,value:function(){var e,t=!!(this.props.value&&this.props.value.length||this.state.inputValue);if(!(!this.props.clearable||this.props.disabled||this.props.isLoading||!t)){var n=this.getSharedProps();n.$size;var r=IY(n,_be),i=this.props.overrides,a=RY(Hb((i===void 0?{}:i).ClearIcon,kq),2),o=a[0],s=a[1],c=this.props.multi?`Clear all`:`Clear value`,l=(e={},KY(e,Lq.mini,15),KY(e,Lq.compact,15),KY(e,Lq.default,18),KY(e,Lq.large,22),e);return _.createElement(o,LY({title:c,"aria-label":c,onClick:this.clearValue,role:`button`,size:l[this.props.size]||l[Lq.default]},r,s))}}},{key:`renderArrow`,value:function(){var e;if(this.props.type!==Rq.select)return null;var t=this.getSharedProps();t.$size;var n=IY(t,vbe),r=this.props.overrides,i=RY(Hb((r===void 0?{}:r).SelectArrow,kve),2),a=i[0],o=i[1];o.overrides=Ub({Svg:{style:function(e){var t=e.$theme;return{color:e.$disabled?t.colors.inputTextDisabled:t.colors.contentPrimary}}}},o.overrides);var s=(e={},KY(e,Lq.mini,16),KY(e,Lq.compact,16),KY(e,Lq.default,20),KY(e,Lq.large,24),e);return _.createElement(a,LY({size:s[this.props.size]||s[Lq.default],title:`open`},n,o))}}
160,{key:`renderSearch`,value:function(){if(this.props.type!==Rq.search)return null;var e=this.props.overrides,t=e===void 0?{}:e,n=RY(Hb(t.SearchIconContainer,aY),2),r=n[0],i=n[1],a=RY(Hb(t.SearchIcon,yve),2),o=a[0],s=a[1],c=this.getSharedProps();return _.createElement(r,LY({},c,i),_.createElement(o,LY({size:16,title:`search`},c,s)))}},{key:`filterOptions`,value:function(e){var t=this,n=this.state.inputValue.trim();this.props.filterOptions&&(this.options=this.props.filterOptions(this.options,n,e,{valueKey:this.props.valueKey,labelKey:this.props.labelKey}));var r=this.props.ignoreCase?function(e){return e[t.props.labelKey].toLowerCase()!==n.toLowerCase().trim()}:function(e){return e[t.props.labelKey]!==n.trim()};if(n&&this.props.creatable&&this.options.concat(this.props.value).every(r)){var i;this.options.push((i={id:n},KY(i,this.props.labelKey,n),KY(i,this.props.valueKey,n),KY(i,`isCreatable`,!0),i))}return this.options}},{key:`getSharedProps`,value:function(){var e=this.props,t=e.clearable,n=e.creatable,r=e.disabled,i=e.error,a=e.positive,o=e.isLoading,s=e.multi,c=e.required,l=e.size,u=e.searchable,d=e.type,f=e.value,p=this.state,m=p.isOpen;return{$clearable:t,$creatable:n,$disabled:r,$error:i,$positive:a,$isFocused:p.isFocused,$isLoading:o,$isOpen:m,$isPseudoFocused:p.isPseudoFocused,$multi:s,$required:c,$searchable:u,$size:l,$type:d,$isEmpty:!this.getValueArray(f).length}}},{key:`render`,value:function(){var e=this;this.options=PY(this.props.options);var t=this.props,n=t.overrides,r=n===void 0?{}:n,i=t.type,a=t.multi,o=t.noResultsMsg,s=t.value,c=t.filterOutSelected,l=RY(Hb(r.Root,KJ),2),u=l[0],d=l[1],f=RY(Hb(r.ControlContainer,qJ),2),p=f[0],m=f[1],h=RY(Hb(r.ValueContainer,JJ),2),g=h[0],v=h[1],y=RY(Hb(r.IconsContainer,eY),2),b=y[0],x=y[1],S=RY(Hb(r.Popover,BI),2),C=S[0],w=S[1],T=RY(Hb(r.Placeholder,YJ),2),E=T[0],D=T[1],O=this.getSharedProps(),k=this.getValueArray(s),A=this.filterOptions(a&&c?k:null),ee=this.state.isOpen;return O.$isOpen=ee,_.createElement(jb,null,function(t){return _.createElement(rb.Consumer,null,function(n){return _.createElement(C,LY({innerRef:function(t){t&&(e.anchor=t.anchorRef)},accessibilityType:tI.none,autoFocus:!1,focusLock:!1,mountNode:e.props.mountNode,onEsc:function(){return e.closeMenu()},isOpen:ee,popoverMargin:0,content:function(){var s={error:e.props.error,positive:e.props.positive,getOptionLabel:e.props.getOptionLabel||e.getOptionLabel.bind(e,n),id:t,isLoading:e.props.isLoading,labelKey:e.props.labelKey,maxDropdownHeight:e.props.maxDropdownHeight,multi:a,noResultsMsg:o,onActiveDescendantChange:e.handleActiveDescendantChange,onItemSelect:e.selectValue,options:A,overrides:r,required:e.props.required,searchable:e.props.searchable,size:e.props.size,type:i,value:k,valueKey:e.props.valueKey,width:e.anchor.current?e.anchor.current.clientWidth:null,keyboardControlNode:e.anchor};return _.createElement(pbe,LY({innerRef:e.dropdown},s))},placement:QF.bottom},w),_.createElement(u,LY({onBlur:e.handleBlur,"data-baseweb":`select`},O,d),_.createElement(p,LY({onKeyDown:e.handleKeyDown,onClick:e.handleClick,onTouchEnd:e.handleTouchEnd,onTouchMove:e.handleTouchMove,onTouchStart:e.handleTouchStart},O,m),i===Rq.search?e.renderSearch():null,_.createElement(g,LY({},O,v),e.renderValue(k),e.renderInput(t),e.shouldShowPlaceholder()?_.createElement(E,LY({},O,D),e.props.placeholder===void 0?n.select.placeholder:e.props.placeholder):null),_.createElement(b,LY({},O,x),e.renderLoading(),e.renderClear(),i===Rq.select?e.renderArrow():null))))})})}}]),n}(_.Component);KY(XY,`defaultProps`,Qye);var ZY=s(((e,t)=>{e.__esModule=!0,e.default=r;function n(e,t,r){return function(){var i=r.concat(Array.prototype.slice.call(arguments));return i.length>=t?e.apply(this,i):n(e,t,i)}}function r(e){return n(e,e.length,[])}t.exports=e.default})),Pbe=s(((e,t)=>{e.__esModule=!0,e.default=void 0;function n(e){return Math.round(e*255)}function r(e,t,r){return n(e)+`,`+n(t)+`,`+n(r)}function i(e,t,n,i){if(i===void 0&&(i=r),t===0)return i(n,n,n);var a=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*t,s=o*(1-Math.abs(a%2-1)),c=0,l=0,u=0;a>=0&&a<1?(c=o,l=s):a>=1&&a<2?(c=s,l=o):a>=2&&a<3?(l=o,u=s):a>=3&&a<4?(l=s,u=o):a>=4&&a<5?(c=s,u=o):a>=5&&a<6&&(c=o,u=s);var d=n-o/2,f=c+d,p=l+d,m=u+d;return i(f,p,m)}
160e.default=i,t.exports=e.default})),Fbe=s(((e,t)=>{e.__esModule=!0,e.default=void 0;var n={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`00ffff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`0000ff`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`00ffff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`ff00ff`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`639`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`};function r(e){if(typeof e!=`string`)return e;var t=e.toLowerCase();return n[t]?`#`+n[t]:e}e.default=r,t.exports=e.default})),QY=s(((e,t)=>{e.__esModule=!0,e.default=void 0;function n(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function i(e){var t=typeof Map==`function`?new Map:void 0;return i=function(e){if(e===null||!s(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return a(e,arguments,l(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},i(e)}function a(e,t,n){return a=o()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i},a.apply(null,arguments)}function o(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}
160function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}e.default=function(e){r(t,e);function t(t){return n(e.call(this,`An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#`+t+` for more information.`)||this)}return t}(i(Error)),t.exports=e.default})),$Y=s(((e,t)=>{e.__esModule=!0,e.default=m;var n=a(Pbe()),r=a(Fbe()),i=a(QY());function a(e){return e&&e.__esModule?e:{default:e}}var o=/^#[a-fA-F0-9]{6}$/,s=/^#[a-fA-F0-9]{8}$/,c=/^#[a-fA-F0-9]{3}$/,l=/^#[a-fA-F0-9]{4}$/,u=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,d=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,f=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,p=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function m(e){if(typeof e!=`string`)throw new i.default(3);var t=(0,r.default)(e);if(t.match(o))return{red:parseInt(``+t[1]+t[2],16),green:parseInt(``+t[3]+t[4],16),blue:parseInt(``+t[5]+t[6],16)};if(t.match(s)){var a=parseFloat((parseInt(``+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(``+t[1]+t[2],16),green:parseInt(``+t[3]+t[4],16),blue:parseInt(``+t[5]+t[6],16),alph
160a:a}}if(t.match(c))return{red:parseInt(``+t[1]+t[1],16),green:parseInt(``+t[2]+t[2],16),blue:parseInt(``+t[3]+t[3],16)};if(t.match(l)){var m=parseFloat((parseInt(``+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(``+t[1]+t[1],16),green:parseInt(``+t[2]+t[2],16),blue:parseInt(``+t[3]+t[3],16),alpha:m}}var h=u.exec(t);if(h)return{red:parseInt(``+h[1],10),green:parseInt(``+h[2],10),blue:parseInt(``+h[3],10)};var g=d.exec(t.substring(0,50));if(g)return{red:parseInt(``+g[1],10),green:parseInt(``+g[2],10),blue:parseInt(``+g[3],10),alpha:parseFloat(``+g[4])};var _=f.exec(t);if(_){var v=parseInt(``+_[1],10),y=parseInt(``+_[2],10)/100,b=parseInt(``+_[3],10)/100,x=`rgb(`+(0,n.default)(v,y,b)+`)`,S=u.exec(x);if(!S)throw new i.default(4,t,x);return{red:parseInt(``+S[1],10),green:parseInt(``+S[2],10),blue:parseInt(``+S[3],10)}}var C=p.exec(t.substring(0,50));if(C){var w=parseInt(``+C[1],10),T=parseInt(``+C[2],10)/100,E=parseInt(``+C[3],10)/100,D=`rgb(`+(0,n.default)(w,T,E)+`)`,O=u.exec(D);if(!O)throw new i.default(4,t,D);return{red:parseInt(``+O[1],10),green:parseInt(``+O[2],10),blue:parseInt(``+O[3],10),alpha:parseFloat(``+C[4])}}throw new i.default(5)}t.exports=e.default})),Ibe=s(((e,t)=>{e.__esModule=!0,e.default=void 0,e.default=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?`#`+e[1]+e[3]+e[5]:e},t.exports=e.default})),Lbe=s(((e,t)=>{e.__esModule=!0,e.default=void 0;function n(e){var t=e.toString(16);return t.length===1?`0`+t:t}e.default=n,t.exports=e.default})),Rbe=s(((e,t)=>{e.__esModule=!0,e.default=o;var n=a(Ibe()),r=a(Lbe()),i=a(QY());function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,a){if(typeof e==`number`&&typeof t==`number`&&typeof a==`number`)return(0,n.default)(`#`+(0,r.default)(e)+(0,r.default)(t)+(0,r.default)(a));if(typeof e==`object`&&t===void 0&&a===void 0)return(0,n.default)(`#`+(0,r.default)(e.red)+(0,r.default)(e.green)+(0,r.default)(e.blue));throw new i.default(6)}t.exports=e.default})),zbe=s(((e,t)=>{e.__esModule=!0,e.default=o;var n=a($Y()),r=a(Rbe()),i=a(QY());function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,a,o){if(typeof e==`string`&&typeof t==`number`){var s=(0,n.default)(e);return`rgba(`+s.red+`,`+s.green+`,`+s.blue+`,`+t+`)`}else if(typeof e==`number`&&typeof t==`number`&&typeof a==`number`&&typeof o==`number`)return o>=1?(0,r.default)(e,t,a):`rgba(`+e+`,`+t+`,`+a+`,`+o+`)`;else if(typeof e==`object`&&t===void 0&&a===void 0&&o===void 0)return e.alpha>=1?(0,r.default)(e.red,e.green,e.blue):`rgba(`+e.red+`,`+e.green+`,`+e.blue+`,`+e.alpha+`)`;throw new i.default(7)}t.exports=e.default})),eX=s(((e,t)=>{e.__esModule=!0,e.default=void 0;var n=a(ZY()),r=a(zbe()),i=a($Y());function a(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t,n){if(t===`transparent`)return n;if(n===`transparent`)return t;if(e===0)return n;var a=(0,i.default)(t),s=o({},a,{alpha:typeof a.alpha==`number`?a.alpha:1}),c=(0,i.default)(n),l=o({},c,{alpha:typeof c.alpha==`number`?c.alpha:1}),u=s.alpha-l.alpha,d=parseFloat(e)*2-1,f=((d*u===-1?d:d+u)/(1+d*u)+1)/2,p=1-f,m={red:Math.floor(s.red*f+l.red*p),green:Math.floor(s.green*f+l.green*p),blue:Math.floor(s.blue*f+l.blue*p),alpha:s.alpha*(parseFloat(e)/1)+l.alpha*(1-parseFloat(e)/1)};return(0,r.default)(m)}e.default=(0,n.default)(s),t.exports=e.default})),Bbe=s(((e,t)=>{e.__esModule=!0,e.default=void 0;var n=i(ZY()),r=i(eX());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return t===`transparent`?t:(0,r.default)(parseFloat(e),`rgb(255, 255, 255)`,t)}e.default=(0,n.default)(a),t.exports=e.default})),Vbe=s(((e,t)=>{e.__esModule=!0,e.default=void 0;var n=i(ZY()),r=i(eX());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return t===`transparent`?t:(0,r.default)(parseFloat(e),`rgb(0, 0, 0)`,t)}e.default=(0,n.default)(a),t.exports=e.default})),tX={small:`small`,medium:`medium`,large:`large`},nX=Object.freeze({solid:`solid`,light:`light`,outlined:`outlined`}),rX={custom:`custom`,neutral:`neutral`,primary:`primary`,accent:`accent`,positive:`positive`,warning:`warning`,negative:`negative`,black:`black`,blue:`blue`,green:`green`,red:`red`,yellow:`yellow`,orange:`orange`,purple:`purple`,brown:`brown`},iX=u(Bbe()),aX=u(Vbe());Vy(),Q_();var oX,sX,cX,lX,uX,dX,fX,pX,mX,hX,gX;function _X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
160t%2?_X(Object(n),!0).forEach(function(t){Z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_X(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yX(e,t){switch(t){case`0`:return`white`;case`50`:return(0,iX.default)(.8,e);case`100`:return(0,iX.default)(.6,e);case`200`:return(0,iX.default)(.4,e);case`300`:return(0,iX.default)(.2,e);case`400`:return e;case`500`:return(0,aX.default)(.2,e);case`600`:return(0,aX.default)(.4,e);case`700`:return(0,aX.default)(.6,e);case`800`:return(0,aX.default)(.8,e);case`1000`:return`black`;default:return e}}var bX={disabled:`disabled`,solid:`solid`,outline:`outline`},xX=function(e,t,n){return e.name&&e.name.includes(`dark`)?n:t},Hbe=(oX={},Z(oX,bX.disabled,function(e,t){return{color:e.colors.tagNeutralFontDisabled,backgroundColor:null,borderColor:e.colors.tagNeutralOutlinedDisabled}}),Z(oX,bX.solid,function(e,t){return{color:e.colors.tagNeutralSolidFont,backgroundColor:e.colors.tagNeutralSolidBackground,borderColor:null}}),Z(oX,bX.outline,function(e,t){return{color:e.colors.tagNeutralOutlinedFont,backgroundColor:null,borderColor:e.colors.tagNeutralOutlinedBackground}}),oX),SX=(sX={},Z(sX,bX.disabled,function(e,t){return{color:e.colors.tagPrimaryFontDisabled,backgroundColor:null,borderColor:e.colors.tagPrimaryOutlinedDisabled}}),Z(sX,bX.solid,function(e,t){return{color:e.colors.tagPrimarySolidFont,backgroundColor:e.colors.tagPrimarySolidBackground,borderColor:null}}),Z(sX,bX.outline,function(e,t){return{color:e.colors.tagPrimaryOutlinedFont,backgroundColor:null,borderColor:e.colors.tagPrimaryOutlinedBackground}}),sX),CX=(cX={},Z(cX,bX.disabled,function(e,t){return{color:e.colors.tagAccentFontDisabled,backgroundColor:null,borderColor:e.colors.tagAccentOutlinedDisabled}}),Z(cX,bX.solid,function(e,t){return{color:e.colors.tagAccentSolidFont,backgroundColor:e.colors.tagAccentSolidBackground,borderColor:null}}),Z(cX,bX.outline,function(e,t){return{color:e.colors.tagAccentOutlinedFont,backgroundColor:null,borderColor:e.colors.tagAccentOutlinedBackground}}),cX),wX=(lX={},Z(lX,bX.disabled,function(e,t){return{color:e.colors.tagPositiveFontDisabled,backgroundColor:null,borderColor:e.colors.tagPositiveOutlinedDisabled}}),Z(lX,bX.solid,function(e,t){return{color:e.colors.tagPositiveSolidFont,backgroundColor:e.colors.tagPositiveSolidBackground,borderColor:null}}),Z(lX,bX.outline,function(e,t){return{color:e.colors.tagPositiveOutlinedFont,backgroundColor:null,borderColor:e.colors.tagPositiveOutlinedBackground}}),lX),TX=(uX={},Z(uX,bX.disabled,function(e,t){return{color:e.colors.tagWarningFontDisabled,backgroundColor:null,borderColor:e.colors.tagWarningOutlinedDisabled}}),Z(uX,bX.solid,function(e,t){return{color:e.colors.tagWarningSolidFont,backgroundColor:e.colors.tagWarningSolidBackground,borderColor:null}}),Z(uX,bX.outline,function(e,t){return{color:e.colors.tagWarningOutlinedFont,backgroundColor:null,borderColor:e.colors.tagWarningOutlinedBackground}}),uX),EX=(dX={},Z(dX,bX.disabled,function(e,t){return{color:e.colors.tagNegativeFontDisabled,backgroundColor:null,borderColor:e.colors.tagNegativeOutlinedDisabled}}),Z(dX,bX.solid,function(e,t){return{color:e.colors.tagNegativeSolidFont,backgroundColor:e.colors.tagNegativeSolidBackground,borderColor:null}}),Z(dX,bX.outline,function(e,t){return{color:e.colors.tagNegativeOutlinedFont,backgroundColor:null,borderColor:e.colors.tagNegativeOutlinedBackground}}),dX),Ube=(fX={},Z(fX,bX.disabled,function(e,t){return{color:xX(e,U.orange200,U.orange600),backgroundColor:null,borderColor:xX(e,U.orange200,U.orange700)}}),Z(fX,bX.solid,function(e,t){return{color:U.white,backgroundColor:xX(e,U.orange400,U.orange500),borderColor:null}}),Z(fX,bX.outline,function(e,t){return{color:xX(e,U.orange400,U.orange300),backgroundColor:null,borderColor:xX(e,U.orange200,U.orange500)}}),fX),Wbe=(pX={},Z(pX,bX.disabled,function(e,t){return{color:xX(e,U.purple200,U.purple600),backgroundColor:null,borderColor:xX(e,U.purple200,U.purple700)}}),Z(pX,bX.solid,function(e,t){return{color:U.white,backgroundColor:xX(e,U.purple400,U.purple500),borderColor:null}}),Z(pX,bX.outline,function(e,t){return{color:xX(e,U.purple400,U.purple300),backgroundColor:null,borderColor:xX(e,U.purple200,U.purple500)}}),pX),Gbe=(mX={},Z(mX,bX.disabled,function(e,t){return{color:xX(e,U.brown200,U.brown600),backgroundColor:null,borderColor:xX(e,U.brown200,U.brown700)}}),Z(mX,bX.solid,function(e,t){return{color:U.white,backgroundColor:xX(e,U.brown400,U.brown500),borderColor:null}}),Z(mX,bX.outline,function(e,t){return{color:xX(e,U.brown400,U.brown300),backgroundColor:null,borderColor:xX(e,U.brown200,U.brown500)}}),mX),Kbe=(hX={},Z(hX,bX.disabled,function(e,t){return{color:yX(t,e.colors.tagFontDisabledRampUnit),backgroundColor:null,borderColor:yX(t,e.colors.tagSolidDisabledRampUnit)}}),Z(hX,bX.solid,function(e,t){return{color:yX(t,e.colors.tagSolidFontRampUnit),backgroundColor:yX(t,e.colors.tagSolidRampUnit),borderColor:null}}),Z(hX,bX.outline,function(e,t){return{color:yX(t,e.colors.tagOutlinedFontRampUnit),backgroundColor:null,borderColor:yX(t,e.colors.tagOutlinedRampUnit)}}),hX),qbe=(gX={},Z(gX,rX.neutral,Hbe),Z(gX,rX.primary,SX),Z(gX,rX.accent,CX),Z(gX,rX.positive,wX),Z(gX,rX.warning,TX),Z(gX,rX.negative,EX),Z(gX,rX.black,SX),Z(gX,rX.blue,CX),Z(gX,rX.green,wX),Z(gX,rX.red,EX),Z(gX,rX.yellow,TX),Z(gX,rX.orange,Ube),Z(gX,rX.purple,Wbe),Z(gX,rX.brown,Gbe),Z(gX,rX.custom,Kbe),gX),Jbe=function(e){return e.$disabled?bX.disabled:e.$variant===nX.solid?bX.solid:bX.outline}
160,DX=W(`span`,function(e){var t,n,r=e.$theme,i=e.$disabled,a=e.$size,o=a===void 0?tX.small:a,s=r.direction===`rtl`?`borderBottomLeftRadius`:`borderBottomRightRadius`,c=r.direction===`rtl`?`borderTopLeftRadius`:`borderTopRightRadius`,l=r.direction===`rtl`?`marginRight`:`marginLeft`;return n={alignItems:`center`},Z(n,s,r.borders.useRoundedCorners?r.borders.radius400:0),Z(n,c,r.borders.useRoundedCorners?r.borders.radius400:0),Z(n,`cursor`,i?`not-allowed`:`pointer`),Z(n,`display`,`flex`),Z(n,l,(t={},Z(t,tX.small,`8px`),Z(t,tX.medium,`12px`),Z(t,tX.large,`16px`),t)[o]),Z(n,`outline`,`none`),Z(n,`transitionProperty`,`all`),Z(n,`transitionDuration`,`background-color`),Z(n,`transitionTimingFunction`,r.animation.easeOutCurve),n});DX.displayName=`Action`,DX.displayName=`Action`;var OX=W(`div`,function(e){var t=e.$theme,n=e.$size,r=n===void 0?tX.small:n,i=t.sizing.scale300;return r===tX.medium?i=t.sizing.scale400:r===tX.large&&(i=t.sizing.scale600),Z({alignItems:`center`,display:`flex`},t.direction===`rtl`?`paddingLeft`:`paddingRight`,i)});OX.displayName=`StartEnhancerContainer`,OX.displayName=`StartEnhancerContainer`;var kX=W(`span`,function(e){var t=e.$theme;return{overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,maxWidth:e.$theme.sizing.scale3200,order:+(t.direction===`rtl`)}});kX.displayName=`Text`,kX.displayName=`Text`;var AX=W(`span`,function(e){var t,n,r,i=e.$theme,a=e.$kind,o=a===void 0?rX.primary:a,s=e.$clickable,c=e.$variant,l=e.$disabled,u=e.$closeable,d=e.$isFocusVisible,f=e.$color,p=e.$size,m=p===void 0?tX.small:p,h=i.borders.tagBorderRadius,g=(t={},Z(t,tX.small,i.sizing.scale300),Z(t,tX.medium,i.sizing.scale500),Z(t,tX.large,i.sizing.scale600),t)[m],_=!l&&c===nX.solid?0:`2px`,v=qbe[o][Jbe(e)](i,f),y=v.color,b=v.backgroundColor,x=v.borderColor;return vX(vX({},(n={},Z(n,tX.small,i.typography.LabelSmall),Z(n,tX.medium,i.typography.LabelMedium),Z(n,tX.large,i.typography.LabelLarge),n)[m]),{},{alignItems:`center`,color:y,backgroundColor:b,borderLeftColor:x,borderRightColor:x,borderTopColor:x,borderBottomColor:x,borderLeftStyle:`solid`,borderRightStyle:`solid`,borderTopStyle:`solid`,borderBottomStyle:`solid`,borderLeftWidth:_,borderRightWidth:_,borderTopWidth:_,borderBottomWidth:_,borderTopLeftRadius:h,borderTopRightRadius:h,borderBottomRightRadius:h,borderBottomLeftRadius:h,boxSizing:`border-box`,cursor:l?`not-allowed`:s?`pointer`:`default`,display:`inline-flex`,height:(r={},Z(r,tX.small,`24px`),Z(r,tX.medium,`32px`),Z(r,tX.large,`40px`),r)[m],justifyContent:`space-between`,marginTop:`5px`,marginBottom:`5px`,marginLeft:`5px`,marginRight:`5px`,paddingTop:i.sizing.scale0,paddingBottom:i.sizing.scale0,paddingLeft:g,paddingRight:g,outline:`none`,":hover":l||!s?{}:{boxShadow:`inset 0px 0px 100px ${xX(i,`rgba(0, 0, 0, 0.08)`,`rgba(255, 255, 255, 0.2)`)}`},":focus":l||!s&&!u?{}:{boxShadow:d?`0 0 0 3px ${o===rX.accent?i.colors.primaryA:i.colors.accent}`:`none`}})});AX.displayName=`Root`,AX.displayName=`Root`;function jX(e){"@babel/helpers - typeof";return jX=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},jX(e)}var Ybe=new Set([`string`,`number`]);function Xbe(e){var t=_.Children.toArray(e).filter(function(e){return e!=null});return!t.length||!t.every(function(e){return Ybe.has(jX(e))})?null:t.join(``)}Jb(),rx();function MX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NX(e,t){return exe(e)||$be(e,t)||Qbe(e,t)||Zbe()}function Zbe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 161In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qbe(e,t){if(e){if(typeof e==`string`)return PX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PX(e,t)}}function PX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $be(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function exe(e){if(Array.isArray(e))return e}function FX(){return FX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FX.apply(this,arguments)}var txe=function(e){return _.createElement(Mq,FX({viewBox:`5 5 13.186 13.186`},e))},IX=_.forwardRef(function(e,t){var n,r=e.children,i=e.closeable,a=i===void 0?!0:i,o=e.color,s=e.size,c=s===void 0?tX.small:s,l=e.disabled,u=l===void 0?!1:l,d=e.isFocused,f=d===void 0?!1:d,p=e.isHovered,m=p===void 0?!1:p,h=e.kind,g=h===void 0?rX.primary:h,v=e.onActionClick,y=v===void 0?function(e){}:v,b=e.onActionKeyDown,x=b===void 0?function(e){}:b,S=e.onClick,C=S===void 0?null:S,w=e.onKeyDown,T=w===void 0?null:w,E=e.overrides,D=E===void 0?{}:E,O=e.startEnhancer,k=e.title,A=e.variant,ee=A===void 0?nX.light:A,te=NX(_.useState(!1),2),ne=te[0],re=te[1];function ie(e){Xb(e)&&re(!0)}function ae(e){ne!==!1&&re(!1)}function oe(e){if(e.currentTarget===e.target){var t=e.key;C&&t===`Enter`&&C(e),a&&(t===`Backspace`||t===`Delete`)&&(y(e),x(e)),T&&T(e)}}var j=NX(Hb(D.Root,AX),2),se=j[0],ce=j[1],le=NX(Hb(D.Action,DX),2),M=le[0],N=le[1],ue=NX(Hb(D.ActionIcon,txe),2),de=ue[0],fe=ue[1],pe=NX(Hb(D.StartEnhancerContainer,OX),2),me=pe[0],he=pe[1],ge=NX(Hb(D.Text,kX),2),_e=ge[0],ve=ge[1],ye=typeof C==`function`,be=u?{}:{onClick:C,onKeyDown:oe},xe=u?{}:{onClick:function(e){e.stopPropagation(),y(e)}},Se={$clickable:ye,$closeable:a,$color:o,$disabled:u,$isFocused:f,$isHovered:m,$kind:g,$variant:ee,$isFocusVisible:ne,$size:c},Ce=k||Xbe(r),we=(ye||a)&&!u,Te=(n={},MX(n,tX.small,12),MX(n,tX.medium,16),MX(n,tX.large,20),n)[c],Ee=O;return _.createElement(se,FX({ref:t,"data-baseweb":`tag`,"aria-label":we&&a?`${typeof r==`string`?`${r}, `:``}close by backspace`:null,"aria-disabled":u?!0:null,role:we?`button`:null,tabIndex:we?0:null},be,Se,ce,{onFocus:tx(ce,ie),onBlur:nx(ce,ae)}),Ee&&Ee!==0&&_.createElement(me,he,_.createElement(Ee,null)),_.createElement(_e,FX({title:Ce},ve),r),a?_.createElement(M,FX({"aria-hidden":!0,role:`presentation`},xe,Se,N),_.createElement(de,FX({size:Te},fe))):null)});IX.displayName=`Tag`,Jb();var nxe=[`overrides`,`removeValue`];function LX(){return LX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LX.apply(this,arguments)}function rxe(e,t){return sxe(e)||oxe(e,t)||axe(e,t)||ixe()}
161function ixe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 162In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function axe(e,t){if(e){if(typeof e==`string`)return RX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RX(e,t)}}function RX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oxe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function sxe(e){if(Array.isArray(e))return e}function cxe(e,t){if(e==null)return{};var n=lxe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lxe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function uxe(e){var t=e.overrides,n=t===void 0?{}:t,r=e.removeValue,i=cxe(e,nxe),a=rxe(Hb(n.Tag||n.MultiValue,IX),2),o=a[0],s=a[1];return _.createElement(o,LX({variant:nX.solid,overrides:{Root:{style:function(e){var t=e.$theme.sizing;return{marginRight:t.scale0,marginBottom:t.scale0,marginLeft:t.scale0,marginTop:t.scale0}}}},onActionClick:r},i,s),e.children)}Jb();var dxe=[`overrides`];function zX(){return zX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zX.apply(this,arguments)}function fxe(e,t){return gxe(e)||hxe(e,t)||mxe(e,t)||pxe()}function pxe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 163In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mxe(e,t){if(e){if(typeof e==`string`)return BX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BX(e,t)}}function BX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hxe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function gxe(e){if(Array.isArray(e))return e}function _xe(e,t){if(e==null)return{};var n=vxe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vxe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function yxe(e){var t=e.overrides,n=t===void 0?{}:t,r=_xe(e,dxe),i=fxe(Hb(n.SingleValue,XJ),2),a=i[0],o=i[1];return _.createElement(a,zX({},r,o),e.children)}function VX(){return VX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VX.apply(this,arguments)}function HX(e){return _.createElement(XY,VX({},e,{valueComponent:e.multi?uxe:yxe}))}function UX(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}var WX=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function bxe(e,t){return!!(e===t||WX(e)&&WX(t))}function xxe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!bxe(e[n],t[n]))return!1;return!0}
vendor: 4,721 bytes, line 163
163function GX(e,t){t===void 0&&(t=xxe);var n,r=[],i,a=!1;function o(){var o=[...arguments];return a&&n===this&&t(o,r)?i:(i=e.apply(this,o),a=!0,n=this,r=o,i)}return o}var KX=typeof performance==`object`&&typeof performance.now==`function`?function(){return performance.now()}:function(){return Date.now()};function qX(e){cancelAnimationFrame(e.id)}function Sxe(e,t){var n=KX();function r(){KX()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var JX=-1;function YX(e){if(e===void 0&&(e=!1),JX===-1||e){var t=document.createElement(`div`),n=t.style;n.width=`50px`,n.height=`50px`,n.overflow=`scroll`,document.body.appendChild(t),JX=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return JX}var XX=null;function ZX(e){if(e===void 0&&(e=!1),XX===null||e){var t=document.createElement(`div`),n=t.style;n.width=`50px`,n.height=`50px`,n.overflow=`scroll`,n.direction=`rtl`;var r=document.createElement(`div`),i=r.style;return i.width=`100px`,i.height=`100px`,t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?XX=`positive-descending`:(t.scrollLeft=1,XX=t.scrollLeft===0?`negative`:`positive-ascending`),document.body.removeChild(t),XX}return XX}var Cxe=150,wxe=function(e,t){return e};function Txe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,c=e.initInstanceProps,l=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){zE(t,e);function t(t){var r=e.call(this,t)||this;return r._instanceProps=c(r.props,UX(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:UX(r),isScrolling:!1,scrollDirection:`forward`,scrollOffset:typeof r.props.initialScrollOffset==`number`?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=GX(function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})}),r._callOnScroll=void 0,r._callOnScroll=GX(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t=r.props,a=t.direction,o=t.itemSize,s=t.layout,c=r._getItemStyleCache(l&&o,l&&s,l&&a),u;if(c.hasOwnProperty(e))u=c[e];else{var d=n(r.props,e,r._instanceProps),f=i(r.props,e,r._instanceProps),p=a===`horizontal`||s===`horizontal`,m=a===`rtl`,h=p?d:0;c[e]=u={position:`absolute`,left:m?void 0:h,right:m?h:void 0,top:p?0:d,height:p?`100%`:f,width:p?f:`100%`}}return u},r._getItemStyleCache=void 0,r._getItemStyleCache=GX(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,a=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,o=i;if(t===`rtl`)switch(ZX()){case`negative`:o=-i;break;case`positive-descending`:o=a-n-i;break}return o=Math.max(0,Math.min(o,a-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?`forward`:`backward`,scrollOffset:o,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,a=t.scrollTop;r.setState(function(e){if(e.scrollOffset===a)return null;var t=Math.max(0,Math.min(a,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?`forward`:`backward`,scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,typeof t==`function`?t(e):typeof t==`object`&&t&&t.hasOwnProperty(`current`)&&(t.current=e)},r._resetIsScrollingDebounced=function(){r._resetIsScrollingTimeoutId!==null&&qX(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Sxe(r._resetIsScrolling,Cxe)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}t.getDerivedStateFromProps=function(e,t){return Exe(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?`forward`:`backward`,scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){t===void 0&&(t=`auto`);var n=this.props,r=n.itemCount,i=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var c=this._outerRef;s=i===`vertical`?c.scrollWidth>c.clientWidth?YX():0:c.scrollHeight>c.clientHeight?YX():0}this.scrollTo(a(this.props,e,t,o,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;
163if(typeof n==`number`&&this._outerRef!=null){var i=this._outerRef;t===`horizontal`||r===`horizontal`?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&this._outerRef!=null){var a=this._outerRef;if(t===`horizontal`||n===`horizontal`)if(t===`rtl`)switch(ZX()){case`negative`:a.scrollLeft=-i;break;case`positive-ascending`:a.scrollLeft=i;break;default:var o=a.clientWidth;a.scrollLeft=a.scrollWidth-o-i;break}else a.scrollLeft=i;else a.scrollTop=i}this._callPropsCallbacks()},d.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&qX(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,a=e.height,o=e.innerRef,s=e.innerElementType,c=e.innerTagName,l=e.itemCount,u=e.itemData,d=e.itemKey,f=d===void 0?wxe:d,p=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,y=e.width,b=this.state.isScrolling,x=i===`horizontal`||p===`horizontal`,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],T=C[1],E=[];if(l>0)for(var D=w;D<=T;D++)E.push((0,_.createElement)(t,{data:u,key:f(D,u),index:D,isScrolling:v?b:void 0,style:this._getItemStyle(D)}));var O=r(this.props,this._instanceProps);return(0,_.createElement)(m||h||`div`,{className:n,onScroll:S,ref:this._outerRefSetter,style:tt({position:`relative`,height:a,width:y,overflow:`auto`,WebkitOverflowScrolling:`touch`,willChange:`transform`,direction:i},g)},(0,_.createElement)(s||c||`div`,{children:E,ref:o,style:{height:x?`100%`:O,pointerEvents:b?`none`:void 0,width:x?O:`100%`}}))},d._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered==`function`&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if(typeof this.props.onScroll==`function`){var a=this.state,o=a.scrollDirection,s=a.scrollOffset,c=a.scrollUpdateWasRequested;this._callOnScroll(o,s,c)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,a=r.scrollDirection,c=r.scrollOffset;if(t===0)return[0,0,0,0];var l=o(this.props,c,this._instanceProps),u=s(this.props,l,c,this._instanceProps),d=!i||a===`backward`?Math.max(1,n):1,f=!i||a===`forward`?Math.max(1,n):1;return[Math.max(0,l-d),Math.max(0,Math.min(t-1,u+f)),l,u]},t}(_.PureComponent),t.defaultProps={direction:`ltr`,itemData:void 0,layout:`vertical`,overscanCount:2,useIsScrolling:!1},t}var Exe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Dxe=Txe({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,i,a){var o=e.direction,s=e.height,c=e.itemCount,l=e.itemSize,u=e.layout,d=e.width,f=o===`horizontal`||u===`horizontal`?d:s,p=Math.max(0,c*l-f),m=Math.min(p,t*l),h=Math.max(0,t*l-f+l+a);switch(n===`smart`&&(n=r>=h-f&&r<=m+f?`auto`:`center`),n){case`start`:return m;case`end`:return h;case`center`:var g=Math.round(h+(m-h)/2);return g<Math.ceil(f/2)?0:g>p+Math.floor(f/2)?p:g;default:return r>=h&&r<=m?r:r<h?h:m}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,i=e.height,a=e.itemCount,o=e.itemSize,s=e.layout,c=e.width,l=r===`horizontal`||s===`horizontal`,u=t*o,d=Math.ceil(((l?c:i)+n-u)/o);return Math.max(0,Math.min(a-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}}),QX=G(`div`,{target:`e1d7a4qp0`})(({theme:e,$isHighlighted:t})=>({flexGrow:1,display:`flex`,alignItems:`center`,paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,height:e.sizes.elementHighlightHeight,borderTopLeftRadius:e.radii.md2,borderTopRightRadius:e.radii.md2,borderBottomRightRadius:e.radii.md2,borderBottomLeftRadius:e.radii.md2,background:t?e.colors.darkenedBgMix15:`transparent`,transition:`background 50ms ease`,"&:hover, &:active, &:focus-visible":{background:e.colors.darkenedBgMix15}}));function Oxe({content:e,placement:t,children:n,inline:r,style:i}){let a=(0,_.useRef)(null),[o,s]=(0,_.useState)(!1);return(0,_.useEffect)(()=>{let e=a?.current?a.current.offsetWidth<a.current.scrollWidth:!1;e!==o&&s(e)},[n,o]),P(fL,{content:o?e:``,placement:t,inline:r,children:P(Cge,{children:P(wge,{ref:a,style:i,children:n})})})}var $X=(0,_.createContext)(null);$X.displayName=`WindowDimensionsContext`;var eZ=()=>TV($X),kxe=()=>{let e=document.createElement(`div`);e.style.position=`absolute`,e.style.top=`-9999px`,e.style.left=`-9999px`,e.style.visibility=`hidden`,e.style.overflow=`scroll`,e.style.width=`50px`,e.style.height=`50px`,document.body.appendChild(e);let t=document.createElement(`div`);t.style.width=`100%`,t.style.height=`100%`,e.appendChild(t);let n=e.offsetWidth-t.offsetWidth;return e.remove(),n},tZ=()=>{let e=window.devicePixelRatio;return(0,_.useMemo)(()=>kxe(),[e])};function nZ(e){return`max(0px, calc(${e.sizes.tagMarginInsideBorder} - var(--scrollbar-gutter-size, 0px)))`}var Axe=G(WJ,{shouldForwardProp:e=>iT(e)&&e!==`$isSelectAll`&&e!==`$isCreatable`,target:`er6m0k90`})(({theme:e,$isSelectAll:t,$isCreatable:n})=>{let r={content:`""`,position:`absolute`,left:e.sizes.tagMarginInsideBorder,right:nZ(e),height:e.sizes.borderWidth,backgroundColor:e.colors.fadedText10};return{position:`relative`,display:`flex`,alignItems:`center`,margin:e.spacing.none,height:e.sizes.dropdownItemHeight,paddingTop:e.spacing.none,paddingBottom:e.spacing.none,paddingLeft:e.sizes.tagMarginInsideBorder,paddingRight:nZ(e),background:`transparent`,fontWeight:e.fontWeights.normal,[`@media (max-width: ${e.breakpoints.md})`]:{minHeight:e.sizes.dropdownItemHeight,height:`auto !important`},"&::before":n?{...r,top:0,transform:`translateY(-50%)`}:void 0,"&::after":t?{...r,bottom:0,transform:`translateY(50%)`}:void 0}}),jxe=`__SELECT_ALL__`,Mxe=`__SELECT_MATCHES__`;function Nxe(e){let{data:t,index:n,style:r}=e,{item:i,overrides:a,$isHighlighted:o,...s}=t[n].props,c=i.isCreatable?`Add: ${i.label}`:i.label;return P(Axe,{style:r,$isSelectAll:i.id===`__SELECT_ALL__`||i.id===`__SELECT_MATCHES__`,$isCreatable:i.isCreatable,...s,children:P(QX,{$isHighlighted:o,children:P(Oxe,{content:c,placement:dL.AUTO,children:c})})},i.value)}var rZ=(0,_.forwardRef)((e,t)=>{let n=fE(),r=tZ(),{innerHeight:i}=eZ(),a=_.Children.toArray(e.children);if(!a[0]?.props.item){let e=a[0]?a[0].props:{};return P(Gq,{$style:{height:n.sizes.emptyDropdownHeight,paddingLeft:n.spacing.none,paddingRight:n.spacing.none,paddingTop:n.spacing.none,paddingBottom:n.spacing.none,dis
163play:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:`none`,overflow:`hidden`},ref:t,"data-testid":`stSelectboxVirtualDropdownEmpty`,children:P(qq,{$style:{paddingLeft:n.spacing.none,paddingRight:n.spacing.none,paddingTop:n.spacing.none,paddingBottom:n.spacing.none,color:n.colors.fadedText60},...e})})}let o=Math.min(qw(n.sizes.maxDropdownHeight),i*.7),s=a.length*qw(n.sizes.dropdownItemHeight),c=Math.min(o,s),l=s>o?r:0,u=qw(n.sizes.dropdownItemHeight),d=a.findIndex(e=>e.props.$isHighlighted),f=Math.max(0,s-c),p=d>0?Math.min(Math.max(0,d*u-c/2+u/2),f):0;return P(Gq,{ref:t,$style:{paddingTop:n.spacing.none,paddingBottom:n.spacing.none,paddingLeft:n.spacing.none,paddingRight:n.spacing.none,boxShadow:`none`},"data-testid":`stSelectboxVirtualDropdown`,children:P(Dxe,{width:`100%`,height:c,itemCount:a.length,itemData:a,itemKey:(e,t)=>{let{id:n,value:r}=t[e].props.item;return n??r},itemSize:u,initialScrollOffset:p,style:{"--scrollbar-gutter-size":`${l}px`},children:Nxe})})});rZ.displayName=`VirtualDropdown`;var iZ=(0,_.memo)(function({content:e,label:t,ariaLabel:n,placement:r=dL.TOP_RIGHT,isLatex:i,markdownProps:a,onMouseEnterDelay:o,containerWidth:s}){return P(y_e,{children:P(mL,{content:e,placement:r,isLatex:i,markdownProps:a,onMouseEnterDelay:o,containerWidth:s,ariaLabel:n??hL(t)})})}),aZ=-1/0,Pxe=1/0,Fxe=-.005,Ixe=-.005,Lxe=-.01,Rxe=.9,zxe=.8,Bxe=.7,Vxe=.6;function Hxe(e){return e.toLowerCase()===e}function Uxe(e){return e.toUpperCase()===e}function Wxe(e){let t=e.length,n=Array(t),r=`/`;for(let i=0;i<t;i++){let t=e[i];r===`/`?n[i]=Rxe:r===`-`||r===`_`||r===` `?n[i]=zxe:r===`.`?n[i]=Vxe:Hxe(r)&&Uxe(t)?n[i]=Bxe:n[i]=0,r=t}return n}function Gxe(e,t,n,r,i=!1){let a=e.length,o=t.length,s=i?e:e.toLowerCase(),c=i?t:t.toLowerCase(),l=Wxe(t);for(let e=0;e<a;e++){n[e]=Array(o),r[e]=Array(o);let t=aZ,i=e===a-1?Ixe:Lxe;for(let a=0;a<o;a++)if(s[e]===c[a]){let o=aZ;e?a&&(o=Math.max(r[e-1][a-1]+l[a],n[e-1][a-1]+1)):o=a*Fxe+l[a],n[e][a]=o,r[e][a]=t=Math.max(o,t+i)}else n[e][a]=aZ,r[e][a]=t+=i}}function Kxe(e,t,n=!1){let r=e.length,i=t.length;if(!r||!i)return aZ;if(e===t||!n&&i===r)return Pxe;if(i>1024)return aZ;let a=Array(r),o=Array(r);return Gxe(e,t,a,o,n),o[r-1][i-1]}function qxe(e,t){e=e.toLowerCase(),t=t.toLowerCase();let n=e.length;for(let r=0,i=0;r<n;r+=1)if(i=t.indexOf(e[r],i)+1,i===0)return!1;return!0}var oZ=e=>e.toLowerCase();function Jxe(e){return e??co.SelectWidgetFilterMode.FILTER_MODE_FUZZY}function Yxe(e,t){return t?$te(e.filter(e=>qxe(t,e.label)),e=>-Kxe(t,e.label)):e}function Xxe(e,t,n){if(!t||n===co.SelectWidgetFilterMode.FILTER_MODE_NONE)return e;if(n===co.SelectWidgetFilterMode.FILTER_MODE_FUZZY)return Yxe(e,t);let r=oZ(t);return n===co.SelectWidgetFilterMode.FILTER_MODE_CONTAINS?e.filter(e=>oZ(e.label).includes(r)):n===co.SelectWidgetFilterMode.FILTER_MODE_PREFIX?e.filter(e=>oZ(e.label).startsWith(r)):e}var sZ=u(s(((e,t)=>{(function(n,r){var i=`1.0.41`,a=``,o=`?`,s=`function`,c=`undefined`,l=`object`,u=`string`,d=`major`,f=`model`,p=`name`,m=`type`,h=`vendor`,g=`version`,_=`architecture`,v=`console`,y=`mobile`,b=`tablet`,x=`smarttv`,S=`wearable`,C=`embedded`,w=500,T=`Amazon`,E=`Apple`,D=`ASUS`,O=`BlackBerry`,k=`Browser`,A=`Chrome`,ee=`Edge`,te=`Firefox`,ne=`Google`,re=`Honor`,ie=`Huawei`,ae=`Lenovo`,oe=`LG`,j=`Microsoft`,se=`Motorola`,ce=`Nvidia`,le=`OnePlus`,M=`Opera`,N=`OPPO`,ue=`Samsung`,de=`Sharp`,fe=`Sony`,pe=`Xiaomi`,me=`Zebra`,he=`Facebook`,ge=`Chromium OS`,_e=`Mac OS`,ve=` Browser`,ye=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},be=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},xe=function(e,t){return typeof e===u?Se(t).indexOf(Se(e))!==-1:!1},Se=function(e){return e.toLowerCase()},Ce=function(e){return typeof e===u?e.replace(/[^\d\.]/g,a).split(`.`)[0]:r},we=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,a),typeof t===c?e:e.substring(0,w)},Te=function(e,t){for(var n=0,i,a,o,c,u,d;n<t.length&&!u;){var f=t[n],p=t[n+1];for(i=a=0;i<f.length&&!u&&f[i];)if(u=f[i++].exec(e),u)for(o=0;o<p.length;o++)d=u[++a],c=p[o],typeof c===l&&c.length>0?c.length===2?typeof c[1]==s?this[c[0]]=c[1].call(this,d):this[c[0]]=c[1]:c.length===3?typeof c[1]===s&&!(c[1].exec&&c[1].test)?this[c[0]]=d?c[1].call(this,d,c[2]):r:this[c[0]]=d?d.replace(c[1],c[2]):r:c.length===4&&(this[c[0]]=d?c[3].call(this,d.replace(c[1],c[2])):r):this[c]=d||r;n+=2}},Ee=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(xe(t[n][i],e))return n===o?r:n}else if(xe(t[n],e))return n===o?r:n;return t.hasOwnProperty(`*`)?t[`*`]:e},De={"1.0":`/8`,"1.2":`/1`,"1.3":`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},Oe={ME:`4.90`,"NT 3.11":`NT3.51`,"NT 4.0":`NT4.0`,2e3:`NT 5.0`,XP:[`NT 5.1`,`NT 5.2`],Vista:`NT 6.0`,7:`NT 6.1`,8:`NT 6.2`,"8.1":`NT 6.3`,10:[`NT 6.4`,`NT 10.0`],RT:`ARM`},ke={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[p,`Chrome`]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[p,`Edge`]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,g],[/opios[\/ ]+([\w\.]+)/i],[g,[p,M+` Mini`]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[p,M+` GX`]],[/\bopr\/([\w\.]+)/i],[g,[p,M]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[p,`Baidu`]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[g,[p,`Maxthon`]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,g],[/quark(?:pc)?\/([-\w\.]+)/i],[g,[p,`Quark`]],[/\bddg\/([\w\.]+)/i],[g,[p,`DuckDuckGo`]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[p,`UC`+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[p,`WeChat`]],[/konqueror\/([\w\.]+)/i],[g,[p,`Konqueror`]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[p,`IE`]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[p,`Yandex`]],[/slbrowser\/([\w\.]+)/i],[g,[p,`Smart Lenovo `+k]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,`$1 Secure `+k],g],[/\bfocus\/([\w\.]+)/i],[g,[p,te+` Focus`]],[/\bopt\/([\w\.]+)/i],[g,[p,M+` Touch`]],[/coc_coc\w+\/([\w\.]+)/i],[g,[p,`Coc Coc`]],[/dolfin\/([\w\.]+)/i],[g,[p,`Dolphin`]],[/coast\/([\w\.]+)/i],[g,[p,M+` Coast`]],[/miuibrowser\/([\w\.]+)/i],[g,[p,`MIUI`+ve]],[/fxios\/([\w\.-]+)/i],[g,[p,te]],[/\bqihoobrowser\/?([\w\.]*)/i],[g,[p,`360`]],[/\b(qq)\/([\w\.]+)/i],[[p,/(.+)/,`$1Browser`],g],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[p,/(.+)/,`$1`+ve],g],[/samsungbrowser\/([\w\.]+)/i],[g,[p,ue+` Internet`]],[/metasr[\/ ]?([\d\.]+)/i],[g,[p,`Sogou Explorer`]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,`Sogou Mobile`],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[p,g],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[p],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[g,p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,he],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[p,`GSA`]],[/musical_ly(?:.
163+app_?version\/|_)([\w\.]+)/i],[g,[p,`TikTok`]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[p,A+` Headless`]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,A+` WebView`],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[p,`Android `+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[p,`Mobile Safari`]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[g,Ee,De]],[/(webkit|khtml)\/([\w\.]+)/i],[p,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,`Netscape`],g],[/(wolvic|librewolf)\/([\w\.]+)/i],[p,g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[p,te+` Reality`]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[p,[g,/_/g,`.`]],[/(cobalt)\/([\w\.]+)/i],[p,[g,/master.|lts./,``]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[_,`amd64`]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[_,`ia32`]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[_,`arm64`]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[_,`armhf`]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[_,`arm`]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[_,/ower/,a,Se]],[/ sun4\w[;\)]/i],[[_,`sparc`]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[_,Se]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[h,ue],[m,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[f,[h,ue],[m,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[h,E],[m,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[h,E],[m,b]],[/(macintosh);/i],[f,[h,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[h,de],[m,y]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[f,[h,re],[m,b]],[/honor([-\w ]+)[;\)]/i],[f,[h,re],[m,y]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[f,[h,ie],[m,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[h,ie],[m,y]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[f,/_/g,` `],[h,pe],[m,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[f,/_/g,` `],[h,pe],[m,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[h,N],[m,y]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[f,[h,Ee,{OnePlus:[`304`,`403`,`203`],"*":N}],[m,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[h,`Vivo`],[m,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[h,`Realme`],[m,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[h,se],[m,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[h,se],[m,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[h,oe],[m,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[h,oe],[m,y]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
163(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[f,[h,ae],[m,b]],[/(nokia) (t[12][01])/i],[h,f,[m,b]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[f,/_/g,` `],[m,y],[h,`Nokia`]],[/(pixel (c|tablet))\b/i],[f,[h,ne],[m,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[h,ne],[m,y]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[h,fe],[m,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,`Xperia Tablet`],[h,fe],[m,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[h,le],[m,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[h,T],[m,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,`Fire Phone $1`],[h,T],[m,y]],[/(playbook);[-\w\),; ]+(rim)/i],[f,h,[m,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[h,O],[m,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[h,D],[m,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[h,D],[m,y]],[/(nexus 9)/i],[f,[h,`HTC`],[m,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[f,/_/g,` `],[m,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[f,[h,`TCL`],[m,b]],[/(itel) ((\w+))/i],[[h,Se],f,[m,Ee,{tablet:[`p10001l`,`w7001`],"*":`mobile`}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[h,`Acer`],[m,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[h,`Meizu`],[m,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[h,`Ulefone`],[m,y]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[f,[h,`Energizer`],[m,y]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[f,[h,`Cat`],[m,y]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[f,[h,`Smartfren`],[m,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[f,[h,`Nothing`],[m,y]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[f,[h,`Archos`],[m,b]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[f,[h,`Archos`],[m,y]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[h,f,[m,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[h,f,[m,y]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,f,[m,b]],[/(surface duo)/i],[f,[h,j],[m,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[h,`Fairphone`],[m,y]],[/(u304aa)/i],[f,[h,`AT&T`],[m,y]],[/\bsie-(\w*)/i],[f,[h,`Siemens`],[m,y]],[/\b(rct\w+) b/i],[f,[h,`RCA`],[m,b]],[/\b(venue[\d ]{2,7}) b/i],[f,[h,`Dell`],[m,b]],[/\b(q(?:mv|ta)\w+) b/i],[f,[h,`Verizon`],[m,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[h,`Barnes & Noble`],[m,b]],[/\b(tm\d{3}\w+) b/i],[f,[h,`NuVision`],[m,b]],[/\b(k88) b/i],[f,[h,`ZTE`],[m,b]],[/\b(nx\d{3}j) b/i],[f,[h,`ZTE`],[m,y]],[/\b(gen\d{3}) b.+49h/i],[f,[h,`Swiss`],[m,y]],[/\b(zur\d{3}) b/i],[f,[h,`Swiss`],[m,b]],[/\b((zeki)?tb.*\b) b/i],[f,[h,`Zeki`],[m,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,`Dragon Touch`],f,[m,b]],[/\b(ns-?\w{0,9}) b/i],[f,[h,`Insignia`],[m,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[h,`NextBook`],[m,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,`Voice`],f,[m,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,`LvTel`],f,[m,y]],[/\b(ph-1) /i],[f,[h,`Essential`],[m,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[h,`Envizen`],[m,b]],[/\b(trio[-\w\. ]+) b/i],[f,[h,`MachSpeed`],[m,b]],[/\btu_(1491) b/i],[f,[h,`Rotor`],[m,b]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[f,[h,ce],[m,b]],[/(sprint) (\w+)/i],[h,f,[m,y]],[/(kin\.[onetw]{3})/i],[[f,/\./g,` `],[h,j],[m,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[h,me],[m,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[h,me],[m,y]],[/smart-tv.+(samsung)/i],[h,[m,x]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,`SmartTV`],[h,ue],[m,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,oe],[m,x
vendor: 5,865 bytes, line 163
163]],[/(apple) ?tv/i],[h,[f,E+` TV`],[m,x]],[/crkey/i],[[f,A+`cast`],[h,ne],[m,x]],[/droid.+aft(\w+)( bui|\))/i],[f,[h,T],[m,x]],[/(shield \w+ tv)/i],[f,[h,ce],[m,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[h,de],[m,x]],[/(bravia[\w ]+)( bui|\))/i],[f,[h,fe],[m,x]],[/(mi(tv|box)-?\w+) bui/i],[f,[h,pe],[m,x]],[/Hbbtv.*(technisat) (.*);/i],[h,f,[m,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,we],[f,we],[m,x]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[f,[m,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,f,[m,v]],[/droid.+; (shield)( bui|\))/i],[f,[h,ce],[m,v]],[/(playstation \w+)/i],[f,[h,fe],[m,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[h,j],[m,v]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[f,[h,ue],[m,S]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[h,f,[m,S]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[f,[h,N],[m,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[h,E],[m,S]],[/(opwwe\d{3})/i],[f,[h,le],[m,S]],[/(moto 360)/i],[f,[h,se],[m,S]],[/(smartwatch 3)/i],[f,[h,fe],[m,S]],[/(g watch r)/i],[f,[h,oe],[m,S]],[/droid.+; (wt63?0{2,3})\)/i],[f,[h,me],[m,S]],[/droid.+; (glass) \d/i],[f,[h,ne],[m,S]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,f,[m,S]],[/; (quest( \d| pro)?)/i],[f,[h,he],[m,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[m,C]],[/(aeobc)\b/i],[f,[h,T],[m,C]],[/(homepod).+mac os/i],[f,[h,E],[m,C]],[/windows iot/i],[[m,C]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[m,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[m,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,y]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[f,[h,`Generic`]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[p,ee+`HTML`]],[/(arkweb)\/([\w\.]+)/i],[p,g],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[p,`Blink`]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,g],[/ladybird\//i],[[p,`LibWeb`]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,g],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[p,[g,Ee,Oe]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,Ee,Oe],[p,`Windows`]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,`.`],[p,`iOS`]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,_e],[g,/_/g,`.`]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,p],[/(ubuntu) ([\w\.]+) like android/i],[[p,/(.+)/,`$1 Touch`],g],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[p,g],[/\(bb(10);/i],[g,[p,O]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[g,[p,`Symbian`]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[p,te+` OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[p,`webOS`]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[p,`watchOS`]],[/crkey\/([\d\.]+)/i],[g,[p,A+`cast`]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,ge],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,g],[/(sunos) ?([\w\.\d]*)/i],[[p,`Solaris`],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,g]]},Ae=function(e,t){if(typeof e===l&&(t=e,e=r),!(this instanceof Ae))return new Ae(e,t).getResult();var i=typeof n!==c&&n.navigator?n.navigator:r,o=e||(i&&i.userAgent?i.userAgent:a),v=i&&i.userAgentData?i.userAgentData:r,x=t?ye(ke,t):ke,S=i&&i.userAgent==o;return this.getBrowser=function(){var e={};return e[p]=r,e[g]=r,Te.call(e,o,x.browser),e[d]=Ce(e[g]),S&&i&&i.brave&&typeof i.brave.isBrave==s&&(e[p]=`Brave`),e},this.getCPU=function(){var e={};return e[_]=r,Te.call(e,o,x.cpu),e},this.getDevice=function(){var e={};return e[h]=r,e[f]=r,e[m]=r,Te.call(e,o,x.device),S&&!e[m]&&v&&v.mobile&&(e[m]=y),S&&e[f]==`Macintosh`&&i&&typeof i.standalone!==c&&i.maxTouchPoints&&i.maxTouchPoints>2&&(e[f]=`iPad`,e[m]=b),e},this.getEngine=function(){var e={};return e[p]=r,e[g]=r,Te.call(e,o,x.engine),e},this.getOS=function(){var e={};return e[p]=r,e[g]=r,Te.call(e,o,x.os),S&&!e[p]&&v&&v.platform&&v.platform!=`Unknown`&&(e[p]=v.platform.replace(/chrome os/i,ge).replace(/macos/i,_e)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===u&&e.length>w?we(e,w):e,this},this.setUA(o),this};Ae.VERSION=i,Ae.BROWSER=be([p,g,d]),Ae.CPU=be([_]),Ae.DEVICE=be([f,h,m,v,y,x,b,S,C]),Ae.ENGINE=Ae.OS=be([p,g]),typeof e===c?typeof define===s&&define.amd?define(function(){return Ae}
163):typeof n!==c&&(n.UAParser=Ae):(typeof t!==c&&t.exports&&(e=t.exports=Ae),e.UAParser=Ae);var je=typeof n!==c&&(n.jQuery||n.Zepto);if(je&&!je.ua){var Me=new Ae;je.ua=Me.getResult(),je.ua.get=function(){return Me.getUA()},je.ua.set=function(e){Me.setUA(e);var t=Me.getResult();for(var n in t)je.ua[n]=t[n]}}})(typeof window==`object`?window:e)}))(),1),Zxe=new sZ.default;function cZ(){return Zxe.getResult().device.type===`mobile`}function lZ(e){let{options:t,isMulti:n,acceptNewOptions:r,filterMode:i,placeholderInput:a}=e,o=Jxe(i),s=(0,_.useMemo)(()=>t.map((e,t)=>({label:e,value:e,id:`${e}_${t}`})),[t]),{placeholder:c,shouldDisable:l}=(0,_.useMemo)(()=>Sne(a,t,r,n),[r,n,t,a]),u=t.length>10;return{selectOptions:s,placeholder:c,disabled:l,inputReadOnly:o===co.SelectWidgetFilterMode.FILTER_MODE_NONE||cZ()&&!u&&!r?`readonly`:null,valueToUiSingle:(0,_.useMemo)(()=>e=>Ba(e)?[]:[{label:e,value:e}],[]),valuesToUiMulti:(0,_.useMemo)(()=>e=>e.map(e=>({label:e,value:e})),[]),createFilterOptions:(0,_.useMemo)(()=>e=>(t,n)=>Xxe(Array.isArray(e)?t.filter(t=>!e.includes(t.value)):t,n,o),[o])}}var Qxe=(0,_.memo)(({disabled:e,value:t,onChange:n,options:r,label:i,labelVisibility:a,help:o,placeholder:s,clearable:c,acceptNewOptions:l,filterMode:u})=>{let d=fE(),f=(0,_.useContext)(jF),[p,m]=(0,_.useState)(t),h=(0,_.useRef)(p);oR(()=>{m(t),h.current=null},[t]);let g=(0,_.useCallback)(e=>{if(e.type===`remove`){h.current=e.option?.value,m(null);return}
163if(h.current=null,e.type===`clear`){m(null),n(null);return}let[t]=e.value;m(t.value),n(t.value)},[n]),v=(0,_.useCallback)(()=>{h.current!==null&&m(h.current)},[]),{placeholder:y,disabled:b,selectOptions:x,inputReadOnly:S,valueToUiSingle:C,createFilterOptions:w}=lZ({options:r,isMulti:!1,acceptNewOptions:l,filterMode:u,placeholderInput:s}),T=e||b,E=(0,_.useMemo)(()=>w(),[w]),D=C(p);return F(`div`,{className:`stSelectbox`,"data-testid":`stSelectbox`,children:[P(mq,{label:i,labelVisibility:a,disabled:T,children:o&&P(iZ,{content:o,label:i})}),P(HX,{creatable:l,disabled:T,labelKey:`label`,"aria-label":i||``,onChange:g,onBlur:v,options:x,filterOptions:E,clearable:c||!1,escapeClearsValue:c||!1,value:D,valueKey:`value`,placeholder:y,ignoreCase:!1,overrides:{Root:{style:()=>({lineHeight:d.lineHeights.inputWidget,fontWeight:d.fontWeights.normal})},Dropdown:{component:rZ,style:{boxShadow:`none`,overflow:`hidden`}},ClearIcon:{props:{overrides:{Svg:{style:{color:d.colors.grayTextColor,padding:d.spacing.threeXS,height:d.sizes.clearIconSize,width:d.sizes.clearIconSize,":hover":{fill:d.colors.bodyText}}}}}},ControlContainer:{style:({$isFocused:e})=>{let t=OR(d.colors,e);return{height:d.sizes.minElementHeight,borderLeftWidth:d.sizes.borderWidth,borderRightWidth:d.sizes.borderWidth,borderTopWidth:d.sizes.borderWidth,borderBottomWidth:d.sizes.borderWidth,borderTopColor:t,borderRightColor:t,borderBottomColor:t,borderLeftColor:t}}},IconsContainer:{style:()=>({paddingRight:d.spacing.sm})},ValueContainer:{style:()=>({flexGrow:1,paddingRight:d.spacing.sm,paddingLeft:d.spacing.sm,paddingBottom:d.spacing.sm,paddingTop:d.spacing.sm,marginLeft:d.sizes.tagMarginInsideBorder})},Placeholder:{style:()=>({color:T?d.colors.fadedText40:d.colors.fadedText60,position:`absolute`,pointerEvents:`none`})},InputContainer:{style:()=>({marginLeft:d.spacing.none,position:`relative`,minWidth:d.spacing.threeXS,flexGrow:0})},Input:{props:{readOnly:S},style:()=>({lineHeight:d.lineHeights.inputWidget,color:d.colors.bodyText,caretColor:d.colors.bodyText})},DropdownContainer:{style:()=>({...DR(d),maxHeight:`min(${d.sizes.maxDropdownHeight}, 70vh)`,overflow:`hidden`})},Popover:{props:{ignoreBoundary:f,popoverMargin:qw(d.spacing.twoXS),overrides:{Body:{style:()=>({overflow:`hidden`})}}}},SingleValue:{style:()=>({marginLeft:d.spacing.none})},SelectArrow:{component:Eq,props:{style:{...T&&{cursor:`not-allowed`}},overrides:{Svg:{style:()=>({width:d.iconSizes.lg,height:d.iconSizes.lg})}}}}}})]})}),$xe=class{constructor(e){this._buffer=Array(e),this._size=e,this._index=0,this._wrappedCount=0}push(e){this._buffer[this._index]=e,this._index=(this._index+1)%this._size,this._index===0&&(this._wrappedCount+=1)}get buffer(){return this._buffer}get totalWrittenEntries(){return this._wrappedCount*this._size+this._index}},eSe=(e,t,n,r,i,a)=>{window.__streamlit_profiles__=window.__streamlit_profiles__||{},window.__streamlit_profiles__[e]=window.__streamlit_profiles__[e]||new $xe(1e3),window.__streamlit_profiles__[e].push({phase:t,actualDuration:n,baseDuration:r,startTime:i,commitTime:a})},uZ=({id:e,children:t})=>P(_.Profiler,{id:e,onRender:eSe,children:t}),tSe=(e,{buttonSize:t,focusRing:n}={})=>({...t&&{height:t,width:t},padding:e.spacing.none,border:`none`,backgroundColor:e.colors.transparent,color:e.colors.fadedText60,cursor:`pointer`,borderRadius:e.radii.sm,display:`flex`,alignItems:`center`,justifyContent:`center`,"&:hover":{color:e.colors.bodyText,backgroundColor:e.colors.darkenedBgMix15},"&:active":{color:e.colors.bodyText,backgroundColor:e.colors.darkenedBgMix25},"&:focus-visible":{outline:`none`,boxShadow:n??e.shadows.focusRing}}),nSe=G(`button`,{target:`e1anvavm0`})(({theme:e,buttonSize:t})=>({...tSe(e,{buttonSize:t})})),rSe=(0,_.memo)(({text:e,iconSize:t,buttonSize:n,copyLabel:r,copiedLabel:i,className:a,"data-testid":o,"aria-label":s,title:c})=>{let l=fE(),{isCopied:u,copyToClipboard:d,label:f}=qV(),p=(0,_.useCallback)(()=>{d(e)},[d,e]),m=qw(t??l.iconSizes.base),h=n??l.iconSizes.threeXL,g=u?i??f:r??f;return P(nSe,{className:a,"data-testid":o,title:c??g,"aria-label":s??g,"data-copy-state":u?`copied`:`idle`,type:`button`,buttonSize:h,onClick:p,children:P(u?zA:UA,{size:m})})}),iSe=100,aSe=()=>{let e=fE(),[t,n]=(0,_.useState)({fullWidth:0,fullHeight:0,innerWidth:0,innerHeight:0}),r=(0,_.useCallback)(()=>{let t=qw(e.spacing.md),n=qw(e.sizes.fullScreenHeaderHeight),{innerWidth:r,innerHe
163ight:i}=window;return{fullWidth:r-t*2,fullHeight:i-(t+n),innerWidth:r,innerHeight:i}},[e.sizes.fullScreenHeaderHeight,e.spacing.md]),i=(0,_.useCallback)(()=>{n(r())},[r]),{throttledCallback:a,cancel:o}=Nz(i,iSe);return(0,_.useEffect)(()=>(window.addEventListener(`resize`,a),()=>{window.removeEventListener(`resize`,a),o()}),[a,o]),(0,_.useLayoutEffect)(()=>{i()},[i]),t},oSe=({children:e})=>{let t=aSe();if((0,_.useContext)($X))throw Error("WindowDimensionsProvider should only be used once per app. If you need to read window dimensions, utilize `useWindowDimensionsContext()` instead.");return P($X.Provider,{value:t,children:e})},dZ=(0,Zt.getLogger)(`ComponentRegistry`),sSe=class{constructor(e){this.msgListeners=new Map,this.registerListener=(e,t)=>{this.msgListeners.has(e)&&dZ.warn(`MessageEventSource registered multiple times!`,e),this.msgListeners.set(e,t)},this.deregisterListener=e=>{this.msgListeners.delete(e)||dZ.warn(`Could not deregister unregistered MessageEventSource!`)},this.checkSourceUrlResponse=(e,t)=>this.endpoints.checkSourceUrlResponse(e,`Custom Component`,t),this.sendTimeoutError=(e,t)=>{this.endpoints.sendClientErrorToHost(`Custom Component`,`Request Timeout`,`Your app is having trouble loading the component.`,e,t)},this.getComponentURL=(e,t)=>this.endpoints.buildComponentURL(e,t),this.getBidiComponentURL=(e,t)=>this.endpoints.buildBidiComponentURL(e,t),this.onMessageEvent=e=>{if(Ba(e.data)||!Object.hasOwn(e.data,`isStreamlitMessage`))return;
163if(Ba(e.source)){dZ.warn(`Received component message with no eventSource!`,e.data);return}let t=this.msgListeners.get(e.source);if(Ba(t)||typeof t!=`function`){dZ.warn(`Received component message for unregistered ComponentInstance!`,e.data);return}let{type:n}=e.data;if(Ba(n)){dZ.warn(`Received Streamlit message with no type!`,e.data);return}t(n,e.data)},this.endpoints=e,window.addEventListener(`message`,this.onMessageEvent)}},fZ=new TextDecoder(`utf-8`),pZ=fZ.decode.bind(fZ),cSe=new TextEncoder,mZ=e=>cSe.encode(e),lSe=e=>typeof e==`number`,uSe=e=>typeof e==`boolean`,hZ=e=>typeof e==`function`,gZ=e=>e!=null&&Object(e)===e,_Z=e=>gZ(e)&&hZ(e.then),vZ=e=>gZ(e)&&hZ(e[Symbol.iterator]),yZ=e=>gZ(e)&&hZ(e[Symbol.asyncIterator]),bZ=e=>gZ(e)&&gZ(e.schema),xZ=e=>gZ(e)&&`done`in e&&`value`in e,SZ=e=>gZ(e)&&hZ(e.stat)&&lSe(e.fd),CZ=e=>gZ(e)&&TZ(e.body),wZ=e=>`_getDOMStream`in e&&`_getNodeStream`in e,TZ=e=>gZ(e)&&hZ(e.cancel)&&hZ(e.getReader)&&!wZ(e),EZ=e=>gZ(e)&&hZ(e.read)&&hZ(e.pipe)&&uSe(e.readable)&&!wZ(e),dSe=e=>gZ(e)&&hZ(e.clear)&&hZ(e.bytes)&&hZ(e.position)&&hZ(e.setPosition)&&hZ(e.capacity)&&hZ(e.getBufferIdentifier)&&hZ(e.createLong),fSe=c({compareArrayLike:()=>zZ,joinUint8Arrays:()=>kZ,memcpy:()=>OZ,rebaseValueOffsets:()=>RSe,toArrayBufferView:()=>AZ,toArrayBufferViewAsyncIterator:()=>LZ,toArrayBufferViewIterator:()=>FZ,toBigInt64Array:()=>MZ,toBigUint64Array:()=>vSe,toFloat32Array:()=>ySe,toFloat32ArrayAsyncIterator:()=>FSe,toFloat32ArrayIterator:()=>DSe,toFloat64Array:()=>bSe,toFloat64ArrayAsyncIterator:()=>ISe,toFloat64ArrayIterator:()=>OSe,toInt16Array:()=>hSe,toInt16ArrayAsyncIterator:()=>jSe,toInt16ArrayIterator:()=>CSe,toInt32Array:()=>jZ,toInt32ArrayAsyncIterator:()=>MSe,toInt32ArrayIterator:()=>wSe,toInt8Array:()=>mSe,toInt8ArrayAsyncIterator:()=>ASe,toInt8ArrayIterator:()=>SSe,toUint16Array:()=>gSe,toUint16ArrayAsyncIterator:()=>NSe,toUint16ArrayIterator:()=>TSe,toUint32Array:()=>_Se,toUint32ArrayAsyncIterator:()=>PSe,toUint32ArrayIterator:()=>ESe,toUint8Array:()=>NZ,toUint8ArrayAsyncIterator:()=>RZ,toUint8ArrayIterator:()=>IZ,toUint8ClampedArray:()=>xSe,toUint8ClampedArrayAsyncIterator:()=>LSe,toUint8ClampedArrayIterator:()=>kSe}),DZ=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:ArrayBuffer;function pSe(e){let t=e[0]?[e[0]]:[],n,r,i,a;for(let o,s,c=0,l=0,u=e.length;++c<u;){if(o=t[l],s=e[c],!o||!s||o.buffer!==s.buffer||s.byteOffset<o.byteOffset){s&&(t[++l]=s);continue}if({byteOffset:n,byteLength:i}=o,{byteOffset:r,byteLength:a}=s,n+i<r||r+a<n){s&&(t[++l]=s);continue}t[l]=new Uint8Array(o.buffer,n,r-n+a)}return t}function OZ(e,t,n=0,r=t.byteLength){let i=e.byteLength,a=new Uint8Array(e.buffer,e.byteOffset,i),o=new Uint8Array(t.buffer,t.byteOffset,Math.min(r,i));return a.set(o,n),e}function kZ(e,t){let n=pSe(e),r=n.reduce((e,t)=>e+t.byteLength,0),i,a,o,s=0,c=-1,l=Math.min(t||1/0,r);for(let e=n.length;++c<e;){if(i=n[c],a=i.subarray(0,Math.min(i.length,l-s)),l<=s+a.length){a.length<i.length?n[c]=i.subarray(a.length):a.length===i.length&&c++,o?OZ(o,a,s):o=a;break}OZ(o||=new Uint8Array(l),a,s),s+=a.length}return[o||new Uint8Array,n.slice(c),r-(o?o.byteLength:0)]}function AZ(e,t){let n=xZ(t)?t.value:t;return n instanceof e?e===Uint8Array?new e(n.buffer,n.byteOffset,n.byteLength):n:n?(typeof n==`string`&&(n=mZ(n)),n instanceof ArrayBuffer||n instanceof DZ?new e(n):dSe(n)?AZ(e,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new e(0):new e(n.buffer,n.byteOffset,n.byteLength/e.BYTES_PER_ELEMENT):e.from(n)):new e(0)}var mSe=e=>AZ(Int8Array,e),hSe=e=>AZ(Int16Array,e),jZ=e=>AZ(Int32Array,e),MZ=e=>AZ(BigInt64Array,e),NZ=e=>AZ(Uint8Array,e),gSe=e=>AZ(Uint16Array,e),_Se=e=>AZ(Uint32Array,e),vSe=e=>AZ(BigUint64Array,e),ySe=e=>AZ(Float32Array,e),bSe=e=>AZ(Float64Array,e),xSe=e=>AZ(Uint8ClampedArray,e),PZ=e=>(e.next(),e);function*FZ(e,t){let n=function*(e){yield e};return yield*PZ((function*(t){let n=null;do n=t.next(yield AZ(e,n));while(!n.done)})((typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof DZ?n(t):vZ(t)?t:n(t))[Symbol.iterator]())),new e}var SSe=e=>FZ(Int8Array,e),CSe=e=>FZ(Int16Array,e),wSe=e=>FZ(Int32Array,e),IZ=e=>FZ(Uint8Array,e),TSe=e=>FZ(Uint16Array,e),ESe=e=>FZ(Uint32Array,e),DSe=e=>FZ(Float32Array,e),OSe=e=>FZ(Float64Array,e),kSe=e=>FZ(Uint8ClampedArray,e);function LZ(e,t){return OE(this,arguments,function*(){if(_Z(t))return yield DE(yield DE(yield*kE(AE(LZ(e,yield DE(t))))));let n=function(e){return OE(this,arguments,function*(){yield yield DE(yield DE(e))})};return yield DE(yield*kE(AE(PZ((function(t){return OE(this,arguments,function*(){let n=null;do n=yield DE(t.next(yield yield DE(AZ(e,n))));while(!n.done)})})((typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof DZ?n(t):vZ(t)?function(e){return OE(this,arguments,function*(){yield DE(yield*kE(AE(PZ((function*(e){let t=null;do t=e.next(yield t?.value);while(!t.done)})(e[Symbol.iterator]())))))})}(t):yZ(t)?t:n(t))[Symbol.asyncIterator]()))))),yield DE(new e)})}var ASe=e=>LZ(Int8Array,e),jSe=e=>LZ(Int16Array,e),MSe=e=>LZ(Int32Array,e),RZ=e=>LZ(Uint8Array,e),NSe=e=>LZ(Uint16Array,e),PSe=e=>LZ(Uint32Array,e),FSe=e=>LZ(Float32Array,e),ISe=e=>LZ(Float64Array,e),LSe=e=>LZ(Uint8ClampedArray,e);function RSe(e,t,n){if(e!==0){n=n.slice(0,t);for(let t=-1,r=n.length;++t<r;)n[t]+=e}return n.subarray(0,t)}function zZ(e,t){let n=0,r=e.length;if(r!==t.length)return!1;if(r>0)do if(e[n]!==t[n])return!1;while(++n<r);return!0}var BZ={fromIterable(e){return VZ(zSe(e))},fromAsyncIterable(e){return VZ(BSe(e))},fromDOMStream(e){return VZ(VSe(e))},fromNodeStream(e){return VZ(USe(e))},toDOMStream(e,t){throw Error(`"toDOMStream" not available in this environment`)},toNodeStream(e,t){throw Error(`"toNodeStream" not available in this environment`)}},VZ=e=>(e.next(),e);function*zSe(e){let t,n=!1,r=[],i,a,o,s=0;function c(){return a===`peek`?kZ(r,o)[0]:([i,r,s]=kZ(r,o),i)}({cmd:a,size:o}=(yield null)||{cmd:`read`,size:0});let l=IZ(e)[Symbol.iterator]();try{do if({done:t,value:i}=Number.isNaN(o-s)?l.next():l.next(o-s),!t&&i.byteLength>0&&(r.push(i),s+=i.byteLength),t||o<=s)do({cmd:a,size:o}=yield c());while(o<s);while(!t)}catch(e){n=!0,typeof l.throw==`function`&&l.throw(e)}finally{n===!1&&typeof l.return==`function`&&l.return(null)}return null}function BSe(e){return OE(this,arguments,function*(){let t,n=!1,r=[],i,a,o,s=0;function c(){return a===`peek`?kZ(r,o)[0]:([i,r,s]=kZ(r,o),i)}({cmd:a,size:o}=(yield yield DE(null))||{cmd:`read`,size:0});let l=RZ(e)[Symbol.asyncIterator]();try{do if({done:t,value:i}=Number.isNaN(o-s)?yield DE(l.next()):yield DE(l.next(o-s)),!t&&i.byteLength>0&&(r.push(i),s+=i.byteLength),t||o<=s)do({cmd:a,size:o}=yield yield DE(c()));while(o<s);while(!t)}catch(e){n=!0,typeof l.throw==`function`&&(yield DE(l.throw(e)))}finally{n===!1&&typeof l.return==`function`&&(yield DE(l.return(new Uint8Array)))}return yield DE(null)})}function VSe(e){return OE(this,arguments,function*(){let t=!1,n=!1,r=[],i,a,o,s=0;function c(){return a===`peek`?kZ(r,o)[0]:([i,r,s]=kZ(r,o),i)}({cmd:a,size:o}=(yield yield DE(null))||{cmd:`read`,size:0});let l=new HSe(e);try{do if({done:t,value:i}=Number.isNaN(o-s)?yield DE(l.read()):yield DE(l.read(o-s)),!t&&i.byteLength>0&&(r.push(NZ(i)),s+=i.byteLength),t||o<=s)do({cmd:a,size:o}=yield yield DE(c()));while(o<s);while(!t)}catch(e){n=!0,yield DE(l.cancel(e))}finally{n===!1?yield DE(l.cancel()):e.locked&&l.releaseLock()}return yield DE(null)})}var HSe=class{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return TE(this,void 0,void 0,function*(){let{reader:t,source:n}=this;t&&(yield t.cancel(e).catch(()=>{})),n&&n.locked&&this.releaseLock()})}read(e){return TE(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array};let t=yield this.reader.read();return!t.done&&(t.value=NZ(t)),t})}},HZ=(e,t)=>{let n=e=>r([t,e]),r;return[t,n,new Promise(i=>(r=i)&&e.once(t,n))]};function USe(e){return OE(this,arguments,function*(){let t=[],n=`error`,r=!1,i=null,a,o,s=0,c=[],l;function u(){return a===`peek`?kZ(c,o)[0]:([l,c,s]=kZ(c,o),l)}if({cmd:a,size:o}=(yield yield DE(null))||{cmd:`read`,size:0},e.isTTY)return yield yield DE(new Uint8Array),yield DE(null);try{t[0]=HZ(e,`end`),t[1]=HZ(e,`error`);do{if(t[2]=HZ(e,`readable`),[n,i]=yield DE(Promise.race(t.map(e=>e[2]))),n===`error`)break;
vendor: 9,930 bytes, line 163
163if((r=n===`end`)||(Number.isFinite(o-s)?(l=NZ(e.read(o-s)),l.byteLength<o-s&&(l=NZ(e.read()))):l=NZ(e.read()),l.byteLength>0&&(c.push(l),s+=l.byteLength)),r||o<=s)do({cmd:a,size:o}=yield yield DE(u()));while(o<s)}while(!r)}finally{yield DE(d(t,n===`error`?i:null))}return yield DE(null);function d(t,n){return l=c=null,new Promise((r,i)=>{for(let[n,r]of t)e.off(n,r);try{let t=e.destroy;t&&t.call(e,n),n=void 0}catch(e){n=e||n}finally{n==null?r():i(n)}})}})}var UZ;(function(e){e[e.V1=0]=`V1`,e[e.V2=1]=`V2`,e[e.V3=2]=`V3`,e[e.V4=3]=`V4`,e[e.V5=4]=`V5`})(UZ||={});var WZ;(function(e){e[e.Sparse=0]=`Sparse`,e[e.Dense=1]=`Dense`})(WZ||={});var GZ;(function(e){e[e.HALF=0]=`HALF`,e[e.SINGLE=1]=`SINGLE`,e[e.DOUBLE=2]=`DOUBLE`})(GZ||={});var KZ;(function(e){e[e.DAY=0]=`DAY`,e[e.MILLISECOND=1]=`MILLISECOND`})(KZ||={});var qZ;(function(e){e[e.SECOND=0]=`SECOND`,e[e.MILLISECOND=1]=`MILLISECOND`,e[e.MICROSECOND=2]=`MICROSECOND`,e[e.NANOSECOND=3]=`NANOSECOND`})(qZ||={});var JZ;(function(e){e[e.YEAR_MONTH=0]=`YEAR_MONTH`,e[e.DAY_TIME=1]=`DAY_TIME`,e[e.MONTH_DAY_NANO=2]=`MONTH_DAY_NANO`})(JZ||={});var YZ=new Int32Array(2),XZ=new Float32Array(YZ.buffer),ZZ=new Float64Array(YZ.buffer),QZ=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1,$Z;(function(e){e[e.UTF8_BYTES=1]=`UTF8_BYTES`,e[e.UTF16_STRING=2]=`UTF16_STRING`})($Z||={});var eQ=class e{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new e(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readUint64(e){return BigInt.asUintN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readFloat32(e){return YZ[0]=this.readInt32(e),XZ[0]}readFloat64(e){return YZ[+!QZ]=this.readInt32(e),YZ[+!!QZ]=this.readInt32(e+4),ZZ[0]}writeInt8(e,t){this.bytes_[e]=t}writeUint8(e,t){this.bytes_[e]=t}writeInt16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,Number(BigInt.asIntN(32,t))),this.writeInt32(e+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(e,t){this.writeUint32(e,Number(BigInt.asUintN(32,t))),this.writeUint32(e+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(e,t){XZ[0]=t,this.writeInt32(e,YZ[0])}writeFloat64(e,t){ZZ[0]=t,this.writeInt32(e,YZ[+!QZ]),this.writeInt32(e+4,YZ[+!!QZ])}getBufferIdentifier(){if(this.bytes_.length<this.position_+4+4)throw Error(`FlatBuffers: ByteBuffer is too short to contain an identifier.`);let e=``;for(let t=0;t<4;t++)e+=String.fromCharCode(this.readInt8(this.position_+4+t));return e}__offset(e,t){let n=e-this.readInt32(e);return t<this.readInt16(n)?this.readInt16(n+t):0}__union(e,t){return e.bb_pos=t+this.readInt32(t),e.bb=this,e}__string(e,t){e+=this.readInt32(e);let n=this.readInt32(e);e+=4;let r=this.bytes_.subarray(e,e+n);return t===$Z.UTF8_BYTES?r:this.text_decoder_.decode(r)}__union_with_string(e,t){return typeof e==`string`?this.__string(t):this.__union(e,t)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+4}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(e.length!=4)throw Error(`FlatBuffers: file identifier must be length 4`);for(let t=0;t<4;t++)if(e.charCodeAt(t)!=this.readInt8(this.position()+4+t))return!1;return!0}createScalarList(e,t){let n=[];for(let r=0;r<t;++r){let t=e(r);t!==null&&n.push(t)}return n}createObjList(e,t){let n=[];for(let r=0;r<t;++r){let t=e(r);t!==null&&n.push(t.unpack())}return n}},tQ=class e{constructor(e){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let t;t=e||1024,this.bb=eQ.allocate(t),this.space=t}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(e){this.force_defaults=e}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(t,n){t>this.minalign&&(this.minalign=t);let r=~(this.bb.capacity()-this.space+n)+1&t-1;for(;this.space<r+t+n;){let t=this.bb.capacity();this.bb=e.growByteBuffer(this.bb),this.space+=this.bb.capacity()-t}this.pad(r)}pad(e){for(let t=0;t<e;t++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(--this.space,e)}writeInt16(e){this.bb.writeInt16(this.space-=2,e)}writeInt32(e){this.bb.writeInt32(this.space-=4,e)}writeInt64(e){this.bb.writeInt64(this.space-=8,e)}writeFloat32(e){this.bb.writeFloat32(this.space-=4,e)}writeFloat64(e){this.bb.writeFloat64(this.space-=8,e)}addInt8(e){this.prep(1,0),this.writeInt8(e)}addInt16(e){this.prep(2,0),this.writeInt16(e)}addInt32(e){this.prep(4,0),this.writeInt32(e)}addInt64(e){this.prep(8,0),this.writeInt64(e)}addFloat32(e){this.prep(4,0),this.writeFloat32(e)}addFloat64(e){this.prep(8,0),this.writeFloat64(e)}addFieldInt8(e,t,n){(this.force_defaults||t!=n)&&(this.addInt8(t),this.slot(e))}addFieldInt16(e,t,n){(this.force_defaults||t!=n)&&(this.addInt16(t),this.slot(e))}addFieldInt32(e,t,n){(this.force_defaults||t!=n)&&(this.addInt32(t),this.slot(e))}addFieldInt64(e,t,n){(this.force_defaults||t!==n)&&(this.addInt64(t),this.slot(e))}addFieldFloat32(e,t,n){(this.force_defaults||t!=n)&&(this.addFloat32(t),this.slot(e))}addFieldFloat64(e,t,n){(this.force_defaults||t!=n)&&(this.addFloat64(t),this.slot(e))}addFieldOffset(e,t,n){(this.force_defaults||t!=n)&&(this.addOffset(t),this.slot(e))}addFieldStruct(e,t,n){t!=n&&(this.nested(t),this.slot(e))}nested(e){if(e!=this.offset())throw TypeError(`FlatBuffers: struct must be serialized inline.`)}notNested(){if(this.isNested)throw TypeError(`FlatBuffers: object serialization must not be nested.`)}slot(e){this.vtable!==null&&(this.vtable[e]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(e){let t=e.capacity();if(t&3221225472)throw Error(`FlatBuffers: cannot grow buffer beyond 2 gigabytes.`);let n=t<<1,r=eQ.allocate(n);return r.setPosition(n-t),r.bytes().set(e.bytes(),n-t),r}addOffset(e){this.prep(4,0),this.writeInt32(this.offset()-e+4)}startObject(e){this.notNested(),this.vtable??=[],this.vtable_in_use=e;for(let t=0;t<e;t++)this.vtable[t]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw Error(`FlatBuffers: endObject called without startObject`);this.addInt32(0);let e=this.offset(),t=this.vtable_in_use-1;for(;t>=0&&this.vtable[t]==0;t--);let n=t+1;for(;t>=0;t--)this.addInt16(this.vtable[t]==0?0:e-this.vtable[t]);this.addInt16(e-this.object_start);let r=(n+2)*2;this.addInt16(r);let i=0,a=this.space;outer_loop:for(t=0;t<this.vtables.length;t++){let e=this.bb.capacity()-this.vtables[t];if(r==this.bb.readInt16(e)){for(let t=2;t<r;t+=2)if(this.bb.readInt16(a+t)!=this.bb.readInt16(e+t))continue outer_loop;i=this.vtables[t];break}}return i?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,i-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,t,n){let r=n?4:0;if(t){let e=t;if(this.prep(this.minalign,8+r),e.length!=4)throw TypeError(`FlatBuffers: file identifier must be length 4`);for(let t=3;t>=0;t--)this.writeInt8(e.charCodeAt(t))}this.prep(this.minalign,4+r),this.addOffset(e),r&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){let n=this.bb.capacity()-e,r=n-this.bb.readInt32(n);if(!(t<this.bb.readInt16(r)&&this.bb.readInt16(r+t)!=0))throw TypeError(`FlatBuffers: field `+t+` must be set`)}startVector(e,t,n){this.notNested(),this.vector_num_elems=t,this.prep(4,e*t),this.prep(n,e*t)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||=new Map,this.string_maps.has(e))return this.string_maps.get(e);let t=this.createString(e);return this.string_maps.set(e,t),t}createString(e){if(e==null)return 0;let t;return t=e instanceof Uint8Array?e:this.text_encoder.encode(e),this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length),this.bb.bytes().set(t,this.space),this.endVector()}createByteVector(e){return e==null?0:(this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length),this.bb.bytes().set(e,this.space),this.endVector())}createObjectOffset(e){return e===null?0:typeof e==`string`?this.createString(e):e.pack(this)}createObjectOffsetList(e){let t=[];for(let n=0;n<e.length;++n){let r=e[n];if(r!==null)t.push(this.createObjectOffset(r));else throw TypeError(`FlatBuffers: Argument for createObjectOffsetList cannot contain null.`)}return t}createStructOffsetList(e,t){return t(this,e.length),this.createObjectOffsetList(e.slice().reverse()),this.endVector()}},nQ;(function(e){e[e.BUFFER=0]=`BUFFER`})(nQ||={});var rQ;(function(e){e[e.LZ4_FRAME=0]=`LZ4_FRAME`,e[e.ZSTD=1]=`ZSTD`})(rQ||={});var iQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}
163static getRootAsBodyCompression(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}codec(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):rQ.LZ4_FRAME}method(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):nQ.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,t){e.addFieldInt8(0,t,rQ.LZ4_FRAME)}static addMethod(e,t){e.addFieldInt8(1,t,nQ.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(t,n,r){return e.startBodyCompression(t),e.addCodec(t,n),e.addMethod(t,r),e.endBodyCompression(t)}},aQ=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,t,n){return e.prep(8,16),e.writeInt64(BigInt(n??0)),e.writeInt64(BigInt(t??0)),e.offset()}},oQ=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,t,n){return e.prep(8,16),e.writeInt64(BigInt(n??0)),e.writeInt64(BigInt(t??0)),e.offset()}},sQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsRecordBatch(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRecordBatch(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}length(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt(`0`)}nodes(e,t){let n=this.bb.__offset(this.bb_pos,6);return n?(t||new oQ).__init(this.bb.__vector(this.bb_pos+n)+e*16,this.bb):null}nodesLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,t){let n=this.bb.__offset(this.bb_pos,8);return n?(t||new aQ).__init(this.bb.__vector(this.bb_pos+n)+e*16,this.bb):null}buffersLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){let t=this.bb.__offset(this.bb_pos,10);return t?(e||new iQ).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,t){e.addFieldInt64(0,t,BigInt(`0`))}static addNodes(e,t){e.addFieldOffset(1,t,0)}static startNodesVector(e,t){e.startVector(16,t,8)}static addBuffers(e,t){e.addFieldOffset(2,t,0)}static startBuffersVector(e,t){e.startVector(16,t,8)}static addCompression(e,t){e.addFieldOffset(3,t,0)}static endRecordBatch(e){return e.endObject()}},cQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryBatch(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryBatch(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt(`0`)}data(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new sQ).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isDelta(){let e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startDictionaryBatch(e){e.startObject(3)}static addId(e,t){e.addFieldInt64(0,t,BigInt(`0`))}static addData(e,t){e.addFieldOffset(1,t,0)}static addIsDelta(e,t){e.addFieldInt8(2,+t,0)}static endDictionaryBatch(e){return e.endObject()}},lQ;(function(e){e[e.Little=0]=`Little`,e[e.Big=1]=`Big`})(lQ||={});var uQ;(function(e){e[e.DenseArray=0]=`DenseArray`})(uQ||={});var dQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInt(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInt(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}bitWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}
vendor: 15,685 bytes, line 163
163static startInt(e){e.startObject(2)}static addBitWidth(e,t){e.addFieldInt32(0,t,0)}static addIsSigned(e,t){e.addFieldInt8(1,+t,0)}static endInt(e){return e.endObject()}static createInt(t,n,r){return e.startInt(t),e.addBitWidth(t,n),e.addIsSigned(t,r),e.endInt(t)}},fQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryEncoding(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryEncoding(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt(`0`)}indexType(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new dQ).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isOrdered(){let e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}dictionaryKind(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):uQ.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,t){e.addFieldInt64(0,t,BigInt(`0`))}static addIndexType(e,t){e.addFieldOffset(1,t,0)}static addIsOrdered(e,t){e.addFieldInt8(2,+t,0)}static addDictionaryKind(e,t){e.addFieldInt16(3,t,uQ.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}},pQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsKeyValue(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsKeyValue(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}key(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}value(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,t){e.addFieldOffset(0,t,0)}static addValue(e,t){e.addFieldOffset(1,t,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(t,n,r){return e.startKeyValue(t),e.addKey(t,n),e.addValue(t,r),e.endKeyValue(t)}},mQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBinary(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBinary(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(t){return e.startBinary(t),e.endBinary(t)}},hQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBool(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBool(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(t){return e.startBool(t),e.endBool(t)}},gQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDate(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDate(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):KZ.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,KZ.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(t,n){return e.startDate(t),e.addUnit(t,n),e.endDate(t)}},_Q=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDecimal(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDecimal(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,t){e.addFieldInt32(0,t,0)}static addScale(e,t){e.addFieldInt32(1,t,0)}static addBitWidth(e,t){e.addFieldInt32(2,t,128)}static endDecimal(e){return e.endObject()}static createDecimal(t,n,r,i){return e.startDecimal(t),e.addPrecision(t,n),e.addScale(t,r),e.addBitWidth(t,i),e.endDecimal(t)}},vQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDuration(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDuration(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):qZ.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,qZ.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(t,n){return e.startDuration(t),e.addUnit(t,n),e.endDuration(t)}},yQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeBinary(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeBinary(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}byteWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(t,n){return e.startFixedSizeBinary(t),e.addByteWidth(t,n),e.endFixedSizeBinary(t)}},bQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeList(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeList(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}listSize(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(t,n){return e.startFixedSizeList(t),e.addListSize(t,n),e.endFixedSizeList(t)}},xQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFloatingPoint(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFloatingPoint(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):GZ.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,t){e.addFieldInt16(0,t,GZ.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(t,n){return e.startFloatingPoint(t),e.addPrecision(t,n),e.endFloatingPoint(t)}},SQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInterval(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInterval(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):JZ.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,JZ.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(t,n){return e.startInterval(t),e.addUnit(t,n),e.endInterval(t)}},CQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeBinary(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsLargeBinary(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startLargeBinary(e){e.startObject(0)}static endLargeBinary(e){return e.endObject()}static createLargeBinary(t){return e.startLargeBinary(t),e.endLargeBinary(t)}},wQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeUtf8(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsLargeUtf8(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startLargeUtf8(e){e.startObject(0)}static endLargeUtf8(e){return e.endObject()}static createLargeUtf8(t){return e.startLargeUtf8(t),e.endLargeUtf8(t)}},TQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsList(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsList(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(t){return e.startList(t),e.endList(t)}},EQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMap(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMap(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}keysSorted(){let e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,t){e.addFieldInt8(0,+t,0)}static endMap(e){return e.endObject()}static createMap(t,n){return e.startMap(t),e.addKeysSorted(t,n),e.endMap(t)}},DQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsNull(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsNull(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(t){return e.startNull(t),e.endNull(t)}},OQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsStruct_(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsStruct_(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(t){return e.startStruct_(t),e.endStruct_(t)}},kQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTime(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTime(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):qZ.MILLISECOND}bitWidth(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,qZ.MILLISECOND)}static addBitWidth(e,t){e.addFieldInt32(1,t,32)}static endTime(e){return e.endObject()}static createTime(t,n,r){return e.startTime(t),e.addUnit(t,n),e.addBitWidth(t,r),e.endTime(t)}},AQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTimestamp(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTimestamp(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):qZ.SECOND}timezone(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,qZ.SECOND)}static addTimezone(e,t){e.addFieldOffset(1,t,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(t,n,r){return e.startTimestamp(t),e.addUnit(t,n),e.addTimezone(t,r),e.endTimestamp(t)}},jQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUnion(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUnion(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}mode(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):WZ.Sparse}typeIds(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb.__vector(this.bb_pos+t)+e*4):0}typeIdsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){let e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,t){e.addFieldInt16(0,t,WZ.Sparse)}static addTypeIds(e,t){e.addFieldOffset(1,t,0)}static createTypeIdsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addInt32(t[n]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(t,n,r){return e.startUnion(t),e.addMode(t,n),e.addTypeIds(t,r),e.endUnion(t)}},MQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(t){return e.startUtf8(t),e.endUtf8(t)}},NQ;(function(e){e[e.NONE=0]=`NONE`,e[e.Null=1]=`Null`,e[e.Int=2]=`Int`,e[e.FloatingPoint=3]=`FloatingPoint`,e[e.Binary=4]=`Binary`,e[e.Utf8=5]=`Utf8`,e[e.Bool=6]=`Bool`,e[e.Decimal=7]=`Decimal`,e[e.Date=8]=`Date`,e[e.Time=9]=`Time`,e[e.Timestamp=10]=`Timestamp`,e[e.Interval=11]=`Interval`,e[e.List=12]=`List`,e[e.Struct_=13]=`Struct_`,e[e.Union=14]=`Union`,e[e.FixedSizeBinary=15]=`FixedSizeBinary`,e[e.FixedSizeList=16]=`FixedSizeList`,e[e.Map=17]=`Map`,e[e.Duration=18]=`Duration`,e[e.LargeBinary=19]=`LargeBinary`,e[e.LargeUtf8=20]=`LargeUtf8`,e[e.LargeList=21]=`LargeList`,e[e.RunEndEncoded=22]=`RunEndEncoded`})(NQ||={});var PQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}name(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}nullable(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}
163typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):NQ.NONE}type(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}dictionary(e){let t=this.bb.__offset(this.bb_pos,12);return t?(e||new fQ).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(t,n){let r=this.bb.__offset(this.bb_pos,14);return r?(n||new e).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}childrenLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let n=this.bb.__offset(this.bb_pos,16);return n?(t||new pQ).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,NQ.NONE)}static addType(e,t){e.addFieldOffset(3,t,0)}static addDictionary(e,t){e.addFieldOffset(4,t,0)}static addChildren(e,t){e.addFieldOffset(5,t,0)}static createChildrenVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}},FQ=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):lQ.Little}fields(e,t){let n=this.bb.__offset(this.bb_pos,6);return n?(t||new PQ).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}fieldsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let n=this.bb.__offset(this.bb_pos,8);return n?(t||new pQ).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+e*8):BigInt(0)}featuresLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,t){e.addFieldInt16(0,t,lQ.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let n=t.length-1;n>=0;n--)e.addInt64(t[n]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(t,n,r,i,a){return e.startSchema(t),e.addEndianness(t,n),e.addFields(t,r),e.addCustomMetadata(t,i),e.addFeatures(t,a),e.endSchema(t)}},IQ;(function(e){e[e.NONE=0]=`NONE`,e[e.Schema=1]=`Schema`,e[e.DictionaryBatch=2]=`DictionaryBatch`,e[e.RecordBatch=3]=`RecordBatch`,e[e.Tensor=4]=`Tensor`,e[e.SparseTensor=5]=`SparseTensor`})(IQ||={});var Q;(function(e){e[e.NONE=0]=`NONE`,e[e.Null=1]=`Null`,e[e.Int=2]=`Int`,e[e.Float=3]=`Float`,e[e.Binary=4]=`Binary`,e[e.Utf8=5]=`Utf8`,e[e.Bool=6]=`Bool`,e[e.Decimal=7]=`Decimal`,e[e.Date=8]=`Date`,e[e.Time=9]=`Time`,e[e.Timestamp=10]=`Timestamp`,e[e.Interval=11]=`Interval`,e[e.List=12]=`List`,e[e.Struct=13]=`Struct`,e[e.Union=14]=`Union`,e[e.FixedSizeBinary=15]=`FixedSizeBinary`,e[e.FixedSizeList=16]=`FixedSizeList`,e[e.Map=17]=`Map`,e[e.Duration=18]=`Duration`,e[e.LargeBinary=19]=`LargeBinary`,e[e.LargeUtf8=20]=`LargeUtf8`,e[e.Dictionary=-1]=`Dictionary`,e[e.Int8=-2]=`Int8`,e[e.Int16=-3]=`Int16`,e[e.Int32=-4]=`Int32`,e[e.Int64=-5]=`Int64`,e[e.Uint8=-6]=`Uint8`,e[e.Uint16=-7]=`Uint16`,e[e.Uint32=-8]=`Uint32`,e[e.Uint64=-9]=`Uint64`,e[e.Float16=-10]=`Float16`,e[e.Float32=-11]=`Float32`,e[e.Float64=-12]=`Float64`,e[e.DateDay=-13]=`DateDay`,e[e.DateMillisecond=-14]=`DateMillisecond`,e[e.TimestampSecond=-15]=`TimestampSecond`,e[e.TimestampMillisecond=-16]=`TimestampMillisecond`,e[e.TimestampMicrosecond=-17]=`TimestampMicrosecond`,e[e.TimestampNanosecond=-18]=`TimestampNanosecond`,e[e.TimeSecond=-19]=`TimeSecond`,e[e.TimeMillisecond=-20]=`TimeMillisecond`,e[e.TimeMicrosecond=-21]=`TimeMicrosecond`,e[e.TimeNanosecond=-22]=`TimeNanosecond`,e[e.DenseUnion=-23]=`DenseUnion`,e[e.SparseUnion=-24]=`SparseUnion`,e[e.IntervalDayTime=-25]=`IntervalDayTime`,e[e.IntervalYearMonth=-26]=`IntervalYearMonth`,e[e.DurationSecond=-27]=`DurationSecond`,e[e.DurationMillisecond=-28]=`DurationMillisecond`,e[e.DurationMicrosecond=-29]=`DurationMicrosecond`,e[e.DurationNanosecond=-30]=`DurationNanosecond`,e[e.IntervalMonthDayNano=-31]=`IntervalMonthDayNano`})(Q||={});var LQ;(function(e){e[e.OFFSET=0]=`OFFSET`,e[e.DATA=1]=`DATA`,e[e.VALIDITY=2]=`VALIDITY`,e[e.TYPE=3]=`TYPE`})(LQ||={});var WSe=c({valueToString:()=>RQ}),GSe=void 0;function RQ(e){if(e===null)return`null`;if(e===GSe)return`undefined`;switch(typeof e){case`number`:return`${e}`;case`bigint`:return`${e}`;case`string`:return`"${e}"`}return typeof e[Symbol.toPrimitive]==`function`?e[Symbol.toPrimitive](`string`):ArrayBuffer.isView(e)?e instanceof BigInt64Array||e instanceof BigUint64Array?`[${[...e].map(e=>RQ(e))}]`:`[${e}]`:ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e,(e,t)=>typeof t==`bigint`?`${t}`:t)}function zQ(e){if(typeof e==`bigint`&&(e<-(2**53-1)||e>2**53-1))throw TypeError(`${e} is not safe to convert to a number.`);return Number(e)}function BQ(e,t){return zQ(e/t)+zQ(e%t)/zQ(t)}var KSe=c({BN:()=>XQ,bigNumToBigInt:()=>JQ,bigNumToNumber:()=>KQ,bigNumToString:()=>qQ,isArrowBigNumSymbol:()=>VQ}),VQ=Symbol.for(`isArrowBigNum`);function HQ(e,...t){return t.length===0?Object.setPrototypeOf(AZ(this.TypedArray,e),this.constructor.prototype):Object.
163setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}HQ.prototype[VQ]=!0,HQ.prototype.toJSON=function(){return`"${qQ(this)}"`},HQ.prototype.valueOf=function(e){return KQ(this,e)},HQ.prototype.toString=function(){return qQ(this)},HQ.prototype[Symbol.toPrimitive]=function(e=`default`){switch(e){case`number`:return KQ(this);case`string`:return qQ(this);case`default`:return JQ(this)}return qQ(this)};function UQ(...e){return HQ.apply(this,e)}function WQ(...e){return HQ.apply(this,e)}function GQ(...e){return HQ.apply(this,e)}Object.setPrototypeOf(UQ.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(WQ.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(GQ.prototype,Object.create(Uint32Array.prototype)),Object.assign(UQ.prototype,HQ.prototype,{constructor:UQ,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(WQ.prototype,HQ.prototype,{constructor:WQ,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(GQ.prototype,HQ.prototype,{constructor:GQ,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});var qSe=BigInt(4294967296)*BigInt(4294967296)-BigInt(1);function KQ(e,t){let{buffer:n,byteOffset:r,byteLength:i,signed:a}=e,o=new BigUint64Array(n,r,i/8),s=a&&o.at(-1)&BigInt(1)<<BigInt(63),c=BigInt(0),l=0;if(s){for(let e of o)c|=(e^qSe)*(BigInt(1)<<BigInt(64*l++));c*=BigInt(-1),c-=BigInt(1)}else for(let e of o)c|=e*(BigInt(1)<<BigInt(64*l++));if(typeof t==`number`&&t>0){let e=BigInt(`1`.padEnd(t+1,`0`)),n=c/e,r=s?-(c%e):c%e,i=zQ(n),a=`${r}`.padStart(t,`0`);return+`${s&&i===0?`-`:``}${i}.${a}`}return zQ(c)}function qQ(e){if(e.byteLength===8)return`${new e.BigIntArray(e.buffer,e.byteOffset,1)[0]}`;if(!e.signed)return YQ(e);let t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2);if(new Int16Array([t.at(-1)])[0]>=0)return YQ(e);t=t.slice();let n=1;for(let e=0;e<t.length;e++){let r=t[e],i=~r+n;t[e]=i,n&=+(r===0)}return`-${YQ(t)}`}function JQ(e){return e.byteLength===8?new e.BigIntArray(e.buffer,e.byteOffset,1)[0]:qQ(e)}function YQ(e){let t=``,n=new Uint32Array(2),r=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),i=new Uint32Array((r=new Uint16Array(r).reverse()).buffer),a=-1,o=r.length-1;do{for(n[0]=r[a=0];a<o;)r[a++]=n[1]=n[0]/10,n[0]=(n[0]-n[1]*10<<16)+r[a];r[a]=n[1]=n[0]/10,n[0]-=n[1]*10,t=`${n[0]}${t}`}while(i[0]||i[1]||i[2]||i[3]);return t??`0`}var XQ=class e{static new(e,t){switch(t){case!0:return new UQ(e);case!1:return new WQ(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new UQ(e)}return e.byteLength===16?new GQ(e):new WQ(e)}static signed(e){return new UQ(e)}static unsigned(e){return new WQ(e)}static decimal(e){return new GQ(e)}constructor(t,n){return e.new(t,n)}},ZQ,QQ,$Q,e$,t$,n$,r$,i$,a$,o$,s$,c$,l$,u$,d$,f$,p$,m$,h$,g$,_$,v$,$=class e{static isNull(e){return e?.typeId===Q.Null}static isInt(e){return e?.typeId===Q.Int}static isFloat(e){return e?.typeId===Q.Float}static isBinary(e){return e?.typeId===Q.Binary}static isLargeBinary(e){return e?.typeId===Q.LargeBinary}static isUtf8(e){return e?.typeId===Q.Utf8}static isLargeUtf8(e){return e?.typeId===Q.LargeUtf8}static isBool(e){return e?.typeId===Q.Bool}static isDecimal(e){return e?.typeId===Q.Decimal}static isDate(e){return e?.typeId===Q.Date}static isTime(e){return e?.typeId===Q.Time}static isTimestamp(e){return e?.typeId===Q.Timestamp}static isInterval(e){return e?.typeId===Q.Interval}static isDuration(e){return e?.typeId===Q.Duration}static isList(e){return e?.typeId===Q.List}static isStruct(e){return e?.typeId===Q.Struct}static isUnion(e){return e?.typeId===Q.Union}static isFixedSizeBinary(e){return e?.typeId===Q.FixedSizeBinary}static isFixedSizeList(e){return e?.typeId===Q.FixedSizeList}static isMap(e){return e?.typeId===Q.Map}static isDictionary(e){return e?.typeId===Q.Dictionary}static isDenseUnion(t){return e.isUnion(t)&&t.mode===WZ.Dense}static isSparseUnion(t){return e.isUnion(t)&&t.mode===WZ.Sparse}constructor(e){this.typeId=e}};ZQ=Symbol.toStringTag,$[ZQ]=(e=>(e.children=null,e.ArrayType=Array,e.OffsetArrayType=Int32Array,e[Symbol.toStringTag]=`DataType`))($.prototype);var y$=class extends ${constructor(){super(Q.Null)}toString(){return`Null`}};QQ=Symbol.toStringTag,y$[QQ]=(e=>e[Symbol.toStringTag]=`Null`)(y$.prototype);var b$=class extends ${constructor(e,t){super(Q.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?`I`:`Ui`}nt${this.bitWidth}`}};$Q=Symbol.toStringTag,b$[$Q]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]=`Int`))(b$.prototype);var x$=class extends b${constructor(){super(!0,8)}get ArrayType(){return Int8Array}},S$=class extends b${constructor(){super(!0,16)}get ArrayType(){return Int16Array}},C$=class extends b${constructor(){super(!0,32)}get ArrayType(){return Int32Array}},w$=class extends b${constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},T$=class extends b${constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},E$=class extends b${constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},D$=class extends b${constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},O$=class extends b${constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(x$.prototype,`ArrayType`,{value:Int8Array}),Object.defineProperty(S$.prototype,`ArrayType`,{value:Int16Array}),Object.defineProperty(C$.prototype,`ArrayType`,{value:Int32Array}),Object.defineProperty(w$.prototype,`ArrayType`,{value:BigInt64Array}),Object.defineProperty(T$.prototype,`ArrayType`,{value:Uint8Array}),Object.defineProperty(E$.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(D$.prototype,`ArrayType`,{value:Uint32Array}),Object.defineProperty(O$.prototype,`ArrayType`,{value:BigUint64Array});var k$=class extends ${constructor(e){super(Q.Float),this.precision=e}get ArrayType(){switch(this.precision){case GZ.HALF:return Uint16Array;case GZ.SINGLE:return Float32Array;case GZ.DOUBLE:return Float64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};e$=Symbol.toStringTag,k$[e$]=(e=>(e.precision=null,e[Symbol.toStringTag]=`Float`))(k$.prototype);var JSe=class extends k${constructor(){super(GZ.HALF)}},A$=class extends k${constructor(){super(GZ.SINGLE)}},j$=class extends k${constructor(){super(GZ.DOUBLE)}};Object.defineProperty(JSe.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(A$.prototype,`ArrayType`,{value:Float32Array}),Object.defineProperty(j$.prototype,`ArrayType`,{value:Float64Array});var M$=class extends ${constructor(){super(Q.Binary)}toString(){return`Binary`}};t$=Symbol.toStringTag,M$[t$]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Binary`))(M$.prototype);var N$=class extends ${constructor(){super(Q.LargeBinary)}toString(){return`LargeBinary`}};n$=Symbol.toStringTag,N$[n$]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeBinary`))(N$.prototype);var P$=class extends ${constructor(){super(Q.Utf8)}toString(){return`Utf8`}};r$=Symbol.toStringTag,P$[r$]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Utf8`))(P$.prototype);var F$=class extends ${constructor(){super(Q.LargeUtf8)}toString(){return`LargeUtf8`}};i$=Symbol.toStringTag,F$[i$]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeUtf8`))(F$.prototype);var I$=class extends ${constructor(){super(Q.Bool)}toString(){return`Bool`}};a$=Symbol.toStringTag,I$[a$]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Bool`))(I$.prototype);var L$=class extends ${constructor(e,t,n=128){super(Q.Decimal),this.scale=e,this.precision=t,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?`+`:``}${this.scale}]`}};o$=Symbol.toStringTag,L$[o$]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]=`Decimal`))(L$.prototype);var R$=class extends ${constructor(e){super(Q.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${KZ[this.unit]}>`}get ArrayType(){return this.unit===KZ.DAY?Int32Array:BigInt64Array}};s$=Symbol.toStringTag,R$[s$]=(e=>(e.unit=null,e[Symbol.toStringTag]=`Date`))(R$.prototype);var z$=class extends ${constructor(e,t){super(Q.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${qZ[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};c$=Symbol.toStringTag,z$[c$]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]=`Time`))(z$.prototype);var B$=class extends ${constructor(e,t){super(Q.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${qZ[this.unit]}${this.timezone?`, ${this.timezone}`:``}>`}};l$=Symbol.toStringTag,B$[l$]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Timestamp`))(B$.prototype);var V$=class extends ${constructor(e){super(Q.Interval),this.unit=e}toString(){return`Interval<${JZ[this.unit]}>`}};u$=Symbol.toStringTag,V$[u$]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]=`Interval`))(V$.prototype);var H$=class extends ${constructor(e){super(Q.Duration),this.unit=e}toString(){return`Duration<${qZ[this.unit]}>`}};d$=Symbol.toStringTag,H$[d$]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Duration`))(H$.prototype);var U$=class extends ${constructor(e){super(Q.List),this.children=[e]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};f$=Symbol.toStringTag,U$[f$]=(e=>(e.children=null,e[Symbol.toStringTag]=`List`))(U$.prototype);var W$=class extends ${constructor(e){super(Q.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};p$=Symbol.toStringTag,W$[p$]=(e=>(e.children=null,e[Symbol.toStringTag]=`Struct`))(W$.prototype);var G$=class extends ${constructor(e,t,n){super(Q.Union),this.mode=e,this.children=n,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((e,t,n
163)=>(e[t]=n)&&e||e,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(` | `)}>`}};m$=Symbol.toStringTag,G$[m$]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]=`Union`))(G$.prototype);var K$=class extends ${constructor(e){super(Q.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};h$=Symbol.toStringTag,K$[h$]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`FixedSizeBinary`))(K$.prototype);var q$=class extends ${constructor(e,t){super(Q.FixedSizeList),this.listSize=e,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};g$=Symbol.toStringTag,q$[g$]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]=`FixedSizeList`))(q$.prototype);var J$=class extends ${constructor(e,t=!1){if(super(Q.Map),this.children=[e],this.keysSorted=t,e&&(e.name=`entries`,e?.type?.children)){let t=(e?.type)?.children[0];t&&(t.name=`key`);let n=(e?.type)?.children[1];n&&(n.name=`value`)}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};_$=Symbol.toStringTag,J$[_$]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]=`Map_`))(J$.prototype);var YSe=(e=>()=>++e)(-1),Y$=class extends ${constructor(e,t,n,r){super(Q.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=r||!1,this.id=n==null?YSe():zQ(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};v$=Symbol.toStringTag,Y$[v$]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]=`Dictionary`))(Y$.prototype);function X$(e){let t=e;switch(e.typeId){case Q.Decimal:return e.bitWidth/32;case Q.Interval:return t.unit===JZ.MONTH_DAY_NANO?4:1+t.unit;case Q.FixedSizeList:return t.listSize;case Q.FixedSizeBinary:return t.byteWidth;default:return 1}}var Z$=class{visitMany(e,...t){return e.map((e,n)=>this.visit(e,...t.map(e=>e[n])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return XSe(this,e,t)}getVisitFnByTypeId(e,t=!0){return Q$(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitLargeUtf8(e,...t){return null}visitBinary(e,...t){return null}visitLargeBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitDuration(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}};function XSe(e,t,n=!0){return typeof t==`number`?Q$(e,t,n):typeof t==`string`&&t in Q?Q$(e,Q[t],n):t&&t instanceof $?Q$(e,$$(t),n):t?.type&&t.type instanceof $?Q$(e,$$(t.type),n):Q$(e,Q.NONE,n)}function Q$(e,t,n=!0){let r=null;switch(t){case Q.Null:r=e.visitNull;break;case Q.Bool:r=e.visitBool;break;case Q.Int:r=e.visitInt;break;case Q.Int8:r=e.visitInt8||e.visitInt;break;case Q.Int16:r=e.visitInt16||e.visitInt;break;case Q.Int32:r=e.visitInt32||e.visitInt;break;case Q.Int64:r=e.visitInt64||e.visitInt;break;case Q.Uint8:r=e.visitUint8||e.visitInt;break;case Q.Uint16:r=e.visitUint16||e.visitInt;break;case Q.Uint32:r=e.visitUint32||e.visitInt;break;case Q.Uint64:r=e.visitUint64||e.visitInt;break;case Q.Float:r=e.visitFloat;break;case Q.Float16:r=e.visitFloat16||e.visitFloat;break;case Q.Float32:r=e.visitFloat32||e.visitFloat;break;case Q.Float64:r=e.visitFloat64||e.visitFloat;break;case Q.Utf8:r=e.visitUtf8;break;case Q.LargeUtf8:r=e.visitLargeUtf8;break;case Q.Binary:r=e.visitBinary;break;case Q.LargeBinary:r=e.visitLargeBinary;break;case Q.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case Q.Date:r=e.visitDate;break;case Q.DateDay:r=e.visitDateDay||e.visitDate;break;case Q.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case Q.Timestamp:r=e.visitTimestamp;break;case Q.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case Q.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case Q.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case Q.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case Q.Time:r=e.visitTime;break;case Q.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case Q.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case Q.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case Q.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;
163case Q.Decimal:r=e.visitDecimal;break;case Q.List:r=e.visitList;break;case Q.Struct:r=e.visitStruct;break;case Q.Union:r=e.visitUnion;break;case Q.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case Q.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case Q.Dictionary:r=e.visitDictionary;break;case Q.Interval:r=e.visitInterval;break;case Q.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case Q.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case Q.IntervalMonthDayNano:r=e.visitIntervalMonthDayNano||e.visitInterval;break;case Q.Duration:r=e.visitDuration;break;case Q.DurationSecond:r=e.visitDurationSecond||e.visitDuration;break;case Q.DurationMillisecond:r=e.visitDurationMillisecond||e.visitDuration;break;case Q.DurationMicrosecond:r=e.visitDurationMicrosecond||e.visitDuration;break;case Q.DurationNanosecond:r=e.visitDurationNanosecond||e.visitDuration;break;case Q.FixedSizeList:r=e.visitFixedSizeList;break;case Q.Map:r=e.visitMap;break}if(typeof r==`function`)return r;if(!n)return()=>null;throw Error(`Unrecognized type '${Q[t]}'`)}function $$(e){switch(e.typeId){case Q.Null:return Q.Null;case Q.Int:{let{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?Q.Int8:Q.Uint8;case 16:return n?Q.Int16:Q.Uint16;case 32:return n?Q.Int32:Q.Uint32;case 64:return n?Q.Int64:Q.Uint64}return Q.Int}case Q.Float:switch(e.precision){case GZ.HALF:return Q.Float16;case GZ.SINGLE:return Q.Float32;case GZ.DOUBLE:return Q.Float64}return Q.Float;case Q.Binary:return Q.Binary;case Q.LargeBinary:return Q.LargeBinary;case Q.Utf8:return Q.Utf8;case Q.LargeUtf8:return Q.LargeUtf8;case Q.Bool:return Q.Bool;case Q.Decimal:return Q.Decimal;case Q.Time:switch(e.unit){case qZ.SECOND:return Q.TimeSecond;case qZ.MILLISECOND:return Q.TimeMillisecond;case qZ.MICROSECOND:return Q.TimeMicrosecond;case qZ.NANOSECOND:return Q.TimeNanosecond}return Q.Time;case Q.Timestamp:switch(e.unit){case qZ.SECOND:return Q.TimestampSecond;case qZ.MILLISECOND:return Q.TimestampMillisecond;case qZ.MICROSECOND:return Q.TimestampMicrosecond;case qZ.NANOSECOND:return Q.TimestampNanosecond}return Q.Timestamp;case Q.Date:switch(e.unit){case KZ.DAY:return Q.DateDay;case KZ.MILLISECOND:return Q.DateMillisecond}return Q.Date;case Q.Interval:switch(e.unit){case JZ.DAY_TIME:return Q.IntervalDayTime;case JZ.YEAR_MONTH:return Q.IntervalYearMonth;case JZ.MONTH_DAY_NANO:return Q.IntervalMonthDayNano}return Q.Interval;case Q.Duration:switch(e.unit){case qZ.SECOND:return Q.DurationSecond;case qZ.MILLISECOND:return Q.DurationMillisecond;case qZ.MICROSECOND:return Q.DurationMicrosecond;case qZ.NANOSECOND:return Q.DurationNanosecond}return Q.Duration;case Q.Map:return Q.Map;case Q.List:return Q.List;case Q.Struct:return Q.Struct;case Q.Union:switch(e.mode){case WZ.Dense:return Q.DenseUnion;case WZ.Sparse:return Q.SparseUnion}return Q.Union;case Q.FixedSizeBinary:return Q.FixedSizeBinary;case Q.FixedSizeList:return Q.FixedSizeList;case Q.Dictionary:return Q.Dictionary}throw Error(`Unrecognized type '${Q[e.typeId]}'`)}Z$.prototype.visitInt8=null,Z$.prototype.visitInt16=null,Z$.prototype.visitInt32=null,Z$.prototype.visitInt64=null,Z$.prototype.visitUint8=null,Z$.prototype.visitUint16=null,Z$.prototype.visitUint32=null,Z$.prototype.visitUint64=null,Z$.prototype.visitFloat16=null,Z$.prototype.visitFloat32=null,Z$.prototype.visitFloat64=null,Z$.prototype.visitDateDay=null,Z$.prototype.visitDateMillisecond=null,Z$.prototype.visitTimestampSecond=null,Z$.prototype.visitTimestampMillisecond=null,Z$.prototype.visitTimestampMicrosecond=null,Z$.prototype.visitTimestampNanosecond=null,Z$.prototype.visitTimeSecond=null,Z$.prototype.visitTimeMillisecond=null,Z$.prototype.visitTimeMicrosecond=null,Z$.prototype.visitTimeNanosecond=null,Z$.prototype.visitDenseUnion=null,Z$.prototype.visitSparseUnion=null,Z$.prototype.visitIntervalDayTime=null,Z$.prototype.visitIntervalYearMonth=null,Z$.prototype.visitIntervalMonthDayNano=null,Z$.prototype.visitDuration=null,Z$.prototype.visitDurationSecond=null,Z$.prototype.visitDurationMillisecond=null,Z$.prototype.visitDurationMicrosecond=null,Z$.prototype.visitDurationNanosecond=null;var ZSe=c({float64ToUint16:()=>r1,uint16ToFloat64:()=>n1}),e1=new Float64Array(1),t1=new Uint32Array(e1.buffer);function n1(e){let t=(e&31744)>>10,n=(e&1023)/1024,r=(-1)**((e&32768)>>15);switch(t){case 31:return r*(n?NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*2**(t-15)*(1+n)}function r1(e){if(e!==e)return 32256;e1[0]=e;let t=(t1[1]&2147483648)>>16&65535,n=t1[1]&2146435072,r=0;return n>=1089470464?t1[0]>0?n=31744:(n=(n&2080374784)>>16,r=(t1[1]&1048575)>>10):n<=1056964608?(r=1048576+(t1[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(t1[1]&1048575)+512>>10),t|n|r&65535}var i1=class extends Z${};function a1(e){return(t,n,r)=>{if(t.setValid(n,r!=null))return e(t,n,r)}}var QSe=(e,t,n)=>{e[t]=Math.floor(n/864e5)},o1=(e,t,n,r)=>{if(n+1<t.length){let i=zQ(t[n]),a=zQ(t[n+1]);e.set(r.subarray(0,a-i),i)}},$Se=({offset:e,values:t},n,r)=>
vendor: 5,899 bytes, line 163
163{let i=e+n;r?t[i>>3]|=1<<i%8:t[i>>3]&=~(1<<i%8)},s1=({values:e},t,n)=>{e[t]=n},c1=({values:e},t,n)=>{e[t]=n},l1=({values:e},t,n)=>{e[t]=r1(n)},eCe=(e,t,n)=>{switch(e.type.precision){case GZ.HALF:return l1(e,t,n);case GZ.SINGLE:case GZ.DOUBLE:return c1(e,t,n)}},u1=({values:e},t,n)=>{QSe(e,t,n.valueOf())},d1=({values:e},t,n)=>{e[t]=BigInt(n)},tCe=({stride:e,values:t},n,r)=>{t.set(r.subarray(0,e),e*n)},f1=({values:e,valueOffsets:t},n,r)=>o1(e,t,n,r),p1=({values:e,valueOffsets:t},n,r)=>o1(e,t,n,mZ(r)),nCe=(e,t,n)=>{e.type.unit===KZ.DAY?u1(e,t,n):d1(e,t,n)},m1=({values:e},t,n)=>{e[t]=BigInt(n/1e3)},h1=({values:e},t,n)=>{e[t]=BigInt(n)},g1=({values:e},t,n)=>{e[t]=BigInt(n*1e3)},_1=({values:e},t,n)=>{e[t]=BigInt(n*1e6)},rCe=(e,t,n)=>{switch(e.type.unit){case qZ.SECOND:return m1(e,t,n);case qZ.MILLISECOND:return h1(e,t,n);case qZ.MICROSECOND:return g1(e,t,n);case qZ.NANOSECOND:return _1(e,t,n)}},v1=({values:e},t,n)=>{e[t]=n},y1=({values:e},t,n)=>{e[t]=n},b1=({values:e},t,n)=>{e[t]=n},x1=({values:e},t,n)=>{e[t]=n},iCe=(e,t,n)=>{switch(e.type.unit){case qZ.SECOND:return v1(e,t,n);case qZ.MILLISECOND:return y1(e,t,n);case qZ.MICROSECOND:return b1(e,t,n);case qZ.NANOSECOND:return x1(e,t,n)}},aCe=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},oCe=(e,t,n)=>{let r=e.children[0],i=e.valueOffsets,a=j1.getVisitFn(r);if(Array.isArray(n))for(let e=-1,o=i[t],s=i[t+1];o<s;)a(r,o++,n[++e]);else for(let e=-1,o=i[t],s=i[t+1];o<s;)a(r,o++,n.get(++e))},sCe=(e,t,n)=>{let r=e.children[0],{valueOffsets:i}=e,a=j1.getVisitFn(r),{[t]:o,[t+1]:s}=i,c=n instanceof Map?n.entries():Object.entries(n);for(let e of c)if(a(r,o,e),++o>=s)break},cCe=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[a]),lCe=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(a)),uCe=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(i.name)),dCe=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[i.name]),fCe=(e,t,n)=>{let r=e.type.children.map(e=>j1.getVisitFn(e.type)),i=n instanceof Map?uCe(t,n):n instanceof Y0?lCe(t,n):Array.isArray(n)?cCe(t,n):dCe(t,n);e.type.children.forEach((t,n)=>i(r[n],e.children[n],t,n))},pCe=(e,t,n)=>{e.type.mode===WZ.Dense?S1(e,t,n):C1(e,t,n)},S1=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];j1.visit(i,e.valueOffsets[t],n)},C1=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];j1.visit(i,t,n)},mCe=(e,t,n)=>{var r;(r=e.dictionary)==null||r.set(e.values[t],n)},hCe=(e,t,n)=>{switch(e.type.unit){case JZ.YEAR_MONTH:return T1(e,t,n);case JZ.DAY_TIME:return w1(e,t,n);case JZ.MONTH_DAY_NANO:return E1(e,t,n)}},w1=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},T1=({values:e},t,n)=>{e[t]=n[0]*12+n[1]%12},E1=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},D1=({values:e},t,n)=>{e[t]=n},O1=({values:e},t,n)=>{e[t]=n},k1=({values:e},t,n)=>{e[t]=n},A1=({values:e},t,n)=>{e[t]=n},gCe=(e,t,n)=>{switch(e.type.unit){case qZ.SECOND:return D1(e,t,n);case qZ.MILLISECOND:return O1(e,t,n);case qZ.MICROSECOND:return k1(e,t,n);case qZ.NANOSECOND:return A1(e,t,n)}},_Ce=(e,t,n)=>{let{stride:r}=e,i=e.children[0],a=j1.getVisitFn(i);if(Array.isArray(n))for(let e=-1,o=t*r;++e<r;)a(i,o+e,n[e]);else for(let e=-1,o=t*r;++e<r;)a(i,o+e,n.get(e))};i1.prototype.visitBool=a1($Se),i1.prototype.visitInt=a1(s1),i1.prototype.visitInt8=a1(s1),i1.prototype.visitInt16=a1(s1),i1.prototype.visitInt32=a1(s1),i1.prototype.visitInt64=a1(s1),i1.prototype.visitUint8=a1(s1),i1.prototype.visitUint16=a1(s1),i1.prototype.visitUint32=a1(s1),i1.prototype.visitUint64=a1(s1),i1.prototype.visitFloat=a1(eCe),i1.prototype.visitFloat16=a1(l1),i1.prototype.visitFloat32=a1(c1),i1.prototype.visitFloat64=a1(c1),i1.prototype.visitUtf8=a1(p1),i1.prototype.visitLargeUtf8=a1(p1),i1.prototype.visitBinary=a1(f1),i1.prototype.visitLargeBinary=a1(f1),i1.prototype.visitFixedSizeBinary=a1(tCe),i1.prototype.visitDate=a1(nCe),i1.prototype.visitDateDay=a1(u1),i1.prototype.visitDateMillisecond=a1(d1),i1.prototype.visitTimestamp=a1(rCe),i1.prototype.visitTimestampSecond=a1(m1),i1.prototype.visitTimestampMillisecond=a1(h1),i1.prototype.visitTimestampMicrosecond=a1(g1),i1.prototype.visitTimestampNanosecond=a1(_1),i1.prototype.visitTime=a1(iCe),i1.prototype.visitTimeSecond=a1(v1),i1.prototype.visitTimeMillisecond=a1(y1),i1.prototype.visitTimeMicrosecond=a1(b1),i1.prototype.visitTimeNanosecond=a1(x1),i1.prototype.visitDecimal=a1(aCe),i1.prototype.visitList=a1(oCe),i1.prototype.visitStruct=a1(fCe),i1.prototype.visitUnion=a1(pCe),i1.prototype.visitDenseUnion=a1(S1),i1.prototype.visitSparseUnion=a1(C1),i1.prototype.visitDictionary=a1(mCe),i1.prototype.visitInterval=a1(hCe),i1.prototype.visitIntervalDayTime=a1(w1),i1.prototype.visitIntervalYearMonth=a1(T1),i1.prototype.visitIntervalMonthDayNano=a1(E1),i1.prototype.visitDuration=a1(gCe),i1.prototype.visitDurationSecond=a1(D1),i1.prototype.visitDurationMillisecond=a1(O1),i1.prototype.visitDurationMicrosecond=a1(k1),i1.prototype.visitDurationNanosecond=a1(A1),i1.prototype.visitFixedSizeList=a1(_Ce),i1.prototype.visitMap=a1(sCe);var j1=new i1,M1=Symbol.for(`parent`),N1=Symbol.for(`rowIndex`),P1=class{constructor(e,t){return this[M1]=e,this[N1]=t,new Proxy(this,yCe)}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[N1],t=this[M1],n=t.type.children,r={};for(let i=-1,a=n.length;++i<a;)r[n[i].name]=s0.visit(t.children[i],e);return r}toString(){return`{${[...this].map(([e,t])=>`${RQ(e)}: ${RQ(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}[Symbol.iterator](){return new vCe(this[M1],this[N1])}},vCe=class{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let e=this.childIndex;return e<this.numChildren?(this.childIndex=e+1,{done:!1,value:[this.childFields[e].name,s0.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}};Object.defineProperties(P1.prototype,{[Symbol.toStringTag]:{enumerable:!1,
163configurable:!1,value:`Row`},[M1]:{writable:!0,enumerable:!1,configurable:!1,value:null},[N1]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});var yCe=new class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[M1].type.children.map(e=>e.name)}has(e,t){return e[M1].type.children.some(e=>e.name===t)}getOwnPropertyDescriptor(e,t){if(e[M1].type.children.some(e=>e.name===t))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let n=e[M1].type.children.findIndex(e=>e.name===t);if(n!==-1){let r=s0.visit(e[M1].children[n],e[N1]);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[M1].type.children.findIndex(e=>e.name===t);return r===-1?Reflect.has(e,t)||typeof t==`symbol`?Reflect.set(e,t,n):!1:(j1.visit(e[M1].children[r],e[N1],n),Reflect.set(e,t,n))}},F1=class extends Z${};function I1(e){return(t,n)=>t.getValid(n)?e(t,n):null}var bCe=(e,t)=>864e5*e[t],xCe=(e,t)=>null,L1=(e,t,n)=>{if(n+1>=t.length)return null;let r=zQ(t[n]),i=zQ(t[n+1]);return e.subarray(r,i)},SCe=({offset:e,values:t},n)=>{let r=e+n;return(t[r>>3]&1<<r%8)!=0},R1=({values:e},t)=>bCe(e,t),z1=({values:e},t)=>zQ(e[t]),B1=({stride:e,values:t},n)=>t[e*n],CCe=({stride:e,values:t},n)=>n1(t[e*n]),V1=({values:e},t)=>e[t],wCe=({stride:e,values:t},n)=>t.subarray(e*n,e*(n+1)),H1=({values:e,valueOffsets:t},n)=>L1(e,t,n),U1=({values:e,valueOffsets:t},n)=>{let r=L1(e,t,n);return r===null?null:pZ(r)},TCe=({values:e},t)=>e[t],ECe=({type:e,values:t},n)=>e.precision===GZ.HALF?n1(t[n]):t[n],DCe=(e,t)=>e.type.unit===KZ.DAY?R1(e,t):z1(e,t),W1=({values:e},t)=>1e3*zQ(e[t]),G1=({values:e},t)=>zQ(e[t]),K1=({values:e},t)=>BQ(e[t],BigInt(1e3)),q1=({values:e},t)=>BQ(e[t],BigInt(1e6)),OCe=(e,t)=>{switch(e.type.unit){case qZ.SECOND:return W1(e,t);case qZ.MILLISECOND:return G1(e,t);case qZ.MICROSECOND:return K1(e,t);case qZ.NANOSECOND:return q1(e,t)}},J1=({values:e},t)=>e[t],Y1=({values:e},t)=>e[t],X1=({values:e},t)=>e[t],Z1=({values:e},t)=>e[t],kCe=(e,t)=>{switch(e.type.unit){case qZ.SECOND:return J1(e,t);case qZ.MILLISECOND:return Y1(e,t);case qZ.MICROSECOND:return X1(e,t);case qZ.NANOSECOND:return Z1(e,t)}},ACe=({values:e,stride:t},n)=>XQ.decimal(e.subarray(t*n,t*(n+1))),jCe=(e,t)=>{let{valueOffsets:n,stride:r,children:i}=e,{[t*r]:a,[t*r+1]:o}=n;return new Y0([i[0].slice(a,o-a)])},MCe=(e,t)=>{let{valueOffsets:n,children:r}=e,{[t]:i,[t+1]:a}=n,o=r[0];return new f0(o.slice(i,a-i))},NCe=(e,t)=>new P1(e,t),PCe=(e,t)=>e.type.mode===WZ.Dense?Q1(e,t):$1(e,t),Q1=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return s0.visit(r,e.valueOffsets[t])},$1=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return s0.visit(r,t)},FCe=(e,t)=>e.dictionary?.get(e.values[t]),ICe=(e,t)=>e.type.unit===JZ.MONTH_DAY_NANO?n0(e,t):e.type.unit===JZ.DAY_TIME?e0(e,t):t0(e,t),e0=({values:e},t)=>e.subarray(2*t,2*(t+1)),t0=({values:e},t)=>{let n=e[t],r=new Int32Array(2);return r[0]=Math.trunc(n/12),r[1]=Math.trunc(n%12),r},n0=({values:e},t)=>e.subarray(4*t,4*(t+1)),r0=({values:e},t)=>e[t],i0=({values:e},t)=>e[t],a0=({values:e},t)=>e[t],o0=({values:e},t)=>e[t],LCe=(e,t)=>{switch(e.type.unit){case qZ.SECOND:return r0(e,t);case qZ.MILLISECOND:return i0(e,t);case qZ.MICROSECOND:return a0(e,t);case qZ.NANOSECOND:return o0(e,t)}},RCe=(e,t)=>{let{stride:n,children:r}=e;return new Y0([r[0].slice(t*n,n)])};F1.prototype.visitNull=I1(xCe),F1.prototype.visitBool=I1(SCe),F1.prototype.visitInt=I1(TCe),F1.prototype.visitInt8=I1(B1),F1.prototype.visitInt16=I1(B1),F1.prototype.visitInt32=I1(B1),F1.prototype.visitInt64=I1(V1),F1.prototype.visitUint8=I1(B1),F1.prototype.visitUint16=I1(B1),F1.prototype.visitUint32=I1(B1),F1.prototype.visitUint64=I1(V1),F1.prototype.visitFloat=I1(ECe),F1.prototype.visitFloat16=I1(CCe),F1.prototype.visitFloat32=I1(B1),F1.prototype.visitFloat64=I1(B1),F1.prototype.visitUtf8=I1(U1),F1.prototype.visitLargeUtf8=I1(U1),F1.prototype.visitBinary=I1(H1),F1.prototype.visitLargeBinary=I1(H1),F1.prototype.visitFixedSizeBinary=I1(wCe),F1.prototype.visitDate=I1(DCe),F1.prototype.visitDateDay=I1(R1),F1.prototype.visitDateMillisecond=I1(z1),F1.prototype.visitTimestamp=I1(OCe),F1.prototype.visitTimestampSecond=I1(W1),F1.prototype.visitTimestampMillisecond=I1(G1),F1.prototype.visitTimestampMicrosecond=I1(K1),F1.prototype.visitTimestampNanosecond=I1(q1),F1.prototype.visitTime=I1(kCe),F1.prototype.visitTimeSecond=I1(J1),F1.prototype.visitTimeMillisecond=I1(Y1),F1.prototype.visitTimeMicrosecond=I1(X1),F1.prototype.visitTimeNanosecond=I1(Z1),F1.prototype.visitDecimal=I1(ACe),F1.prototype.visitList=I1(jCe),F1.prototype.visitStruct=I1(NCe),F1.prototype.visitUnion=I1(PCe),F1.prototype.visitDenseUnion=I1(Q1),F1.prototype.visitSparseUnion=I1($1),F1.prototype.visitDictionary=I1(FCe),F1.prototype.visitInterval=I1(ICe),F1.prototype.visitIntervalDayTime=I1(e0),F1.prototype.visitIntervalYearMonth=I1(t0),F1.prototype.visitIntervalMonthDayNano=I1(n0),F1.prototype.visitDuration=I1(LCe),F1.prototype.visitDurationSecond=I1(r0),F1.prototype.visitDurationMillisecond=I1(i0),F1.prototype.visitDurationMicrosecond=I1(a0),F1.prototype.visitDurationNanosecond=I1(o0),F1.prototype.visitFixedSizeList=I1(RCe),F1.prototype.visitMap=I1(MCe);var s0=new F1,c0=Symbol.for(`keys`),l0=Symbol.for(`vals`),u0=Symbol.for(`kKeysAsStrings`),d0=Symbol.for(`_kKeysAsStrings`),f0=class{constructor(e){return this[c0]=new Y0([e.children[0]]).memoize(),this[l0]=e.children[1],new Proxy(this,new BCe)}get[u0](){return this[d0]||(this[d0]=Array.from(this[c0].toArray(),String))}[Symbol.iterator](){return new zCe(this[c0],this[l0])}get size(){return this[c0].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[c0],t=this[l0],n={};for(let r=-1,i=e.length;++r<i;)n[e.get(r)]=s0.visit(t,r);return n}toString(){return`{${[...this].map(([e,t])=>`${RQ(e)}: ${RQ(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}},zCe=class{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKe
vendor: 4,855 bytes, line 163
163ys=e.length}[Symbol.iterator](){return this}next(){let e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),s0.visit(this.vals,e)]})}},BCe=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[u0]}has(e,t){return e[u0].includes(t)}getOwnPropertyDescriptor(e,t){if(e[u0].indexOf(t)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let n=e[u0].indexOf(t);if(n!==-1){let r=s0.visit(Reflect.get(e,l0),n);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[u0].indexOf(t);return r===-1?Reflect.has(e,t)?Reflect.set(e,t,n):!1:(j1.visit(Reflect.get(e,l0),r,n),Reflect.set(e,t,n))}};Object.defineProperties(f0.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:`Row`},[c0]:{writable:!0,enumerable:!1,configurable:!1,value:null},[l0]:{writable:!0,enumerable:!1,configurable:!1,value:null},[d0]:{writable:!0,enumerable:!1,configurable:!1,value:null}});var VCe=c({clampRange:()=>m0,createElementComparator:()=>_0,wrapIndex:()=>h0}),p0;function m0(e,t,n,r){let{length:i=0}=e,a=typeof t==`number`?t:0,o=typeof n==`number`?n:i;return a<0&&(a=(a%i+i)%i),o<0&&(o=(o%i+i)%i),o<a&&(p0=a,a=o,o=p0),o>i&&(o=i),r?r(e,a,o):[a,o]}var h0=(e,t)=>e<0?t+e:e,g0=e=>e!==e;function _0(e){if(typeof e!=`object`||!e)return g0(e)?g0:t=>t===e;if(e instanceof Date){let t=e.valueOf();return e=>e instanceof Date?e.valueOf()===t:!1}return ArrayBuffer.isView(e)?t=>t?zZ(e,t):!1:e instanceof Map?UCe(e):Array.isArray(e)?HCe(e):e instanceof Y0?WCe(e):GCe(e,!0)}function HCe(e){let t=[];for(let n=-1,r=e.length;++n<r;)t[n]=_0(e[n]);return v0(t)}function UCe(e){let t=-1,n=[];for(let r of e.values())n[++t]=_0(r);return v0(n)}function WCe(e){let t=[];for(let n=-1,r=e.length;++n<r;)t[n]=_0(e.get(n));return v0(t)}function GCe(e,t=!1){let n=Object.keys(e);if(!t&&n.length===0)return()=>!1;let r=[];for(let t=-1,i=n.length;++t<i;)r[t]=_0(e[n[t]]);return v0(r,n)}function v0(e,t){return n=>{if(!n||typeof n!=`object`)return!1;switch(n.constructor){case Array:return KCe(e,n);case Map:return y0(e,n,n.keys());case f0:case P1:case Object:case void 0:return y0(e,n,t||Object.keys(n))}return n instanceof Y0?qCe(e,n):!1}}function KCe(e,t){let n=e.length;if(t.length!==n)return!1;for(let r=-1;++r<n;)if(!e[r](t[r]))return!1;return!0}function qCe(e,t){let n=e.length;if(t.length!==n)return!1;for(let r=-1;++r<n;)if(!e[r](t.get(r)))return!1;return!0}function y0(e,t,n){let r=n[Symbol.iterator](),i=t instanceof Map?t.keys():Object.keys(t)[Symbol.iterator](),a=t instanceof Map?t.values():Object.values(t)[Symbol.iterator](),o=0,s=e.length,c=a.next(),l=r.next(),u=i.next();for(;o<s&&!l.done&&!u.done&&!c.done&&!(l.value!==u.value||!e[o](c.value));++o,l=r.next(),u=i.next(),c=a.next());return o===s&&l.done&&u.done&&c.done?!0:(r.return&&r.return(),i.return&&i.return(),a.return&&a.return(),!1)}var JCe=c({BitIterator:()=>w0,getBit:()=>x0,getBool:()=>b0,packBools:()=>C0,popcnt_array:()=>E0,popcnt_bit_range:()=>T0,popcnt_uint32:()=>D0,setBool:()=>YCe,truncateBitmap:()=>S0});function b0(e,t,n,r){return(n&1<<r)!=0}function x0(e,t,n,r){return(n&1<<r)>>r}function YCe(e,t,n){return n?!!(e[t>>3]|=1<<t%8)||!0:!(e[t>>3]&=~(1<<t%8))&&!1}function S0(e,t,n){let r=n.byteLength+7&-8;if(e>0||n.byteLength<r){let i=new Uint8Array(r);return i.set(e%8==0?n.subarray(e>>3):C0(new w0(n,e,t,null,b0)).subarray(0,r)),i}return n}function C0(e){let t=[],n=0,r=0,i=0;for(let a of e)a&&(i|=1<<r),++r===8&&(t[n++]=i,i=r=0);(n===0||r>0)&&(t[n++]=i);let a=new Uint8Array(t.length+7&-8);return a.set(t),a}var w0=class{constructor(e,t,n,r,i){this.bytes=e,this.length=n,this.context=r,this.get=i,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}};function T0(e,t,n){if(n-t<=0)return 0;if(n-t<8){let r=0;for(let i of new w0(e,t,n-t,e,x0))r+=i;return r}let r=n>>3<<3,i=t+(t%8==0?0:8-t%8);return T0(e,t,i)+T0(e,r,n)+E0(e,i>>3,r-i>>3)}function E0(e,t,n){let r=0,i=Math.trunc(t),a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=n===void 0?e.byteLength:i+n;for(;o-i>=4;)r+=D0(a.getUint32(i)),i+=4;for(;o-i>=2;)r+=D0(a.getUint16(i)),i+=2;for(;o-i>=1;)r+=D0(a.getUint8(i)),i+=1;return r}function D0(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}var O0=class e{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){let{type:e}=this;return $.isSparseUnion(e)||$.isDenseUnion(e)?this.children.some(e=>
163e.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0,{valueOffsets:t,values:n,nullBitmap:r,typeIds:i}=this;return t&&(e+=t.byteLength),n&&(e+=n.byteLength),r&&(e+=r.byteLength),i&&(e+=i.byteLength),this.children.reduce((e,t)=>e+t.byteLength,e)}get nullCount(){if($.isUnion(this.type))return this.children.reduce((e,t)=>e+t.nullCount,0);let e=this._nullCount,t;return e<=-1&&(t=this.nullBitmap)&&(this._nullCount=e=t.length===0?0:this.length-T0(t,this.offset,this.offset+this.length)),e}constructor(t,n,r,i,a,o=[],s){this.type=t,this.children=o,this.dictionary=s,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1));let c;a instanceof e?(this.stride=a.stride,this.values=a.values,this.typeIds=a.typeIds,this.nullBitmap=a.nullBitmap,this.valueOffsets=a.valueOffsets):(this.stride=X$(t),a&&((c=a[0])&&(this.valueOffsets=c),(c=a[1])&&(this.values=c),(c=a[2])&&(this.nullBitmap=c),(c=a[3])&&(this.typeIds=c)))}getValid(e){let{type:t}=this;if($.isUnion(t)){let n=t,r=this.children[n.typeIdToChildIndex[this.typeIds[e]]],i=n.mode===WZ.Dense?this.valueOffsets[e]:e;return r.getValid(i)}if(this.nullable&&this.nullCount>0){let t=this.offset+e;return(this.nullBitmap[t>>3]&1<<t%8)!=0}return!0}setValid(e,t){let n,{type:r}=this;if($.isUnion(r)){let i=r,a=this.children[i.typeIdToChildIndex[this.typeIds[e]]],o=i.mode===WZ.Dense?this.valueOffsets[e]:e;n=a.getValid(o),a.setValid(o,t)}else{let{nullBitmap:r}=this,{offset:i,length:a}=this,o=i+e,s=1<<o%8,c=o>>3;(!r||r.byteLength<=c)&&(r=new Uint8Array((i+a+63&-64)>>3).fill(255),this.nullCount>0?(r.set(S0(i,a,this.nullBitmap),0),Object.assign(this,{nullBitmap:r})):Object.assign(this,{nullBitmap:r,_nullCount:0}));let l=r[c];n=(l&s)!==0,r[c]=t?l|s:l&~s}return n!==!!t&&(this._nullCount=this.nullCount+(t?-1:1)),t}clone(t=this.type,n=this.offset,r=this.length,i=this._nullCount,a=this,o=this.children){return new e(t,n,r,i,a,o,this.dictionary)}slice(e,t){let{stride:n,typeId:r,children:i}=this,a=(this._nullCount===0)-1,o=r===16?n:1,s=this._sliceBuffers(e,t,n,r);return this.clone(this.type,this.offset+e,t,a,s,i.length===0||this.valueOffsets?i:this._sliceChildren(i,o*e,o*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===Q.Null)return this.clone(this.type,0,e,0);let{length:t,nullCount:n}=this,r=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);r[t>>3]=(1<<t-(t&-8))-1,n>0&&r.set(S0(this.offset,t,this.nullBitmap),0);let i=this.buffers;return i[LQ.VALIDITY]=r,this.clone(this.type,0,e,n+(e-t),i)}_sliceBuffers(e,t,n,r){let i,{buffers:a}=this;return(i=a[LQ.TYPE])&&(a[LQ.TYPE]=i.subarray(e,e+t)),(i=a[LQ.OFFSET])&&(a[LQ.OFFSET]=i.subarray(e,e+t+1))||(i=a[LQ.DATA])&&(a[LQ.DATA]=r===6?i:i.subarray(n*e,n*(e+t))),a}_sliceChildren(e,t,n){return e.map(e=>e.slice(t,n))}};O0.prototype.children=Object.freeze([]);var XCe=new class e extends Z${visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{type:t,offset:n=0,length:r=0}=e;return new O0(t,n,r,r)}visitBool(e){let{type:t,offset:n=0}=e,r=NZ(e.nullBitmap),i=AZ(t.ArrayType,e.data),{length:a=i.length>>3,nullCount:o=e.nullBitmap?-1:0}=e;return new O0(t,n,a,o,[void 0,i,r])}visitInt(e){let{type:t,offset:n=0}=e,r=NZ(e.nullBitmap),i=AZ(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new O0(t,n,a,o,[void 0,i,r])}visitFloat(e){let{type:t,offset:n=0}=e,r=NZ(e.nullBitmap),i=AZ(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new O0(t,n,a,o,[void 0,i,r])}visitUtf8(e){let{type:t,offset:n=0}=e,r=NZ(e.data),i=NZ(e.nullBitmap),a=jZ(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new O0(t,n,o,s,[a,r,i])}visitLargeUtf8(e){let{type:t,offset:n=0}=e,r=NZ(e.data),i=NZ(e.nullBitmap),a=MZ(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new O0(t,n,o,s,[a,r,i])}visitBinary(e){let{type:t,offset:n=0}=e,r=NZ(e.data),i=NZ(e.nullBitmap),a=jZ(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new O0(t,n,o,s,[a,r,i])}visitLargeBinary(e){let{type:t,offset:n=0}=e,r=NZ(e.data),i=NZ(e.nullBitmap),a=MZ(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new O0(t,n,o,s,[a,r,i])}visitFixedSizeBinary(e){let{type:t,offset:n=0}=e,r=NZ(e.nullBitmap),i=AZ(t.ArrayType,e.data),{length:a=i.length/X$(t),nullCount:o=e.nullBitmap?-1:0}=e;return new O0(t,n,a,o,[void 0,i,r])}visitDate(e){let{type:t,offset:n=0}=e,r=NZ(e.nullBitmap),i=AZ(t.ArrayType,e.data),{length:a=i.length/X$(t),nullCount:o=e.nullBitmap?-1:0}=e;return new O0(t,n,a,o,[void 0,i,r])}visitTimestamp(e){let{type:t,offset:n=0}=e,r=NZ(e.nullBitmap),i=AZ(t.ArrayType,e.data),{length:a=i.length/X$(t),nullCount:o=e.nullBitmap?-1:0}=e;return new O0(t,n,a,o,[void 0,i,r])}visitTime(e){let{type:t,offset:n=0}=e,r=NZ(e.nullBitmap),i=AZ(t.ArrayType,e.data),{length:a=i.length/X$(t),nullCount:o=e.nullBitmap?-1:0}=e;return new O0(t,n,a,o,[void 0,i,r])}visitDecimal(e){let{type:t,offset:n=0}=e,r=NZ(e.nullBitmap),i=AZ(t.ArrayType,e.data),{length:a=i.length/X$(t),nullCount:o=e.nullBitmap?-1:0}=e;return new O0(t,n,a,o,[void 0,i,r])}visitList(e){let{type:t,offset:n=0,child:r}=e,i=NZ(e.nullBitmap),a=jZ(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new O0(t,n,o,s,[a,void 0,i],[r])}visitStruct(e){let{type:t,offset:n=0,children:r=[]}=e,i=NZ(e.nullBitmap),{length:a=r.reduce((e,{length:t})=>Math.max(e,t),0),nullCount:o=e.nullBitmap?-1:0}=e;return new O0(t,n,a,o,[void 0,void 0,i],r)}visitUnion(e){let{type:t,offset:n=0,children:r=[]}=e,i=AZ(t.ArrayType,e.typeIds),{length:a=i.length,nullCount:o=-1}=e;return $.isSparseUnion(t)?new O0(t,n,a,o,[void 0,void 0,void 0,i],r):new O0(t,n,a,o,[jZ(e.valueOffsets),void 0,void 0,i],r)}visitDictionary(t){let{type:n,offset:r=0}=t,i=NZ(t.nullBitmap),a=AZ(n.indices.ArrayType,t.data),{dictionary:o=new Y0([new e().visit({type:n.dictionary})])}=t,{length:s=a.length,nullCount:c=t.nullBitmap?-1:0}=t;return new O0(n,r,s,c,[void 0,a,i],[],o)}visitInterval(e){let{type:t,offset:n=0}=e,r=NZ(e.nullBitmap),i=AZ(t.ArrayType,e.data),{length:a=i.length/X$(t),nullCount:o=e.nullBitmap?-1:0}=e;return new O0(t,n,a,o,[void 0,i,r])}visitDuration(e){let{type:t,offset:n=0}=e,r=NZ(e.nullBitmap),i=AZ(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new O0(t,n,a,o,[void 0,i,r])}visitFixedSizeList(t){let{type:n,offset:r=0,child:i=new e().visit({type:n.valueType})}=t,a=NZ(t.nullBitmap),{length:o=i.length/X$(n),nullCount:s=t.nullBitmap?-1:0}=t;return new O0(n,r,o,s,[void 0,void 0,a],[i])}visitMap(t){let{type:n,offset:r=0,child:i=new e().visit({type:n.childType})}=t,a=NZ(t.nullBitmap),o=jZ(t.valueOffsets),{length:s=o.length-1,nullCount:c=t.nullBitmap?-1:0}=t;return new O0(n,r,s,c,[o,void 0,a],[i])}};function k0(e){return XCe.visit(e)}var A0=class{constructor(e=0,t){this.numChunks=e,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){let e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}};function ZCe(e){return e.some(e=>e.nullable)}function j0(e){return e.reduce((e,t)=>
vendor: 6,230 bytes, line 163
163e+t.nullCount,0)}function M0(e){return e.reduce((e,t,n)=>(e[n+1]=e[n]+t.length,e),new Uint32Array(e.length+1))}function N0(e,t,n,r){let i=[];for(let a=-1,o=e.length;++a<o;){let o=e[a],s=t[a],{length:c}=o;if(s>=r)break;if(n>=s+c)continue;if(s>=n&&s+c<=r){i.push(o);continue}let l=Math.max(0,n-s),u=Math.min(r-s,c);i.push(o.slice(l,u-l))}return i.length===0&&i.push(e[0].slice(0,0)),i}function P0(e,t,n,r){let i=0,a=0,o=t.length-1;do{if(i>=o-1)return n<t[o]?r(e,i,n-t[i]):null;a=i+Math.trunc((o-i)*.5),n<t[a]?o=a:i=a}while(i<o)}function F0(e,t){return e.getValid(t)}function I0(e){function t(t,n,r){return e(t[n],r)}return function(e){let n=this.data;return P0(n,this._offsets,e,t)}}function L0(e){let t;function n(n,r,i){return e(n[r],i,t)}return function(e,r){let i=this.data;t=r;let a=P0(i,this._offsets,e,n);return t=void 0,a}}function R0(e){let t;function n(n,r,i){let a=i,o=0,s=0;for(let i=r-1,c=n.length;++i<c;){let r=n[i];if(~(o=e(r,t,a)))return s+o;a=0,s+=r.length}return-1}return function(e,r){t=e;let i=this.data,a=typeof r==`number`?P0(i,this._offsets,r,n):n(i,0,0);return t=void 0,a}}var z0=class extends Z${};function QCe(e,t){return t===null&&e.length>0?0:-1}function $Ce(e,t){let{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(let i of new w0(n,e.offset+(t||0),e.length,n,b0)){if(!i)return r;++r}return-1}function B0(e,t,n){if(t===void 0)return-1;if(t===null)switch(e.typeId){case Q.Union:break;case Q.Dictionary:break;default:return $Ce(e,n)}let r=s0.getVisitFn(e),i=_0(t);for(let t=(n||0)-1,a=e.length;++t<a;)if(i(r(e,t)))return t;return-1}function V0(e,t,n){let r=s0.getVisitFn(e),i=_0(t);for(let t=(n||0)-1,a=e.length;++t<a;)if(i(r(e,t)))return t;return-1}z0.prototype.visitNull=QCe,z0.prototype.visitBool=B0,z0.prototype.visitInt=B0,z0.prototype.visitInt8=B0,z0.prototype.visitInt16=B0,z0.prototype.visitInt32=B0,z0.prototype.visitInt64=B0,z0.prototype.visitUint8=B0,z0.prototype.visitUint16=B0,z0.prototype.visitUint32=B0,z0.prototype.visitUint64=B0,z0.prototype.visitFloat=B0,z0.prototype.visitFloat16=B0,z0.prototype.visitFloat32=B0,z0.prototype.visitFloat64=B0,z0.prototype.visitUtf8=B0,z0.prototype.visitLargeUtf8=B0,z0.prototype.visitBinary=B0,z0.prototype.visitLargeBinary=B0,z0.prototype.visitFixedSizeBinary=B0,z0.prototype.visitDate=B0,z0.prototype.visitDateDay=B0,z0.prototype.visitDateMillisecond=B0,z0.prototype.visitTimestamp=B0,z0.prototype.visitTimestampSecond=B0,z0.prototype.visitTimestampMillisecond=B0,z0.prototype.visitTimestampMicrosecond=B0,z0.prototype.visitTimestampNanosecond=B0,z0.prototype.visitTime=B0,z0.prototype.visitTimeSecond=B0,z0.prototype.visitTimeMillisecond=B0,z0.prototype.visitTimeMicrosecond=B0,z0.prototype.visitTimeNanosecond=B0,z0.prototype.visitDecimal=B0,z0.prototype.visitList=B0,z0.prototype.visitStruct=B0,z0.prototype.visitUnion=B0,z0.prototype.visitDenseUnion=V0,z0.prototype.visitSparseUnion=V0,z0.prototype.visitDictionary=B0,z0.prototype.visitInterval=B0,z0.prototype.visitIntervalDayTime=B0,z0.prototype.visitIntervalYearMonth=B0,z0.prototype.visitIntervalMonthDayNano=B0,z0.prototype.visitDuration=B0,z0.prototype.visitDurationSecond=B0,z0.prototype.visitDurationMillisecond=B0,z0.prototype.visitDurationMicrosecond=B0,z0.prototype.visitDurationNanosecond=B0,z0.prototype.visitFixedSizeList=B0,z0.prototype.visitMap=B0;var H0=new z0,U0=class extends Z${};function W0(e){let{type:t}=e;if(e.nullCount===0&&e.stride===1&&($.isInt(t)&&t.bitWidth!==64||$.isTime(t)&&t.bitWidth!==64||$.isFloat(t)&&t.precision!==GZ.HALF))return new A0(e.data.length,t=>{let n=e.data[t];return n.values.subarray(0,n.length)[Symbol.iterator]()});let n=0;return new A0(e.data.length,t=>{let r=e.data[t].length,i=e.slice(n,n+r);return n+=r,new ewe(i)})}var ewe=class{constructor(e){this.vector=e,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}};U0.prototype.visitNull=W0,U0.prototype.visitBool=W0,U0.prototype.visitInt=W0,U0.prototype.visitInt8=W0,U0.prototype.visitInt16=W0,U0.prototype.visitInt32=W0,U0.prototype.visitInt64=W0,U0.prototype.visitUint8=W0,U0.prototype.visitUint16=W0,U0.prototype.visitUint32=W0,U0.prototype.visitUint64=W0,U0.prototype.visitFloat=W0,U0.prototype.visitFloat16=W0,U0.prototype.visitFloat32=W0,U0.prototype.visitFloat64=W0,U0.prototype.visitUtf8=W0,U0.prototype.visitLargeUtf8=W0,U0.prototype.visitBinary=W0,U0.prototype.visitLargeBinary=W0,U0.prototype.visitFixedSizeBinary=W0,U0.prototype.visitDate=W0,U0.prototype.visitDateDay=W0,U0.prototype.visitDateMillisecond=W0,U0.prototype.visitTimestamp=W0,U0.prototype.visitTimestampSecond=W0,U0.prototype.visitTimestampMillisecond=W0,U0.prototype.visitTimestampMicrosecond=W0,U0.prototype.visitTimestampNanosecond=W0,U0.prototype.visitTime=W0,U0.prototype.visitTimeSecond=W0,U0.prototype.visitTimeMillisecond=W0,U0.prototype.visitTimeMicrosecond=W0,U0.prototype.visitTimeNanosecond=W0,U0.prototype.visitDecimal=W0,U0.prototype.visitList=W0,U0.prototype.visitStruct=W0,U0.prototype.visitUnion=W0,U0.prototype.visitDenseUnion=W0,U0.prototype.visitSparseUnion=W0,U0.prototype.visitDictionary=W0,U0.prototype.visitInterval=W0,U0.prototype.visitIntervalDayTime=W0,U0.prototype.visitIntervalYearMonth=W0,U0.prototype.visitIntervalMonthDayNano=W0,U0.prototype.visitDuration=W0,U0.prototype.visitDurationSecond=W0,U0.prototype.visitDurationMillisecond=W0,U0.prototype.visitDurationMicrosecond=W0,U0.prototype.visitDurationNanosecond=W0,U0.prototype.visitFixedSizeList=W0,U0.prototype.visitMap=W0;var G0=new U0,K0,q0={},J0={},Y0=class e{constructor(t){let n=t[0]instanceof e?t.flatMap(e=>e.data):t;if(n.length===0||n.some(e=>!(e instanceof O0)))throw TypeError(`Vector constructor expects an Array of Data instances.`);let r=n[0]?.type;switch(n.length){case 0:this._offsets=[0];break;case 1:{let{get:e,set:t,indexOf:i}=q0[r.typeId],a=n[0];this.isValid=e=>F0(a,e),this.get=t=>e(a,t),this.set=(e,n)=>t(a,e,n),this.indexOf=e=>i(a,e),this._offsets=[0,a.length];break}default:Object.setPrototypeOf(this,J0[r.typeId]),this._offsets=M0(n);break}this.data=n,this.type=r,this.stride=X$(r),this.numChildren=r.children?.length??0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((e,t)=>
163e+t.byteLength,0)}get nullable(){return ZCe(this.data)}get nullCount(){return j0(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${Q[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(h0(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return G0.visit(this)}concat(...t){return new e(this.data.concat(t.flatMap(e=>e.data).flat(1/0)))}slice(t,n){return new e(m0(this,t,n,({data:e,_offsets:t},n,r)=>N0(e,t,n,r)))}toJSON(){return[...this]}toArray(){let{type:e,data:t,length:n,stride:r,ArrayType:i}=this;switch(e.typeId){case Q.Int:case Q.Float:case Q.Decimal:case Q.Time:case Q.Timestamp:switch(t.length){case 0:return new i;case 1:return t[0].values.subarray(0,n*r);default:return t.reduce((e,{values:t,length:n})=>(e.array.set(t.subarray(0,n*r),e.offset),e.offset+=n*r,e),{array:new i(n*r),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(`,`)}]`}getChild(e){return this.getChildAt(this.type.children?.findIndex(t=>t.name===e))}getChildAt(t){return t>-1&&t<this.numChildren?new e(this.data.map(({children:e})=>e[t])):null}get isMemoized(){return $.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if($.isDictionary(this.type)){let t=new X0(this.data[0].dictionary);return new e(this.data.map(e=>{let n=e.clone();return n.dictionary=t,n}))}return new X0(this)}unmemoize(){if($.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize();return new e(this.data.map(e=>{let n=e.clone();return n.dictionary=t,n}))}return this}};K0=Symbol.toStringTag,Y0[K0]=(e=>{e.type=$.prototype,e.data=[],e.length=0,e.stride=1,e.numChildren=0,e._offsets=new Uint32Array([0]),e[Symbol.isConcatSpreadable]=!0;let t=Object.keys(Q).map(e=>Q[e]).filter(e=>typeof e==`number`&&e!==Q.NONE);for(let n of t)q0[n]={get:s0.getVisitFnByTypeId(n),set:j1.getVisitFnByTypeId(n),indexOf:H0.getVisitFnByTypeId(n)},J0[n]=Object.create(e,{isValid:{value:I0(F0)},get:{value:I0(s0.getVisitFnByTypeId(n))},set:{value:L0(j1.getVisitFnByTypeId(n))},indexOf:{value:R0(H0.getVisitFnByTypeId(n))}});return`Vector`})(Y0.prototype);var X0=class e extends Y0{constructor(t){super(t.data);let n=this.get,r=this.set,i=this.slice,a=Array(this.length);Object.defineProperty(this,`get`,{value(e){let t=a[e];if(t!==void 0)return t;let r=n.call(this,e);return a[e]=r,r}}),Object.defineProperty(this,`set`,{value(e,t){r.call(this,e,t),a[e]=t}}),Object.defineProperty(this,`slice`,{value:(t,n)=>new e(i.call(this,t,n))}),Object.defineProperty(this,`isMemoized`,{value:!0}),Object.defineProperty(this,`unmemoize`,{value:()=>new Y0(this.data)}),Object.defineProperty(this,`memoize`,{value:()=>this})}};function Z0(e){if(e){if(e instanceof O0)return new Y0([e]);if(e instanceof Y0)return new Y0(e.data);if(e.type instanceof $)return new Y0([k0(e)]);if(Array.isArray(e))return new Y0(e.flatMap(e=>twe(e)));if(ArrayBuffer.isView(e)){e instanceof DataView&&(e=new Uint8Array(e.buffer));let t={offset:0,length:e.length,nullCount:-1,data:e};if(e instanceof Int8Array)return new Y0([k0(Object.assign(Object.assign({},t),{type:new x$}))]);if(e instanceof Int16Array)return new Y0([k0(Object.assign(Object.assign({},t),{type:new S$}))]);if(e instanceof Int32Array)return new Y0([k0(Object.assign(Object.assign({},t),{type:new C$}))]);if(e instanceof BigInt64Array)return new Y0([k0(Object.assign(Object.assign({},t),{type:new w$}))]);if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new Y0([k0(Object.assign(Object.assign({},t),{type:new T$}))]);if(e instanceof Uint16Array)return new Y0([k0(Object.assign(Object.assign({},t),{type:new E$}))]);if(e instanceof Uint32Array)return new Y0([k0(Object.assign(Object.assign({},t),{type:new D$}))]);if(e instanceof BigUint64Array)return new Y0([k0(Object.assign(Object.assign({},t),{type:new O$}))]);if(e instanceof Float32Array)return new Y0([k0(Object.assign(Object.assign({},t),{type:new A$}))]);if(e instanceof Float64Array)return new Y0([k0(Object.assign(Object.assign({},t),{type:new j$}))]);throw Error(`Unrecognized input`)}}throw Error(`Unrecognized input`)}function twe(e){return e instanceof O0?[e]:e instanceof Y0?e.data:Z0(e).data}var Q0=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,t,n,r){return e.prep(8,24),e.writeInt64(BigInt(r??0)),e.pad(4),e.writeInt32(n),e.writeInt64(BigInt(t??0)),e.offset()}},$0=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):UZ.V1}schema(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new FQ).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){let n=this.bb.__offset(this.bb_pos,8);return n?(t||new Q0).__init(this.bb.__vector(this.bb_pos+n)+e*24,this.bb):null}dictionariesLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,t){let n=this.bb.__offset(this.bb_pos,10);return n?(t||new Q0).__init(this.bb.__vector(this.bb_pos+n)+e*24,this.bb):null}recordBatchesLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let n=this.bb.__offset(this.bb_pos,12);return n?(t||new pQ).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,UZ.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}}
vendor: 7,723 bytes, line 163
163,e2=class e{constructor(e=[],t,n,r=UZ.V5){this.fields=e||[],this.metadata=t||new Map,n||=r2(this.fields),this.dictionaries=n,this.metadataVersion=r}get[Symbol.toStringTag](){return`Schema`}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,t)=>`${t}: ${e}`).join(`, `)} }>`}select(t){let n=new Set(t);return new e(this.fields.filter(e=>n.has(e.name)),this.metadata)}selectAt(t){return new e(t.map(e=>this.fields[e]).filter(Boolean),this.metadata)}assign(...t){let n=t[0]instanceof e?t[0]:Array.isArray(t[0])?new e(t[0]):new e(t),r=[...this.fields],i=n2(n2(new Map,this.metadata),n.metadata),a=n.fields.filter(e=>{let t=r.findIndex(t=>t.name===e.name);return~t?(r[t]=e.clone({metadata:n2(n2(new Map,r[t].metadata),e.metadata)}))&&!1:!0}),o=r2(a,new Map);return new e([...r,...a],i,new Map([...this.dictionaries,...o]))}};e2.prototype.fields=null,e2.prototype.metadata=null,e2.prototype.dictionaries=null;var t2=class e{static new(...t){let[n,r,i,a]=t;return t[0]&&typeof t[0]==`object`&&({name:n}=t[0],r===void 0&&(r=t[0].type),i===void 0&&(i=t[0].nullable),a===void 0&&(a=t[0].metadata)),new e(`${n}`,r,i,a)}constructor(e,t,n=!1,r){this.name=e,this.type=t,this.nullable=n,this.metadata=r||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return`Field`}toString(){return`${this.name}: ${this.type}`}clone(...t){let[n,r,i,a]=t;return!t[0]||typeof t[0]!=`object`?[n=this.name,r=this.type,i=this.nullable,a=this.metadata]=t:{name:n=this.name,type:r=this.type,nullable:i=this.nullable,metadata:a=this.metadata}=t[0],e.new(n,r,i,a)}};t2.prototype.type=null,t2.prototype.name=null,t2.prototype.nullable=null,t2.prototype.metadata=null;function n2(e,t){return new Map([...e||new Map,...t||new Map])}function r2(e,t=new Map){for(let n=-1,r=e.length;++n<r;){let r=e[n].type;if($.isDictionary(r)){if(!t.has(r.id))t.set(r.id,r.dictionary);else if(t.get(r.id)!==r.dictionary)throw Error(`Cannot create Schema containing two different dictionaries with the same Id`)}r.children&&r.children.length>0&&r2(r.children,t)}return t}var nwe=tQ,rwe=eQ,i2=class{static decode(e){e=new rwe(NZ(e));let t=$0.getRootAsFooter(e);return new iwe(e2.decode(t.schema(),new Map,t.version()),t)}static encode(e){let t=new nwe,n=e2.encode(t,e.schema);$0.startRecordBatchesVector(t,e.numRecordBatches);for(let n of[...e.recordBatches()].slice().reverse())a2.encode(t,n);let r=t.endVector();$0.startDictionariesVector(t,e.numDictionaries);for(let n of[...e.dictionaryBatches()].slice().reverse())a2.encode(t,n);let i=t.endVector();return $0.startFooter(t),$0.addSchema(t,n),$0.addVersion(t,UZ.V5),$0.addRecordBatches(t,r),$0.addDictionaries(t,i),$0.finishFooterBuffer(t,$0.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,t=UZ.V5,n,r){this.schema=e,this.version=t,n&&(this._recordBatches=n),r&&(this._dictionaryBatches=r)}*recordBatches(){for(let e,t=-1,n=this.numRecordBatches;++t<n;)(e=this.getRecordBatch(t))&&(yield e)}*dictionaryBatches(){for(let e,t=-1,n=this.numDictionaries;++t<n;)(e=this.getDictionaryBatch(t))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}},iwe=class extends i2{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(e,t){super(e,t.version()),this._footer=t}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){let t=this._footer.recordBatches(e);if(t)return a2.decode(t)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){let t=this._footer.dictionaries(e);if(t)return a2.decode(t)}return null}},a2=class e{static decode(t){return new e(t.metaDataLength(),t.bodyLength(),t.offset())}static encode(e,t){let{metaDataLength:n}=t,r=BigInt(t.offset),i=BigInt(t.bodyLength);return Q0.createBlock(e,r,n,i)}constructor(e,t,n){this.metaDataLength=e,this.offset=zQ(n),this.bodyLength=zQ(t)}},o2=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):UZ.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):IQ.NONE}header(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt(`0`)}customMetadata(e,t){let n=this.bb.__offset(this.bb_pos,12);return n?(t||new pQ).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,UZ.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,IQ.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,BigInt(`0`))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(t,n,r,i,a,o){return e.startMessage(t),e.addVersion(t,n),e.addHeaderType(t,r),e.addHeader(t,i),e.addBodyLength(t,a),e.addCustomMetadata(t,o),e.endMessage(t)}},s2=new class extends Z${visit(e,t){return e==null||t==null?void 0:super.visit(e,t)}visitNull(e,t){return DQ.startNull(t),DQ.endNull(t)}visitInt(e,t){return dQ.startInt(t),dQ.addBitWidth(t,e.bitWidth),dQ.addIsSigned(t,e.isSigned),dQ.endInt(t)}visitFloat(e,t){return xQ.startFloatingPoint(t),xQ.addPrecision(t,e.precision),xQ.endFloatingPoint(t)}visitBinary(e,t){return mQ.startBinary(t),mQ.endBinary(t)}visitLargeBinary(e,t){return CQ.startLargeBinary(t),CQ.endLargeBinary(t)}visitBool(e,t){return hQ.startBool(t),hQ.endBool(t)}visitUtf8(e,t){return MQ.startUtf8(t),MQ.endUtf8(t)}visitLargeUtf8(e,t){return wQ.startLargeUtf8(t),wQ.endLargeUtf8(t)}visitDecimal(e,t){return _Q.startDecimal(t),_Q.addScale(t,e.scale),_Q.addPrecision(t,e.precision),_Q.addBitWidth(t,e.bitWidth),_Q.endDecimal(t)}visitDate(e,t){return gQ.startDate(t),gQ.addUnit(t,e.unit),gQ.endDate(t)}visitTime(e,t){return kQ.startTime(t),kQ.addUnit(t,e.unit),kQ.addBitWidth(t,e.bitWidth),kQ.endTime(t)}visitTimestamp(e,t){let n=e.timezone&&t.createString(e.timezone)||void 0;return AQ.startTimestamp(t),AQ.addUnit(t,e.unit),n!==void 0&&AQ.addTimezone(t,n),AQ.endTimestamp(t)}visitInterval(e,t){return SQ.startInterval(t),SQ.addUnit(t,e.unit),SQ.endInterval(t)}visitDuration(e,t){return vQ.startDuration(t),vQ.addUnit(t,e.unit),vQ.endDuration(t)}visitList(e,t){return TQ.startList(t),TQ.endList(t)}visitStruct(e,t){return OQ.startStruct_(t),OQ.endStruct_(t)}visitUnion(e,t){jQ.startTypeIdsVector(t,e.typeIds.length);let n=jQ.createTypeIdsVector(t,e.typeIds);return jQ.startUnion(t),jQ.addMode(t,e.mode),jQ.addTypeIds(t,n),jQ.endUnion(t)}visitDictionary(e,t){let n=this.visit(e.indices,t);return fQ.startDictionaryEncoding(t),fQ.addId(t,BigInt(e.id)),fQ.addIsOrdered(t,e.isOrdered),n!==void 0&&fQ.addIndexType(t,n),fQ.endDictionaryEncoding(t)}
163visitFixedSizeBinary(e,t){return yQ.startFixedSizeBinary(t),yQ.addByteWidth(t,e.byteWidth),yQ.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return bQ.startFixedSizeList(t),bQ.addListSize(t,e.listSize),bQ.endFixedSizeList(t)}visitMap(e,t){return EQ.startMap(t),EQ.addKeysSorted(t,e.keysSorted),EQ.endMap(t)}};function awe(e,t=new Map){return new e2(swe(e,t),f2(e.metadata),t)}function c2(e){return new g2(e.count,u2(e.columns),d2(e.columns),null)}function owe(e){return new _2(c2(e.data),e.id,e.isDelta)}function swe(e,t){return(e.fields||[]).filter(Boolean).map(e=>t2.fromJSON(e,t))}function l2(e,t){return(e.children||[]).filter(Boolean).map(e=>t2.fromJSON(e,t))}function u2(e){return(e||[]).reduce((e,t)=>[...e,new y2(t.count,cwe(t.VALIDITY)),...u2(t.children)],[])}function d2(e,t=[]){for(let n=-1,r=(e||[]).length;++n<r;){let r=e[n];r.VALIDITY&&t.push(new v2(t.length,r.VALIDITY.length)),r.TYPE_ID&&t.push(new v2(t.length,r.TYPE_ID.length)),r.OFFSET&&t.push(new v2(t.length,r.OFFSET.length)),r.DATA&&t.push(new v2(t.length,r.DATA.length)),t=d2(r.children,t)}return t}function cwe(e){return(e||[]).reduce((e,t)=>e+ +(t===0),0)}function lwe(e,t){let n,r,i,a,o,s;return!t||!(a=e.dictionary)?(o=m2(e,l2(e,t)),i=new t2(e.name,o,e.nullable,f2(e.metadata))):t.has(n=a.id)?(r=(r=a.indexType)?p2(r):new C$,s=new Y$(t.get(n),r,n,a.isOrdered),i=new t2(e.name,s,e.nullable,f2(e.metadata))):(r=(r=a.indexType)?p2(r):new C$,t.set(n,o=m2(e,l2(e,t))),s=new Y$(o,r,n,a.isOrdered),i=new t2(e.name,s,e.nullable,f2(e.metadata))),i||null}function f2(e=[]){return new Map(e.map(({key:e,value:t})=>[e,t]))}function p2(e){return new b$(e.isSigned,e.bitWidth)}function m2(e,t){let n=e.type.name;switch(n){case`NONE`:return new y$;case`null`:return new y$;case`binary`:return new M$;case`largebinary`:return new N$;case`utf8`:return new P$;case`largeutf8`:return new F$;case`bool`:return new I$;case`list`:return new U$((t||[])[0]);case`struct`:return new W$(t||[]);case`struct_`:return new W$(t||[])}switch(n){case`int`:{let t=e.type;return new b$(t.isSigned,t.bitWidth)}case`floatingpoint`:{let t=e.type;return new k$(GZ[t.precision])}case`decimal`:{let t=e.type;return new L$(t.scale,t.precision,t.bitWidth)}case`date`:{let t=e.type;return new R$(KZ[t.unit])}case`time`:{let t=e.type;return new z$(qZ[t.unit],t.bitWidth)}case`timestamp`:{let t=e.type;return new B$(qZ[t.unit],t.timezone)}case`interval`:{let t=e.type;return new V$(JZ[t.unit])}case`duration`:{let t=e.type;return new H$(qZ[t.unit])}case`union`:{let n=e.type,[r,...i]=(n.mode+``).toLowerCase();return new G$(WZ[r.toUpperCase()+i.join(``)],n.typeIds||[],t||[])}case`fixedsizebinary`:{let t=e.type;return new K$(t.byteWidth)}case`fixedsizelist`:{let n=e.type;return new q$(n.listSize,(t||[])[0])}case`map`:{let n=e.type;return new J$((t||[])[0],n.keysSorted)}}throw Error(`Unrecognized type: "${n}"`)}var uwe=tQ,dwe=eQ,h2=class e{static fromJSON(t,n){let r=new e(0,UZ.V5,n);return r._createHeader=fwe(t,n),r}static decode(t){t=new dwe(NZ(t));let n=o2.getRootAsMessage(t),r=n.bodyLength(),i=n.version(),a=n.headerType(),o=new e(r,i,a);return o._createHeader=pwe(n,a),o}static encode(e){let t=new uwe,n=-1;return e.isSchema()?n=e2.encode(t,e.header()):e.isRecordBatch()?n=g2.encode(t,e.header()):e.isDictionaryBatch()&&(n=_2.encode(t,e.header())),o2.startMessage(t),o2.addVersion(t,UZ.V5),o2.addHeader(t,n),o2.addHeaderType(t,e.headerType),o2.addBodyLength(t,BigInt(e.bodyLength)),o2.finishMessageBuffer(t,o2.endMessage(t)),t.asUint8Array()}static from(t,n=0){if(t instanceof e2)return new e(0,UZ.V5,IQ.Schema,t);if(t instanceof g2)return new e(n,UZ.V5,IQ.RecordBatch,t);if(t instanceof _2)return new e(n,UZ.V5,IQ.DictionaryBatch,t);throw Error(`Unrecognized Message header: ${t}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get compression(){return this._compression}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===IQ.Schema}isRecordBatch(){return this.headerType===IQ.RecordBatch}isDictionaryBatch(){return this.headerType===IQ.DictionaryBatch}constructor(e,t,n,r){this._version=t,this._headerType=n,this.body=new Uint8Array,this._compression=r?.compression,r&&(this._createHeader=()=>r),this._bodyLength=zQ(e)}},g2=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}get compression(){return this._compression}constructor(e,t,n,r){this._nodes=t,this._buffers=n,this._length=zQ(e),this._compression=r}},_2=class{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,t,n=!1){this._data=e,this._isDelta=n,this._id=zQ(t)}},v2=class{constructor(e,t){this.offset=zQ(e),this.length=zQ(t)}},y2=class{constructor(e,t){this.length=zQ(e),this.nullCount=zQ(t)}},b2=class{constructor(e,t=nQ.BUFFER){this.type=e,this.method=t}};function fwe(e,t){return(()=>{switch(t){case IQ.Schema:return e2.fromJSON(e);case IQ.RecordBatch:return g2.fromJSON(e);case IQ.DictionaryBatch:return _2.fromJSON(e)}throw Error(`Unrecognized Message type: { name: ${IQ[t]}, type: ${t} }`)})}function pwe(e,t){return(()=>{switch(t){case IQ.Schema:return e2.decode(e.header(new FQ),new Map,e.ver
163sion());case IQ.RecordBatch:return g2.decode(e.header(new sQ),e.version());case IQ.DictionaryBatch:return _2.decode(e.header(new cQ),e.version())}throw Error(`Unrecognized Message type: { name: ${IQ[t]}, type: ${t} }`)})}t2.encode=wwe,t2.decode=Swe,t2.fromJSON=lwe,e2.encode=Cwe,e2.decode=mwe,e2.fromJSON=awe,g2.encode=Twe,g2.decode=hwe,g2.fromJSON=c2,_2.encode=Ewe,_2.decode=gwe,_2.fromJSON=owe,y2.encode=Dwe,y2.decode=vwe,v2.encode=Owe,v2.decode=_we,b2.encode=E2,b2.decode=T2;function mwe(e,t=new Map,n=UZ.V5){return new e2(xwe(e,t),S2(e),t,n)}function hwe(e,t=UZ.V5){return new g2(e.length(),ywe(e),bwe(e,t),T2(e.compression()))}function gwe(e,t=UZ.V5){return new _2(g2.decode(e.data(),t),e.id(),e.isDelta())}function _we(e){return new v2(e.offset(),e.length())}function vwe(e){return new y2(e.length(),e.nullCount())}function ywe(e){let t=[];for(let n,r=-1,i=-1,a=e.nodesLength();++r<a;)(n=e.nodes(r))&&(t[++i]=y2.decode(n));return t}function bwe(e,t){let n=[];for(let r,i=-1,a=-1,o=e.buffersLength();++i<o;)(r=e.buffers(i))&&(t<UZ.V4&&(r.bb_pos+=8*(i+1)),n[++a]=v2.decode(r));return n}function xwe(e,t){let n=[];for(let r,i=-1,a=-1,o=e.fieldsLength();++i<o;)(r=e.fields(i))&&(n[++a]=t2.decode(r,t));return n}function x2(e,t){let n=[];for(let r,i=-1,a=-1,o=e.childrenLength();++i<o;)(r=e.children(i))&&(n[++a]=t2.decode(r,t));return n}function Swe(e,t){let n,r,i,a,o,s;return!t||!(s=e.dictionary())?(i=w2(e,x2(e,t)),r=new t2(e.name(),i,e.nullable(),S2(e))):t.has(n=zQ(s.id()))?(a=(a=s.indexType())?C2(a):new C$,o=new Y$(t.get(n),a,n,s.isOrdered()),r=new t2(e.name(),o,e.nullable(),S2(e))):(a=(a=s.indexType())?C2(a):new C$,t.set(n,i=w2(e,x2(e,t))),o=new Y$(i,a,n,s.isOrdered()),r=new t2(e.name(),o,e.nullable(),S2(e))),r||null}function S2(e){let t=new Map;if(e)for(let n,r,i=-1,a=Math.trunc(e.customMetadataLength());++i<a;)(n=e.customMetadata(i))&&(r=n.key())!=null&&t.set(r,n.value());return t}function C2(e){return new b$(e.isSigned(),e.bitWidth())}function w2(e,t){let n=e.typeType();switch(n){case NQ.NONE:return new y$;case NQ.Null:return new y$;case NQ.Binary:return new M$;case NQ.LargeBinary:return new N$;case NQ.Utf8:return new P$;case NQ.LargeUtf8:return new F$;case NQ.Bool:return new I$;case NQ.List:return new U$((t||[])[0]);case NQ.Struct_:return new W$(t||[])}switch(n){case NQ.Int:{let t=e.type(new dQ);return new b$(t.isSigned(),t.bitWidth())}case NQ.FloatingPoint:return new k$(e.type(new xQ).precision());case NQ.Decimal:{let t=e.type(new _Q);return new L$(t.scale(),t.precision(),t.bitWidth())}case NQ.Date:return new R$(e.type(new gQ).unit());case NQ.Time:{let t=e.type(new kQ);return new z$(t.unit(),t.bitWidth())}case NQ.Timestamp:{let t=e.type(new AQ);return new B$(t.unit(),t.timezone())}case NQ.Interval:return new V$(e.type(new SQ).unit());case NQ.Duration:return new H$(e.type(new vQ).unit());case NQ.Union:{let n=e.type(new jQ);return new G$(n.mode(),n.typeIdsArray()||[],t||[])}case NQ.FixedSizeBinary:return new K$(e.type(new yQ).byteWidth());case NQ.FixedSizeList:return new q$(e.type(new bQ).listSize(),(t||[])[0]);case NQ.Map:{let n=e.type(new EQ);return new J$((t||[])[0],n.keysSorted())}}throw Error(`Unrecognized type: "${NQ[n]}" (${n})`)}function T2(e){return e?new b2(e.codec(),e.method()):null}function Cwe(e,t){let n=t.fields.map(t=>t2.encode(e,t));FQ.startFieldsVector(e,n.length);let r=FQ.createFieldsVector(e,n),i=t.metadata&&t.metadata.size>0?FQ.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{let r=e.createString(`${t}`),i=e.createString(`${n}`);return pQ.startKeyValue(e),pQ.addKey(e,r),pQ.addValue(e,i),pQ.endKeyValue(e)})):-1;return FQ.startSchema(e),FQ.addFields(e,r),FQ.addEndianness(e,kwe?lQ.Little:lQ.Big),i!==-1&&FQ.addCustomMetadata(e,i),FQ.endSchema(e)}function wwe(e,t){let n=-1,r=-1,i=-1,a=t.type,o=t.typeId;$.isDictionary(a)?(o=a.dictionary.typeId,i=s2.visit(a,e),r=s2.visit(a.dictionary,e)):r=s2.visit(a,e);let s=(a.children||[]).map(t=>t2.encode(e,t)),c=PQ.createChildrenVector(e,s),l=t.metadata&&t.metadata.size>0?PQ.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{let r=e.createString(`${t}`),i=e.createString(`${n}`);return pQ.startKeyValue(e),pQ.addKey(e,r),pQ.addValue(e,i),pQ.endKeyValue(e)})):-1;return t.name&&(n=e.createString(t.name)),PQ.startField(e),PQ.addType(e,r),PQ.addTypeType(e,o),PQ.addChildren(e,c),PQ.addNullable(e,!!t.nullable),n!==-1&&PQ.addName(e,n),i!==-1&&PQ.addDictionary(e,i),l!==-1&&PQ.addCustomMetadata(e,l),PQ.endField(e)}function Twe(e,t){let n=t.nodes||[],r=t.buffers||[];sQ.startNodesVector(e,n.length);for(let t of n.slice().reverse())y2.encode(e,t);let i=e.endVector();sQ.startBuffersVector(e,r.length);for(let t of r.slice().reverse())v2.encode(e,t);let a=e.endVector(),o=null;return t.compression!==null&&(o=E2(e,t.compression)),sQ.startRecordBatch(e),sQ.addLength(e,BigInt(t.length)),sQ.addNodes(e,i),sQ.addBuffers(e,a),t.compression!==null&&o&&sQ.addCompression(e,o),sQ.endRecordBatch(e)}function E2(e,t){return iQ.startBodyCompression(e),iQ.addCodec(e,t.type),iQ.addMethod(e,t.method),iQ.endBodyCompression(e)}function Ewe(e,t){let n=g2.encode(e,t.data);return cQ.startDictionaryBatch(e),cQ.addId(e,BigInt(t.id)),cQ.addIsDelta(e,t.isDelta),cQ.addData(e,n),cQ.endDictionaryBatch(e)}function Dwe(e,t){return oQ.createFieldNode(e,BigInt(t.length),BigInt(t.nullCount))}function Owe(e,t){return aQ.createBuffer(e,BigInt(t.offset),BigInt(t.length))}var kwe=(()=>{let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),new Int16Array(e)[0]===256})(),D2=Object.freeze({done:!0,value:void 0}),O2=class{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}},k2=class{tee(){return this._getDOMStream().tee()}pipe(e,t){return this._getNodeStream().pipe(e,t)}pipeTo(e,t){return this._getDOMStream().pipeTo(e,t)}pipeThrough(e,t){return this._getDOMStream().pipeThrough(e,t)}_getDOMStream(){return this._DOMStream||=this.toDOMStream()}_getNodeStream(){return this._nodeStream||=this.toNodeStream()}},Awe=class extends k2{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return TE(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){let{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(D2);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return BZ.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return BZ.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return TE(this,void 0,void 0,function*(){return yield this.abort(e),D2})}return(e){return TE(this,void 0,void 0,function*(){return yield this.close(),D2})}read(e){return TE(this,void 0,void 0,function*(){return(yield this.next(e,`read`)).value})}peek(e){return TE(this,void 0,void 0,function*(){return(yield this.next(e,`peek`)).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((e,t)=>
vendor: 11,026 bytes, line 163
163{this.resolvers.push({resolve:e,reject:t})}):Promise.resolve(D2)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw Error(`AsyncQueue is closed`)}},jwe=class extends Awe{write(e){if((e=NZ(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?pZ(this.toUint8Array(!0)):this.toUint8Array(!1).then(pZ)}toUint8Array(e=!1){return e?kZ(this._values)[0]:TE(this,void 0,void 0,function*(){var e,t,n,r;let i=[],a=0;try{for(var o=!0,s=AE(this),c;c=yield s.next(),e=c.done,!e;o=!0){r=c.value,o=!1;let e=r;i.push(e),a+=e.byteLength}}catch(e){t={error:e}}finally{try{!o&&!e&&(n=s.return)&&(yield n.call(s))}finally{if(t)throw t.error}}return kZ(i,a)[0]})}},A2=class{constructor(e){e&&(this.source=new Mwe(BZ.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},j2=class e{constructor(t){t instanceof e?this.source=t.source:t instanceof jwe?this.source=new M2(BZ.fromAsyncIterable(t)):EZ(t)?this.source=new M2(BZ.fromNodeStream(t)):TZ(t)?this.source=new M2(BZ.fromDOMStream(t)):CZ(t)?this.source=new M2(BZ.fromDOMStream(t.body)):vZ(t)?this.source=new M2(BZ.fromIterable(t)):(_Z(t)||yZ(t))&&(this.source=new M2(BZ.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},Mwe=class{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,`peek`).value}read(e){return this.next(e,`read`).value}next(e,t=`read`){return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||D2)}return(e){return Object.create(this.source.return&&this.source.return(e)||D2)}},M2=class{constructor(e){this.source=e,this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}cancel(e){return TE(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return TE(this,void 0,void 0,function*(){return(yield this.next(e,`read`)).value})}peek(e){return TE(this,void 0,void 0,function*(){return(yield this.next(e,`peek`)).value})}next(e){return TE(this,arguments,void 0,function*(e,t=`read`){return yield this.source.next({cmd:t,size:e})})}throw(e){return TE(this,void 0,void 0,function*(){let t=this.source.throw&&(yield this.source.throw(e))||D2;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}return(e){return TE(this,void 0,void 0,function*(){let t=this.source.return&&(yield this.source.return(e))||D2;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}},N2=class extends A2{constructor(e,t){super(),this.position=0,this.buffer=NZ(e),this.size=t===void 0?this.buffer.byteLength:t}readInt32(e){let{buffer:t,byteOffset:n}=this.readAt(e,4);return new DataView(t,n).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){let{buffer:t,size:n,position:r}=this;return t&&r<n?(typeof e!=`number`&&(e=1/0),this.position=Math.min(n,r+Math.min(n-r,e)),t.subarray(r,this.position)):null}readAt(e,t){let n=this.buffer,r=Math.min(this.size,e+t);return n?n.subarray(e,r):new Uint8Array(t)}close(){this.buffer&&=null}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}},P2=class extends j2{constructor(e,t){super(),this.position=0,this._handle=e,typeof t==`number`?this.size=t:this._pending=TE(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return TE(this,void 0,void 0,function*(){let{buffer:t,byteOffset:n}=yield this.readAt(e,4);return new DataView(t,n).getInt32(0,!0)})}seek(e){return TE(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size})}read(e){return TE(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:t,size:n,position:r}=this;if(t&&r<n){typeof e!=`number`&&(e=1/0);let i=r,a=0,o=0,s=Math.min(n,i+Math.min(n-i,e)),c=new Uint8Array(Math.max(0,(this.position=s)-i));for(;(i+=o)<s&&(a+=o)<c.byteLength;)({bytesRead:o}=yield t.read(c,a,c.byteLength-a,i));return c}return null})}readAt(e,t){return TE(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:n,size:r}=this;if(n&&e+t<r){let i=Math.min(r,e+t),a=new Uint8Array(i-e);return(yield n.read(a,0,t,e)).buffer}return new Uint8Array(t)})}close(){return TE(this,void 0,void 0,function*(){let e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return TE(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return TE(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}},Nwe=c({BaseInt64:()=>R2,Int128:()=>V2,Int64:()=>B2,Uint64:()=>z2}),Pwe=65536;function F2(e){return e<0&&(e=4294967295+e+1),`0x${e.toString(16)}`}var I2=8,L2=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],R2=class{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){let t=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),n=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]),r=t[3]*n[3];this.buffer[0]=r&65535;let i=r>>>16;return r=t[2]*n[3],i+=r,r=t[3]*n[2]>>>0,i+=r,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0<r?Pwe:0,this.buffer[1]+=i>>>16,this.buffer[1]+=t[1]*n[3]+t[2]*n[2]+t[3]*n[1],this.buffer[1]+=t[0]*n[3]+t[1]*n[2]+t[2]*n[1]+t[3]*n[0]<<16,this}_plus(e){let t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${F2(this.buffer[1])} ${F2(this.buffer[0])}`}},z2=class e extends R2{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(t,n=new Uint32Array(2)){return e.fromString(typeof t==`string`?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(2)){return e.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(2)){let r=t.length,i=new e(n);for(let n=0;n<r;){let a=I2<r-n?I2:r-n,o=new e(new Uint32Array([Number.parseInt(t.slice(n,n+a),10),0])),s=new e(new Uint32Array([L2[a],0]));i.times(s),i.plus(o),n+=a}return i}static convertArray(t){let n=new Uint32Array(t.length*2);for(let r=-1,i=t.length;++r<i;)e.from(t[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(t,n){return new e(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new e(new Uint32Array(t.buffer)).plus(n)}},B2=class e extends R2{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){let t=this.buffer[1]<<0,n=e.buffer[1]<<0;return t<n||t===n&&this.buffer[0]<e.buffer[0]}static from(t,n=new Uint32Array(2)){return e.fromString(typeof t==`string`?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(2)){return e.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(2)){let r=t.startsWith(`-`),i=t.length,a=new e(n);for(let n=+!!r;n<i;){let r=I2<i-n?I2:i-n,o=new e(new Uint32Array([Number.parseInt(t.slice(n,n+r),10),0])),s=new e(new Uint32Array([L2[r],0]));a.times(s),a.plus(o),n+=r}return r?a.negate():a}static convertArray(t){let n=new Uint32Array(t.length*2);for(let r=-1,i=t.length;++r<i;)e.from(t[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(t,n){return new e(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new e(new Uint32Array(t.buffer)).plus(n)}},V2=class e{constructor(e){this.buffer=e}high(){return new B2(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new B2(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(e){let t=new z2(new Uint32Array([this.buffer[3],0])),n=new z2(new Uint32Array([this.buffer[2],0])),r=new z2(new Uint32Array([this.buffer[1],0])),i=new z2(new Uint32Array([this.buffer[0],0])),a=new z2(new Uint32Array([e.buffer[3],0])),o=new z2(new Uint32Array([e.buffer[2],0])),s=new z2(new Uint32Array([e.buffer[1],0])),c=new z2(new Uint32Array([e.buffer[0],0])),l=z2.multiply(i,c);this.buffer[0]=l.low();let u=new z2(new Uint32Array([l.high(),0]));return l=z2.multiply(r,c),u.plus(l),l=z2.multiply(i,s),u.plus(l),this.buffer[1]=u.low(),this.buffer[3]=+!!u.lessThan(l),this.buffer[2]=u.high(),new z2(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(z2.multiply(n,c)).plus(z2.multiply(r,s)).plus(z2.multiply(i,o)),this.buffer[3]+=z2.multiply(t,c).plus(z2.multiply(n,s)).plus(z2.multiply(r,o)).plus(z2.multiply(i,a)).low(),this}plus(e){let t=new Uint32Array(4);return t[3]=this.buffer[3]+e.buffer[3]>>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]<this.buffer[0]>>>0&&++t[1],t[1]<this.buffer[1]>>>0&&++t[2],t[2]<this.buffer[2]>>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${F2(this.buffer[3])} ${F2(this.buffer[2])} ${F2(this.buffer[1])} ${F2(this.buffer[0])}`}static multiply(t,n){return new e(new Uint32Array(t.buffer)).times(n)}static add(t,n){return new e(new Uint32Array(t.buffer)).plus(n)}static from(t,n=new Uint32Array(4)){return e.fromString(typeof t==`string`?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(4)){return e.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(4)){let r=t.startsWith(`-`),i=t.length,a=new e(n);for(let n=+!!r;n<i;){let r=I2<i-n?I2:i-n,o=new e(new Uint32Array([Number.parseInt(t.slice(n,n+r),10),0,0,0])),s=new e(new Uint32Array([L2[r],0,0,0]));a.times(s),a.plus(o),n+=r}return r?a.negate():a}static convertArray(t){let n=new Uint32Array(t.length*4);for(let r=-1,i=t.length;++r<i;)e.from(t[r],new Uint32Array(n.buffer,n.byteOffset+16*r,4));return n}},Fwe=c({toIntervalDayTimeInt32Array:()=>H2,toIntervalDayTimeObjects:()=>Iwe,toIntervalMonthDayNanoInt32Array:()=>U2,toIntervalMonthDayNanoObjects:()=>Lwe});function H2(e){let t=e.length,n=new Int32Array(t*2);for(let r=0,i=0;r<t;r++){let t=e[r];n[i++]=t.days??0,n[i++]=t.milliseconds??0}return n}function U2(e){let t=e.length,n=new Int32Array(t*4);for(let r=0,i=0;r<t;r++){let t=e[r];n[i++]=t.months??0,n[i++]=t.days??0;let a=t.nanoseconds;
163a?(n[i++]=Number(BigInt(a)&BigInt(4294967295)),n[i++]=Number(BigInt(a)>>BigInt(32))):i+=2}return n}function Iwe(e){let t=e.length,n=Array(t/2);for(let r=0,i=0;r<t;r+=2)n[i++]={days:e[r],milliseconds:e[r+1]};return n}function Lwe(e,t){let n=e.length,r=Array(n/4);for(let i=0,a=0;i<n;i+=4){let n=BigInt(e[i+3])<<BigInt(32)|BigInt(e[i+2]>>>0);r[a++]={months:e[i],days:e[i+1],nanoseconds:t?`${n}`:n}}return r}var W2=class extends Z${constructor(e,t,n,r,i=UZ.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=t,this.buffers=n,this.dictionaries=r,this.metadataVersion=i}visit(e){return super.visit(e instanceof t2?e.type:e)}visitNull(e,{length:t}=this.nextFieldNode()){return k0({type:e,length:t})}visitBool(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitInt(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitFloat(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitUtf8(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeUtf8(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinary(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeBinary(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitFixedSizeBinary(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitDate(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitTimestamp(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitTime(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitDecimal(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitList(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),children:this.visitMany(e.children)})}visitUnion(e,{length:t,nullCount:n}=this.nextFieldNode()){return this.metadataVersion<UZ.V5&&this.readNullBitmap(e,n),e.mode===WZ.Sparse?this.visitSparseUnion(e,{length:t,nullCount:n}):this.visitDenseUnion(e,{length:t,nullCount:n})}visitDenseUnion(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitDuration(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),data:this.readData(e)})}visitFixedSizeList(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),child:this.visit(e.children[0])})}visitMap(e,{length:t,nullCount:n}=this.nextFieldNode()){return k0({type:e,length:t,nullCount:n,nullBitmap:this.readNullBitmap(e,n),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,t,n=this.nextBufferRange()){return t>0&&this.readData(e,n)||new Uint8Array}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e,{length:t,offset:n}=this.nextBufferRange()){return this.bytes.subarray(n,n+t)}readDictionary(e){return this.dictionaries.get(e.id)}},Rwe=class extends W2{constructor(e,t,n,r,i){super(new Uint8Array,t,n,r,i),this.sources=e}readNullBitmap(e,t,{offset:n}=this.nextBufferRange()){return t<=0?new Uint8Array:C0(this.sources[n])}readOffsets(e,{offset:t}=this.nextBufferRange()){return AZ(Uint8Array,AZ(e.OffsetArrayType,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return AZ(Uint8Array,AZ(e.ArrayType,this.sources[t]))}readData(e,{offset:t}=this.nextBufferRange()){let{sources:n}=this;if($.isTimestamp(e)||($.isInt(e)||$.isTime(e))&&e.bitWidth===64||$.isDuration(e)||$.isDate(e)&&e.unit===KZ.MILLISECOND)return AZ(Uint8Array,B2.convertArray(n[t]));if($.isDecimal(e))return AZ(Uint8Array,V2.convertArray(n[t]));if($.isBinary(e)||$.isLargeBinary(e)||$.isFixedSizeBinary(e))return zwe(n[t]);if($.isBool(e))return C0(n[t]);if($.isUtf8(e)||$.isLargeUtf8(e))return mZ(n[t].join(``));if($.isInterval(e))switch(e.unit){case JZ.DAY_TIME:return H2(n[t]);case JZ.MONTH_DAY_NANO:return U2(n[t]);default:break}return AZ(Uint8Array,AZ(e.ArrayType,n[t].map(e=>+e)))}};function zwe(e){let t=e.join(``),n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e>>1]=Number.parseInt(t.slice(e,e+2),16);return n}var Bwe=class extends W2{constructor(e,t,n,r,i){super(new Uint8Array,t,n,r,i),this.bodyChunks=e}readData(e,t=this.nextBufferRange()){return this.bodyChunks[this.buffersIndex]}},G2=class extends Z${compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>this.compareFields(e,t[n]))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}};function K2(e,t){return t instanceof e.constructor}function q2(e,t){return e===t||K2(e,t)}function J2(e,t){return e===t||K2(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function Y2(e,t){return e===t||K2(e,t)&&e.precision===t.precision}function Vwe(e,t){return e===t||K2(e,t)&&e.byteWidth===t.byteWidth}function X2(e,t){return e===t||K2(e,t)&&e.unit===t.unit}function Z2(e,t){return e===t||K2(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function Q2(e,t){return e===t||K2(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function Hwe(e,t){return e===t||K2(e,t)&&e.children.length===t.children.length&&n4.compareManyFields(e.children,t.children)}function Uwe(e,t){return e===t||K2(e,t)&&e.children.length===t.children.length&&n4.compareManyFields(e.children,t.children)}function $2(e,t){return e===t||K2(e,t)&&e.mode===t.mode&&e.typeIds.every((e,n)=>e===t.typeIds[n])&&n4.compareManyFields(e.children,t.children)}function Wwe(e,t){return e===t||K2(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&n4.visit(e.indices,t.indices)&&n4.visit(e.dictionary,t.dictionary)}function e4(e,t){return e===t||K2(e,t)&&e.unit===t.unit}function t4(e,t){return e===t||K2(e,t)&&e.unit===t.unit}function Gwe(e,t){return e===t||K2(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&n4.compareManyFields(e.children,t.children)}function Kwe(e,t){return e===t||K2(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&n4.compareManyFields(e.children,t.children)}G2.prototype.visitNull=q2,G2.prototype.visitBool=q2,G2.prototype.visitInt=J2,G2.prototype.visitInt8=J2,G2.prototype.visitInt16=J2,G2.prototype.visitInt32=J2,G2.prototype.visitInt64=J2,G2.prototype.visitUint8=J2,G2.prototype.visitUint16=J2,G2.prototype.visitUint32=J2,G2.prototype.visitUint64=J2,G2.prototype.visitFloat=Y2,G2.prototype.visitFloat16=Y2,G2.prototype.visitFloat32=Y2,G2.prototype.visitFloat64=Y2,G2.prototype.visitUtf8=q2,G2.prototype.visitLargeUtf8=q2,G2.prototype.visitBinary=q2,G2.prototype.visitLargeBinary=q2,G2.prototype.visitFixedSizeBinary=Vwe,G2.prototype.visitDate=X2,G2.prototype.visitDateDay=X2,G2.prototype.visitDateMillisecond=X2,G2.prototype.visitTimestamp=Z2,G2.prototype.visitTimestampSecond=Z2,G2.prototype.visitTimestampMillisecond=Z2,G2.prototype.visitTimestampMicrosecond=Z2,G2.prototype.visitTimestampNanosecond=Z2,G2.prototype.visitTime=Q2,G2.prototype.visitTimeSecond=Q2,G2.prototype.visitTimeMillisecond=Q2,G2.prototype.visitTimeMicrosecond=Q2,G2.prototype.visitTimeNanosecond=Q2,G2.prototype.visitDecimal=q2,G2.prototype.visitList=Hwe,G2.prototype.visitStruct=Uwe,G2.prototype.visitUnion=$2,G2.prototype.visitDenseUnion=$2,G2.prototype.visitSparseUnion=$2,G2.prototype.visitDictionary=Wwe,G2.prototype.visitInterval=e4,G2.prototype.visitIntervalDayTime=e4,G2.prototype.visitIntervalYearMonth=e4,G2.prototype.visitIntervalMonthDayNano=e4,G2.prototype.visitDuration=t4,G2.prototype.visitDurationSecond=t4,G2.prototype.visitDurationMillisecond=t4,G2.prototype.visitDurationMicrosecond=t4,G2.prototype.visitDurationNanosecond=t4,G2.prototype.visitFixedSizeList=Gwe,G2.prototype.visitMap=Kwe;var n4=new G2;function r4(e,t){return n4.compareSchemas(e,t)}function qwe(e,t){return n4.compareFields(e,t)}function Jwe(e,t){return n4.visit(e,t)}function i4(e,t){return Ywe(e,t.map(e=>e.data.concat()))}function Ywe(e,t){let n=[...e.fields],r=[],i={numBatches:t.reduce((e,t)=>
163Math.max(e,t.length),0)},a=0,o=0,s=-1,c=t.length,l,u=[];for(;i.numBatches-- >0;){for(o=1/0,s=-1;++s<c;)u[s]=l=t[s].shift(),o=Math.min(o,l?l.length:o);Number.isFinite(o)&&(u=Xwe(n,o,u,t,i),o>0&&(r[a++]=k0({type:new W$(n),length:o,nullCount:0,children:u.slice()})))}return[e=e.assign(n),r.map(t=>new c4(e,t))]}function Xwe(e,t,n,r,i){let a=(t+63&-64)>>3;for(let o=-1,s=r.length;++o<s;){let s=n[o],c=s?.length;if(c>=t)c===t?n[o]=s:(n[o]=s.slice(0,t),i.numBatches=Math.max(i.numBatches,r[o].unshift(s.slice(t,c-t))));else{let r=e[o];e[o]=r.clone({nullable:!0}),n[o]=s?._changeLengthAndBackfillNullBitmap(t)??k0({type:r.type,length:t,nullCount:t,nullBitmap:new Uint8Array(a)})}}return n}var a4,o4=class e{constructor(...t){if(t.length===0)return this.batches=[],this.schema=new e2([]),this._offsets=[0],this;let n,r;t[0]instanceof e2&&(n=t.shift()),t.at(-1)instanceof Uint32Array&&(r=t.pop());let i=t=>{if(t){if(t instanceof c4)return[t];if(t instanceof e)return t.batches;if(t instanceof O0){if(t.type instanceof W$)return[new c4(new e2(t.type.children),t)]}else if(Array.isArray(t))return t.flatMap(e=>i(e));else if(typeof t[Symbol.iterator]==`function`)return[...t].flatMap(e=>i(e));else if(typeof t==`object`){let e=Object.keys(t),r=e.map(e=>new Y0([t[e]])),[,i]=i4(n??new e2(e.map((e,t)=>new t2(String(e),r[t].type,r[t].nullable))),r);return i.length===0?[new c4(t)]:i}}return[]},a=t.flatMap(e=>i(e));if(n=n??a[0]?.schema??new e2([]),!(n instanceof e2))throw TypeError(`Table constructor expects a [Schema, RecordBatch[]] pair.`);for(let e of a){if(!(e instanceof c4))throw TypeError(`Table constructor expects a [Schema, RecordBatch[]] pair.`);if(!r4(n,e.schema))throw TypeError(`Table and inner RecordBatch schemas must be equivalent.`)}this.schema=n,this.batches=a,this._offsets=r??M0(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,t)=>e+t.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=j0(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(h0(e,this.numRows))}set(e,t){}indexOf(e,t){return-1}[Symbol.iterator](){return this.batches.length>0?G0.visit(new Y0(this.data)):[][Symbol.iterator]()}toArray(){return[...this]}toString(){return`[\n ${this.toArray().join(`, 164 `)}\n]`}concat(...t){let n=this.schema;return new e(n,this.data.concat(t.flatMap(({data:e})=>e)).map(e=>new c4(n,e)))}slice(t,n){let r=this.schema;return[t,n]=m0({length:this.numRows},t,n),new e(r,N0(this.data,this._offsets,t,n).map(e=>new c4(r,e)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(t=>t.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){let t=this.data.map(t=>t.children[e]);if(t.length===0){let{type:n}=this.schema.fields[e],r=k0({type:n,length:0,nullCount:0});t.push(r._changeLengthAndBackfillNullBitmap(this.numRows))}return new Y0(t)}return null}setChild(e,t){return this.setChildAt(this.schema.fields?.findIndex(t=>t.name===e),t)}setChildAt(t,n){let r=this.schema,i=[...this.batches];if(t>-1&&t<this.numCols){n||=new Y0([k0({type:new y$,length:this.numRows})]);let e=r.fields.slice(),a=e[t].clone({type:n.type}),o=this.schema.fields.map((e,t)=>this.getChildAt(t));[e[t],o[t]]=[a,n],[r,i]=i4(r,o)}return new e(r,i)}select(e){let t=this.schema.fields.reduce((e,t,n)=>e.set(t.name,n),new Map);return this.selectAt(e.map(e=>t.get(e)).filter(e=>e>-1))}selectAt(t){return new e(this.schema.selectAt(t),this.batches.map(e=>e.selectAt(t)))}assign(t){let n=this.schema.fields,[r,i]=t.schema.fields.reduce((e,t,r)=>{let[i,a]=e,o=n.findIndex(e=>e.name===t.name);return~o?a[o]=r:i.push(r),e},[[],[]]);return new e(...i4(this.schema.assign(t.schema),[...n.map((e,t)=>[t,i[t]]).map(([e,n])=>n===void 0?this.getChildAt(e):t.getChildAt(n)),...r.map(e=>t.getChildAt(e))].filter(Boolean)))}};a4=Symbol.toStringTag,o4[a4]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=I0(F0),e.get=I0(s0.getVisitFn(Q.Struct)),e.set=L0(j1.getVisitFn(Q.Struct)),e.indexOf=R0(H0.getVisitFn(Q.Struct)),`Table`))(o4.prototype);var s4,c4=class e{constructor(...e){switch(e.length){case 2:if([this.schema]=e,!(this.schema instanceof e2)||([,this.data=k0({nullCount:0,type:new W$(this.schema.fields),children:this.schema.fields.map(e=>k0({type:e.type,nullCount:0}))})]=e,!(this.data instanceof O0)))throw TypeError(`RecordBatch constructor expects a [Schema, Data] pair.`);[this.schema,this.data]=l4(this.schema,this.data.children);break;case 1:{let[t]=e,{fields:n,children:r,length:i}=Object.keys(t).reduce((e,n,r)=>(e.children[r]=t[n],e.length=Math.max(e.length,t[n].length),e.fields[r]=t2.new({name:n,type:t[n].type,nullable:!0}),e),{length:0,fields:[],children:[]}
164),a=new e2(n),o=k0({type:new W$(n),length:i,children:r,nullCount:0});[this.schema,this.data]=l4(a,o.children,i);break}default:throw TypeError(`RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.`)}}get dictionaries(){return this._dictionaries||=u4(this.schema.fields,this.data.children)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return s0.visit(this.data,e)}at(e){return this.get(h0(e,this.numRows))}set(e,t){return j1.visit(this.data,e,t)}indexOf(e,t){return H0.visit(this.data,e,t)}[Symbol.iterator](){return G0.visit(new Y0([this.data]))}toArray(){return[...this]}concat(...e){return new o4(this.schema,[this,...e])}slice(t,n){let[r]=new Y0([this.data]).slice(t,n).data;return new e(this.schema,r)}getChild(e){return this.getChildAt(this.schema.fields?.findIndex(t=>t.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new Y0([this.data.children[e]]):null}setChild(e,t){return this.setChildAt(this.schema.fields?.findIndex(t=>t.name===e),t)}setChildAt(t,n){let r=this.schema,i=this.data;if(t>-1&&t<this.numCols){n||=new Y0([k0({type:new y$,length:this.numRows})]);let e=r.fields.slice(),a=i.children.slice(),o=e[t].clone({type:n.type});[e[t],a[t]]=[o,n.data[0]],r=new e2(e,new Map(this.schema.metadata)),i=k0({type:new W$(e),children:a})}return new e(r,i)}select(t){let n=this.schema.select(t),r=new W$(n.fields),i=[];for(let e of t){let t=this.schema.fields.findIndex(t=>t.name===e);~t&&(i[t]=this.data.children[t])}return new e(n,k0({type:r,length:this.numRows,children:i}))}selectAt(t){let n=this.schema.selectAt(t),r=t.map(e=>this.data.children[e]).filter(Boolean);return new e(n,k0({type:new W$(n.fields),length:this.numRows,children:r}))}};s4=Symbol.toStringTag,c4[s4]=(e=>(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,`RecordBatch`))(c4.prototype);function l4(e,t,n=t.reduce((e,t)=>Math.max(e,t.length),0)){let r=[...e.fields],i=[...t],a=(n+63&-64)>>3;for(let[o,s]of e.fields.entries()){let e=t[o];(!e||e.length!==n)&&(r[o]=s.clone({nullable:!0}),i[o]=e?._changeLengthAndBackfillNullBitmap(n)??k0({type:s.type,length:n,nullCount:n,nullBitmap:new Uint8Array(a)}))}return[e.assign(r),k0({type:new W$(r),length:n,children:i})]}function u4(e,t,n=new Map){if((e?.length??0)>0&&e?.length===t?.length)for(let r=-1,i=e.length;++r<i;){let{type:i}=e[r],a=t[r];for(let e of[a,...a?.dictionary?.data||[]])u4(i.children,e?.children,n);if($.isDictionary(i)){let{id:e}=i;if(!n.has(e))a?.dictionary&&n.set(e,a.dictionary);else if(n.get(e)!==a.dictionary)throw Error(`Cannot create Schema containing two different dictionaries with the same Id`)}}return n}var d4=class extends c4{constructor(e){let t=e.fields.map(e=>k0({type:e.type})),n=k0({type:new W$(e.fields),nullCount:0,children:t});super(e,n)}},f4=e=>`Expected ${IQ[e]} Message in stream, but was null or length 0.`,p4=e=>`Header pointer of flatbuffer-encoded ${IQ[e]} Message is null or length 0.`,m4=(e,t)=>`Expected to read ${e} metadata bytes, but only read ${t}.`,h4=(e,t)=>`Expected to read ${e} bytes for message body, but only read ${t}.`,g4=class{constructor(e){this.source=e instanceof A2?e:new A2(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||e.value===-1&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?D2:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw Error(f4(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array;let t=NZ(this.source.read(e));if(t.byteLength<e)throw Error(h4(e,t.byteLength));return t.byteOffset%8==0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()}readSchema(e=!1){let t=IQ.Schema,n=this.readMessage(t)?.header();if(e&&!n)throw Error(p4(t));return n}readMetadataLength(){let e=this.source.read(4),t=(e&&new eQ(e))?.readInt32(0)||0;return{done:t===0,value:t}}readMetadata(e){let t=this.source.read(e);if(!t)return D2;if(t.byteLength<e)throw Error(m4(e,t.byteLength));return{done:!1,value:h2.decode(t)}}},Zwe=class{constructor(e,t){this.source=e instanceof j2?e:SZ(e)?new P2(e,t):new j2(e)}[Symbol.asyncIterator](){return this}next(){return TE(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done||e.value===-1&&(e=yield this.readMetadataLength()).done||(e=yield this.readMetadata(e.value)).done?D2:e})}throw(e){return TE(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return TE(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return TE(this,void 0,void 0,function*(){let t;if((t=yield this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw Error(f4(e));return t.value})}readMessageBody(e){return TE(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array;let t=NZ(yield this.source.read(e));if(t.byteLength<e)throw Error(h4(e,t.byteLength));return t.byteOffset%8==0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()})}readSchema(){return TE(this,arguments,void 0,function*(e=!1){let t=IQ.Schema,n=(yield this.readMessage(t))?.header();if(e&&!n)throw Error(p4(t));return n})}readMetadataLength(){return TE(this,void 0,void 0,function*(){let e=yield this.source.read(4),t=(e&&new eQ(e))?.readInt32(0)||0;return{done:t===0,value:t}})}readMetadata(e){return TE(this,void 0,void 0,function*(){let t=yield this.source.read(e);if(!t)return D2;if(t.byteLength<e)throw Error(m4(e,t.byteLength));return{done:!1,value:h2.decode(t)}})}},Qwe=class extends g4{constructor(e){super(new Uint8Array),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof O2?e:new O2(e)}next(){let{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:h2.fromJSON(e.schema,IQ.Schema)};if(this._dictionaryIndex<e.dictionaries.length){let t=e.dictionaries[this._dictionaryIndex++];return this._body=t.data.columns,{done:!1,value:h2.fromJSON(t,IQ.DictionaryBatch)}}if(this._batchIndex<e.batches.length){let t=e.batches[this._batchIndex++];return this._body=t.columns,{done:!1,value:h2.fromJSON(t,IQ.RecordBatch)}}return this._body=[],D2}readMessageBody(e){return t(this._body);function t(e){return(e||[]).reduce((e,n)=>[...e,...n.VALIDITY&&[n.VALIDITY]||[],...n.TYPE_ID&&[n.TYPE_ID]||[],...n.OFFSET&&[n.OFFSET]||[],...n.DATA&&[n.DATA]||[],...t(n.children)],[])}}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw Error(f4(e));return t.value}readSchema(){let e=IQ.Schema,t=this.readMessage(e),n=t?.header();if(!t||!n)throw Error(p4(e));return n}}
164,$we=`ARROW1`,_4=new Uint8Array(6);for(let e=0;e<6;e+=1)_4[e]=$we.codePointAt(e);function v4(e,t=0){for(let n=-1,r=_4.length;++n<r;)if(_4[n]!==e[t+n])return!1;return!0}var y4=_4.length,b4=y4+4,eTe=y4*2+4,tTe=class{constructor(){this.LZ4_FRAME_MAGIC=new Uint8Array([4,34,77,24]),this.MIN_HEADER_LENGTH=7}isValidCodecEncode(e){let t=new Uint8Array([1,2,3,4,5,6,7,8]),n=e.encode(t);return this._isValidCompressed(n)}_isValidCompressed(e){return this._hasMinimumLength(e)&&this._hasValidMagicNumber(e)&&this._hasValidVersion(e)}_hasMinimumLength(e){return e.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(e){return this.LZ4_FRAME_MAGIC.every((t,n)=>e[n]===t)}_hasValidVersion(e){return(e[4]&192)>>6==1}},nTe=class{constructor(){this.ZSTD_MAGIC=new Uint8Array([40,181,47,253]),this.MIN_HEADER_LENGTH=6}isValidCodecEncode(e){let t=new Uint8Array([1,2,3,4,5,6,7,8]),n=e.encode(t);return this._isValidCompressed(n)}_isValidCompressed(e){return this._hasMinimumLength(e)&&this._hasValidMagicNumber(e)}_hasMinimumLength(e){return e.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(e){return this.ZSTD_MAGIC.every((t,n)=>e[n]===t)}},rTe={[rQ.LZ4_FRAME]:new tTe,[rQ.ZSTD]:new nTe},x4=new class{constructor(){this.registry={}}set(e,t){if(t?.encode&&typeof t.encode==`function`&&!rTe[e].isValidCodecEncode(t))throw Error(`Encoder for ${rQ[e]} is not valid.`);this.registry[e]=t}get(e){return this.registry?.[e]||null}},S4=class e extends k2{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){let t=this._impl.open(e);return _Z(t)?t.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return BZ.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return BZ.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw Error(`"throughNode" not available in this environment`)}static throughDOM(e,t){throw Error(`"throughDOM" not available in this environment`)}static from(t){return t instanceof e?t:bZ(t)?sTe(t):SZ(t)?uTe(t):_Z(t)?TE(this,void 0,void 0,function*(){return yield e.from(yield t)}):CZ(t)||TZ(t)||EZ(t)||yZ(t)?lTe(new j2(t)):cTe(new A2(t))}static readAll(t){return t instanceof e?t.isSync()?j4(t):M4(t):bZ(t)||ArrayBuffer.isView(t)||vZ(t)||xZ(t)?j4(t):M4(t)}},C4=class extends S4{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return OE(this,arguments,function*(){yield DE(yield*kE(AE(this[Symbol.iterator]())))})}},w4=class extends S4{constructor(e){super(e),this._impl=e}readAll(){return TE(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=AE(this),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}[Symbol.iterator](){throw Error(`AsyncRecordBatchStreamReader is not Iterable`)}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},T4=class extends C4{constructor(e){super(e),this._impl=e}},iTe=class extends w4{constructor(e){super(e),this._impl=e}},E4=class{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){let n;if(e.compression!=null){let r=x4.get(e.compression.type);if(r?.decode&&typeof r.decode==`function`){let{decommpressedBody:i,buffers:a}=this._decompressBuffers(e,t,r);n=this._loadCompressedVectors(e,i,this.schema.fields),e=new g2(e.length,e.nodes,a,null)}else throw Error(`Record batch is compressed but codec not found`)}else n=this._loadVectors(e,t,this.schema.fields);let r=k0({type:new W$(this.schema.fields),length:e.length,children:n});return new c4(this.schema,r)}_loadDictionaryBatch(e,t){let{id:n,isDelta:r}=e,{dictionaries:i,schema:a}=this,o=i.get(n),s=a.dictionaries.get(n),c;if(e.data.compression!=null){let i=x4.get(e.data.compression.type);if(i?.decode&&typeof i.decode==`function`){let{decommpressedBody:a,buffers:o}=this._decompressBuffers(e.data,t,i);c=this._loadCompressedVectors(e.data,a,[s]),e=new _2(new g2(e.data.length,e.data.nodes,o,null),n,r)}else throw Error(`Dictionary batch is compressed but codec not found`)}else c=this._loadVectors(e.data,t,[s]);return(o&&r?o.concat(new Y0(c)):new Y0(c)).memoize()}
164_loadVectors(e,t,n){return new W2(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}_loadCompressedVectors(e,t,n){return new Bwe(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}_decompressBuffers(e,t,n){let r=[],i=[],a=0;for(let{offset:o,length:s}of e.buffers){if(s===0){r.push(new Uint8Array),i.push(new v2(a,0));continue}let e=new eQ(t.subarray(o,o+s)),c=zQ(e.readInt64(0)),l=e.bytes().subarray(8),u=c===-1?l:n.decode(l);r.push(u);let d=(a+7&-8)-a;a+=d,i.push(new v2(a,u.length)),a+=u.length}return{decommpressedBody:r,buffers:i}}},D4=class extends E4{constructor(e,t){super(t),this._reader=bZ(e)?new Qwe(this._handle=e):new g4(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=A4(this,e),(this.schema||=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):D2}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):D2}next(){if(this.closed)return D2;let e,{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let n=e.header(),r=t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(n,r)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let n=e.header(),r=t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,i)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new d4(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},O4=class extends E4{constructor(e,t){super(t),this._reader=new Zwe(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return TE(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return TE(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=A4(this,e),(this.schema||=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return TE(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):D2})}return(e){return TE(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):D2})}next(){return TE(this,void 0,void 0,function*(){if(this.closed)return D2;let e,{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let n=e.header(),r=yield t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(n,r)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let n=e.header(),r=yield t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,i)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new d4(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return TE(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},k4=class extends D4{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,t){super(e instanceof N2?e:new N2(e),t)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){if(this.closed)return null;this._footer||this.open();let t=this._footer?.getRecordBatch(e);if(t&&this._handle.seek(t.offset)){let e=this._reader.readMessage(IQ.RecordBatch);if(e?.isRecordBatch()){let t=e.header(),n=this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,n)}}return null}_readDictionaryBatch(e){let t=this._footer?.getDictionaryBatch(e);if(t&&this._handle.seek(t.offset)){let e=this._reader.readMessage(IQ.DictionaryBatch);if(e?.isDictionaryBatch()){let t=e.header(),n=this._reader.readMessageBody(e.bodyLength),r=this._loadDictionaryBatch(t,n);this.dictionaries.set(t.id,r)}}}_readFooter(){let{_handle:e}=this,t=e.size-b4,n=e.readInt32(t),r=e.readAt(t-n,n);return i2.decode(r)}_readNextMessageAndValidate(e){if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer?.getRecordBatch(this._recordBatchIndex);if(t&&this._handle.seek(t.offset))return this._reader.readMessage(e)}return null}},aTe=class extends O4{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,...t){let n=typeof t[0]==`number`?void 0:t.shift(),r=t[0]instanceof Map?t.shift():void 0;super(e instanceof P2?e:new P2(e,n),r)}isFile(){return!0}isAsync(){return!0}open(e){let t=Object.create(null,{open:{get:()=>super.open}});return TE(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)})}readRecordBatch(e){return TE(this,void 0,void 0,function*(){if(this.closed)return null;this._footer||(yield this.open());let t=this._footer?.getRecordBatch(e);if(t&&(yield this._handle.seek(t.offset))){let e=yield this._reader.readMessage(IQ.RecordBatch);if(e?.isRecordBatch()){let t=e.header(),n=yield this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,n)}}return null})}_readDictionaryBatch(e){return TE(this,void 0,void 0,function*(){let t=this._footer?.getDictionaryBatch(e);if(t&&(yield this._handle.seek(t.offset))){let e=yield this._reader.readMessage(IQ.DictionaryBatch);if(e?.isDictionaryBatch()){let t=e.header(),n=yield this._reader.readMessageBody(e.bodyLength),r=this._loadDictionaryBatch(t,n);this.dictionaries.set(t.id,r)}}})}_readFooter(){return TE(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let t=e.size-b4,n=yield e.readInt32(t),r=yield e.readAt(t-n,n);return i2.decode(r)})}_readNextMessageAndValidate(e){return TE(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&(yield this._handle.seek(t.offset)))return yield this._reader.readMessage(e)}return null})}},oTe=class extends D4{constructor(e,t){super(e,t)}
164_loadVectors(e,t,n){return new Rwe(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}};function A4(e,t){return t&&typeof t.autoDestroy==`boolean`?t.autoDestroy:e.autoDestroy}function*j4(e){let t=S4.from(e);try{if(!t.open({autoDestroy:!1}).closed)do yield t;while(!t.reset().open().closed)}finally{t.cancel()}}function M4(e){return OE(this,arguments,function*(){let t=yield DE(S4.from(e));try{if(!(yield DE(t.open({autoDestroy:!1}))).closed)do yield yield DE(t);while(!(yield DE(t.reset().open())).closed)}finally{yield DE(t.cancel())}})}function sTe(e){return new C4(new oTe(e))}function cTe(e){let t=e.peek(y4+7&-8);return t&&t.byteLength>=4?v4(t)?new T4(new k4(e.read())):new C4(new D4(e)):new C4(new D4(function*(){}()))}function lTe(e){return TE(this,void 0,void 0,function*(){let t=yield e.peek(y4+7&-8);return t&&t.byteLength>=4?v4(t)?new T4(new k4(yield e.read())):new w4(new O4(e)):new w4(new O4(function(){return OE(this,arguments,function*(){})}()))})}function uTe(e){return TE(this,void 0,void 0,function*(){let{size:t}=yield e.stat(),n=new P2(e,t);return t>=eTe&&v4(yield n.readAt(0,y4+7&-8))?new iTe(new aTe(n)):new w4(new O4(n))})}function N4(e){let t=S4.from(e);return _Z(t)?t.then(e=>N4(e)):t.isAsync()?t.readAll().then(e=>new o4(e)):new o4(t.readAll())}var P4=`range`,F4=function(e){return e.INDEX=`index`,e.DATA=`data`,e}({});function dTe(e){let t=[];for(let n=0;n<e.length;n++)t.push(e.get(n));return t}function I4(e){if(!Ba(e.pandasType))return e.pandasType.pandas_type===`object`?e.pandasType.numpy_type:e.pandasType.pandas_type}function fTe(e){let t=e.arrowField?.type?.timezone??e.pandasType?.metadata?.timezone;return typeof t==`string`?t:void 0}function L4(e){if(Ba(e))return!1;let t=I4(e)??``;return $.isInt(e.arrowField.type)&&!V4(e)||t.startsWith(`int`)&&!H4(e)||U4(e)||R4(e)}function R4(e){return Ba(e)?!1:$.isInt(e.arrowField.type)&&e.arrowField.type.isSigned===!1||(I4(e)?.startsWith(`uint`)??!1)}function z4(e){return Ba(e)?!1:($.isFloat(e.arrowField.type)||I4(e)?.startsWith(`float`))??!1}function B4(e){return Ba(e)?!1:$.isDecimal(e.arrowField.type)||I4(e)===`decimal`}function pTe(e){return Ba(e)?!1:L4(e)||z4(e)||B4(e)}function mTe(e){return Ba(e)?!1:$.isBool(e.arrowField.type)||I4(e)===`bool`}function hTe(e){return Ba(e)?!1:$.isDuration(e.arrowField.type)||(I4(e)?.startsWith(`timedelta`)??!1)}function V4(e){return Ba(e)?!1:$.isInt(e.arrowField.type)&&e.arrowField.metadata.get(`ARROW:extension:name`)===`period`||(I4(e)?.startsWith(`period`)??!1)}function gTe(e){return Ba(e)?!1:$.isTimestamp(e.arrowField.type)||(I4(e)?.startsWith(`datetime`)??!1)}function _Te(e){return Ba(e)?!1:$.isDate(e.arrowField.type)||I4(e)===`date`}function vTe(e){return Ba(e)?!1:$.isTime(e.arrowField.type)||I4(e)===`time`}function yTe(e){return Ba(e)?!1:$.isDictionary(e.arrowField.type)||I4(e)===`categorical`}function bTe(e){return Ba(e)?!1:$.isList(e.arrowField.type)||$.isFixedSizeList(e.arrowField.type)||(I4(e)?.startsWith(`list`)??!1)}function xTe(e){return Ba(e)?!1:$.isStruct(e.arrowField.type)||$.isMap(e.arrowField.type)||I4(e)===`object`}function STe(e){return Ba(e)?!1:$.isBinary(e.arrowField.type)||$.isLargeBinary(e.arrowField.type)||I4(e)===`bytes`}function CTe(e){return Ba(e)?!1:$.isUtf8(e.arrowField.type)||$.isLargeUtf8(e.arrowField.type)||[`unicode`,`large_string[pyarrow]`].includes(I4(e)??``)}function wTe(e){return Ba(e)?!1:$.isNull(e.arrowField.type)||I4(e)===`empty`}function H4(e){return Ba(e)?!1:$.isStruct(e.arrowField.type)&&e.arrowField.metadata.get(`ARROW:extension:name`)===`interval`||(I4(e)?.startsWith(`interval`)??!1)}function U4(e){return Ba(e)?!1:I4(e)===P4}function W4(e){return typeof e==`object`&&e.kind===`range`}function TTe(e){let t=e.schema.metadata.get(`pandas`);if(!Ba(t))return JSON.parse(t)}function ETe(e,t){return t?t.index_columns.map(t=>{if(W4(t)){let{start:e,stop:n,step:r}=t;return eg(e,n,r)}let n=e.getChild(t);return n instanceof Y0&&n.type instanceof y$?null:n}).filter(e=>e!==null):[]}function DTe(e,t){if(t===1)return[e];try{return JSON.parse(e.trim().replace(/^\(/,`[`).replace(/\)$/,`]`).replace(/'/g,`"`))}catch{return[...Array(t-1).fill(``),e]}}function OTe(e,t,n){return ng(t.concat(e).map(e=>e.arrowField.name.startsWith(`__index_level_`)?``:e.arrowField.name).map(e=>DTe(e,n?.column_indexes.length??1)))}function kTe(e,t){let n=e.numRows,r=t.length;if(n===0||r===0)return e.select([]);let i=t.map(e=>e.arrowField.name);return e.select(i)}function ATe(e,t,n){return t?t.index_columns.map(r=>{if(W4(r)){let e=r.name||``;return{type:F4.INDEX,arrowField:new t2(e,new b$(!0,64),!0),pandasType:{field_name:e,name:e,pandas_type:P4,numpy_type:P4,metadata:r}}}let i=e.fields.find(e=>e.name===r);if(!i)throw Error(`Index field ${r} not found in arrow schema`);return{type:F4.INDEX,arrowField:i,pandasType:t.columns.find(e=>e.field_name===r),categoricalOptions:n[i.name]}}):[]}function jTe(e,t,n){return e.fields.filter(e=>t?!t.index_columns.includes(e.name):!0).map(e=>({type:F4.DATA,arrowField:e,pandasType:t?.columns.find(t=>t.field_name===e.name),categoricalOptions:n[e.name]}))}function MTe(e){let t={};return e.schema.fields.forEach((n,r)=>{if(n.type instanceof Y$){let i=e.getChildAt(r)?.data[0]?.dictionary;I(i)&&(t[n.name]=dTe(i))}}),t}
164function NTe(e){let t=N4(e),n=t.schema,r=TTe(t),i=MTe(t),a=ATe(n,r,i),o=jTe(n,r,i),s=kTe(t,o);return{pandasIndexData:ETe(t,r),data:s,columnNames:OTe(o,a,r),pandasIndexColumnTypes:a,dataColumnTypes:o}}var G4=class{constructor(e){let{pandasIndexData:t,columnNames:n,data:r,dataColumnTypes:i,pandasIndexColumnTypes:a}=NTe(e.data),o=e.styler?PTe(e.styler):void 0;this._pandasIndexData=t,this._columnNames=n,this._data=r,this._dataColumnTypes=i,this._pandasIndexColumnTypes=a,this._styler=o,this._num_bytes=e.data?.length??0,this._columnTypes=this._pandasIndexColumnTypes.concat(this._dataColumnTypes)}get columnNames(){return this._columnNames}get columnTypes(){return this._columnTypes}get styler(){return this._styler}get dimensions(){let e=this._pandasIndexColumnTypes.length||0,t=this._columnNames.length||1,n=this._data.numRows||0,r=this._dataColumnTypes.length||0;return{numHeaderRows:t,numIndexColumns:e,numDataRows:n,numDataColumns:r,numRows:t+n,numColumns:e+r}}get hash(){return wg([this.dimensions.numColumns,this.dimensions.numDataColumns,this.dimensions.numDataRows,this.dimensions.numIndexColumns,this.dimensions.numHeaderRows,this.dimensions.numRows,this._num_bytes,this._columnNames].join(`-`))}getCell(e,t){let{numIndexColumns:n,numDataRows:r,numColumns:i}=this.dimensions;if(e<0||e>=r)throw Error(`Row index is out of range: ${e}`);if(t<0||t>=i)throw Error(`Column index is out of range: ${t}`);if(t<n){let n=this._pandasIndexColumnTypes[t],r=this.getIndexValue(e,t);return{type:F4.INDEX,content:r,contentType:n,field:n.arrowField}}let a=t-n,o=this._dataColumnTypes[a],s=this.getDataValue(e,a);return{type:F4.DATA,content:s,contentType:o,field:o.arrowField}}getIndexValue(e,t){let n=this._pandasIndexData[t];return n instanceof Y0?n.get(e):n[e]}getDataValue(e,t){return this._data.getChildAt(t)?.get(e)}};function PTe(e){return{uuid:e.uuid,caption:e.caption,cssStyles:e.styles,cssId:e.uuid?`T_${e.uuid}`:void 0,displayValues:new G4({data:e.displayValues})}}var K4=[];for(let e=0;e<256;++e)K4.push((e+256).toString(16).slice(1));function FTe(e,t=0){return(K4[e[t+0]]+K4[e[t+1]]+K4[e[t+2]]+K4[e[t+3]]+`-`+K4[e[t+4]]+K4[e[t+5]]+`-`+K4[e[t+6]]+K4[e[t+7]]+`-`+K4[e[t+8]]+K4[e[t+9]]+`-`+K4[e[t+10]]+K4[e[t+11]]+K4[e[t+12]]+K4[e[t+13]]+K4[e[t+14]]+K4[e[t+15]]).toLowerCase()}var ITe=new Uint8Array(16);function LTe(){return crypto.getRandomValues(ITe)}function q4(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():RTe(e,t,n)}function RTe(e,t,n){e||={};let r=e.random??e.rng?.()??LTe();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return FTe(r)}var zTe=(0,Zt.getLogger)(`FileUploadClient`),BTe=class{constructor(e){this.formsWithPendingRequests=new Map,this.pendingFileURLsRequests=new Map,this.sessionInfo=e.sessionInfo,this.endpoints=e.endpoints,this.pendingFormUploadsChanged=e.formsWithPendingRequestsChanged,this.requestFileURLs=e.requestFileURLs}async uploadFile(e,t,n,r,i){return this.offsetPendingRequestCount(e.formId,1),this.endpoints.uploadFileUploaderFile(t,n,this.sessionInfo.current.sessionId,r,i).finally(()=>this.offsetPendingRequestCount(e.formId,-1))}deleteFile(e){return this.endpoints.deleteFileAtURL?this.endpoints.deleteFileAtURL(e,this.sessionInfo.current.sessionId):Promise.resolve()}fetchFileURLs(e){if(!this.requestFileURLs)return Promise.resolve([]);let t=Promise.withResolvers(),n=q4();return this.pendingFileURLsRequests.set(n,t),this.requestFileURLs(n,e),t.promise}onFileURLsResponse(e){let t=e.responseId,n=this.pendingFileURLsRequests.get(t);n?(e.errorMsg?n.reject(e.errorMsg):n.resolve(e.fileUrls||[]),this.pendingFileURLsRequests.delete(t)):zTe.warn(`fileURLsResponse received for nonexistent request, ignoring.`)}getFormIdSet(){return new Set(this.formsWithPendingRequests.keys())}offsetPendingRequestCount(e,t){if(t===0||!Ag(e))return;let n=this.formsWithPendingRequests.get(e)??0,r=n+t;if(r<0)throw Error(`Can't offset pendingRequestCount below 0 (formId=${e}, curCount=${n}, offset=${t})`);let i=this.getFormIdSet();r===0?this.formsWithPendingRequests.delete(e):this.formsWithPendingRequests.set(e,r);let a=this.getFormIdSet();Jh(a,i)||this.pendingFormUploadsChanged(a)}},J4=(0,Zt.getLogger)(`BackendOperationClient`),VTe=3e4,HTe=18e4,UTe=class{constructor(e){this.pendingRequests=new Map,this.sendRequest=e.sendRequest,this.get
164SessionId=e.getSessionId,this.timeoutMs=e.timeoutMs??VTe}request(e,t,n){let r=q4(),i=n??this.timeoutMs,a=Promise.withResolvers(),o,s;try{o=this.getSessionId(),s=new fo({requestId:r,sessionId:o,[e]:t})}catch(e){return a.reject(e),a.promise}let c=setTimeout(()=>{this.handleTimeout(r)},i);this.pendingRequests.set(r,{resolver:a,timeoutId:c,requestType:e});try{this.sendRequest(s)}catch(e){this.cleanupRequest(r),a.reject(e)}return a.promise}requestDeferredFile(e,t){return this.request(`deferredFile`,{fileId:e},t??HTe)}onResponse(e){let t=e.requestId,n=this.pendingRequests.get(t);if(!n){J4.warn(`Received response for unknown request ${t}`);return}if(this.cleanupRequest(t),e.errorMsg)n.resolver.reject(Error(e.errorMsg));else try{let t=this.extractResponsePayload(e);n.resolver.resolve(t)}catch(e){n.resolver.reject(e)}}cleanup(){for(let[e,t]of this.pendingRequests)clearTimeout(t.timeoutId),t.resolver.reject(Error(`Connection closed`)),J4.debug(`Cleaned up pending request ${e}`);this.pendingRequests.clear()}get pendingCount(){return this.pendingRequests.size}handleTimeout(e){let t=this.pendingRequests.get(e);t&&(J4.warn(`Request ${e} (${t.requestType}) timed out`),this.pendingRequests.delete(e),t.resolver.reject(Error(`Request timed out`)))}cleanupRequest(e){let t=this.pendingRequests.get(e);t&&(clearTimeout(t.timeoutId),this.pendingRequests.delete(e))}extractResponsePayload(e){if(e.deferredFile)return e.deferredFile;throw J4.warn(`Response contained no recognized payload`,e),Error(`Response contained no recognized payload`)}},WTe=class{constructor(e){this.isHostCommOpen=!1,this.openHostCommunication=()=>{this.isHostCommOpen||(this.isHostCommOpen=!0,window.addEventListener(`message`,this.receiveHostMessage),this.sendMessageToHost({type:`GUEST_READY`,streamlitExecutionStartedAt:this.props.streamlitExecutionStartedAt,guestReadyAt:Date.now()}))},this.closeHostCommunication=()=>{window.removeEventListener(`message`,this.receiveHostMessage),this.isHostCommOpen=!1},this.resetAuthToken=()=>{this.deferredAuthToken=Promise.withResolvers()},this.claimAuthToken=()=>this.deferredAuthToken.promise,this.setAllowedOrigins=({allowedOrigins:e,useExternalAuthToken:t})=>{t||this.deferredAuthToken.resolve(void 0),e?.length&&(this.allowedOrigins=e,this.openHostCommunication())},this.sendMessageToSameOriginHost=e=>{window.parent.postMessage({stCommVersion:1,...e},window.location.origin)},this.sendMessageToHost=e=>{window.parent.postMessage({stCommVersion:1,...e},`*`)},this.receiveHostMessage=e=>{let t=e.data;if(!(t.stCommVersion!==1||!this.allowedOrigins.find(t=>ioe(t,e.origin)))){if(t.type===`CLOSE_MODAL`&&this.props.closeModal(),t.type===`STOP_SCRIPT`&&this.props.stopScript(),t.type===`RERUN_SCRIPT`&&this.props.rerunScript(),t.type===`CLEAR_CACHE`&&this.props.clearCache(),t.type===`REQUEST_PAGE_CHANGE`&&this.props.pageChanged(t.pageScriptHash),t.type===`SEND_APP_HEARTBEAT`){let e=t.ackTimeoutMilliseconds,n=typeof e==`number`&&Number.isFinite(e)&&e>0?e:0;this.props.sendAppHeartbeat(n)}if(t.type===`SET_INPUTS_DISABLED`&&this.props.setInputsDisabled(t.disabled),t.type===`SET_AUTH_TOKEN`&&this.deferredAuthToken.resolve(t.authToken),t.type===`SET_FILE_UPLOAD_CLIENT_CONFIG`){let{prefix:e,headers:n}=t;this.props.fileUploadClientConfigChanged({prefix:e,headers:n})}t.type===`SET_IS_OWNER`&&this.props.isOwnerChanged(t.isOwner),t.type===`SET_MENU_ITEMS`&&this.props.hostMenuItemsChanged(t.items),t.type===`SET_METADATA`&&this.props.deployedAppMetadataChanged(t.metadata),t.type===`SET_PAGE_LINK_BASE_URL`&&this.props.pageLinkBaseUrlChanged(t.pageLinkBaseUrl),t.type===`SET_SIDEBAR_CHEVRON_DOWNSHIFT`&&this.props.sidebarChevronDownshiftChanged(t.sidebarChevronDownshift),t.type===`SET_SIDEBAR_NAV_VISIBILITY`&&this.props.hostHideSidebarNavChanged(t.hidden),t.type===`SET_TOOLBAR_ITEMS`&&this.props.hostToolbarItemsChanged(t.items),t.type===`UPDATE_FROM_QUERY_PARAMS`&&(this.props.queryParamsChanged(t.queryParams),this.props.sendRerunBackMsg()),t.type===`UPDATE_HASH`&&(window.location.hash=t.hash),t.type===`SET_CUSTOM_THEME_CONFIG`&&this.props.themeChanged(t.themeName,t.themeInfo),t.type===`RESTART_WEBSOCKET_CONNECTION`&&this.props.restartWebsocketConnection(),t.type===`TERMINATE_WEBSOCKET_CONNECTION`&&this.props.terminateWebsocketConnection(),t.type===`PRINT_APP`&&this.props.printApp()}},this.props=e,this.allowedOrigins=[],this.deferredAuthToken=Promise.withResolvers()}},Y4=class{get current(){if(!this._current)throw Error(`Tried to use SessionInfo before it was initialized`);return this._current}get last(){return this._last}setCurrent(e){this._last=I(this._current)?{...this._current}:void 0,this._current=I(e)?{...e}:void 0}disconnect(){this._current&&this.setCurrent({...this._current,isConnected:!1})}get isSet(){return I(this._current)}get isHello(){return I(this._current)&&this._current.isHello}static propsFromNewSessionMessage(e){let t=e.initialize,n=e.config,r=t.userInfo,i=t.environmentInfo;return{appId:wg(r.installationIdV3+e.mainScriptPath),sessionId:t.sessionId,streamlitVersion:i.streamlitVersion,pythonVersion:i.pythonVersion,serverOS:i.serverOs,hasDisplay:i.hasDisplay,installationId:r.installationId,installationIdV3:r.installationIdV3,installationIdV4:r.installationIdV4,maxCachedMessageAge:n.maxCachedMessageAge,isHello:t.isHello,isConnected:!0}}},GTe=e=>ka(`html{font-size:`,e.fontSizes.baseFontSize,`px;}@media print{html{height:100%;print-color-adjust:exact;-webkit-print-color-adjust:exact;}}*,*::before,*::after{box-sizing:border-box;}body{margin:0;font-family:`,e.genericFonts.bodyFont,`;font-weight:`,e.fontWeights.normal,`;line-height:`,e.lineHeights.base,`;color:`,e.colors.bodyText,`;background-color:`,e.colors.bgColor,`;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:`,G_(e.colors.black,1),`;-webkit-font-smoothing:auto;}body.embedded{overflow:hidden;}body.embedded:hover{overflow:auto;}[tabindex="-1"]:focus:not(:focus-visible){outline:0 !important;}p,ol,ul,dl{margin:0 0 1rem 0;padding:0;font-size:1rem;font-weight:`,e.fontWeights.normal,`;}ol ol,ul ul,ol ul,ul ol{margin-bottom:0;}a:not([href]):not([class]){&,&:hover{color:inherit;text-decoration:none;}}img,svg{vertical-align:middle;}input,button,select,optgroup,textarea{margin:0;font-family:inherit;line-height:inherit;font-size:inherit;}button,input{overflow:visible;}button,[role="button"]{&:not(:disabled){cursor:pointer;}}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button;}[hidden]{display:none !important;}@supports (scrollbar-color:transparent transparent){*{scrollbar-width:thin;scrollbar-color:transparent transparent;}*:hover{scrollbar-color:`,e.colors.fadedText40,` transparent;}}@supports not (scrollbar-color:transparent transparent){::-webkit-scrollbar{background:transparent;border-radius:`,e.radii.full,`;height:6px;width:6px;}::-webkit-scrollbar:active{background:`,e.colors.fadedText10,`;}:hover::-webkit-scrollbar-thumb:vertical,:hover::-webkit-scrollbar-thumb:horizontal{background:`,e.colors.fadedText40,`;border-radius:`,e.radii.full,`;}}`),X4=document.currentScript?.nonce||``,KTe=et({key:`st-emotion-cache`,...X4&&{nonce:X4}});function qTe(e){let{children:t,theme:n}=e;return P(Yie,{theme:n.basewebTheme,zIndex:n.emotion.zIndices.popup,children:P(kt,{value:KTe,children:F(Ft,{theme:n.emotion,children:[P(Oa,{styles:[GTe]}),t]})})})}function Z4(e){return e instanceof Error?e:Error(`${e}`)}
vendor: 9,705 bytes, line 164
164var JTe=(e,t,n)=>performance.measure(e,t,n),Q4=e=>performance.mark(e),$4=Symbol.for(`immer-nothing`),e3=Symbol.for(`immer-draftable`),t3=Symbol.for(`immer-state`);function n3(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var r3=Object,i3=r3.getPrototypeOf,a3=`constructor`,o3=`prototype`,s3=`configurable`,c3=`enumerable`,l3=`writable`,u3=`value`,d3=e=>!!e&&!!e[t3];function f3(e){return e?m3(e)||b3(e)||!!e[e3]||!!e[a3]?.[e3]||x3(e)||S3(e):!1}var YTe=r3[o3][a3].toString(),p3=new WeakMap;function m3(e){if(!e||!C3(e))return!1;let t=i3(e);if(t===null||t===r3[o3])return!0;let n=r3.hasOwnProperty.call(t,a3)&&t[a3];if(n===Object)return!0;if(!w3(n))return!1;let r=p3.get(n);return r===void 0&&(r=Function.toString.call(n),p3.set(n,r)),r===YTe}function h3(e,t,n=!0){g3(e)===0?(n?Reflect.ownKeys(e):r3.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function g3(e){let t=e[t3];return t?t.type_:b3(e)?1:x3(e)?2:S3(e)?3:0}var _3=(e,t,n=g3(e))=>n===2?e.has(t):r3[o3].hasOwnProperty.call(e,t),v3=(e,t,n=g3(e))=>n===2?e.get(t):e[t],y3=(e,t,n,r=g3(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function XTe(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var b3=Array.isArray,x3=e=>e instanceof Map,S3=e=>e instanceof Set,C3=e=>typeof e==`object`,w3=e=>typeof e==`function`,T3=e=>typeof e==`boolean`;function ZTe(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var E3=e=>C3(e)?e?.[t3]:null,D3=e=>e.copy_||e.base_,QTe=e=>{let t=E3(e);return t?t.copy_??t.base_:e},O3=e=>e.modified_?e.copy_:e.base_;function k3(e,t){if(x3(e))return new Map(e);if(S3(e))return new Set(e);if(b3(e))return Array[o3].slice.call(e);let n=m3(e);if(t===!0||t===`class_only`&&!n){let t=r3.getOwnPropertyDescriptors(e);delete t[t3];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[l3]===!1&&(a[l3]=!0,a[s3]=!0),(a.get||a.set)&&(t[i]={[s3]:!0,[l3]:!0,[c3]:a[c3],[u3]:e[i]})}return r3.create(i3(e),t)}else{let t=i3(e);if(t!==null&&n)return{...e};let r=r3.create(t);return r3.assign(r,e)}}function A3(e,t=!1){return M3(e)||d3(e)||!f3(e)?e:(g3(e)>1&&r3.defineProperties(e,{set:j3,add:j3,clear:j3,delete:j3}),r3.freeze(e),t&&h3(e,(e,t)=>{A3(t,!0)},!1),e)}function $Te(){n3(2)}var j3={[u3]:$Te};function M3(e){return e===null||!C3(e)?!0:r3.isFrozen(e)}var N3=`MapSet`,P3=`Patches`,F3=`ArrayMethods`,I3={};function L3(e){let t=I3[e];return t||n3(0,e),t}var R3=e=>!!I3[e];function z3(e,t){I3[e]||(I3[e]=t)}var B3,V3=()=>B3,eEe=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:R3(N3)?L3(N3):void 0,arrayMethodsPlugin_:R3(F3)?L3(F3):void 0});function H3(e,t){t&&(e.patchPlugin_=L3(P3),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function U3(e){W3(e),e.drafts_.forEach(tEe),e.drafts_=null}function W3(e){e===B3&&(B3=e.parent_)}var G3=e=>B3=eEe(B3,e);function tEe(e){let t=e[t3];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function K3(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[t3].modified_&&(U3(t),n3(4)),f3(e)&&(e=q3(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[t3].base_,e,t)}else e=q3(t,n);return nEe(t,e,!0),U3(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===$4?void 0:e}function q3(e,t){if(M3(t))return t;let n=t[t3];if(!n)return $3(t,e.handledSet_,e);if(!Y3(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);Z3(n,e)}return n.copy_}function nEe(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&A3(t,n)}function J3(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Y3=(e,t)=>e.scope_===t,rEe=[];function X3(e,t,n,r){let i=D3(e),a=e.type_;if(r!==void 0&&v3(i,r,a)===t){y3(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;h3(i,(e,n)=>{if(d3(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??rEe;for(let e of o)y3(i,e,n,a)}function iEe(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Y3(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=O3(i);X3(e,i.draft_??i,a,n),Z3(i,r)})}function Z3(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}J3(e)}}function Q3(e,t,n){let{scope_:r}=e;if(d3(n)){let i=n[t3];Y3(i,r)&&i.callbacks_.push(function(){a6(e),X3(e,n,O3(i),t)})}else f3(n)&&e.callbacks_.push(function(){let i=D3(e);e.type_===3?i.has(n)&&$3(n,r.handledSet_,r):v3(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&$3(v3(e.copy_,t,e.type_),r.handledSet_,r)})}function $3(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||d3(e)||t.has(e)||!f3(e)||M3(e)?e:(t.add(e),h3(e,(r,i)=>{if(d3(i)){let t=i[t3];Y3(t,n)&&(y3(e,r,O3(t),e.type_),J3(t))}else f3(i)&&$3(i,t,n)}),e)}function aEe(e,t){let n=b3(e),r={type_:+!!n,scope_:t?t.scope_:V3(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=e6;n&&(i=[r],a=t6);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var e6={get(e,t){if(t===t3)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=D3(e);if(!_3(i,t,e.type_))return oEe(e,i,t);let a=i[t];if(e.finalized_||!f3(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&ZTe(t))return a;if(a===n6(e.base_,t)){a6(e);let n=e.type_===1?+t:t,r=o6(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in D3(e)},ownKeys(e){return Reflect.ownKeys(D3(e))},set(e,t,n){let r=r6(D3(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=n6(D3(e),t),i=r?.[t3];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(XTe(n,r)&&(n!==void 0||_3(e.base_,t,e.type_)))return!0;a6(e),i6(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Q3(e,t,n),!0)},deleteProperty(e,t){return a6(e),n6(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),i6(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=D3(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[l3]:!0,[s3]:e.type_!==1||t!==`length`,[c3]:r[c3],[u3]:n[t]}},defineProperty(){n3(11)},getPrototypeOf(e){return i3(e.base_)},setPrototypeOf(){n3(12)}},t6={};for(let e in e6){let t=e6[e];t6[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}t6.deleteProperty=function(e,t){return t6.set.call(this,e,t,void 0)},t6.set=function(e,t,n){return e6.set.call(this,e[0],t,n,e[0])};function n6(e,t){let n=e[t3];return(n?D3(n):e)[t]}function oEe(e,t,n){let r=r6(t,n);return r?u3 in r?r[u3]:r.get?.call(e.draft_):void 0}function r6(e,t){if(!(t in e))return;let n=i3(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=i3(n)}}function i6(e){e.modified_||(e.modified_=!0,e.parent_&&i6(e.parent_))}function a6(e){e.copy_||=(e.assigned_=new Map,k3(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var sEe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(w3(e)&&!w3(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}w3(t)||n3(6),n!==void 0&&!w3(n)&&n3(7);let r;if(f3(e)){let i=G3(this),a=o6(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?U3(i):W3(i)}return H3(i,n),K3(r,i)}else if(!e||!C3(e)){if(r=t(e),r===void 0&&(r=e),r===$4&&(r=void 0),this.autoFreeze_&&A3(r,!0),n){let t=[],i=[];L3(P3).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else n3(1,e)},this.produceWithPatches=(e,t)=>{if(w3(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},T3(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),T3(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),T3(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){f3(e)||n3(8),d3(e)&&(e=cEe(e));let t=G3(this),n=o6(t,e,void 0);return n[t3].isManual_=!0,W3(t),n}finishDraft(e,t){let n=e&&e[t3];(!n||!n.isManual_)&&n3(9);let{scope_:r}=n;return H3(r,t),K3(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=L3(P3).applyPatches_;return d3(e)?r(e,t):this.produce(e,e=>r(e,t))}};function o6(e,t,n,r){let[i,a]=x3(t)?L3(N3).proxyMap_(t,n):S3(t)?L3(N3).proxySet_(t,n):aEe(t,n);return(n?.scope_??V3()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?iEe(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function cEe(e){return d3(e)||n3(10,e),s6(e)}function s6(e){if(!f3(e)||M3(e))return e;let t=e[t3],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=k3(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=k3(e,!0);return h3(n,(e,t)=>{y3(n,e,s6(t))},r),t&&(t.finalized_=!1),n}function lEe(){function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=E3(v3(e,n.key_)),i=v3(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;
164if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||_3(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(n=v3(n,r),!C3(n)||n===null)throw Error(`Cannot resolve path at '${t.join(`/`)}'`)}return n}let n=`replace`,r=`remove`;function i(e,t,n){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);let{patches_:r,inversePatches_:i}=n;switch(e.type_){case 0:case 2:return o(e,t,r,i);case 1:return a(e,t,r,i);case 3:return s(e,t,r,i)}}function a(e,t,i,a){let{base_:o,assigned_:s}=e,c=e.copy_;c.length<o.length&&([o,c]=[c,o],[i,a]=[a,i]);let l=e.allIndicesReassigned_===!0;for(let e=0;e<o.length;e++){let r=c[e],u=o[e];if((l||s?.get(e.toString()))&&r!==u){let o=r?.[t3];if(o&&o.modified_)continue;let s=t.concat([e]);i.push({op:n,path:s,value:d(r)}),a.push({op:n,path:s,value:d(u)})}}for(let e=o.length;e<c.length;e++){let n=t.concat([e]);i.push({op:`add`,path:n,value:d(c[e])})}for(let e=c.length-1;o.length<=e;--e){let n=t.concat([e]);a.push({op:r,path:n})}}function o(e,t,i,a){let{base_:o,copy_:s,type_:c}=e;h3(e.assigned_,(e,l)=>{let u=v3(o,e,c),f=v3(s,e,c),p=l?_3(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===$4?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e<i.length-1;e++){let t=g3(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===a3)&&n3(19),w3(o)&&n===o3&&n3(19),o=v3(o,n),C3(o)||n3(18,i.join(`/`))}let s=g3(o),c=u(t.value),l=i[i.length-1];switch(a){case n:switch(s){case 2:return o.set(l,c);case 3:n3(16);default:return o[l]=c}case`add`:switch(s){case 1:return l===`-`?o.push(c):o.splice(l,0,c);case 2:return o.set(l,c);case 3:return o.add(c);default:return o[l]=c}case r:switch(s){case 1:return o.splice(l,1);case 2:return o.delete(l);case 3:return o.delete(t.value);default:return delete o[l]}default:n3(17,a)}}),e}function u(e){if(!f3(e))return e;if(b3(e))return e.map(u);if(x3(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(S3(e))return new Set(Array.from(e).map(u));let t=Object.create(i3(e));for(let n in e)t[n]=u(e[n]);return _3(e,e3)&&(t[e3]=e[e3]),t}function d(e){return d3(e)?u(e):e}z3(P3,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}function uEe(){class e extends Map{constructor(e,t){super(),this[t3]={type_:2,parent_:t,scope_:t?t.scope_:V3(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:e,draft_:this,isManual_:!1,revoked_:!1,callbacks_:[]}}get size(){return D3(this[t3]).size}has(e){return D3(this[t3]).has(e)}set(e,t){let r=this[t3];return o(r),(!D3(r).has(e)||D3(r).get(e)!==t)&&(n(r),i6(r),r.assigned_.set(e,!0),r.copy_.set(e,t),r.assigned_.set(e,!0),Q3(r,e,t)),this}delete(e){if(!this.has(e))return!1;let t=this[t3];return o(t),n(t),i6(t),t.base_.has(e)?t.assigned_.set(e,!1):t.assigned_.delete(e),t.copy_.delete(e),!0}clear(){let e=this[t3];o(e),D3(e).size&&(n(e),i6(e),e.assigned_=new Map,h3(e.base_,t=>{e.assigned_.set(t,!1)}),e.copy_.clear())}forEach(e,t){let n=this[t3];D3(n).forEach((n,r,i)=>{e.call(t,this.get(r),r,this)})}get(e){let t=this[t3];o(t);let r=D3(t).get(e);if(t.finalized_||!f3(r)||r!==t.base_.get(e))return r;let i=o6(t.scope_,r,t,e);return n(t),t.copy_.set(e,i),i}keys(){return D3(this[t3]).keys()}values(){let e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{let t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}}entries(){let e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{let t=e.next();if(t.done)return t;let n=this.get(t.value);return{done:!1,value:[t.value,n]}}}}[Symbol.iterator](){return this.entries()}}function t(t,n){let r=new e(t,n);return[r,r[t3]]}function n(e){e.copy_||=(e.assigned_=new Map,new Map(e.base_))}class r extends Set{constructor(e,t){super(),this[t3]={type_:3,parent_:t,scope_:t?t.scope_:V3(),modified_:!1,finalized_:!1,copy_:void 0,base_:e,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1,assigned_:void 0,callbacks_:[]}}get size(){return D3(this[t3]).size}has(e){let t=this[t3];return o(t),t.copy_?!!(t.copy_.has(e)||t.drafts_.has(e)&&t.copy_.has(t.drafts_.get(e))):t.base_.has(e)}add(e){let t=this[t3];return o(t),this.has(e)||(a(t),i6(t),t.copy_.add(e),Q3(t,e,e)),this}delete(e){if(!this.has(e))return!1;let t=this[t3];return o(t),a(t),i6(t),t.copy_.delete(e)||(t.drafts_.has(e)?t.copy_.delete(t.drafts_.get(e)):!1)}clear(){let e=this[t3];o(e),D3(e).size&&(a(e),i6(e),e.copy_.clear())}values(){let e=this[t3];return o(e),a(e),e.copy_.values()}entries(){let e=this[t3];return o(e),a(e),e.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){let n=this.values(),r=n.next();for(;!r.done;)e.call(t,r.value,r.value,this),r=n.next()}}function i(e,t){let n=new r(e,t);return[n,n[t3]]}function a(e){e.copy_||(e.copy_=new Set,e.base_.forEach(t=>{if(f3(t)){let n=o6(e.scope_,t,e,t);e.drafts_.set(t,n),e.copy_.add(n)}else e.copy_.add(t)}))}function o(e){e.revoked_&&n3(3,JSON.stringify(D3(e)))}function s(e){if(e.type_===3&&e.copy_){let t=new Set(e.copy_);e.copy_.clear(),t.forEach(t=>{e.copy_.add(QTe(t))})}}z3(N3,{proxyMap_:t,proxySet_:i,fixSetContents:s})}var dEe=new sEe().produce,c6=s((e=>{var t=e;t.numberRe=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,t.typeRefRe=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,t.reservedRe=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/,t.unsafePropertyRe=/^(?:__proto__|prototype|constructor)$/})),fEe=s(((e,t)=>{t.exports=r;var n=c6().reservedRe;function r(e,t){typeof e==`string`&&(t=e,e=void 0);var n=[];function a(e){if(typeof e!=`string`){var t=o();if(r.verbose&&console.log(`codegen: `+t),t=`return `+t,e){for(var i=Object.keys(e),s=Array(i.length+1),c=Array(i.length),l=0;l<i.length;
164)s[l]=i[l],c[l]=e[i[l++]];return s[l]=t,Function.apply(null,s).apply(null,c)}return Function(t)()}for(var u=Array(arguments.length-1),d=0;d<u.length;)u[d]=arguments[++d];if(d=0,e=e.replace(/%([%dfijs])/g,function(e,t){var n=u[d++];switch(t){case`d`:case`f`:return String(Number(n));case`i`:return String(Math.floor(n));case`j`:return JSON.stringify(n);case`s`:return String(n)}return`%`}),d!==u.length)throw Error(`parameter count mismatch`);return n.push(e),a}function o(r){return`function `+i(r||t)+`(`+(e&&e.join(`,`)||``)+`){ 165 `+n.join(` 166 `)+` 167}`}return a.toString=o,a}r.verbose=!1;function i(e){return!e||(e=String(e).replace(/[^\w$]/g,``),!e)?``:(/^\d/.test(e)&&(e=`_`+e),n.test(e)?e+`_`:e)}})),l6=s(((e,t)=>{t.exports={}})),u6=s(((e,t)=>{var n=null;try{n=l6(),(!n||!n.readFile||!n.readFileSync)&&(n=null)}catch{}t.exports=n})),pEe=s(((e,t)=>{t.exports=i;var n=Ua(),r=u6();function i(e,t,a){return typeof t==`function`?(a=t,t={}):t||={},a?!t.xhr&&r&&r.readFile?r.readFile(e,function(n,r){return n&&typeof XMLHttpRequest<`u`?i.xhr(e,t,a):n?a(n):a(null,t.binary?r:r.toString(`utf8`))}):i.xhr(e,t,a):n(i,this,e,t)}i.xhr=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(r.readyState===4){if(r.status!==0&&r.status!==200)return n(Error(`status `+r.status));if(t.binary){var e=r.response;if(!e){e=[];for(var i=0;i<r.responseText.length;++i)e.push(r.responseText.charCodeAt(i)&255)}return n(null,typeof Uint8Array<`u`?new Uint8Array(e):e)}return n(null,r.responseText)}},t.binary&&(`overrideMimeType`in r&&r.overrideMimeType(`text/plain; charset=x-user-defined`),r.responseType=`arraybuffer`),r.open(`GET`,e),r.send()}})),mEe=s((e=>{var t=e,n=t.isAbsolute=function(e){return/^(?:\/|\w+:|\\\\\w+)/.test(e)},r=t.normalize=function(e){var t=e.substring(0,2),r=``;t===`\\\\`&&(r=t,e=e.substring(2)),e=e.replace(/\\/g,`/`).replace(/\/{2,}/g,`/`);var i=e.split(`/`),a=n(e),o=``;a&&(o=i.shift()+`/`);for(var s=0;s<i.length;)i[s]===`..`?s>0&&i[s-1]!==`..`?i.splice(--s,2):a?i.splice(s,1):++s:i[s]===`.`?i.splice(s,1):++s;return r+o+i.join(`/`)};t.resolve=function(e,t,i){return i||(t=r(t)),n(t)?t:(i||(e=r(e)),(e=e.replace(/(?:\/|^)[^/]+$/,``)).length?r(e+`/`+t):t)}})),d6=s(((e,t)=>{t.exports=u;var n=E6();((u.prototype=Object.create(n.prototype)).constructor=u).className=`Namespace`;var r=w6(),i=S6(),a=T6(),o,s,c;u.fromJSON=function(e,t,n){if(n===void 0&&(n=0),n>i.recursionLimit)throw Error(`max depth exceeded`);return new u(e,t.options).addJSON(t.nested,n)};function l(e,t){if(e&&e.length){for(var n={},r=0;r<e.length;++r)n[e[r].name]=e[r].toJSON(t);return n}}u.arrayToJSON=l,u.isReservedId=function(e,t){if(e){for(var n=0;n<e.length;++n)if(typeof e[n]!=`string`&&e[n][0]<=t&&e[n][1]>t)return!0}return!1},u.isReservedName=function(e,t){if(e){for(var n=0;n<e.length;++n)if(e[n]===t)return!0}return!1};function u(e,t){n.call(this,e,t),this.nested=void 0,this._nestedArray=null,this._lookupCache=Object.create(null),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function d(e){e._nestedArray=null,e._lookupCache=Object.create(null);for(var t=e;t=t.parent;)t._lookupCache=Object.create(null);return e}Object.defineProperty(u.prototype,`nestedArray`,{get:function(){return this._nestedArray||=i.toArray(this.nested)}}),u.prototype.toJSON=function(e){return i.toObject([`options`,this.options,`nested`,l(this.nestedArray,e)])},u.prototype.addJSON=function(e,t){if(t===void 0&&(t=0),t>i.recursionLimit)throw Error(`max depth exceeded`);var n=this;if(e)for(var a=Object.keys(e),l=0,d;l<a.length;++l)d=e[a[l]],n.add((d.fields===void 0?d.values===void 0?d.methods===void 0?d.id===void 0?u.fromJSON:r.fromJSON:s.fromJSON:c.fromJSON:o.fromJSON)(a[l],d,t+1));return this},u.prototype.get=function(e){return this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},u.prototype.getEnum=function(e){if(this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)&&this.nested[e]instanceof c)return this.nested[e].values;throw Error(`no such enum: `+e)},u.prototype.add=function(e){if(!(e instanceof r&&e.extend!==void 0||e instanceof o||e instanceof a||e instanceof c||e instanceof s||e instanceof u))throw TypeError(`object must be a valid nested object`);if(e.name===`__proto__`)return this;if(!this.nested)this.nested={};else{var t=this.get(e.name);if(t)if(t instanceof u&&e instanceof u&&!(t instanceof o||t instanceof s)){for(var n=t.nestedArray,i=0;i<n.length;++i)e.add(n[i]);this.remove(t),this.nested||={},e.setOptions(t.options,!0)}else throw Error(`duplicate name '`+e.name+`' in `+this)}this.nested[e.name]=e,this instanceof o||this instanceof s||this instanceof c||this instanceof r||(e._edition||=e._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var l=this;l=l.parent;)l._needsRecursiveFeatureResolution=!0,l._needsRecursiveResolve=!0;return e.onAdd(this),d(this)},u.prototype.remove=function(e){if(!(e instanceof n))throw TypeError(`object must be a ReflectionObject`);if(e.parent!==this)throw Error(e+` is not a member of `+this);return delete this.nested[e.name],Object.keys(this.nested).length||(this.nested=void 0),e.onRemove(this),d(this)},u.prototype.define=function(e,t){if(i.isString(e))e=e.split(`.`);else if(!Array.isArray(e))throw TypeError(`illegal path`);if(e&&e.length&&e[0]===``)throw Error(`path must be relative`);if(e.length>i.recursionLimit)throw Error(`max depth exceeded`);for(var n=this;e.length>0;){var r=e.shift();if(n.nested&&n.nested[r]){if(n=n.nested[r],!(n instanceof u))throw Error(`path conflicts with non-namespace objects`)}else n.add(n=new u(r))}return t&&n.addJSON(t),n},u.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._needsRecursiveFeatureResolution&&this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t<e.length;)e[t]instanceof u?e[t++].resolveAll():e[t++].resolve();return this._needsRecursiveResolve=!1,this},u.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution?(this._needsRecursiveFeatureResolution=!1,e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.nestedArray.forEach(t=>{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.lookup=function(e,t,n){if(typeof t==`boolean`?(n=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),i.isString(e)&&e.length){if(e===`.`)return this.root;e=e.split(`.`)}else if(!e.length)return this;var r=e.join(`.`);if(e[0]===``)return this.root.lookup(e.slice(1),t);var a=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects[`.`+r];
167if(a&&(!t||t.indexOf(a.constructor)>-1)||(a=this._lookupImpl(e,r),a&&(!t||t.indexOf(a.constructor)>-1)))return a;if(n)return null;for(var o=this;o.parent;){if(a=o.parent._lookupImpl(e,r),a&&(!t||t.indexOf(a.constructor)>-1))return a;o=o.parent}return null},u.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var n=this.get(e[0]),r=null;if(n)e.length===1?r=n:n instanceof u&&(e=e.slice(1),r=n._lookupImpl(e,e.join(`.`)));else for(var i=0;i<this.nestedArray.length;++i)if(this._nestedArray[i]instanceof u&&(n=this._nestedArray[i]._lookupImpl(e,t))){r=n;break}return this._lookupCache[t]=r,r},u.prototype.lookupType=function(e){var t=this.lookup(e,[o]);if(!t)throw Error(`no such type: `+e);return t},u.prototype.lookupEnum=function(e){var t=this.lookup(e,[c]);if(!t)throw Error(`no such Enum '`+e+`' in `+this);return t},u.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[o,c]);if(!t)throw Error(`no such Type or Enum '`+e+`' in `+this);return t},u.prototype.lookupService=function(e){var t=this.lookup(e,[s]);if(!t)throw Error(`no such Service '`+e+`' in `+this);return t},u._configure=function(e,t,n){o=e,s=t,c=n}})),f6=s(((e,t)=>{t.exports=a;var n=w6();((a.prototype=Object.create(n.prototype)).constructor=a).className=`MapField`;var r=C6(),i=S6();function a(e,t,r,a,o,s){if(n.call(this,e,t,a,void 0,void 0,o,s),!i.isString(r))throw TypeError(`keyType must be a string`);this.keyType=r,this.resolvedKeyType=null,this.map=!0}a.fromJSON=function(e,t){return new a(e,t.id,t.keyType,t.type,t.options,t.comment)},a.prototype.toJSON=function(e){var t=e?!!e.keepComments:!1;return i.toObject([`keyType`,this.keyType,`type`,this.type,`id`,this.id,`extend`,this.extend,`options`,this.options,`comment`,t?this.comment:void 0])},a.prototype.resolve=function(){if(this.resolved)return this;if(r.mapKey[this.keyType]===void 0)throw Error(`invalid key type: `+this.keyType);return n.prototype.resolve.call(this)},a.d=function(e,t,n){return typeof n==`function`?n=i.decorateType(n).name:n&&typeof n==`object`&&(n=i.decorateEnum(n).name),function(r,o){i.decorateType(r.constructor).add(new a(o,e,t,n))}}})),p6=s(((e,t)=>{t.exports=i;var n=E6();((i.prototype=Object.create(n.prototype)).constructor=i).className=`Method`;var r=S6();function i(e,t,i,a,o,s,c,l,u){if(r.isObject(o)?(c=o,o=s=void 0):r.isObject(s)&&(c=s,s=void 0),!(t===void 0||r.isString(t)))throw TypeError(`type must be a string`);if(!r.isString(i))throw TypeError(`requestType must be a string`);if(!r.isString(a))throw TypeError(`responseType must be a string`);n.call(this,e,c),this.type=t||`rpc`,this.requestType=i,this.requestStream=o?!0:void 0,this.responseType=a,this.responseStream=s?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=l,this.parsedOptions=u}i.fromJSON=function(e,t){return new i(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},i.prototype.toJSON=function(e){var t=e?!!e.keepComments:!1;return r.toObject([`type`,this.type!==`rpc`&&this.type||void 0,`requestType`,this.requestType,`requestStream`,this.requestStream,`responseType`,this.responseType,`responseStream`,this.responseStream,`options`,this.options,`comment`,t?this.comment:void 0,`parsedOptions`,this.parsedOptions])},i.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))}})),m6=s(((e,t)=>{t.exports=s;var n=d6();((s.prototype=Object.create(n.prototype)).constructor=s).className=`Service`;var r=p6(),i=S6(),a=io(),o=i.patterns.reservedRe;function s(e,t){n.call(this,e,t),this.methods={},this._methodsArray=null}s.fromJSON=function(e,t,n){if(n===void 0&&(n=0),n>i.recursionLimit)throw Error(`max depth exceeded`);var a=new s(e,t.options);if(t.methods)for(var o=Object.keys(t.methods),c=0;c<o.length;
167++c)a.add(r.fromJSON(o[c],t.methods[o[c]]));return t.nested&&a.addJSON(t.nested,n),t.edition&&(a._edition=t.edition),a.comment=t.comment,a._defaultEdition=`proto3`,a},s.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=e?!!e.keepComments:!1;return i.toObject([`edition`,this._editionToJSON(),`options`,t&&t.options||void 0,`methods`,n.arrayToJSON(this.methodsArray,e)||{},`nested`,t&&t.nested||void 0,`comment`,r?this.comment:void 0])},Object.defineProperty(s.prototype,`methodsArray`,{get:function(){return this._methodsArray||=i.toArray(this.methods)}});function c(e){return e._methodsArray=null,e}s.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.methods,e)?this.methods[e]:n.prototype.get.call(this,e)},s.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;n.prototype.resolve.call(this);for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return this},s.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution?(e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.methodsArray.forEach(t=>{t._resolveFeaturesRecursive(e)}),this):this},s.prototype.add=function(e){if(this.get(e.name))throw Error(`duplicate name '`+e.name+`' in `+this);return e instanceof r?e.name===`__proto__`?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},s.prototype.remove=function(e){if(e instanceof r){if(this.methods[e.name]!==e)throw Error(e+` is not a member of `+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},s.prototype.create=function(e,t,n){for(var r=new a.Service(e,t,n),s=0,c;s<this.methodsArray.length;++s){var l=i.lcFirst((c=this._methodsArray[s]).resolve().name).replace(/[^$\w_]/g,``);r[l]=i.codegen([`r`,`c`],o.test(l)?l+`_`:l)(`return this.rpcCall(m,q,s,r,c)`)({m:c,q:c.resolvedRequestType.ctor,s:c.resolvedResponseType.ctor})}return r}})),h6=s(((e,t)=>{t.exports=r;var n=Qa();function r(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])}r.create=function(e){return this.$type.create(e)},r.encode=function(e,t){return this.$type.encode(e,t)},r.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},r.decode=function(e){return this.$type.decode(e)},r.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},r.verify=function(e){return this.$type.verify(e)},r.fromObject=function(e){return this.$type.fromObject(e)},r.toObject=function(e,t){return this.$type.toObject(e,t)},r.prototype.toJSON=function(){return this.$type.toObject(this,n.toJSONOptions)}})),g6=s(((e,t)=>{t.exports=o;var n=D6(),r=C6(),i=S6();function a(e){return`missing required '`+e.name+`'`}function o(e){for(var t=!1,o=!1,s=0;s<e.fieldsArray.length;++s){var c=e._fieldsArray[s];c.map&&(t=!0),!c.repeated&&!c.map&&!c.hasPresence&&(o=!0)}var l=i.codegen([`r`,`l`,`z`,`q`,`g`],e.name+`$decode`)(`if(!(r instanceof Reader))`)(`r=Reader.create(r)`)(`if(q===undefined)q=0`)(`if(q>Reader.recursionLimit)`)(`throw Error("max depth exceeded")`)(`var c=l===undefined?r.len:r.pos+l,m=g||new C`+(t?`,k,v`:o?`,v`:``))(`while(r.pos<c){`)(`var s=r.pos`)(`var t=r.tag()`)(`if(t===z){`)(`z=undefined`)(`break`)(`}`);for(e.fieldsArray.length&&l(`var u=t&7`)(`switch(t>>>=3){`),s=0;s<e.fieldsArray.length;++s){var u=e._fieldsArray[s].resolve(),d=u.resolvedType instanceof n?`int32`:u.type,f=`m`+i.safeProp(u.name);if(u.map){l(`case %i:{`,u.id)(`if(u!==2)`)(`break`)(`if(%s===util.emptyObject)`,f)(`%s={}`,f)(`var c2=r.uint32()+r.pos`),r.defaults[u.keyType]===void 0?l(`k=null`):l(`k=%j`,r.defaults[u.keyType]),r.defaults[d]===void 0?l(`v=null`):l(`v=%j`,r.defaults[d]),l(`while(r.pos<c2){`)(`var t2=r.tag()`)(`u=t2&7`)(`switch(t2>>>=3){`)(`case 1:`)(`if(u!==%i)`,r.mapKey[u.keyType])(`break`)(`k=r.%s()`,u.keyType)(`continue`)(`case 2:`)(`if(u!==%i)`,r.basic[d]===void 0?2:r.basic[d])(`break`),r.basic[d]===void 0?l(`v=types[%i].decode(r,r.uint32(),undefined,q+1)`,s):l(`v=r.%s()`,d),l(`continue`)(`}`)(`r.skipType(u,q,t2)`)(`}`);var p=r.basic[d]===void 0?`v||new types[`+s+`].ctor`:`v`;r.long[u.keyType]===void 0?(u.keyType===`string`&&l(`if(k==="__proto__")`)(`util.makeProp(%s,k)`,f),l(`%s[k]=%s`,f,p)):l(`%s[typeof k==="object"?util.longToHash(k):k]=%s`,f,p)}else u.repeated?(l(`case %i:`,u.id)(`{`),r.packed[d]!==void 0&&l(`if(u===2){`)(`if(!(%s&&%s.length))`,f,f)(`%s=[]`,f)(`var c2=r.uint32()+r.pos`)(`while(r.pos<c2)`)(`%s.push(r.%s())`,f,d)(`continue`)(`}`),l(`if(u!==%i)`,r.basic[d]===void 0?u.delimited?3:2:r.basic[d])(`break`)(`if(!(%s&&%s.length))`,f,f)(`%s=[]`,f),r.basic[d]===void 0?u.delimited?l(`%s.push(types[%i].decode(r,undefined,%i,q+1))`,f,s,u.id*8+4):l(`%s.push(types[%i].decode(r,r.uint32(),undefined,q+1))`,f,s):l(`%s.push(r.%s())`,f,d)):r.basic[d]===void 0?(l(`case %i:{`,u.id)(`if(u!==%i)`,u.delimited?3:2)(`break`),u.delimited?l(`%s=types[%i].decode(r,undefined,%i,q+1,%s)`,f,s,u.id*8+4,f):l(`%s=types[%i].decode(r,r.uint32(),undefined,q+1,%s)`,f,s,f)):u.hasPresence?l(`case %i:{`,u.id)(`if(u!==%i)`,r.basic[d])(`break`)(`%s=r.%s()`,f,d):(l(`case %i:{`,u.id)(`if(u!==%i)`,r.basic[d])(`break`),u.resolvedType instanceof n&&u.typeDefault!==0?l(`if((v=r.%s())!==%j)`,d,u.typeDefault):d===`string`||d===`bytes`?l(`if((v=r.%s()).length)`,d):r.long[d]===void 0?l(d===`double`||d===`float`?`if((v=r.%s())!==0)`:`if(v=r.%s())`,d):l(`if(typeof(v=r.%s())==="object"?v.low||v.high:v!==0)`,d),l(`%s=v`,f)(`else`)(`delete %s`,f));u.partOf&&l(`m%s=%j`,i.safeProp(u.partOf.name),u.name),l(`continue`)(`}`)}for(s&&l(`}`),l(`r.skipType(%s,q,t)`,s?`u`:`t&7`)(`util.makeProp(m,"$unknowns",false);`)(`(m.$unknowns||(m.$unknowns=[])).push(r.raw(s,r.pos))`)(`}`)(`if(z!==undefined)`)(`throw Error("missing end group")`),s=0;s<e._fieldsArray.length;++s){var m=e._fieldsArray[s];m.required&&l(`if(!m.hasOwnProperty(%j))`,m.name)(`throw util.ProtocolError(%j,{instance:m})`,a(m))}return l(`return m`)}})),_6=s(((e,t)=>{t.exports=s;var n=D6(),r=S6();function i(e,t){return e.name+`: `+t+(e.repeated&&t!==`array`?`[]`:e.map&&t!==`object`?`{k:`+e.keyType+`}`:``)+` expected`}function a(e,t,r,a){if(t.resolvedType)if(t.resolvedType instanceof n){e(`switch(%s){`,a)(`default:`)(`return%j`,i(t,`enum value`));for(var o=Object.keys(t.resolvedType.values),s=0;s<o.length;++s)e(`case %i:`,t.resolvedType.values[o[s]]);e(`break`)(`}`)}else e(`{`)(`var e=types[%i].verify(%s,q+1);`,r,a)(`if(e)`)(`return%j+e`,t.name+`.`)(`}`);else switch(t.type){case`int32`:case`uint32`:case`sint32`:case`fixed32`:case`sfixed32`:e(`if(!util.isInteger(%s))`,a)(`return%j`,i(t,`integer`));break;case`int64`:case`uint64`:case`sint64`:case`fixed64`:case`sfixed64`:e(`if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))`,a,a,a,a)(`return%j`,i(t,`integer|Long`));break;case`float`:case`double`:e(`if(typeof %s!=="number")`,a)(`return%j`,i(t,`number`));break;case`bool`:e(`if(typeof %s!=="boolean")`,a)(`return%j`,i(t,`boolean`));break;case`string`:e(`if(!util.isString(%s))`,a)(`return%j`,i(t,`string`));break;case`bytes`:e(`if(!(%s&&typeof %s.length==="number"||util.isString(%s)))`,a,a,a)(`return%j`,i(t,`buffer`));break}return e}function o(e,t,n){switch(t.keyType){case`int32`:case`uint32`:case`sint32`:case`fixed32`:case`sfixed32`:e(`if(!util.key32Re.test(%s))`,n)(`return%j`,i(t,`integer key`));break;case`int64`:case`uint64`:case`sint64`:case`fixed64`:case`sfixed64`:e(`if(!util.key64Re.test(%s))`,n)(`return%j`,i(t,`integer|Long key`));break;case`bool`:e(`if(!util.key2Re.test(%s))`,n)(`return%j`,i(t,`boolean key`));break}return e}function s(e){var t=r.codegen([`m`,`q`],e.name+`$verify`)(`if(typeof m!=="object"||m===null)`)(`return%j`,`object expected`)(`if(q===undefined)q=0`)(`if(q>util.recursionLimit)`)(`return%j`,`max depth exceeded`),n=e.oneofsArray,s={};n.length&&t(`var p={}`);for(var c=0;c<e.fieldsArray.length;++c){var l=e._fieldsArray[c].resolve(),u=`m`+r.safeProp(l.name);if(l.optional&&t(`if(%s!=null&&m.hasOwnProperty(%j)){`,u,l.name),l.map)t(`if(!util.isObject(%s))`,u)(`return%j`,i(l,`object`))(`var k=Object.keys(%s)`,u)(`for(var i=0;i<k.length;++i){`),o(t,l,`k[i]`),a(t,l,c,u+`[k[i]]`)(`}`);else if(l.repeated)t(`if(!Array.isArray(%s))`,u)(`return%j`,i(l,`array`))(`for(var i=0;i<%s.length;++i){`,u),a(t,l,c,u+`[i]`)(`}`);else{if(l.partOf){var d=r.safeProp(l.partOf.name);s[l.partOf.name]===1&&t(`if(p%s===1)`,d)(`return%j`,l.partOf.name+`: multiple values`),s[l.partOf.name]=1,t(`p%s=1`,d)}a(t,l,c,u)}l.optional&&t(`}`)}return t(`return null`)}}
167)),v6=s((e=>{var t=e,n=D6(),r=C6(),i=S6();function a(e,t,r,i){var a=!1;if(t.resolvedType)if(t.resolvedType instanceof n){e(`switch(d%s){`,i);for(var o=t.resolvedType.values,s=Object.keys(o),c=0;c<s.length;++c)o[s[c]]===t.typeDefault&&!a&&(e(`default:`)(`if(typeof d%s==="number"){m%s=d%s;break}`,i,i,i),t.repeated||e(`break`),a=!0),e(`case%j:`,s[c])(`case %i:`,o[s[c]])(`m%s=%j`,i,o[s[c]])(`break`);e(`}`)}else e(`if(typeof d%s!=="object")`,i)(`throw TypeError(%j)`,t.fullName+`: object expected`)(`m%s=types[%i].fromObject(d%s,q+1)`,i,r,i);else{var l=!1;switch(t.type){case`double`:case`float`:e(`m%s=Number(d%s)`,i,i);break;case`uint32`:case`fixed32`:e(`m%s=d%s>>>0`,i,i);break;case`int32`:case`sint32`:case`sfixed32`:e(`m%s=d%s|0`,i,i);break;case`uint64`:l=!0;case`int64`:case`sint64`:case`fixed64`:case`sfixed64`:e(`if(util.Long)`)(`(m%s=util.Long.fromValue(d%s)).unsigned=%j`,i,i,l)(`else if(typeof d%s==="string")`,i)(`m%s=parseInt(d%s,10)`,i,i)(`else if(typeof d%s==="number")`,i)(`m%s=d%s`,i,i)(`else if(typeof d%s==="object")`,i)(`m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)`,i,i,i,l?`true`:``);break;case`bytes`:e(`if(typeof d%s==="string")`,i)(`util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)`,i,i,i)(`else if(d%s.length>=0)`,i)(`m%s=d%s`,i,i);break;case`string`:e(`m%s=String(d%s)`,i,i);break;case`bool`:e(`m%s=Boolean(d%s)`,i,i);break}}return e}t.fromObject=function(e){var t=e.fieldsArray,o=i.codegen([`d`,`q`],e.name+`$fromObject`)(`if(d instanceof C)`)(`return d`)(`if(q===undefined)q=0`)(`if(q>util.recursionLimit)`)(`throw Error("max depth exceeded")`);if(!t.length)return o(`return new C`);o(`var m=new C`);for(var s=0;s<t.length;++s){var c=t[s].resolve(),l=i.safeProp(c.name),u=!c.hasPresence&&!c.repeated&&!c.map&&(c.resolvedType instanceof n||r.basic[c.type]!==void 0);c.map?(o(`if(d%s){`,l)(`if(typeof d%s!=="object")`,l)(`throw TypeError(%j)`,c.fullName+`: object expected`)(`m%s={}`,l)(`for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){`,l),o(`if(ks[i]==="__proto__")`)(`util.makeProp(m%s,ks[i])`,l),a(o,c,s,l+`[ks[i]]`)(`}`)(`}
167`)):c.repeated?(o(`if(d%s){`,l)(`if(!Array.isArray(d%s))`,l)(`throw TypeError(%j)`,c.fullName+`: array expected`)(`m%s=Array(d%s.length)`,l,l)(`for(var i=0;i<d%s.length;++i){`,l),a(o,c,s,l+`[i]`)(`}`)(`}`)):(c.resolvedType instanceof n||o(`if(d%s!=null){`,l),u&&(c.resolvedType instanceof n?o(`if(d%s!==%j&&(typeof d%s!=="string"||types[%i].values[d%s]!==%j)){`,l,c.typeDefault,l,s,l,c.typeDefault):c.type===`string`?o(`if(typeof d%s!=="string"||d%s.length){`,l,l):c.type===`bytes`?o(`if(d%s.length){`,l):c.type===`bool`?o(`if(d%s){`,l):r.long[c.type]===void 0?o(`if(Number(d%s)!==0){`,l):o(`if(typeof d%s==="object"?d%s.low||d%s.high:Number(d%s)!==0){`,l,l,l,l)),a(o,c,s,l),u&&o(`}`),c.resolvedType instanceof n||o(`}`))}return o(`return m`)};function o(e,t,r,i,a){if(a||=i,t.resolvedType)t.resolvedType instanceof n?e(`d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s`,i,r,a,a,r,a,a):e(`d%s=types[%i].toObject(m%s,o)`,i,r,a);else{var o=!1;switch(t.type){case`double`:case`float`:e(`d%s=o.json&&!isFinite(m%s)?String(m%s):m%s`,i,a,a,a);break;case`uint64`:o=!0;case`int64`:case`sint64`:case`fixed64`:case`sfixed64`:e(`if(typeof m%s==="number")`,a)(`d%s=o.longs===String?String(m%s):m%s`,i,a,a)(`else`)(`d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s`,i,a,a,a,o?`true`:``,a);break;case`bytes`:e(`d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s`,i,a,a,a,a);break;default:e(`d%s=m%s`,i,a);break}}return e}t.toObject=function(e){var t=e.fieldsArray.slice().sort(i.compareFieldsById);if(!t.length)return i.codegen()(`return {}`);for(var a=i.codegen([`m`,`o`],e.name+`$toObject`)(`if(!o)`)(`o={}`)(`var d={}`),s=[],c=[],l=[],u=0;u<t.length;++u)t[u].partOf||(t[u].resolve().repeated?s:t[u].map?c:l).push(t[u]);if(s.length){for(a(`if(o.arrays||o.defaults){`),u=0;u<s.length;++u)a(`d%s=[]`,i.safeProp(s[u].name));a(`}`)}if(c.length){for(a(`if(o.objects||o.defaults){`),u=0;u<c.length;++u)a(`d%s={}`,i.safeProp(c[u].name));a(`}`)}if(l.length){for(a(`if(o.defaults){`),u=0;u<l.length;++u){var d=l[u],f=i.safeProp(d.name);if(d.resolvedType instanceof n)a(`d%s=o.enums===String?%j:%j`,f,d.resolvedType.valuesById[d.typeDefault],d.typeDefault);else if(d.long)a(`if(util.Long){`)(`var n=new util.Long(%i,%i,%j)`,d.typeDefault.low,d.typeDefault.high,d.typeDefault.unsigned)(`d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n`,f)(`}else`)(`d%s=o.longs===String?%j:%i`,f,d.typeDefault.toString(),d.typeDefault.toNumber());else if(d.bytes){var p=Array.prototype.slice.call(d.typeDefault);a(`if(o.bytes===String)d%s=%j`,f,String.fromCharCode.apply(String,d.typeDefault))(`else{`)(`d%s=%j`,f,p)(`if(o.bytes!==Array)d%s=util.newBuffer(d%s)`,f,f)(`}`)}else a(`d%s=%j`,f,d.typeDefault)}a(`}`)}var m=!1;for(u=0;u<t.length;++u){var d=t[u],h=e._fieldsArray.indexOf(d),f=i.safeProp(d.name);if(d.map){m||(m=!0,a(`var ks2`)),a(`if(m%s&&(ks2=Object.keys(m%s)).length){`,f,f)(`d%s={}`,f);var g=r.long[d.keyType]!==void 0,_=f+`[ks2[j]]`;a(`for(var j=0;j<ks2.length;++j){`),g&&a(`var k2=util.longFromKey(ks2[j],%j).toString()`,d.keyType===`uint64`||d.keyType===`fixed64`),a(`if(ks2[j]==="__proto__")`)(`util.makeProp(d%s,ks2[j])`,f),o(a,d,h,g?f+`[k2]`:_,_)(`}`)}else d.repeated?(a(`if(m%s&&m%s.length){`,f,f)(`d%s=Array(m%s.length)`,f,f)(`for(var j=0;j<m%s.length;++j){`,f),o(a,d,h,f+`[j]`)(`}`)):(a(`if(m%s!=null&&m.hasOwnProperty(%j)){`,f,d.name),o(a,d,h,f),d.partOf&&a(`if(o.oneofs)`)(`d%s=%j`,i.safeProp(d.partOf.name),d.name));a(`}`)}return a(`return d`)}})),y6=s((e=>{var t=e,n=h6();t[`.google.protobuf.Any`]={fromObject:function(e,t){if(e&&e[`@type`]){var n=e[`@type`].substring(e[`@type`].lastIndexOf(`/`)+1),r=this.lookup(n);if(r){var i=e[`@type`].charAt(0)===`.`?e[`@type`].slice(1):e[`@type`];i.indexOf(`/`)===-1&&(i=`/`+i);var a=t===void 0?1:t+1;return this.create({type_url:i,value:r.encode(r.fromObject(e,a)).finish()})}}return this.fromObject(e,t)},toObject:function(e,t){var r=`type.googleapis.com/`,i=``,a=``;if(t&&t.json&&e.type_url&&e.value){a=e.type_url.substring(e.type_url.lastIndexOf(`/`)+1),i=e.type_url.substring(0,e.type_url.lastIndexOf(`/`)+1);var o=this.lookup(a);o&&(e=o.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof n){var s=e.$type.toObject(e,t),c=e.$type.fullName[0]===`.`?e.$type.fullName.slice(1):e.$type.fullName;return i===``&&(i=r),a=i+c,s[`@type`]=a,s}return this.toObject(e,t)}}})),b6=s(((e,t)=>{t.exports=_;var n=d6();((_.prototype=Object.create(n.prototype)).constructor=_).className=`Type`;var r=D6(),i=T6(),a=w6(),o=f6(),s=m6(),c=h6(),l=to(),u=$a(),d=S6(),f=O6(),p=g6(),m=_6(),h=v6(),g=y6();function _(e,t){e=e.replace(/\W/g,``),n.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(_.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t<e.length;++t){var n=this.fields[e[t]],r=n.id;if(this._fieldsById[r])throw Error(`duplicate id `+r+` in `+this);this._fieldsById[r]=n}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||=d.toArray(this.fields)}},oneofsArray:{get:function(){return this._oneofsArray||=d.toArray(this.oneofs)}},ctor:{get:function(){return this._ctor||(this.ctor=_.generateConstructor(this)())},set:function(e){var t=e.prototype;
167t instanceof c||((e.prototype=new c).constructor=e,d.merge(e.prototype,t)),e.$type=e.prototype.$type=this,d.merge(e,c,!0),this._ctor=e,delete this.decode,delete this.fromObject;for(var n=0,r;n<this.fieldsArray.length;++n)r=this._fieldsArray[n].resolve(),e.prototype[r.name]=r.defaultValue;var i={};for(n=0;n<this.oneofsArray.length;++n)i[this._oneofsArray[n].resolve().name]={get:d.oneOfGetter(this._oneofsArray[n].oneof),set:d.oneOfSetter(this._oneofsArray[n].oneof)};n&&Object.defineProperties(e.prototype,i)}}}),_.generateConstructor=function(e){for(var t=d.codegen([`p`],e.name),n=0,r;n<e.fieldsArray.length;++n)(r=e._fieldsArray[n]).map?t(`this%s={}`,d.safeProp(r.name)):r.repeated&&t(`this%s=[]`,d.safeProp(r.name));return t(`if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null&&ks[i]!=="__proto__")`)(`this[ks[i]]=p[ks[i]]`)};function v(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}_.fromJSON=function(e,t,c){if(c===void 0&&(c=0),c>d.nestingLimit)throw Error(`max depth exceeded`);var l=new _(e,t.options);l.extensions=t.extensions,l.reserved=t.reserved;for(var u=Object.keys(t.fields),f=0;f<u.length;++f)l.add((t.fields[u[f]].keyType===void 0?a.fromJSON:o.fromJSON)(u[f],t.fields[u[f]]));if(t.oneofs)for(u=Object.keys(t.oneofs),f=0;f<u.length;++f)l.add(i.fromJSON(u[f],t.oneofs[u[f]]));if(t.nested)for(u=Object.keys(t.nested),f=0;f<u.length;++f){var p=t.nested[u[f]];l.add((p.id===void 0?p.fields===void 0?p.values===void 0?p.methods===void 0?n.fromJSON:s.fromJSON:r.fromJSON:_.fromJSON:a.fromJSON)(u[f],p,c+1))}return t.extensions&&t.extensions.length&&(l.extensions=t.extensions),t.reserved&&t.reserved.length&&(l.reserved=t.reserved),t.group&&(l.group=!0),t.comment&&(l.comment=t.comment),t.edition&&(l._edition=t.edition),l._defaultEdition=`proto3`,l},_.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=e?!!e.keepComments:!1;return d.toObject([`edition`,this._editionToJSON(),`options`,t&&t.options||void 0,`oneofs`,n.arrayToJSON(this.oneofsArray,e),`fields`,n.arrayToJSON(this.fieldsArray.filter(function(e){return!e.declaringField}),e)||{},`extensions`,this.extensions&&this.extensions.length?this.extensions:void 0,`reserved`,this.reserved&&this.reserved.length?this.reserved:void 0,`group`,this.group||void 0,`nested`,t&&t.nested||void 0,`comment`,r?this.comment:void 0])},_.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;n.prototype.resolveAll.call(this);var e=this.oneofsArray;for(r=0;r<e.length;)e[r++].resolve();for(var t=this.fieldsArray,r=0;r<t.length;)t[r++].resolve();return this},_.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution?(e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.oneofsArray.forEach(t=>{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},_.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},_.prototype.add=function(e){if(this.get(e.name))throw Error(`duplicate name '`+e.name+`' in `+this);if(e instanceof a&&e.extend===void 0){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error(`duplicate id `+e.id+` in `+this);if(this.isReservedId(e.id))throw Error(`id `+e.id+` is reserved in `+this);if(this.isReservedName(e.name))throw Error(`name '`+e.name+`' is reserved in `+this);return e.name===`__proto__`?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),v(this))}return e instanceof i?e.name===`__proto__`?this:(this.oneofs||={},this.oneofs[e.name]=e,e.onAdd(this),v(this)):n.prototype.add.call(this,e)},_.prototype.remove=function(e){if(e instanceof a&&e.extend===void 0){if(!this.fields||this.fields[e.name]!==e)throw Error(e+` is not a member of `+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),v(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+` is not a member of `+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),v(this)}return n.prototype.remove.call(this,e)},_.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},_.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},_.prototype.create=function(e){return new this.ctor(e)},_.prototype.setup=function(){for(var e=this.fullName,t=[],n=0;n<this.fieldsArray.length;++n)t.push(this._fieldsArray[n].resolve().resolvedType);this.encode=f(this)({Writer:u,types:t,util:d}),this.decode=p(this)({Reader:l,types:t,util:d,C:this.ctor}),this.verify=m(this)({types:t,util:d}),this.fromObject=h.fromObject(this)({types:t,util:d,C:this.ctor}),this.toObject=h.toObject(this)({types:t,util:d});var r=g[e];if(r){var i=Object.create(this);i._ctor=this.ctor,i.fromObject=this.fromObject,this.fromObject=r.fromObject.bind(i),i.toObject=this.toObject,this.toObject=r.toObject.bind(i)}return this},_.prototype.encode=function(e,t){return this.setup().encode(e,t)},_.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},_.prototype.decode=function(e,t){return this.setup().decode.apply(this,arguments)},_.prototype.decodeDelimited=function(e){return e instanceof l||(e=l.create(e)),this.decode(e,e.uint32())},_.prototype.verify=function(e){return this.setup().verify.apply(this,arguments)},_.prototype.fromObject=function(e){return this.setup().fromObject.apply(this,arguments)},_.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},_.prototype.getTypeUrl=function(e){e===void 0&&(e=`type.googleapis.com`);var t=this.fullName;return e+`/`+(t.charAt(0)===`.`?t.substring(1):t)},_.d=function(e){return function(t){d.decorateType(t,e)}}})),x6=s(((e,t)=>{t.exports=u;var n=d6();((u.prototype=Object.create(n.prototype)).constructor=u).className=`Root`;var r=w6(),i=D6(),a=T6(),o=S6(),s,c,l;function u(e){n.call(this,``,e),this.deferred=[],this.files=[],this._edition=`proto2`,this._fullyQualifiedObjects={}}
167u.fromJSON=function(e,t,n){if(n===void 0&&(n=0),n>o.recursionLimit)throw Error(`max depth exceeded`);return t||=new u,e.options&&t.setOptions(e.options),t.addJSON(e.nested,n).resolveAll()},u.prototype.resolvePath=o.path.resolve,u.prototype.fetch=o.fetch;function d(){}u.prototype.load=function e(t,n,r){typeof n==`function`&&(r=n,n=void 0);var i=this;if(!r)return o.asPromise(e,i,t,n);var a=r===d;function s(e,t){if(r){if(a)throw e;t&&t.resolveAll();var n=r;r=null,n(e,t)}}function u(e){var t=e.lastIndexOf(`google/protobuf/`);if(t>-1){var n=e.substring(t);if(Object.prototype.hasOwnProperty.call(l,n))return n}return Object.prototype.hasOwnProperty.call(l,e)?e:null}function f(e,t){try{if(o.isString(t)&&t.charAt(0)===`{`&&(t=JSON.parse(t)),!o.isString(t))i.setOptions(t.options).addJSON(t.nested);else{c.filename=e;var r=c(t,i,n),l,d=0;if(r.imports)for(;d<r.imports.length;++d)(l=u(r.imports[d])||i.resolvePath(e,r.imports[d]))&&p(l);if(r.weakImports)for(d=0;d<r.weakImports.length;++d)(l=u(r.weakImports[d])||i.resolvePath(e,r.weakImports[d]))&&p(l,!0)}}catch(e){s(e)}!a&&!m&&s(null,i)}function p(e,t){if(e=u(e)||e,!(i.files.indexOf(e)>-1)){if(i.files.push(e),Object.prototype.hasOwnProperty.call(l,e)){a?f(e,l[e]):(++m,setTimeout(function(){--m,f(e,l[e])}));return}if(a){var n;try{n=o.fs.readFileSync(e).toString(`utf8`)}catch(e){t||s(e);return}f(e,n)}else ++m,i.fetch(e,function(n,a){if(--m,r){if(n){t?m||s(null,i):s(n);return}f(e,a)}})}}var m=0;o.isString(t)&&(t=[t]);for(var h=0,g;h<t.length;++h)(g=i.resolvePath(``,t[h]))&&p(g);return a?(i.resolveAll(),i):(m||s(null,i),i)},u.prototype.loadSync=function(e,t){if(!o.isNode)throw Error(`not supported`);return this.load(e,t,d)},u.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error(`unresolvable extensions: `+this.deferred.map(function(e){return`'extend `+e.extend+`' in `+e.parent.fullName}).join(`, `));return n.prototype.resolveAll.call(this)};var f=/^[A-Z]/;function p(e,t){var n=t.parent.lookup(t.extend);if(n){var i=new r(t.fullName,t.id,t.type,t.rule,void 0,t.options);return n.get(i.name)?!0:(i.declaringField=t,t.extensionField=i,n.add(i),!0)}return!1}u.prototype._handleAdd=function(e){if(e instanceof r)e.extend!==void 0&&!e.extensionField&&(p(this,e)||this.deferred.push(e));else if(e instanceof i)f.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof a)){if(e instanceof s)for(var t=0;t<this.deferred.length;)p(this,this.deferred[t])?this.deferred.splice(t,1):++t;for(var n=0;n<e.nestedArray.length;++n)this._handleAdd(e._nestedArray[n]);f.test(e.name)&&(e.parent[e.name]=e)}(e instanceof s||e instanceof i||e instanceof r)&&(this._fullyQualifiedObjects[e.fullName]=e)},u.prototype._handleRemove=function(e){if(e instanceof r){if(e.extend!==void 0)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var t=this.deferred.indexOf(e);t>-1&&this.deferred.splice(t,1)}}else if(e instanceof i)f.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var a=0;a<e.nestedArray.length;++a)this._handleRemove(e._nestedArray[a]);f.test(e.name)&&delete e.parent[e.name]}delete this._fullyQualifiedObjects[e.fullName]},u._configure=function(e,t,n){s=e,c=t,l=n}})),S6=s(((e,t)=>{var n=t.exports=Qa(),r=ao(),i,a;n.codegen=fEe(),n.fetch=pEe(),n.path=mEe(),n.patterns=c6();var o=n.patterns.reservedRe,s=n.patterns.unsafePropertyRe;n.fs=u6(),n.toArray=function(e){if(e){for(var t=Object.keys(e),n=Array(t.length),r=0;r<t.length;)n[r]=e[t[r++]];return n}return[]},n.toObject=function(e){for(var t={},n=0;n<e.length;){var r=e[n++],i=e[n++];i!==void 0&&(t[r]=i)}return t},n.isReserved=function(e){return o.test(e)},n.safeProp=function(e){return!/^[$\w_]+$/.test(e)||o.test(e)?`[`+JSON.stringify(e)+`]`:`.`+e},n.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var c=/_([a-z])/g;n.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(c,function(e,t){return t.toUpperCase()})},n.compareFieldsById=function(e,t){return e.id-t.id},n.decorateType=function(e,t){if(e.$type)return t&&e.$type.name!==t&&(n.decorateRoot.remove(e.$type),e.$type.name=t,n.decorateRoot.add(e.$type)),e.$type;i||=b6();var r=new i(t||e.name);return n.decorateRoot.add(r),r.ctor=e,Object.defineProperty(e,`$type`,{value:r,enumerable:!1}),Object.defineProperty(e.prototype,`$type`,{value:r,enumerable:!1}),r};var l=0;n.decorateEnum=function(e){if(e.$type)return e.$type;a||=D6();var t=new a(`Enum`+ l++,e);return n.decorateRoot.add(t),Object.defineProperty(e,`$type`,{value:t,enumerable:!1}),t},n.setProperty=function(e,t,r,i){function a(e,t,n){var r=t.shift();if(s.test(r))return e;if(t.length>0)e[r]=a(e[r]||{},t,n);else{var o=e[r];if(o&&i)return e;o&&(n=[].concat(o,n)),e[r]=n}return e}if(typeof e!=`object`)throw TypeError(`dst must be an object`);if(!t)throw TypeError(`path must be specified`);if(t=t.split(`.`),t.length>n.recursionLimit)throw Error(`max depth exceeded`);return a(e,t,r)},Object.defineProperty(n,`decorateRoot`,{get:function(){return r.decorated||=new(x6())}})})),C6=s((e=>{var t=e,n=S6(),r=[`double`,`float`,`int32`,`uint32`,`sint32`,`fixed32`,`sfixed32`,`int64`,`uint64`,`sint64`,`fixed64`,`sfixed64`,`bool`,`string`,`bytes`];function i(e,t){var n=0,i=Object.create(null);for(t|=0;n<e.length;)i[r[n+t]]=e[n++];return i}t.basic=i([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),t.defaults=i([0,0,0,0,0,0,0,0,0,0,0,0,!1,``,n.emptyArray,null]),t.long=i([0,0,0,1,1],7),t.mapKey=i([0,0,0,5,5,0,0,0,1,1,0,2],2),t.packed=i([1,5,0,0,0,5,5,0,0,0,1,1,0])})),w6=s(((e,t)=>{t.exports=c;var n=E6();((c.prototype=Object.create(n.prototype)).constructor=c).className=`Field`;var r=D6(),i=C6(),a=S6(),o,s=/^required|optional|repeated$/;c.fromJSON=function(e,t){var n=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(n._edition=t.edition),n._defaultEdition=`proto3`,n};function c(e,t,r,o,c,l,u){if(a.isObject(o)?(u=c,l=o,o=c=void 0):a.isObject(c)&&(u=l,l=c,c=void 0),n.call(this,e,l),!a.isInteger(t)||t<0)throw TypeError(`id must be a non-negative integer`);if(!a.isString(r))throw TypeError(`type must be a string`);if(o!==void 0&&!s.test(o=o.toString().toLowerCase()))throw TypeError(`rule must be a string rule`);
167if(c!==void 0&&!a.isString(c))throw TypeError(`extend must be a string`);o===`proto3_optional`&&(o=`optional`),this.rule=o&&o!==`optional`?o:void 0,this.type=r,this.id=t,this.extend=c||void 0,this.repeated=o===`repeated`,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=a.Long?i.long[r]!==void 0:!1,this.bytes=r===`bytes`,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=u}Object.defineProperty(c.prototype,`required`,{get:function(){return this._features.field_presence===`LEGACY_REQUIRED`}}),Object.defineProperty(c.prototype,`optional`,{get:function(){return!this.required}}),Object.defineProperty(c.prototype,`delimited`,{get:function(){return this.resolvedType instanceof o&&this._features.message_encoding===`DELIMITED`}}),Object.defineProperty(c.prototype,`packed`,{get:function(){return this._features.repeated_field_encoding===`PACKED`}}),Object.defineProperty(c.prototype,`hasPresence`,{get:function(){return this.repeated||this.map?!1:this.partOf||this.declaringField||this.extensionField||this._features.field_presence!==`IMPLICIT`}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=e?!!e.keepComments:!1;return a.toObject([`edition`,this._editionToJSON(),`rule`,this.rule!==`optional`&&this.rule||void 0,`type`,this.type,`id`,this.id,`extend`,this.extend,`options`,this.options,`comment`,t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=i.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof r&&typeof this.typeDefault==`string`&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof r)&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,this.type.charAt(0)===`u`),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault==`string`){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&this.parent._ctor&&(this.parent._ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if(e!==`proto2`&&e!==`proto3`)return{};var t={};if(this.rule===`required`&&(t.field_presence=`LEGACY_REQUIRED`),this.parent&&i.defaults[this.type]===void 0){var n=this.parent.get(this.type.split(`.`).pop());n&&n instanceof o&&n.group&&(t.message_encoding=`DELIMITED`)}return this.getOption(`packed`)===!0?t.repeated_field_encoding=`PACKED`:this.getOption(`packed`)===!1&&(t.repeated_field_encoding=`EXPANDED`),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,n,r){return typeof t==`function`?t=a.decorateType(t).name:t&&typeof t==`object`&&(t=a.decorateEnum(t).name),function(i,o){a.decorateType(i.constructor).add(new c(o,e,t,n,{default:r}))}},c._configure=function(e){o=e}})),T6=s(((e,t)=>{t.exports=a;var n=E6();((a.prototype=Object.create(n.prototype)).constructor=a).className=`OneOf`;var r=w6(),i=S6();function a(e,t,r,i){if(Array.isArray(t)||(r=t,t=void 0),n.call(this,e,r),!(t===void 0||Array.isArray(t)))throw TypeError(`fieldNames must be an Array`);this.oneof=t||[],this.fieldsArray=[],this.comment=i}a.fromJSON=function(e,t){return new a(e,t.oneof,t.options,t.comment)},a.prototype.toJSON=function(e){var t=e?!!e.keepComments:!1;return i.toObject([`options`,this.options,`oneof`,this.oneof,`comment`,t?this.comment:void 0])};function o(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}a.prototype.add=function(e){if(!(e instanceof r))throw TypeError(`field must be a Field`);return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,o(this),this},a.prototype.remove=function(e){if(!(e instanceof r))throw TypeError(`field must be a Field`);var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+` is not a member of `+this);return this.fieldsArray.splice(t,1),t=this.oneof.indexOf(e.name),t>-1&&this.oneof.splice(t,1),e.partOf=null,this},a.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=this,r=0;r<this.oneof.length;++r){var i=e.get(this.oneof[r]);i&&!i.partOf&&(i.partOf=t,t.fieldsArray.push(i))}o(this)},a.prototype.onRemove=function(e){for(var t=0,r;t<this.fieldsArray.length;++t)(r=this.fieldsArray[t]).parent&&r.parent.remove(r);n.prototype.onRemove.call(this,e)},Object.defineProperty(a.prototype,`isProto3Optional`,{get:function(){if(this.fieldsArray==null||this.fieldsArray.length!==1)return!1;var e=this.fieldsArray[0];return e.options!=null&&e.options.proto3_optional===!0}
167}),a.d=function(){for(var e=Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,n){i.decorateType(t.constructor).add(new a(n,e)),Object.defineProperty(t,n,{get:i.oneOfGetter(e),set:i.oneOfSetter(e)})}}})),E6=s(((e,t)=>{t.exports=l,l.className=`ReflectionObject`;var n=T6(),r=S6(),i,a={enum_type:`OPEN`,field_presence:`EXPLICIT`,json_format:`ALLOW`,message_encoding:`LENGTH_PREFIXED`,repeated_field_encoding:`PACKED`,utf8_validation:`VERIFY`,enforce_naming_style:`STYLE2024`,default_symbol_visibility:`EXPORT_TOP_LEVEL`},o={enum_type:`OPEN`,field_presence:`EXPLICIT`,json_format:`ALLOW`,message_encoding:`LENGTH_PREFIXED`,repeated_field_encoding:`PACKED`,utf8_validation:`VERIFY`,enforce_naming_style:`STYLE_LEGACY`,default_symbol_visibility:`EXPORT_ALL`},s={enum_type:`CLOSED`,field_presence:`EXPLICIT`,json_format:`LEGACY_BEST_EFFORT`,message_encoding:`LENGTH_PREFIXED`,repeated_field_encoding:`EXPANDED`,utf8_validation:`NONE`,enforce_naming_style:`STYLE_LEGACY`,default_symbol_visibility:`EXPORT_ALL`},c={enum_type:`OPEN`,field_presence:`IMPLICIT`,json_format:`ALLOW`,message_encoding:`LENGTH_PREFIXED`,repeated_field_encoding:`PACKED`,utf8_validation:`VERIFY`,enforce_naming_style:`STYLE_LEGACY`,default_symbol_visibility:`EXPORT_ALL`};function l(e,t){if(!r.isString(e))throw TypeError(`name must be a string`);if(t&&!r.isObject(t))throw TypeError(`options must be an object`);this.options=t,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition=`proto2`,this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(l.prototype,{root:{get:function(){for(var e=this;e.parent!==null;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(`.`)}}}),l.prototype.toJSON=function(){throw Error()},l.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof i&&t._handleAdd(this)},l.prototype.onRemove=function(e){var t=e.root;t instanceof i&&t._handleRemove(this),this.parent=null,this.resolved=!1},l.prototype.resolve=function(){return this.resolved||this.root instanceof i&&(this.resolved=!0),this},l.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},l.prototype._resolveFeatures=function(e){if(!this._featuresResolved){var t={};if(!e)throw Error(`Unknown edition for `+this.fullName);var r=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(e));if(this._edition){if(e===`proto2`)t=Object.assign({},s);else if(e===`proto3`)t=Object.assign({},c);else if(e===`2023`)t=Object.assign({},o);else if(e===`2024`)t=Object.assign({},a);else throw Error(`Unknown edition: `+e);this._features=Object.assign(t,r||{})}else if(this.partOf instanceof n){var i=Object.assign({},this.partOf._features);this._features=Object.assign(i,r||{})}else if(!this.declaringField)if(this.parent){var l=Object.assign({},this.parent._features);this._features=Object.assign(l,r||{})}else throw Error(`Unable to find a parent for `+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},l.prototype._inferLegacyProtoFeatures=function(){return{}},l.prototype.getOption=function(e){if(this.options)return this.options[e]},l.prototype.setOption=function(e,t,n){return e===`__proto__`?this:(this.options||={},/^features\./.test(e)?r.setProperty(this.options,e,t,n):(!n||this.options[e]===void 0)&&(this.getOption(e)!==t&&(this.resolved=!1),this.options[e]=t),this)},l.prototype.setParsedOption=function(e,t,n){if(e===`__proto__`)return this;this.parsedOptions||=[];var i=this.parsedOptions;if(n){var a=i.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(a){var o=a[e];r.setProperty(o,n,t)}else a={},a[e]=r.setProperty({},n,t),i.push(a)}else{var s={};s[e]=t,i.push(s)}return this},l.prototype.setOptions=function(e,t){if(e)for(var n=Object.keys(e),r=0;r<n.length;++r)this.setOption(n[r],e[n[r]],t);return this},l.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+` `+t:e},l.prototype._editionToJSON=function(){if(!(!this._edition||this._edition===`proto3`))return this._edition},l._configure=function(e){i=e}})),D6=s(((e,t)=>{t.exports=a;var n=E6();((a.prototype=Object.create(n.prototype)).constructor=a).className=`Enum`;var r=d6(),i=S6();function a(e,t,r,i,a,o){if(n.call(this,e,r),t&&typeof t!=`object`)throw TypeError(`values must be an object`);if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=i,this.comments=a||{},this.valuesOptions=o,this._valuesFeatures={},this.reserved=void 0,t)for(var s=Object.keys(t),c=0;c<s.length;
167++c)s[c]!==`__proto__`&&typeof t[s[c]]==`number`&&(this.valuesById[this.values[s[c]]=t[s[c]]]=s[c])}a.prototype._resolveFeatures=function(e){return e=this._edition||e,n.prototype._resolveFeatures.call(this,e),Object.keys(this.values).forEach(e=>{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},a.fromJSON=function(e,t){var n=new a(e,t.values,t.options,t.comment,t.comments,t.valuesOptions);return n.reserved=t.reserved,t.edition&&(n._edition=t.edition),n._defaultEdition=`proto3`,n},a.prototype.toJSON=function(e){var t=e?!!e.keepComments:!1;return i.toObject([`edition`,this._editionToJSON(),`options`,this.options,`valuesOptions`,this.valuesOptions,`values`,this.values,`reserved`,this.reserved&&this.reserved.length?this.reserved:void 0,`comment`,t?this.comment:void 0,`comments`,t?this.comments:void 0])},a.prototype.add=function(e,t,n,r){if(!i.isString(e))throw TypeError(`name must be a string`);if(!i.isInteger(t))throw TypeError(`id must be an integer`);if(e===`__proto__`)return this;if(this.values[e]!==void 0)throw Error(`duplicate name '`+e+`' in `+this);if(this.isReservedId(t))throw Error(`id `+t+` is reserved in `+this);if(this.isReservedName(e))throw Error(`name '`+e+`' is reserved in `+this);if(this.valuesById[t]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error(`duplicate id `+t+` in `+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return r&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[e]=r||null),this.comments[e]=n||null,this},a.prototype.remove=function(e){if(!i.isString(e))throw TypeError(`name must be a string`);var t=this.values[e];if(t==null)throw Error(`name '`+e+`' does not exist in `+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},a.prototype.isReservedId=function(e){return r.isReservedId(this.reserved,e)},a.prototype.isReservedName=function(e){return r.isReservedName(this.reserved,e)}})),O6=s(((e,t)=>{t.exports=o;var n=D6(),r=C6(),i=S6();function a(e,t,n,r){return t.delimited?e(`types[%i].encode(%s,w.uint32(%i)).uint32(%i)`,n,r,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e(`types[%i].encode(%s,w.uint32(%i).fork()).ldelim()`,n,r,(t.id<<3|2)>>>0)}function o(e){for(var t=i.codegen([`m`,`w`],e.name+`$encode`)(`if(!w)`)(`w=Writer.create()`),o,s,c=e.fieldsArray.slice().sort(i.compareFieldsById),o=0;o<c.length;++o){var l=c[o].resolve(),u=e._fieldsArray.indexOf(l),d=l.resolvedType instanceof n?`int32`:l.type,f=r.basic[d];s=`m`+i.safeProp(l.name),l.map?(t(`if(%s!=null&&Object.hasOwnProperty.call(m,%j)){`,s,l.name)(`for(var ks=Object.keys(%s),i=0;i<ks.length;++i){`,s),l.keyType===`bool`?t(`w.uint32(%i).fork().uint32(%i).bool(util.boolFromKey(ks[i]))`,(l.id<<3|2)>>>0,8|r.mapKey[l.keyType]):r.long[l.keyType]===void 0?t(`w.uint32(%i).fork().uint32(%i).%s(ks[i])`,(l.id<<3|2)>>>0,8|r.mapKey[l.keyType],l.keyType):t(`w.uint32(%i).fork().uint32(%i).%s(util.longFromKey(ks[i],%j))`,(l.id<<3|2)>>>0,8|r.mapKey[l.keyType],l.keyType,l.keyType===`uint64`||l.keyType===`fixed64`),f===void 0?t(`types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()`,u,s):t(`.uint32(%i).%s(%s[ks[i]]).ldelim()`,16|f,d,s),t(`}`)(`}`)):l.repeated?(t(`if(%s!=null&&%s.length){`,s,s),l.packed&&r.packed[d]!==void 0?t(`w.uint32(%i).fork()`,(l.id<<3|2)>>>0)(`for(var i=0;i<%s.length;++i)`,s)(`w.%s(%s[i])`,d,s)(`w.ldelim()`):(t(`for(var i=0;i<%s.length;++i)`,s),f===void 0?a(t,l,u,s+`[i]`):t(`w.uint32(%i).%s(%s[i])`,(l.id<<3|f)>>>0,d,s)),t(`}`)):(l.required||t(`if(%s!=null&&Object.hasOwnProperty.call(m,%j))`,s,l.name),f===void 0?a(t,l,u,s):t(`w.uint32(%i).%s(%s)`,(l.id<<3|f)>>>0,d,s))}return t(`if(m.$unknowns!=null&&Object.hasOwnProperty.call(m,"$unknowns"))`)(`for(var i=0;i<m.$unknowns.length;++i)`)(`w.raw(m.$unknowns[i])`)(`return w`)}})),hEe=s(((e,t)=>{var n=t.exports=oo();n.build=`light`;function r(e,t,r){return typeof t==`function`?(r=t,t=new n.Root):t||=new n.Root,t.load(e,r)}n.load=r;function i(e,t){return t||=new n.Root,t.loadSync(e)}n.loadSync=i,n.encoder=O6(),n.decoder=g6(),n.verifier=_6(),n.converter=v6(),n.ReflectionObject=E6(),n.Namespace=d6(),n.Root=x6(),n.Enum=D6(),n.Type=b6(),n.Field=w6(),n.OneOf=T6(),n.MapField=f6(),n.Service=m6(),n.Method=p6(),n.Message=h6(),n.wrappers=y6(),n.types=C6(),n.util=S6(),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)})),k6=s(((e,t)=>{t.exports=f;var n=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,i=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,a=/^ *[*/]+ */,o=/^\s*\*?\/*/,s=/\n/g,c=/\s/,l=/\\(.?)/g,u={0:`\0`,r:`\r`,n:` 168`,t:` `};function d(e){return e.replace(l,function(e,t){switch(t){case`\\`:case``:return t;default:return u[t]||``}})}f.unescape=d;function f(e,t){e=e.toString();var l=0,u=e.length,f=1,p=0,m={},h=[],g=null;function _(e){return Error(`illegal `+e+` (line `+f+`)`)}function v(){var t=g===`'`?i:r;t.lastIndex=l-1;var n=t.exec(e);if(!n)throw _(`string`);return l=t.lastIndex,w(g),g=null,d(n[1])}function y(t){return e.charAt(t)}function b(n,r,i){var c={type:e.charAt(n++),lineEmpty:!1,leading:i},l=n-(t?2:3),u;do if(--l<0||(u=e.charAt(l))===` 169`){c.lineEmpty=!0;break}while(u===` `||u===` `);for(var d=e.substring(n,r).split(s),h=0;h<d.length;++h)d[h]=d[h].replace(t?o:a,``).trim();c.text=d.join(` 170`).trim(),m[f]=c,p=f}function x(t){var n=S(t),r=e.substring(t,n);return/^\s*\/\//.test(r)}function S(e){for(var t=e;t<u&&y(t)!==` 171`;)t++;return t}function C(){if(h.length>0)return h.shift();if(g)return v();var r,i,a,o,s,d,p=l===0;do{if(l===u)return null;for(r=!1;c.test(a=y(l));)if(a===` 172`&&(p=!0,++f),++l===u)return null;if(y(l)===`/`){if(++l===u)throw _(`comment`);if(y(l)===`/`)if(t){if(o=l,s=!1,x(l-1)){s=!0;do{if(l=S(l),l===u||(l++,!p))break;d=x(l),d&&f++}while(d)}else l=Math.min(u,S(l)+1);s&&(b(o,l,p),p=!0),f++,r=!0}else{for(s=y(o=l+1)===`/`;y(++l)!==` 173`;)if(l===u)return null;
173++l,s&&(b(o,l-1,p),p=!0),++f,r=!0}else if((a=y(l))===`*`){o=l+1,s=t||y(o)===`*`;do{if(a===` 174`&&++f,++l===u)throw _(`comment`);i=a,a=y(l)}while(i!==`*`||a!==`/`);++l,s&&(b(o,l-2,p),p=!0),r=!0}else return`/`}}while(r);var m=l;if(n.lastIndex=0,!n.test(y(m++)))for(;m<u&&!n.test(y(m));)++m;var C=e.substring(l,l=m);return(C===`"`||C===`'`)&&(g=C),C}function w(e){h.push(e)}function T(){if(!h.length){var e=C();if(e===null)return null;w(e)}return h[0]}function E(e,t){var n=T();if(n===e)return C(),!0;if(!t)throw _(`token '`+n+`', '`+e+`' expected`);return!1}function D(e){var n=null,r;return e===void 0?(r=m[f-1],delete m[f-1],r&&(t||r.type===`*`||r.lineEmpty)&&(n=r.leading?r.text:null)):(p<e&&T(),r=m[e],delete m[e],r&&!r.lineEmpty&&(t||r.type===`/`)&&(n=r.leading?null:r.text)),n}return Object.defineProperty({next:C,peek:T,push:w,skip:E,cmnt:D},`line`,{get:function(){return f}})}})),gEe=s(((e,t)=>{t.exports=C,C.filename=null,C.defaults={keepCase:!1};var n=k6(),r=x6(),i=b6(),a=w6(),o=f6(),s=T6(),c=D6(),l=m6(),u=p6(),d=E6(),f=C6(),p=S6(),m=/^[1-9][0-9]*$/,h=/^-?[1-9][0-9]*$/,g=/^0[x][0-9a-fA-F]+$/,_=/^-?0[x][0-9a-fA-F]+$/,v=/^0[0-7]+$/,y=/^-?0[0-7]+$/,b=p.patterns.numberRe,x=/^[a-zA-Z_][a-zA-Z_0-9]*$/,S=p.patterns.typeRefRe;function C(e,t,w){t instanceof r||(w=t,t=new r),w||=C.defaults;var T=w.preferTrailingComment||!1,E=n(e,w.alternateCommentMode||!1),D=E.next,O=E.push,k=E.peek,A=E.skip,ee=E.cmnt,te=!0,ne,re,ie,ae=`proto2`,oe=t,j=[],se={},ce=w.keepCase?function(e){return e}:p.camelCase;function le(){j.forEach(e=>{e._edition=ae,Object.keys(se).forEach(t=>{e.getOption(t)===void 0&&e.setOption(t,se[t],!0)})})}function M(e,t,n){var r=C.filename;return n||(C.filename=null),Error(`illegal `+(t||`token`)+` '`+e+`' (`+(r?r+`, `:``)+`line `+E.line+`)`)}function N(){var e=[],t;do{if((t=D())!==`"`&&t!==`'`)throw M(t);e.push(D()),A(t),t=k()}while(t===`"`||t===`'`);return e.join(``)}function ue(e){var t=D();switch(t){case`'`:case`"`:return O(t),N();case`true`:case`TRUE`:return!0;case`false`:case`FALSE`:return!1}try{return fe(t,!0)}catch{if(e&&S.test(t))return t;throw M(t,`value`)}}function de(e,t){var n,r;do if(t&&((n=k())===`"`||n===`'`)){var i=N();if(e.push(i),ae>=2023)throw M(i,`id`)}else try{e.push([r=pe(D()),A(`to`,!0)?pe(D()):r])}catch(r){if(t&&S.test(n)&&ae>=2023)e.push(n);else throw r}while(A(`,`,!0));var a={options:void 0};a.setOption=function(e,t){this.options===void 0&&(this.options={}),this.options[e]=t},ye(a,function(e){if(e===`option`)De(a,e),A(`;`);else throw M(e)},function(){je(a)})}function fe(e,t){var n=1;switch(e.charAt(0)===`-`&&(n=-1,e=e.substring(1)),e){case`inf`:case`INF`:case`Inf`:return n*(1/0);case`nan`:case`NAN`:case`Nan`:case`NaN`:return NaN;case`0`:return 0}if(m.test(e))return n*parseInt(e,10);if(g.test(e))return n*parseInt(e,16);if(v.test(e))return n*parseInt(e,8);if(b.test(e))return n*parseFloat(e);throw M(e,`number`,t)}function pe(e,t){switch(e){case`max`:case`MAX`:case`Max`:return 536870911;case`0`:return 0}if(!t&&e.charAt(0)===`-`)throw M(e,`id`);if(h.test(e))return parseInt(e,10);if(_.test(e))return parseInt(e,16);if(y.test(e))return parseInt(e,8);throw M(e,`id`)}function me(){if(ne!==void 0)throw M(`package`);if(ne=D(),!S.test(ne))throw M(ne,`name`);oe=oe.define(ne),A(`;`)}function he(){var e=k(),t;switch(e){case`option`:if(ae<`2024`)throw M(`option`);D(),N(),A(`;`);return;case`weak`:t=ie||=[],D();break;case`public`:D();default:t=re||=[];break}e=N(),A(`;`),t.push(e)}function ge(){if(A(`=`),ae=N(),ae<2023)throw M(ae,`syntax`);A(`;`)}function _e(){if(A(`=`),ae=N(),![`2023`,`2024`].includes(ae))throw M(ae,`edition`);A(`;`)}function ve(e,t,n){switch(n===void 0&&(n=0),t){case`option`:return De(e,t),A(`;`),!0;case`message`:return be(e,t,n+1),!0;case`enum`:return Te(e,t),!0;case`export`:case`local`:return ae<`2024`||(t=D(),t===`export`||t===`local`)||t!==`message`&&t!==`enum`?!1:ve(e,t,n);case`service`:return Me(e,t,n+1),!0;case`extend`:return Pe(e,t,n),!0}return!1}function ye(e,t,n){var r=E.line;if(e&&(typeof e.comment!=`string`&&(e.comment=ee()),e.filename=C.filename),A(`{`,!0)){for(var i;(i=D())!==`}`;)t(i);A(`;`,!0)}else n&&n(),A(`;`),e&&(typeof e.comment!=`string`||T)&&(e.comment=ee(r)||e.comment)}function be(e,t,n){if(n===void 0&&(n=0),n>p.nestingLimit)throw Error(`max depth exceeded`);if(!x.test(t=D()))throw M(t,`type name`);var r=new i(t);ye(r,function(e){if(!ve(r,e,n))switch(e){case`;`:break;case`map`:Ce(r,e);break;case`required`:if(ae!==`proto2`)throw M(e);case`repeated`:xe(r,e,void 0,n+1);break;
174case`optional`:if(ae===`proto3`)xe(r,`proto3_optional`,void 0,n+1);else if(ae!==`proto2`)throw M(e);else xe(r,`optional`,void 0,n+1);break;case`oneof`:we(r,e,n+1);break;case`extensions`:de(r.extensions||=[]);break;case`reserved`:de(r.reserved||=[],!0);break;default:if(ae===`proto2`||!S.test(e))throw M(e);O(e),xe(r,`optional`,void 0,n+1);break}}),e.add(r),e===oe&&j.push(r)}function xe(e,t,n,r){var i=D();if(i===`group`){Se(e,t,n,r);return}for(;i.endsWith(`.`)||k().startsWith(`.`);)i+=D();if(!S.test(i))throw M(i,`type`);var o=D();if(!x.test(o))throw M(o,`name`);o=ce(o),A(`=`);var c=new a(o,pe(D()),i,t,n);if(ye(c,function(e){if(e===`option`)De(c,e),A(`;`);else throw M(e)},function(){je(c)}),t===`proto3_optional`){var l=new s(`_`+o);c.setOption(`proto3_optional`,!0),l.add(c),e.add(l)}else e.add(c);e===oe&&j.push(c)}function Se(e,t,n,r){if(r===void 0&&(r=0),r>p.nestingLimit)throw Error(`max depth exceeded`);if(ae>=2023)throw M(`group`);var o=D();if(!x.test(o))throw M(o,`name`);var s=p.lcFirst(o);o===s&&(o=p.ucFirst(o)),A(`=`);var c=pe(D()),l=new i(o);l.group=!0;var u=new a(s,c,o,t,n);u.filename=C.filename,ye(l,function(e){switch(e){case`;`:break;case`option`:De(l,e),A(`;`);break;case`required`:case`repeated`:xe(l,e,void 0,r+1);break;case`optional`:ae===`proto3`?xe(l,`proto3_optional`,void 0,r+1):xe(l,`optional`,void 0,r+1);break;case`message`:be(l,e,r+1);break;case`enum`:Te(l,e);break;case`reserved`:de(l.reserved||=[],!0);break;
174case`export`:case`local`:if(ae<`2024`)throw M(e);switch(e=D(),e){case`message`:be(l,e,r+1);break;case`enum`:be(l,e,r+1);break;default:throw M(e)}break;default:throw M(e)}}),e.add(l).add(u),e===oe&&(j.push(l),j.push(u))}function Ce(e){A(`<`);var t=D();if(f.mapKey[t]===void 0)throw M(t,`type`);A(`,`);var n=D();if(!S.test(n))throw M(n,`type`);A(`>`);var r=D();if(!x.test(r))throw M(r,`name`);A(`=`);var i=new o(ce(r),pe(D()),t,n);ye(i,function(e){if(e===`option`)De(i,e),A(`;`);else throw M(e)},function(){je(i)}),e.add(i)}function we(e,t,n){if(!x.test(t=D()))throw M(t,`name`);var r=new s(ce(t));ye(r,function(e){e===`option`?(De(r,e),A(`;`)):(O(e),xe(r,`optional`,void 0,n))}),e.add(r)}function Te(e,t){if(!x.test(t=D()))throw M(t,`name`);var n=new c(t);ye(n,function(e){switch(e){case`;`:break;case`option`:De(n,e),A(`;`);break;case`reserved`:de(n.reserved||=[],!0),n.reserved===void 0&&(n.reserved=[]);break;default:Ee(n,e)}}),e.add(n),e===oe&&j.push(n)}function Ee(e,t){if(!x.test(t))throw M(t,`name`);A(`=`);var n=pe(D(),!0),r={options:void 0};r.getOption=function(e){return this.options[e]},r.setOption=function(e,t){d.prototype.setOption.call(r,e,t)},r.setParsedOption=function(){},ye(r,function(e){if(e===`option`)De(r,e),A(`;`);else throw M(e)},function(){je(r)}),e.add(t,n,r.comment,r.parsedOptions||r.options)}function De(e,t){var n,r,i=!0;for(t===`option`&&(t=D());t!==`=`;){if(t===`(`){var a=D();A(`)`),t=`(`+a+`)`}if(i){if(i=!1,t.includes(`.`)&&!t.includes(`(`)){var o=t.split(`.`);n=o[0]+`.`,t=o[1];continue}n=t}else r=r?r+=t:t;t=D()}var s=Oe(e,r?n.concat(r):n);r=r&&r[0]===`.`?r.slice(1):r,n=n&&n[n.length-1]===`.`?n.slice(0,-1):n,Ae(e,n,s,r)}function Oe(e,t,n){if(n===void 0&&(n=0),n>p.recursionLimit)throw Error(`max depth exceeded`);if(A(`{`,!0)){for(var r={};!A(`}`,!0);){if(!x.test(Fe=D()))throw M(Fe,`name`);if(Fe===null)throw M(Fe,`end of input`);var i,a=Fe;if(A(`:`,!0),k()===`{`)i=Oe(e,t+`.`+Fe,n+1);else if(k()===`[`){i=[];var o;if(A(`[`,!0)&&!A(`]`,!0)){do o=ue(!0),i.push(o);while(A(`,`,!0));A(`]`),o!==void 0&&ke(e,t+`.`+Fe,o)}}else i=ue(!0),ke(e,t+`.`+Fe,i);var s=r[a];s&&(i=[].concat(s,i)),a!==`__proto__`&&(r[a]=i),A(`,`,!0),A(`;`,!0)}return r}var c=ue(!0);return ke(e,t,c),c}function ke(e,t,n){if(oe===e&&/^features\./.test(t)){se[t]=n;return}e.setOption&&e.setOption(t,n)}function Ae(e,t,n,r){e.setParsedOption&&e.setParsedOption(t,n,r)}function je(e){if(A(`[`,!0)){do De(e,`option`);while(A(`,`,!0));A(`]`)}return e}function Me(e,t,n){if(n===void 0&&(n=0),n>p.recursionLimit)throw Error(`max depth exceeded`);if(!x.test(t=D()))throw M(t,`service name`);var r=new l(t);ye(r,function(e){if(!ve(r,e,n)&&e!==`;`)if(e===`rpc`)Ne(r,e);else throw M(e)}),e.add(r),e===oe&&j.push(r)}function Ne(e,t){var n=ee(),r=t;if(!x.test(t=D()))throw M(t,`name`);var i=t,a,o,s,c;if(A(`(`),A(`stream`,!0)&&(o=!0),!S.test(t=D())||(a=t,A(`)`),A(`returns`),A(`(`),A(`stream`,!0)&&(c=!0),!S.test(t=D())))throw M(t);s=t,A(`)`);var l=new u(i,r,a,s,o,c);l.comment=n,ye(l,function(e){if(e!==`;`)if(e===`option`)De(l,e),A(`;`);else throw M(e)}),e.add(l)}function Pe(e,t,n){if(!S.test(t=D()))throw M(t,`reference`);var r=t;ye(null,function(t){switch(t){case`required`:case`repeated`:xe(e,t,r,n+1);break;case`optional`:ae===`proto3`?xe(e,`proto3_optional`,r,n+1):xe(e,`optional`,r,n+1);break;default:if(ae===`proto2`||!S.test(t))throw M(t);O(t),xe(e,`optional`,r,n+1);break}})}for(var Fe;(Fe=D())!==null;)switch(Fe){case`;`:break;case`package`:if(!te)throw M(Fe);me();break;case`import`:he();break;case`syntax`:if(!te)throw M(Fe);ge();break;case`edition`:if(!te)throw M(Fe);_e();break;case`option`:De(oe,Fe),A(`;`,!0);break;default:if(ve(oe,Fe,0)){te=!1;continue}throw M(Fe)}return le(),C.filename=null,{package:ne,imports:re,weakImports:ie,root:t}}})),_Ee=s(((e,t)=>{t.exports=r;var n=/\/|\./;function r(e,t){n.test(e)||(e=`google/protobuf/`+e+`.proto`,t={nested:{google:{nested:{protobuf:{nested:t}}}}}),r[e]=t}r(`any`,{Any:{fields:{type_url:{type:`string`,id:1},value:{type:`bytes`,id:2}}}});var i;r(`duration`,{Duration:i={fields:{seconds:{type:`int64`,id:1},nanos:{type:`int32`,id:2}}}}),r(`timestamp`,{Timestamp:i}),r(`empty`,{Empty:{fields:{}}}),r(`struct`,{Struct:{fields:{fields:{keyType:`string`,type:`Value`,id:1}}},Value:{oneofs:{kind:{oneof:[`nullValue`,`numberValue`,`stringValue`,`boolValue`,`structValue`,`listValue`]}},fields:{nullValue:{type:`NullValue`,id:1},numberValue:{type:`double`,id:2},stringValue:{type:`string`,id:3},boolValue:{type:`bool`,id:4},structValue:{type:`Struct`,id:5},listValue:{type:`ListValue`,id:6}}}
174,NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:`repeated`,type:`Value`,id:1}}}}),r(`wrappers`,{DoubleValue:{fields:{value:{type:`double`,id:1}}},FloatValue:{fields:{value:{type:`float`,id:1}}},Int64Value:{fields:{value:{type:`int64`,id:1}}},UInt64Value:{fields:{value:{type:`uint64`,id:1}}},Int32Value:{fields:{value:{type:`int32`,id:1}}},UInt32Value:{fields:{value:{type:`uint32`,id:1}}},BoolValue:{fields:{value:{type:`bool`,id:1}}},StringValue:{fields:{value:{type:`string`,id:1}}},BytesValue:{fields:{value:{type:`bytes`,id:1}}}}),r(`field_mask`,{FieldMask:{fields:{paths:{rule:`repeated`,type:`string`,id:1}}}}),r.get=function(e){return r[e]||null}})),vEe=s(((e,t)=>{var n=t.exports=hEe();n.build=`full`,n.tokenize=k6(),n.parse=gEe(),n.common=_Ee(),n.Root._configure(n.Type,n.parse,n.common)})),yEe=s(((e,t)=>{t.exports=vEe()}))(),A6=`%[a-f0-9]{2}`,j6=RegExp(`(`+A6+`)|([^%]+?)`,`gi`),M6=RegExp(`(`+A6+`)+`,`gi`);function N6(e,t){try{return[decodeURIComponent(e.join(``))]}catch{}if(e.length===1)return e;t||=1;let n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],N6(n),N6(r))}function bEe(e){try{return decodeURIComponent(e)}catch{let t=e.match(j6)||[];for(let n=1;n<t.length;n++)e=N6(t,n).join(``),t=e.match(j6)||[];return e}}function xEe(e){let t={"%FE%FF":`��`,"%FF%FE":`��`},n=M6.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{let e=bEe(n[0]);e!==n[0]&&(t[n[0]]=e)}n=M6.exec(e)}t[`%C2`]=`�`;let r=Object.keys(t);for(let n of r)e=e.replace(new RegExp(n,`g`),t[n]);return e}function SEe(e){if(typeof e!=`string`)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return xEe(e)}}function CEe(e,t){let n={};if(Array.isArray(t))for(let r of t){let t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){let a=e[r];t(r,a,e)&&Object.defineProperty(n,r,i)}}return n}function P6(e,t){if(!(typeof e==`string`&&typeof t==`string`))throw TypeError("Expected the arguments to be of type `string`");if(e===``||t===``)return[];let n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}var wEe=c({exclude:()=>AEe,extract:()=>H6,parse:()=>U6,parseUrl:()=>G6,pick:()=>q6,stringify:()=>W6,stringifyUrl:()=>K6}),TEe=e=>e==null,EEe=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),F6=Symbol(`encodeFragmentIdentifier`);function DEe(e){switch(e.arrayFormat){case`index`:return t=>(n,r)=>{let i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[L6(t,e),`[`,i,`]`].join(``)]:[...n,[L6(t,e),`[`,L6(i,e),`]=`,L6(r,e)].join(``)]};case`bracket`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[L6(t,e),`[]`].join(``)]:[...n,[L6(t,e),`[]=`,L6(r,e)].join(``)];case`colon-list-separator`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[L6(t,e),`:list=`].join(``)]:[...n,[L6(t,e),`:list=`,L6(r,e)].join(``)];case`comma`:case`separator`:case`bracket-separator`:{let t=e.arrayFormat===`bracket-separator`?`[]=`:`=`;return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===``?r:(i=i===null?``:i,r.length===0?[[L6(n,e),t,L6(i,e)].join(``)]:[[r,L6(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,L6(t,e)]:[...n,[L6(t,e),`=`,L6(r,e)].join(``)]}}function OEe(e){let t;switch(e.arrayFormat){case`index`:return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,``),!t){r[e]=n;return}r[e]===void 0&&(r[e]={}),r[e][t[1]]=n};case`bracket`:return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`colon-list-separator`:return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`comma`:case`separator`:return(t,n,r)=>{r[t]=typeof n==`string`&&n.includes(e.arrayFormatSeparator)?n.split(e.arrayFormatSeparator).map(t=>R6(t,e)):n===null?n:R6(n,e)};case`bracket-separator`:return(t,n,r)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,``),!i){r[t]=n&&R6(n,e);return}let a=n===null?[]:R6(n,e).split(e.arrayFormatSeparator);if(r[t]===void 0){r[t]=a;return}r[t]=[...r[t],...a]};default:return(e,t,n)=>{if(n[e]===void 0){n[e]=t;return}n[e]=[...[n[e]].flat(),t]}}}function I6(e){if(typeof e!=`string`||e.length!==1)throw TypeError(`arrayFormatSeparator must be single character string`)}function L6(e,t){return t.encode?t.strict?EEe(e):encodeURIComponent(e):e}function R6(e,t){return t.decode?SEe(e):e}function z6(e){return Array.isArray(e)?e.sort():typeof e==`object`?z6(Object.keys(e)).sort((e,t)=>
174Number(e)-Number(t)).map(t=>e[t]):e}function B6(e){let t=e.indexOf(`#`);return t!==-1&&(e=e.slice(0,t)),e}function kEe(e){let t=``,n=e.indexOf(`#`);return n!==-1&&(t=e.slice(n)),t}function V6(e,t,n){return n===`string`&&typeof e==`string`?e:typeof n==`function`&&typeof e==`string`?n(e):n===`boolean`&&e===null?!0:n===`boolean`&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:n===`boolean`&&e!==null&&(e.toLowerCase()===`1`||e.toLowerCase()===`0`)?e.toLowerCase()===`1`:n===`string[]`&&t.arrayFormat!==`none`&&typeof e==`string`?[e]:n===`number[]`&&t.arrayFormat!==`none`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?[Number(e)]:n===`number`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):e}function H6(e){e=B6(e);let t=e.indexOf(`?`);return t===-1?``:e.slice(t+1)}function U6(e,t){t={decode:!0,sort:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},I6(t.arrayFormatSeparator);let n=OEe(t),r=Object.create(null);if(typeof e!=`string`||(e=e.trim().replace(/^[?#&]/,``),!e))return r;for(let i of e.split(`&`)){if(i===``)continue;let e=t.decode?i.replaceAll(`+`,` `):i,[a,o]=P6(e,`=`);a===void 0&&(a=e),o=o===void 0?null:[`comma`,`separator`,`bracket-separator`].includes(t.arrayFormat)?o:R6(o,t),n(R6(a,t),o,r)}for(let[e,n]of Object.entries(r))if(typeof n==`object`&&n&&t.types[e]!==`string`)for(let[r,i]of Object.entries(n)){let a=t.types[e],o=typeof a==`function`?a:a?a.replace(`[]`,``):void 0;n[r]=V6(i,t,o)}else typeof n==`object`&&n&&t.types[e]===`string`?r[e]=Object.values(n).join(t.arrayFormatSeparator):r[e]=V6(n,t,t.types[e]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return e[t]=n&&typeof n==`object`&&!Array.isArray(n)?z6(n):n,e},Object.create(null))}function W6(e,t){if(!e)return``;t={encode:!0,strict:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,...t},I6(t.arrayFormatSeparator);let n=n=>t.skipNull&&TEe(e[n])||t.skipEmptyString&&e[n]===``,r=DEe(t),i={};for(let[t,r]of Object.entries(e))n(t)||(i[t]=r);let a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(n=>{let i=e[n];if(t.replacer&&(i=t.replacer(n,i),i===void 0)||i===void 0)return``;if(i===null)return L6(n,t);if(Array.isArray(i)){if(i.length===0&&t.arrayFormat===`bracket-separator`)return L6(n,t)+`[]`;let e=i;return t.replacer&&(e=i.map((e,r)=>t.replacer(`${n}[${r}]`,e)).filter(e=>e!==void 0)),e.reduce(r(n),[]).join(`&`)}return L6(n,t)+`=`+L6(i,t)}).filter(e=>e.length>0).join(`&`)}function G6(e,t){t={decode:!0,...t};let[n,r]=P6(e,`#`);return n===void 0&&(n=e),{url:n?.split(`?`)?.[0]??``,query:U6(H6(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:R6(r,t)}:{}}}function K6(e,t){t={encode:!0,strict:!0,[F6]:!0,...t};let n=B6(e.url).split(`?`)[0]||``,r=W6({...U6(H6(e.url),{sort:!1,...t}),...e.query},t);r&&=`?${r}`;let i=kEe(e.url);if(typeof e.fragmentIdentifier==`string`){let r=new URL(n);r.hash=e.fragmentIdentifier,i=t[F6]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${i}`}function q6(e,t,n){n={parseFragmentIdentifier:!0,[F6]:!1,...n};let{url:r,query:i,fragmentIdentifier:a}=G6(e,n);return K6({url:r,query:CEe(i,t),fragmentIdentifier:a},n)}function AEe(e,t,n){return q6(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}var J6=wEe,Y6=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Collector=void 0,e.Collector=class{constructor(e){this.emit=(...t)=>{e.emitCollecting(this,t)}}}})),jEe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CollectorArray=void 0;var t=Y6();e.CollectorArray=class extends t.Collector{constructor(){super(...arguments),this.result=[]}handleResult(e){return this.result.push(e),!0}getResult(){return this.result}reset(){this.result.length=0}}})),MEe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CollectorLast=void 0;var t=Y6();e.CollectorLast=class extends t.Collector{handleResult(e){return this.result=e,!0}getResult(){return this.result}reset(){delete this.result}}})),NEe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CollectorUntil0=void 0;var t=Y6();e.CollectorUntil0=class extends t.Collector{constructor(){super(...arguments),this.result=!1}handleResult(e){return this.result=e,this.result}getResult(){return this.result}reset(){this.result=!1}}})),PEe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CollectorWhile0=void 0;var t=Y6();e.CollectorWhile0=class extends t.Collector{constructor(){super(...arguments),this.result=!1}handleResult(e){return this.result=e,!this.result}getResult(){return this.result}reset(){this.result=!1}}})),FEe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SignalConnectionImpl=void 0,e.SignalConnectionImpl=class{constructor(e){this.link=e}disconnect(){return this.link.unlink()}set enabled(e){this.link.setEnabled(e)}get enabled(){return this.link.isEnabled()}}})),IEe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SignalLink=void 0,e.SignalLink=class e{constructor(e,t,n){this.enabled=!0,this.newLink=!1,this.prev=e??this,this.next=t??this,this.order=n.order,this.isPublic=n.isPublic,this.callback=n.callback,this.onUnlink=n.onUnlink}isEnabled(){return this.enabled&&!this.newLink}setEnabled(e){this.enabled=e}unlink(){return this.callback?(delete this.callback,this.next.prev=this.prev,this.prev.next=this.next,this.onUnlink(),!0):!1}insert(t){let{order:n}=t,r=this.prev;
174for(;r!==this&&!(r.order<=n);)r=r.prev;let i=new e(r,r.next,t);return r.next=i,i.next.prev=i,i}}})),LEe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Signal=void 0;var t=FEe(),n=IEe(),r={order:0,isPublic:!0,onUnlink(){}};e.Signal=class{constructor(){this.head=new n.SignalLink(null,null,r),this.hasNewLinks=!1,this.emitDepth=0,this.connectionsCount=0,this.onUnlink=()=>{this.connectionsCount--}}getConnectionsCount(){return this.connectionsCount}hasConnections(){return this.connectionsCount>0}connect(e,{order:n=0,isPublic:r=!0}={}){this.connectionsCount++;let i=this.head.insert({callback:e,order:n,isPublic:r,onUnlink:this.onUnlink});return this.emitDepth>0&&(this.hasNewLinks=!0,i.newLink=!0),new t.SignalConnectionImpl(i)}disconnect(e){for(let t=this.head.next;t!==this.head;t=t.next)if(t.callback===e)return t.unlink(),!0;return!1}disconnectAll(){let{next:e}=this.head;for(;e!==this.head;)e.isPublic&&e.unlink(),e=e.next}emit(...e){this.emitDepth++;for(let t=this.head.next;t!==this.head;t=t.next)t.isEnabled()&&t.callback&&t.callback.apply(null,e);this.emitDepth--,this.unsetNewLink()}emitCollecting(e,t){this.emitDepth++;for(let n=this.head.next;n!==this.head;n=n.next)if(n.isEnabled()&&n.callback){let r=n.callback.apply(null,t);if(!e.handleResult(r))break}this.emitDepth--,this.unsetNewLink()}unsetNewLink(){if(this.hasNewLinks&&this.emitDepth===0){for(let e=this.head.next;e!==this.head;e=e.next)e.newLink=!1;this.hasNewLinks=!1}}}})),REe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SignalConnections=void 0,e.SignalConnections=class{constructor(){this.list=[]}add(e){this.list.push(e)}disconnectAll(){for(let e of this.list)e.disconnect();this.list=[]}getCount(){return this.list.length}isEmpty(){return this.list.length===0}}})),X6=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SignalConnections=e.Signal=e.CollectorWhile0=e.CollectorUntil0=e.CollectorLast=e.CollectorArray=e.Collector=void 0;var t=Y6();Object.defineProperty(e,`Collector`,{enumerable:!0,get:function(){return t.Collector}});var n=jEe();Object.defineProperty(e,`CollectorArray`,{enumerable:!0,get:function(){return n.CollectorArray}});var r=MEe();Object.defineProperty(e,`CollectorLast`,{enumerable:!0,get:function(){return r.CollectorLast}});var i=NEe();Object.defineProperty(e,`CollectorUntil0`,{enumerable:!0,get:function(){return i.CollectorUntil0}});var a=PEe();Object.defineProperty(e,`CollectorWhile0`,{enumerable:!0,get:function(){return a.CollectorWhile0}});var o=LEe();Object.defineProperty(e,`Signal`,{enumerable:!0,get:function(){return o.Signal}});var s=REe();Object.defineProperty(e,`SignalConnections`,{enumerable:!0,get:function(){return s.SignalConnections}})}))();function Z6(){return{formsWithPendingChanges:new Set,formsWithUploads:new Set,submitButtons:new Map}}var Q6=(0,Zt.getLogger)(`WidgetStateManager`);function $6(e,t){let n=new Date(e/1e3).toISOString();switch(t){case`date`:return n.slice(0,10);case`time`:{let e=n.slice(11,19);return e.endsWith(`:00`)?e.slice(0,5):e}case`datetime`:return n.slice(17,19)===`00`?n.slice(0,16):n.slice(0,19)}}var e8=class{constructor(){this.widgetStates=new Map}createState(e){let t=new mo({id:e});return this.widgetStates.set(e,t),t}getState(e){return this.widgetStates.get(e)}deleteState(e){this.widgetStates.delete(e)}removeInactive(e){this.widgetStates.forEach((t,n)=>{e.has(n)||this.widgetStates.delete(n)})}clear(){this.widgetStates.clear()}get isEmpty(){return this.widgetStates.size===0}createWidgetStatesMsg(){let e=new po;return this.widgetStates.forEach(t=>e.widgets.push(t)),e}copyFrom(e){e.widgetStates.forEach((e,t)=>{this.widgetStates.set(t,e)})}forEach(e){this.widgetStates.forEach(e)}},zEe=class{constructor(){this.widgetStates=new e8,this.clearOnSubmit=!1,this.enterToSubmit=!0,this.formCleared=new X6.Signal}get hasPendingChanges(){return!this.widgetStates.isEmpty}},BEe=class{constructor(e){this.widgetStates=new e8,this.forms=new Map,this.elementStates=new Map,this.pendingTriggerIds=new Set,this.triggerFlushResolvers=[],this.flushScheduled=!1,this.hasFragmentIdConflict=!1,this.boundWidgets=new Map,this.paramKeyToWidgetId=new Map,this.props=e,this.formsData=Z6()}addFormClearedListener(e,t){return this.getOrCreateFormState(e).formCleared.connect(t)}setFormSubmitBehaviors(e,t,n=!0){let r=this.getOrCreateFormState(e);r.clearOnSubmit=t,r.enterToSubmit=n}submitForm(e,t,n){if(!Ag(e))throw Error(`invalid formID '${e}'`);let r=this.getOrCreateFormState(e),i=this.formsData.submitButtons.get(e),a;n===void 0?i!==void 0&&i.length>0&&(a=i[0]):a=n,a&&(this.createWidgetState(a,{fromUi:!0}).triggerValue=!0),this.widgetStates.copyFrom(r.widgetStates),r.widgetStates.clear(),this.sendUpdateWidgetsMessage(t),this.syncFormsWithPendingChanges(),a&&this.deleteWidgetState(a.id),r.clearOnSubmit&&r.formCleared.emit()}setChatInputValue(e,t,n,r){this.createWidgetState(e,n).chatInputValue=new xo(t),this.pendingTriggerIds.add(e.id),this.scheduleFlush(r)}
174setStringTriggerValue(e,t,n,r){this.createWidgetState(e,n).stringTriggerValue=new vo({data:t}),this.pendingTriggerIds.add(e.id),this.scheduleFlush(r)}setTriggerValue(e,t,n,r){let i=this.getWidgetState(e);if(i===void 0&&(i=this.createWidgetState(e,t)),r===void 0)i.triggerValue=!0;else{let e=r;try{if(Ba(i.jsonTriggerValue))i.jsonTriggerValue=JSON.stringify([e]);else{let t=i.jsonTriggerValue,n=JSON.parse(t),r=Array.isArray(n)?n:[n];r.push(e),i.jsonTriggerValue=JSON.stringify(r)}}catch(t){Q6.error(`Failed to parse or stringify widgetState.jsonTriggerValue:`,t),i.jsonTriggerValue=JSON.stringify([i.jsonTriggerValue,e])}}return this.pendingTriggerIds.add(e.id),new Promise(e=>{this.triggerFlushResolvers.push(e),this.scheduleFlush(n)})}getBoolValue(e){let t=this.getWidgetState(e);if(I(t)&&t.value===`boolValue`)return t.boolValue}setBoolValue(e,t,n,r){this.createWidgetState(e,n).boolValue=t,this.onWidgetValueChanged(e.formId,n,r),this.maybeSyncValueToUrl(e.id,n,t)}getIntValue(e){let t=this.getWidgetState(e);if(I(t)&&t.value===`intValue`)return t8(t.intValue)}setIntValue(e,t,n,r){this.createWidgetState(e,n).intValue=t,this.onWidgetValueChanged(e.formId,n,r),this.maybeSyncValueToUrl(e.id,n,t)}getDoubleValue(e){let t=this.getWidgetState(e);if(I(t)&&t.value===`doubleValue`)return t.doubleValue}setDoubleValue(e,t,n,r){this.createWidgetState(e,n).doubleValue=t,this.onWidgetValueChanged(e.formId,n,r),this.maybeSyncValueToUrl(e.id,n,t)}getStringValue(e){let t=this.getWidgetState(e);if(I(t)&&t.value===`stringValue`)return t.stringValue}setStringValue(e,t,n,r){this.createWidgetState(e,n).stringValue=t,this.onWidgetValueChanged(e.formId,n,r),this.maybeSyncValueToUrl(e.id,n,t)}setStringArrayValue(e,t,n,r){this.createWidgetState(e,n).stringArrayValue=new ho({data:t}),this.onWidgetValueChanged(e.formId,n,r),this.maybeSyncValueToUrl(e.id,n,t)}getStringArrayValue(e){let t=this.getWidgetState(e);if(I(t)&&t.value===`stringArrayValue`&&I(t.stringArrayValue)&&I(t.stringArrayValue.data))return t.stringArrayValue.data}getDoubleArrayValue(e){let t=this.getWidgetState(e);if(I(t)&&t.value===`doubleArrayValue`&&I(t.doubleArrayValue)&&I(t.doubleArrayValue.data))return t.doubleArrayValue.data}setDoubleArrayValue(e,t,n,r){let i=t.filter(e=>e!=null&&!Number.isNaN(e));if(i.length===0){Q6.warn(`setDoubleArrayValue: All values were invalid (NaN/null/undefined) for widget "${e.id}". Preserving previous state.`),this.maybeSyncValueToUrl(e.id,n,[]);return}this.createWidgetState(e,n).doubleArrayValue=new go({data:i}),this.onWidgetValueChanged(e.formId,n,r),this.maybeSyncValueToUrl(e.id,n,i)}getIntArrayValue(e){let t=this.getWidgetState(e);if(I(t)&&t.value===`intArrayValue`&&I(t.intArrayValue)&&I(t.intArrayValue.data))return t.intArrayValue.data.map(t8)}setIntArrayValue(e,t,n,r){this.createWidgetState(e,n).intArrayValue=new _o({data:t}),this.onWidgetValueChanged(e.formId,n,r),this.maybeSyncValueToUrl(e.id,n,t)}getJsonValue(e){let t=this.getWidgetState(e);if(I(t)&&t.value===`jsonValue`)return t.jsonValue}setJsonValue(e,t,n,r){this.createWidgetState(e,n).jsonValue=JSON.stringify(t),this.onWidgetValueChanged(e.formId,n,r)}setArrowValue(e,t,n,r){this.createWidgetState(e,n).arrowValue=t,this.onWidgetValueChanged(e.formId,n,r)}getArrowValue(e){let t=this.getWidgetState(e);if(I(t)&&t.value===`arrowValue`&&I(t.arrowValue))return t.arrowValue}setBytesValue(e,t,n,r){this.createWidgetState(e,n).bytesValue=t,this.onWidgetValueChanged(e.formId,n,r)}getBytesValue(e){let t=this.getWidgetState(e);if(I(t)&&t.value===`bytesValue`)return t.bytesValue}setFileUploaderStateValue(e,t,n,r){this.createWidgetState(e,n).fileUploaderStateValue=t,this.onWidgetValueChanged(e.formId,n,r)}getFileUploaderStateValue(e){let t=this.getWidgetState(e);if(I(t)&&t.value===`fileUploaderStateValue`)return t.fileUploaderStateValue}onWidgetValueChanged(e,t,n){Ag(e)?this.syncFormsWithPendingChanges():t.fromUi&&this.scheduleFlush(n)}syncFormsWithPendingChanges(){let e=new Set;this.forms.forEach((t,n)=>{t.hasPendingChanges&&e.add(n)}),this.updateFormsData(t=>{t.formsWithPendingChanges=e})}
174sendUpdateWidgetsMessage(e,t=void 0){this.props.sendRerunBackMsg(this.widgetStates.createWidgetStatesMsg(),e,void 0,t)}getActiveWidgetStates(e){let t=new po;return this.widgetStates.forEach(n=>{e.has(n.id)&&t.widgets.push(n)}),t}removeInactive(e){this.widgetStates.removeInactive(e),this.forms.forEach(t=>t.widgetStates.removeInactive(e)),this.elementStates.forEach((t,n)=>{e.has(n)||this.deleteElementState(n)})}createWidgetState(e,t){return(Ag(e.formId)&&t.fromUi?this.getOrCreateFormState(e.formId).widgetStates:this.widgetStates).createState(e.id)}getWidgetState(e){if(Ag(e.formId)){let t=this.forms.get(e.formId)?.widgetStates.getState(e.id);if(I(t))return t}return this.widgetStates.getState(e.id)}deleteWidgetState(e){this.widgetStates.deleteState(e)}getOrCreateFormState(e){let t=this.forms.get(e);return I(t)?t:(t=new zEe,this.forms.set(e,t),t)}setFormsWithUploadsInProgress(e){this.updateFormsData(t=>{t.formsWithUploads=e})}allowFormEnterToSubmit(e){if(!Ag(e))return!1;let t=this.forms.get(e);if(t&&!t.enterToSubmit)return!1;let n=this.formsData.submitButtons.get(e)?.[0];return n?!n.disabled:!1}addSubmitButton(e,t){let n=this.formsData.submitButtons.get(e);if(n===void 0)this.setSubmitButtons(e,[t]);else{let r=Object.assign([],n);r.push(t),this.setSubmitButtons(e,r)}}removeSubmitButton(e,t){let n=this.formsData.submitButtons.get(e);if(n!==void 0){let r=Object.assign([],n),i=r.indexOf(t,0);i>-1&&r.splice(i,1),this.setSubmitButtons(e,r)}}setSubmitButtons(e,t){if(t.length<0)throw Error(`Bad submitButtons length ${t.length} (must be >= 0)`);this.updateFormsData(n=>{n.submitButtons.set(e,t)})}updateFormsData(e){let t=dEe(this.formsData,e);this.formsData!==t&&(this.formsData=t,this.props.formsDataChanged(this.formsData))}getElementState(e,t){return this.elementStates.get(e)?.get(t)}setElementState(e,t,n){this.elementStates.has(e)||this.elementStates.set(e,new Map);let r=this.elementStates.get(e);r&&r.set(t,n)}deleteElementState(e,t){I(t)?this.elementStates.get(e)?.delete(t):this.elementStates.delete(e)}scheduleFlush(e){this.scheduledFragmentId===void 0&&(this.scheduledFragmentId=e),this.scheduledFragmentId!==void 0&&e!==void 0&&e!==this.scheduledFragmentId&&!this.hasFragmentIdConflict&&(Q6.warn(`Unexpected state: Multiple different fragmentIds detected in a single batch of widget updates. Proceeding with flushing updates using fragmentId '%s' for this batch.`,this.scheduledFragmentId),this.hasFragmentIdConflict=!0),!this.flushScheduled&&(this.flushScheduled=!0,setTimeout(()=>{this.sendUpdateWidgetsMessage(this.scheduledFragmentId),this.pendingTriggerIds.forEach(e=>this.deleteWidgetState(e)),this.pendingTriggerIds.clear(),this.triggerFlushResolvers.forEach(e=>e()),this.triggerFlushResolvers=[],this.flushScheduled=!1,this.scheduledFragmentId=void 0,this.hasFragmentIdConflict=!1},0))}registerQueryParamBinding(e,t,n,r,i,a,o){let s=this.paramKeyToWidgetId.get(t);s&&s!==e&&this.boundWidgets.delete(s);let c=r;o&&(Array.isArray(c)?c=c.map(e=>typeof e==`number`?$6(e,o):String(e)):typeof c==`number`&&(c=$6(c,o))),this.boundWidgets.set(e,{paramKey:t,valueType:n,defaultValue:c,urlFormat:a,clearable:i,dateType:o}),this.paramKeyToWidgetId.set(t,e)}unregisterQueryParamBinding(e){let t=this.boundWidgets.get(e);t&&(this.paramKeyToWidgetId.delete(t.paramKey),this.boundWidgets.delete(e))}hasQueryParamBinding(e){return this.boundWidgets.has(e)}filterParamsForPageChange(e){if(this.paramKeyToWidgetId.size===0)return e;let t=new URL(window.location.href),n={};this.paramKeyToWidgetId.forEach((e,r)=>{let i=t.searchParams.getAll(r);i.length===1?n[r]=i[0]:i.length>1&&(n[r]=i)});let r=J6.stringify(n,{arrayFormat:`none`}).replaceAll(`%20`,`+`);return r?e?`${e}&${r}`:r:e}setQueryParamsChangeHandler(e){this.onQueryParamsChange=e}notifyQueryParamsChange(){if(this.onQueryParamsChange){let e=new URL(window.location.href);this.onQueryParamsChange(e.searchParams.toString())}}convertToUrlValue(e,t){if(e===null)return this.isEmptyValueValid(t)?``:null;switch(t.valueType){case`bool_value`:case`double_value`:case`int_value`:return String(e);case`string_value`:return e;case`string_array_value`:return e.filter(e=>e!==``);case`int_array_value`:return e.map(e=>String(e));case`double_array_value`:{let n=e;if(t.dateType){let e=t.dateType;return n.map(t=>$6(t,e))}return n.map(e=>String(e))}default:return ag(t.valueType)}}isEmptyValueValid(e){return e.clearable}shouldClearUrlParam(e,t){return(e===null||Array.isArray(e)&&e.length===0||e===``)&&!this.isEmptyValueValid(t)?!0:Array.isArray(e)?this.isDefaultArrayValue(e,t):this.isDefaultValue(e,t)}updateUrlParam(e,t,n){let r=J6.parse(window.location.search,{arrayFormat:`none`});
174t===null?delete r[e]:Array.isArray(t)?t.length===0?r[e]=``:n===`comma`?r[e]=t.join(`,`):r[e]=t:r[e]=t;let i=J6.stringify(r,{arrayFormat:`none`,skipNull:!0,skipEmptyString:!1}).replaceAll(`%20`,`+`);if(i===window.location.search.replace(/^\?/,``))return;let a=new URL(window.location.href);a.search=i,window.history.replaceState({},``,a.toString()),this.notifyQueryParamsChange()}maybeSyncValueToUrl(e,t,n){if(!t.fromUi)return;let r=this.boundWidgets.get(e);if(!r)return;let i=this.convertToUrlValue(n,r),a=this.shouldClearUrlParam(i,r);this.updateUrlParam(r.paramKey,a?null:i,r.urlFormat)}toStringPrimitive(e){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`)return String(e);if(e instanceof Date)return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}isDefaultValue(e,t){let n=t.defaultValue;if(Ba(n))return Ba(e)||e===``;if(e===``&&Array.isArray(n)&&n.length===0)return!0;let r=this.toStringPrimitive(e),i=this.toStringPrimitive(n);return r===void 0||i===void 0?!1:r===i}isDefaultArrayValue(e,t){let n=t.defaultValue;if(!Array.isArray(n)){if(e.length===1&&n!==null){let t=this.toStringPrimitive(n);return t!==void 0&&e[0]===t}return!1}return e.length===n.length?e.every((e,t)=>{let r=this.toStringPrimitive(n[t]);return r!==void 0&&e===r}):!1}};function t8(e){if(typeof e==`number`)return e;let t=yEe.util.LongBits.from(e).toNumber();if(Number.isSafeInteger(t))return t;throw Error(`value ${e.toString()} cannot be converted to number without a loss of precision!`)}var VEe=e=>{var t=e.target||e.srcElement,n=t.tagName;return!(t.isContentEditable||n===`INPUT`||n===`SELECT`||n===`TEXTAREA`)},n8=_.forwardRef((e,t)=>{var{keyName:n,filter:r=VEe,onKeyUp:i,onKeyDown:a,allowRepeat:o,disabled:s,splitKey:c,children:l}=e,u=(0,_.useRef)(new Set),d=(0,_.useRef)({}),f=(0,_.useCallback)((e,t)=>{if(!s){var n=t.shortcut;u.current.has(n)&&!o||(u.current.add(n),d.current=t,a&&a(n,e,t))}},[s,o,a]),p=(0,_.useCallback)(e=>{if(!(s||!i)){var t=lz.getPressedKeyString();Array.from(u.current).filter(e=>!t.includes(e)).forEach(t=>{u.current.has(t)&&(u.current.delete(t),i(t,e,tt({},d.current,{shortcut:t})))}),u.current.size===0&&(d.current={})}},[s,i]);return(0,_.useImperativeHandle)(t,()=>({get isKeyDown(){return u.current.size>0},get handle(){return d.current},get props(){return e}}),[e]),(0,_.useEffect)(()=>(r&&(lz.filter=r),n&&(lz.unbind(n),lz(n,{splitKey:c,keydown:!0,keyup:!0},f)),()=>{n&&lz.unbind(n),u.current.clear(),d.current={}}),[n,c,r,f]),(0,_.useEffect)(()=>{if(i){var e=e=>{setTimeout(()=>p(e),0)};return typeof document<`u`&&document.addEventListener(`keyup`,e),()=>{typeof document<`u`&&document.removeEventListener(`keyup`,e)}}},[i,p]),(0,v.jsx)(v.Fragment,{children:l})});n8.displayName=`ReactHotkeys`;var r8=Object.freeze({info:`info`,positive:`positive`,warning:`warning`,negative:`negative`}),i8=Object.freeze({inline:`inline`,toast:`toast`}),a8=Object.freeze({topLeft:`topLeft`,top:`top`,topRight:`topRight`,bottomRight:`bottomRight`,bottom:`bottom`,bottomLeft:`bottomLeft`});Vy();function HEe(e){if(e==null)throw TypeError(`Cannot destructure undefined`)}function o8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o8(Object(n),!0).forEach(function(t){c8(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UEe(e,t,n){var r,i=t===i8.inline;return(r={},c8(r,r8.info,i?n.colors.notificationInfoBackground:n.colors.toastInfoBackground),c8(r,r8.positive,i?n.colors.notificationPositiveBackground:n.colors.toastPositiveBackground),c8(r,r8.warning,i?n.colors.notificationWarningBackgroun
174d:n.colors.toastWarningBackground),c8(r,r8.negative,i?n.colors.notificationNegativeBackground:n.colors.toastNegativeBackground),r)[e]}function WEe(e,t,n){var r;if(t===i8.inline){var i;return(i={},c8(i,r8.info,n.colors.notificationInfoText),c8(i,r8.positive,n.colors.notificationPositiveText),c8(i,r8.warning,n.colors.notificationWarningText),c8(i,r8.negative,n.colors.notificationNegativeText),i)[e]}return(r={},c8(r,r8.info,n.colors.toastInfoText),c8(r,r8.positive,n.colors.toastPositiveText),c8(r,r8.warning,n.colors.toastWarningText),c8(r,r8.negative,n.colors.toastNegativeText),r)[e]}function GEe(e){switch(e){case a8.topLeft:return{top:0,alignItems:`flex-start`,justifyContent:`flex-start`,flexDirection:`column`};case a8.top:return{top:0,alignItems:`center`,justifyContent:`flex-start`,flexDirection:`column`};case a8.topRight:return{top:0,alignItems:`flex-end`,justifyContent:`flex-start`,flexDirection:`column`};case a8.bottomRight:return{bottom:0,alignItems:`flex-end`,justifyContent:`flex-end`,flexDirection:`column-reverse`};case a8.bottom:return{bottom:0,alignItems:`center`,justifyContent:`flex-end`,flexDirection:`column-reverse`};case a8.bottomLeft:return{bottom:0,alignItems:`flex-start`,justifyContent:`flex-end`,flexDirection:`column-reverse`}}}var l8=W(`div`,function(e){var t=e.$placement,n=e.$theme;return s8({pointerEvents:`none`,position:`fixed`,right:0,left:0,display:`flex`,marginTop:n.sizing.scale300,marginBottom:n.sizing.scale300,marginLeft:n.sizing.scale600,marginRight:n.sizing.scale600},GEe(t))});l8.displayName=`Root`,l8.displayName=`Root`;var u8=W(`div`,function(e){return HEe(e),{}});u8.displayName=`InnerContainer`,u8.displayName=`InnerContainer`;var d8=W(`div`,function(e){var t=e.$isVisible,n=e.$kind,r=e.$type,i=e.$theme,a=r===i8.inline;return s8(s8({},i.typography.font300),{},{pointerEvents:`auto`,color:WEe(n,r,i),height:`auto`,width:`288px`,paddingTop:i.sizing.scale600,paddingRight:i.sizing.scale600,paddingBottom:i.sizing.scale600,paddingLeft:i.sizing.scale600,marginTop:i.sizing.scale300,marginBottom:i.sizing.scale300,backgroundColor:UEe(n,r,i)||i.colors.accent,borderTopLeftRadius:i.borders.radius400,borderTopRightRadius:i.borders.radius400,borderBottomRightRadius:i.borders.radius400,borderBottomLeftRadius:i.borders.radius400,boxShadow:a?`none`:i.lighting.shadow600,opacity:+!!t,transitionProperty:`all`,transitionDuration:i.animation.timing200,transitionTimingFunction:i.animation.easeInOutCurve,display:`flex`,justifyContent:`space-between`})});d8.displayName=`Body`,d8.displayName=`Body`;var f8=W(`svg`,function(e){var t=e.$theme,n=e.$size,r=e.$color,i=e.$isFocusVisible;return s8(s8({},gq({$theme:t,$size:n,$color:r})),{},{cursor:`pointer`,width:n||`16px`,flexShrink:0,outline:i?`3px solid ${t.colors.accent}`:`none`})});f8.displayName=`CloseIconSvg`,f8.displayName=`CloseIconSvg`,Jb(),ab(),rx();function p8(e){"@babel/helpers - typeof";return p8=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},p8(e)}function m8(){return m8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m8.apply(this,arguments)}function h8(e,t){return YEe(e)||JEe(e,t)||qEe(e,t)||KEe()}function KEe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 175In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qEe(e,t){if(e){if(typeof e==`string`)return g8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g8(e,t)}}function g8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function JEe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function YEe(e){if(Array.isArray(e))return e}function XEe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ZEe(e,t,n){return t&&_8(e.prototype,t),n&&_8(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function QEe(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&v8(e,t)}function v8(e,t){return v8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v8(e,t)}function $Ee(e){var t=tDe();return function(){var n=b8(e),r;if(t){var i=b8(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return eDe(this,r)}}function eDe(e,t){if(t&&(p8(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return y8(e)}function y8(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function tDe(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b8(e){return b8=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b8(e)}function x8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S8=function(e){QEe(n,e);var t=$Ee(n);function n(e){var r;return XEe(this,n),r=t.call(this,e),x8(y8(r),`autoHideTimeout`,void 0),x8(y8(r),`animateInTimer`,void 0),x8(y8(r),`animateOutCompleteTimer`,void 0),x8(y8(r),`closeRef`,void 0),x8(y8(r),`previouslyFocusedElement`,void 0),x8(y8(r),`state`,{isVisible:!1,isRendered:!0,isFocusVisible:!1}),x8(y8(r),`handleFocus`,function(e){Xb(e)&&r.setState({isFocusVisible:!0})}),x8(y8(r),`handleBlur`,function(e){r.state.isFocusVisible!==!1&&r.setState({isFocusVisible:!1})}),x8(y8(r),`animateIn`,function(){r.animateInTimer=setTimeout(function(){r.setState({isVisible:!0})},0)}),x8(y8(r),`animateOut`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};r.setState({isVisible:!1}),r.animateOutCompleteTimer=setTimeout(function(){r.setState({isRendered:!1}),e()},600)}),x8(y8(r),`dismiss`,function(){r.animateOut(r.props.onClose),r.props.autoFocus&&r.previouslyFocusedElement&&r.previouslyFocusedElement.focus()}),x8(y8(r),`onFocus`,function(e){r.state.isVisible&&(clearTimeout(r.autoHideTimeout),clearTimeout(r.animateOutCompleteTimer),typeof r.props.onFocus==`function`&&r.props.onFocus(e))}),x8(y8(r),`onMouseEnter`,function(e){r.state.isVisible&&(clearTimeout(r.autoHideTimeout),clearTimeout(r.animateOutCompleteTimer),typeof r.props.onMouseEnter==`function`&&r.props.onMouseEnter(e))}),x8(y8(r),`onBlur`,function(e){r.startTimeout(),typeof r.props.onBlur==`function`&&r.props.onBlur(e)}),x8(y8(r),`onMouseLeave`,function(e){r.startTimeout(),typeof r.props.onMouseLeave==`function`&&r.props.onMouseLeave(e)}),r.closeRef=_.createRef(),r.previouslyFocusedElement=null,r}return ZEe(n,[{key:`componentDidMount`,value:function(){this.animateIn(),this.startTimeout(),typeof document<`u`&&this.props.autoFocus&&this.closeRef&&this.closeRef.current&&this.closeRef.current.focus&&typeof this.closeRef.current.focus==`function`&&(this.previouslyFocusedElement=document.activeElement,this.closeRef.current.focus(),this.setState({isFocusVisible:!0}))}},{key:`componentDidUpdate`,value:function(e){(this.props.autoHideDuration!==e.autoHideDuration||this.props.__updated!==e.__updated)&&this.startTimeout()}},{key:`componentWillUnmount`,value:function(){this.clearTimeout()}},{key:`startTimeout`,value:function(){this.props.autoHideDuration&&(this.autoHideTimeout&&clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(this.dismiss,this.props.autoHideDuration))}},{key:`clearTimeout`,value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){[this.autoHideTimeout,this.animateInTimer,this.animateOutCompleteTimer].forEach(function(e){e&&clearTimeout(e)})})},{key:`getSharedProps`,value:function(){var e=this.props,t=e.kind,n=e.notificationType,r=e.closeable,i=this.state;return{$kind:t,$type:n,$closeable:r,$isRendered:i.isRendered,$isVisible:i.isVisible}}},{key:`render`,value:function(){var e=this,t=this.props,n=t.children,r=t.closeable,i=this.state.isRendered,a=this.props.overrides,o=a.Body,s=a.CloseIcon,c=a.InnerContainer,l=h8(Hb(o,d8),2),u=l[0],d=l[1],f=h8(Hb(c,u8),2),p=f[0],m=f[1],h=h8(Hb(s,f8),2),g=h[0],v=h[1],y=Ub({Svg:{component:g}},{Svg:s}),b=this.getSharedProps();return i?_.createElement(rb.Consumer,null,function(t){return _.createElement(u,m8({role:`alert`,"data-baseweb":e.props[`data-baseweb`]||`toast`},b,d,{onBlur:e.onBlur,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave}),_.createElement(p,m8({},b,m),typeof n==`function`?n({dismiss:e.dismiss}):n),r?_.createElement(Mq,m8({ref:e.closeRef,role:`button`,tabIndex:0,$isFocusVisible:e.state.isFocusVisible,onClick:e.dismiss,onKeyPress:function(t){t.key===`Enter`&&e.dismiss()},title:t.toast.close},b,v,{onFocus:tx(v,e.handleFocus),onBlur:nx(v,e.handleBlur),overrides:y})):null)}):null}}]),n}(_.Component);
175x8(S8,`defaultProps`,{autoFocus:!1,autoHideDuration:0,closeable:!0,kind:r8.info,notificationType:i8.toast,onClose:function(){},onBlur:function(){},onFocus:function(){},onMouseEnter:function(){},onMouseLeave:function(){},overrides:{}});var C8=u(Kt());Jb();function w8(e){"@babel/helpers - typeof";return w8=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},w8(e)}var nDe=[`onClose`,`children`,`key`];function rDe(e,t){return oDe(e)||aDe(e,t)||E8(e,t)||iDe()}function iDe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 176In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aDe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function oDe(e){if(Array.isArray(e))return e}function T8(){return T8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T8.apply(this,arguments)}function sDe(e,t){if(e==null)return{};var n=cDe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cDe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function lDe(e){return fDe(e)||dDe(e)||E8(e)||uDe()}function uDe(){throw TypeError(`Invalid attempt to spread non-iterable instance. 177In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E8(e,t){if(e){if(typeof e==`string`)return D8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D8(e,t)}}function dDe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function fDe(e){if(Array.isArray(e))return D8(e)}function D8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function O8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?O8(Object(n),!0).forEach(function(t){P8(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pDe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function A8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mDe(e,t,n){return t&&A8(e.prototype,t),n&&A8(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function hDe(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&j8(e,t)}function j8(e,t){return j8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j8(e,t)}function gDe(e){var t=vDe();return function(){var n=N8(e),r;if(t){var i=N8(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _De(this,r)}}function _De(e,t){if(t&&(w8(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return M8(e)}function M8(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function vDe(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N8(e){return N8=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N8(e)}function P8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F8,I8=function(e){hDe(n,e);var t=gDe(n);function n(e){var r;return pDe(this,n),r=t.call(this,e),P8(M8(r),`state`,{isMounted:!1,toasts:[]}),P8(M8(r),`dismissHandlers`,{}),P8(M8(r),`toastId`,0),P8(M8(r),`getToastProps`,function(e){var t=r.props,n=t.autoF
177ocus,i=t.autoHideDuration,a=t.closeable,o=e.key||`toast-${r.toastId++}`;return k8(k8({autoFocus:n,autoHideDuration:i,closeable:a},e),{},{key:o})}),P8(M8(r),`show`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.state.toasts.map(function(e){return e.key}).includes(e.key))return r.update(e.key,e),e.key;var t=r.getToastProps(e);return r.setState(function(e){var n=e.toasts;return{toasts:[].concat(lDe(n),[t])}}),t.key}),P8(M8(r),`update`,function(e,t){r.setState(function(n){return{toasts:n.toasts.map(function(n){return n.key===e?k8(k8(k8({},n),r.getToastProps(k8({autoHideDuration:n.autoHideDuration},t))),{},{key:e},r.props.resetAutoHideTimerOnUpdate?{__updated:(+n.__updated||0)+1}:{}):n})}})}),P8(M8(r),`dismiss`,function(e){r.dismissHandlers[e]&&r.dismissHandlers[e]()}),P8(M8(r),`clearAll`,function(){Object.keys(r.dismissHandlers).forEach(function(e){r.dismissHandlers[e]()})}),P8(M8(r),`clear`,function(e){e===void 0?r.clearAll():r.dismiss(e)}),P8(M8(r),`internalOnClose`,function(e){delete r.dismissHandlers[e],r.setState(function(t){return{toasts:t.toasts.filter(function(t){return t.key!==e})}})}),P8(M8(r),`getOnCloseHandler`,function(e,t){return function(){r.internalOnClose(e),typeof t==`function`&&t()}}),P8(M8(r),`renderToast`,function(e){var t=e.onClose,n=e.children,i=e.key,a=sDe(e,nDe),o=r.props.overrides,s=o.ToastBody,c=o.ToastCloseIcon,l=o.ToastInnerContainer,u=Ub(Ub({Body:d8,CloseIcon:f8,InnerContainer:u8},{Body:s||{},CloseIcon:c||{},InnerContainer:l||{}}),e.overrides);return _.createElement(S8,T8({},a,{overrides:u,key:i,onClose:r.getOnCloseHandler(i,t)}),function(e){var t=e.dismiss;return r.dismissHandlers[i]=t,n})}),P8(M8(r),`getSharedProps`,function(){return{$placement:r.props.placement}}),F8=M8(r),r}return mDe(n,[{key:`componentDidMount`,value:function(){this.setState({isMounted:!0})}},{key:`render`,value:function(){for(var e=this.getSharedProps(),t=this.props.overrides.Root,n=rDe(Hb(t,l8),2),r=n[0],i=n[1],a=this.state.toasts.length,o=[],s=a-1;s>=0;s--)o.push(this.renderToast(this.state.toasts[s]));var c=_.createElement(r,T8({"data-baseweb":`toaster`},e,i),o);return this.state.isMounted?_.createElement(_.Fragment,null,this.props.usePortal&&typeof document<`u`&&document.body?C8.createPortal(c,document.body):c,this.props.children):_.createElement(_.Fragment,null,this.props.children)}}]),n}(_.Component);P8(I8,`defaultProps`,{autoFocus:!1,autoHideDuration:0,children:null,closeable:!0,overrides:{},placement:a8.top,resetAutoHideTimerOnUpdate:!0,usePortal:!0});var yDe={getRef:function(){return F8},show:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRef();if(n)return n.show(k8(k8({},t),{},{children:e}))},info:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(e,k8(k8({},t),{},{kind:r8.info}))},positive:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(e,k8(k8({},t),{},{kind:r8.positive}))},warning:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(e,k8(k8({},t),{},{kind:r8.warning}))},negative:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(e,k8(k8({},t),{},{kind:r8.negative}))},update:function(e,t){var n=this.getRef();n&&n.update(e,t)},clear:function(e){var t=this.getRef();t&&t.clear(e)}};function bDe({children:e}){let t=fE();return F(Ht,{children:[P(I8,{placement:a8.topRight,autoHideDuration:4*1e3,overrides:{Root:{style:{top:t.sizes.headerHeight,zIndex:t.zIndices.toast},props:{"data-testid":`stToastContainer`,className:`stToastContainer`}}}}),e]})}var L8=G(`div`,{target:`e1yxiy6j0`})(({theme:e})=>({marginLeft:e.spacing.lg})),xDe=G(`header`,{target:`e1yxiy6j1`})(({theme:e,isTransparentBackground:t})=>({position:`absolute`,top:0,left:0,right:0,display:`flex`,alignItems:`center`,height:e.sizes.headerHeight,minHeight:e.sizes.headerHeight,width:`100%`,background:t?`transparent`:e.colors.bgColor,outline:`none`,zIndex:e.zIndices.header,pointerEvents:t?`none`:`auto`,fontSize:e.fontSizes.sm,"@media print":{position:`absolute`,background:`transparent`,"& *":{display:`none !important`},[`& ${L8}, & ${L8} *, & :has(${L8})`]:{display:`flex !important`},[`& ${L8} img`]:{display:`block !important`}}})),SDe=G(`div`,{target:`e1yxiy6j2`})(({theme:e})=>({display:`flex`,alignItems:`center`,height:`100%`,width:`100%`,padding:0,pointerEvents:`auto`,position:`relative`,zIndex:e.zIndices.header})),CDe=G(`div`,{target:`e1yxiy6j3`})(({theme:e})=>({display:`flex`,alignItems:`center`,justifyContent:`center`,marginLeft:e.spacing.lg,"@media print":{display:`none`}})),wDe=G(`div`,{target:`e1yxiy6j4`})(()=>({flexShrink:0,display:`flex`,alignItems:`center`,justifyContent:`space-between`,width:`100%`,margin:0,border:0})),TDe=G(`div`,{target:`e1yxiy6j5`})(()=>({display:`flex`,alignItems:`center`,flexShrink:0})),EDe=G(`div`,{target:`e1yxiy6j6`})(({theme:e})=>({flexShrink:0,display:`flex`,alignItems:`center`,justifyContent:`flex-end`,marginLeft:`auto`,height:`100%`,minWidth:e.sizes.headerRightContentMaxWidth,marginRight:e.spacing.lg})),DDe=({hasSidebar:e,isSidebarOpen:t,onToggleSidebar:n,navigation:r,rightContent:i,logoComponent:a,showToolbar:o})=>{let{activeTheme:s}=(0,_.useContext)(nW),c=a&&!t,l=e&&!t,u=o&&i,d=c||l||r||u;return P(xDe,{className:`stAppHeader`,"data-testid":`stHeader`,isTransparentBackgroun
177d:!d,children:d?P(SDe,{className:`stAppToolbar`,"data-testid":`stToolbar`,theme:s.emotion,children:F(wDe,{children:[F(TDe,{children:[c?P(L8,{children:a}):null,l&&P(CDe,{children:P($k,{kind:xk.HEADER_NO_PADDING,onClick:n,"data-testid":`stExpandSidebarButton`,children:P(hT,{size:`xl`,iconValue:`:material/keyboard_double_arrow_right:`,color:s.emotion.colors.fadedText60})})})]}),r,u?P(EDe,{children:i}):null]})}):null})},R8=(e,t)=>`max( 178 ${t}px, 179 calc(${e.spacing.xl} - ${t}px) 180 )`,ODe=G(`section`,{target:`eelgd2m0`})(({theme:e,isCollapsed:t,adjustTop:n,sidebarWidth:r,windowInnerWidth:i})=>{let a=t?0:Math.min(200,i),o=t?0:Math.min(600,i*.9);return{position:`relative`,top:n?e.sizes.headerDecorationHeight:e.spacing.none,backgroundColor:e.colors.bgColor,color:e.colors.bodyText,colorScheme:zC(e)?`light`:`dark`,zIndex:e.zIndices.header+1,minWidth:a,maxWidth:o,transform:t?`translateX(-${r}px)`:`none`,transition:`transform 300ms, min-width 300ms, max-width 300ms`,"&:focus":{outline:`none`},[`@media (max-width: ${e.breakpoints.md})`]:{boxShadow:t?`-2rem 0 2rem 2rem transparent`:e.shadows.sidebar},"@media print":{display:t?`none`:`initial`,height:`auto !important`,maxHeight:`99%`,boxShadow:`none`}}}),kDe=G(`div`,{target:`eelgd2m1`})(({hasPageNavAbove:e,theme:t})=>({paddingTop:e?t.spacing.twoXL:0,paddingBottom:t.sizes.sidebarTopSpace})),ADe=G(`div`,{target:`eelgd2m2`})(({theme:e,scrollbarGutterSize:t})=>({position:`relative`,height:`100%`,width:`100%`,overflow:`auto`,scrollbarGutter:`stable both-edges`,paddingLeft:R8(e,t),paddingRight:R8(e,t)})),jDe=G(`div`,{target:`eelgd2m3`})(({theme:e})=>({position:`absolute`,width:`8px`,height:`100%`,cursor:`col-resize`,zIndex:e.zIndices.sidebarMobile,backgroundImage:e.showSidebarBorder?`linear-gradient(to right, transparent 20%, ${e.colors.borderColor} 28%, transparent 36%)`:`none`,"&:hover":{backgroundImage:`linear-gradient(to right, transparent 20%, ${e.colors.borderColor} 28%, transparent 44%)`}})),MDe=G(`div`,{target:`eelgd2m4`})(({theme:e})=>({display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:e.spacing.lg,height:e.sizes.headerHeight})),NDe=G(`a`,{target:`eelgd2m5`})({"&:hover":{opacity:`0.7`}}),PDe=G(`button`,{target:`eelgd2m6`})({background:`none`,border:`none`,padding:0,cursor:`pointer`,"&:hover":{opacity:`0.7`}});function z8(e,t){return t===`small`?e.sizes.smallLogoHeight:t===`large`?e.sizes.largeLogoHeight:e.sizes.defaultLogoHeight}var FDe=G(`img`,{target:`eelgd2m7`})(({theme:e,size:t})=>({height:z8(e,t),marginTop:t==`small`?e.spacing.xs:e.spacing.twoXS,marginBottom:t==`small`?e.spacing.xs:e.spacing.twoXS,marginLeft:e.spacing.none,zIndex:e.zIndices.header,objectFit:`contain`,objectPosition:`left`,verticalAlign:`middle`,maxWidth:`100%`})),IDe=G(`div`,{target:`eelgd2m8`})(({theme:e,size:t})=>({display:`flex`,alignItems:`center`,justifyContent:`flex-start`,height:z8(e,t),marginTop:t==`small`?e.spacing.xs:e.spacing.twoXS,marginBottom:t==`small`?e.spacing.xs:e.spacing.twoXS,marginLeft:e.spacing.none,zIndex:e.zIndices.header,fontSize:z8(e,t),lineHeight:e.lineHeights.none,color:e.colors.bodyText})),LDe=G(`div`,{target:`eelgd2m9`})(({theme:e})=>({height:e.sizes.largeLogoHeight})),RDe=G(`div`,{target:`eelgd2m10`})(({showSidebarCollapse:e,theme:t})=>({display:`inline`,visibility:e?`visible`:`hidden`,marginLeft:t.spacing.sm,transition:`left 300ms`,transitionDelay:`left 300ms`,color:zC(t)?t.colors.fadedText60:t.colors.bodyText,lineHeight:`0`,"@media print":{visibility:`hidden`},[`@media (max-width: ${t.breakpoints.sm})`]:{visibility:`visible`}})),zDe=(0,Zt.getLogger)(`LogoComponent`),BDe={small:`lg`,medium:`xl`,large:`twoXL`},B8=({appLogo:e,endpoints:t,collapsed:n=!1,componentName:r=`Logo`,dataTestId:i=`stLogo`})=>{let{resourceCrossOriginMode:a}=(0,_.useContext)(gT),{appPages:o,onPageChange:s,currentPageScriptHash:c}=(0,_.useContext)(XU),l=(0,_.useMemo)(()=>o.find(e=>e.isDefault),[o]),u=o.length>1,d=l?.pageScriptHash===c,f=(0,_.useCallback)(()=>{l?.pageScriptHash&&!d&&s(l.pageScriptHash)},[l,s,d]);if(!e)return null;let p=e=>{zDe.error(`Client Error: ${r} source error - ${e}`),t.sendClientErrorToHost(r,`Logo source failed to load`,`onerror triggered`,e)},m=n&&e.iconImage?e.iconImage:e.image,h=n&&e.iconImage?e.iconImageType:e.imageType,g=t.buildMediaURL(m),v=uE(a,m),y=h===Wo.ImageType.ICON||h===Wo.ImageType.EMOJI,b=BDe[e.size]||`xl`,x=y?P(IDe,{size:e.size,className:`stLogo`,"data-testid":i,children:P(hT,{iconValue:m,size:b})}):P(FDe,{src:g,size:e.size,alt:`Logo`,className:`stLogo`,"data-testid":i,onError:e=>p(g),crossOrigin:v});return e.link?P(NDe,{href:e.link,target:`_blank`,rel:`noreferrer`,"data-testid":`stLogoLink`,"aria-label":y?`App Logo`:void 0,children:x}):u&&l&&!d?P(PDe,{onClick:f,"data-testid":`stLogoLink`,"aria-label":`Navigate to home page`,children:x}):P(`div`,{children:x})};function V8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
180t%2?V8(Object(n),!0).forEach(function(t){HE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function VDe(e){if(Array.isArray(e))return e}function HDe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function U8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W8(e,t){if(e){if(typeof e==`string`)return U8(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U8(e,t):void 0}}function UDe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 181In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G8(e,t){return VDe(e)||HDe(e,t)||W8(e,t)||UDe()}var WDe=Symbol.for(`react.element`),GDe=Symbol.for(`react.transitional.element`),KDe=Symbol.for(`react.fragment`);function K8(e){return e&&BE(e)===`object`&&(e.$$typeof===WDe||e.$$typeof===GDe)&&e.type===KDe}function q8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return _.Children.forEach(e,function(e){e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(q8(e)):K8(e)&&e.props?n=n.concat(q8(e.props.children,t)):n.push(e))}),n}var J8={},qDe=[],JDe=function(e){qDe.push(e)};function YDe(e,t){}function XDe(e,t){}function ZDe(){J8={}}function Y8(e,t,n){!t&&!J8[n]&&(e(!1,n),J8[n]=!0)}function X8(e,t){Y8(YDe,e,t)}function QDe(e,t){Y8(XDe,e,t)}X8.preMessage=JDe,X8.resetWarned=ZDe,X8.noteOnce=QDe;function Z8(e){return e instanceof HTMLElement||e instanceof SVGElement}function $De(e){return e&&BE(e)===`object`&&Z8(e.nativeElement)?e.nativeElement:Z8(e)?e:null}function Q8(e){return $De(e)||(e instanceof _.Component?C8.findDOMNode?.call(C8.default,e):null)}var eOe=s((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.ForwardRef=l,e.isMemo=function(e){return m(e)===f}})),$8=s(((e,t)=>{t.exports=eOe()}))();function tOe(e,t,n){var r=_.useRef({});return(!(`value`in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var nOe=Number(_.version.split(`.`)[0]),rOe=function(e,t){typeof e==`function`?e(t):BE(e)===`object`&&e&&`current`in e&&(e.current=t)},iOe=function(){var e=[...arguments],t=e.filter(Boolean);return t.length<=1?t[0]:function(t){e.forEach(function(e){rOe(e,t)})}},aOe=function(){var e=[...arguments];return tOe(function(){return iOe.apply(void 0,e)},e,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},oOe=function(e){var t,n;if(!e)return!1;if(e5(e)&&nOe>=19)return!0;var r=(0,$8.isMemo)(e)?e.type.type:e.type;return!(typeof r==`function`&&!((t=r.prototype)!=null&&t.render)&&r.$$typeof!==$8.ForwardRef||typeof e==`function`&&!((n=e.prototype)!=null&&n.render)&&e.$$typeof!==$8.ForwardRef)};function e5(e){return(0,_.isValidElement)(e)&&!K8(e)}var sOe=function(e){if(e&&e5(e)){var t=e;return t.props.propertyIsEnumerable(`ref`)?t.props.ref:t.ref}return null},t5=_.createContext(null);function cOe(e){var t=e.children,n=e.onBatchResize,r=_.useRef(0),i=_.useRef([]),a=_.useContext(t5),o=_.useCallback(function(e,t,o){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then(function(){s===r.current&&(n?.(i.current),i.current=[])}),a?.(e,t,o)},[n,a]);return _.createElement(t5.Provider,{value:o},t)}var n5=(function(){if(typeof Map<`u`)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t?(n=r,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,`size`,{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){t===void 0&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()})(),r5=typeof window<`u`&&typeof document<`u`&&window.document===document,i5=(function(){return typeof global<`u`&&global.Math===Math?global:typeof self<`u`&&self.Math===Math?self:typeof window<`u`&&window.Math===Math?window:Function(`return this`)()})(),lOe=(function(){return typeof requestAnimationFrame==`function`?requestAnimationFrame.bind(i5):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),uOe=2;function dOe(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){lOe(a)}function s(){var e=Date.now();if(n){if(e-i<uOe)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=e}return s}var fOe=20,pOe=[`top`,`right`,`bottom`,`left`,`width`,`height`,`size`,`weight`],mOe=typeof MutationObserver<`u`,hOe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=dOe(this.refresh.bind(this),fOe)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){!r5||this.connected_||(document.addEventListener(`transitionend`,this.onTransitionEnd_),window.addEventListener(`resize`,this.refresh),mOe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener(`DOMSubtreeModified`,this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!r5||!this.connected_||(document.removeEventListener(`transitionend`,this.onTransitionEnd_),window.removeEventListener(`resize`,this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener(`DOMSubtreeModified`,this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=t===void 0?``:t;pOe.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||=new e,this.instance_},e.instance_=null,e}(),a5=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,
181configurable:!0})}return e}),o5=(function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i5}),s5=u5(0,0,0,0);function c5(e){return parseFloat(e)||0}function l5(e){return[...arguments].slice(1).reduce(function(t,n){var r=e[`border-`+n+`-width`];return t+c5(r)},0)}function gOe(e){for(var t=[`top`,`right`,`bottom`,`left`],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e[`padding-`+a];n[a]=c5(o)}return n}function _Oe(e){var t=e.getBBox();return u5(0,0,t.width,t.height)}function vOe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return s5;var r=o5(e).getComputedStyle(e),i=gOe(r),a=i.left+i.right,o=i.top+i.bottom,s=c5(r.width),c=c5(r.height);if(r.boxSizing===`border-box`&&(Math.round(s+a)!==t&&(s-=l5(r,`left`,`right`)+a),Math.round(c+o)!==n&&(c-=l5(r,`top`,`bottom`)+o)),!bOe(e)){var l=Math.round(s+a)-t,u=Math.round(c+o)-n;Math.abs(l)!==1&&(s-=l),Math.abs(u)!==1&&(c-=u)}return u5(i.left,i.top,s,c)}var yOe=(function(){return typeof SVGGraphicsElement<`u`?function(e){return e instanceof o5(e).SVGGraphicsElement}:function(e){return e instanceof o5(e).SVGElement&&typeof e.getBBox==`function`}})();function bOe(e){return e===o5(e).document.documentElement}function xOe(e){return r5?yOe(e)?_Oe(e):vOe(e):s5}function SOe(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=Object.create((typeof DOMRectReadOnly<`u`?DOMRectReadOnly:Object).prototype);return a5(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function u5(e,t,n,r){return{x:e,y:t,width:n,height:r}}var COe=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=u5(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=xOe(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),wOe=function(){function e(e,t){var n=SOe(t);a5(this,{target:e,contentRect:n})}return e}(),TOe=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new n5,typeof e!=`function`)throw TypeError(`The callback provided as parameter 1 is not a function.`);this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);if(!(typeof Element>`u`||!(Element instanceof Object))){if(!(e instanceof o5(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)||(t.set(e,new COe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);if(!(typeof Element>`u`||!(Element instanceof Object))){if(!(e instanceof o5(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new wOe(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),d5=typeof WeakMap<`u`?new WeakMap:new n5,f5=function(){function e(t){if(!(this instanceof e))throw TypeError(`Cannot call a class as a function.`);if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);var n=new TOe(t,hOe.getInstance(),this);d5.set(this,n)}return e}();[`observe`,`unobserve`,`disconnect`].forEach(function(e){f5.prototype[e]=function(){var t;return(t=d5.get(this))[e].apply(t,arguments)}});var p5=(function(){return i5.ResizeObserver===void 0?f5:i5.ResizeObserver})(),m5=new Map;function EOe(e){e.forEach(function(e){var t,n=e.target;(t=m5.get(n))==null||t.forEach(function(e){return e(n)})})}var h5=new p5(EOe);function DOe(e,t){m5.has(e)||(m5.set(e,new Set),h5.observe(e)),m5.get(e).add(t)}function OOe(e,t){m5.has(e)&&(m5.get(e).delete(t),m5.get(e).size||(h5.unobserve(e),m5.delete(e)))}function g5(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,VE(r.key),r)}}function v5(e,t,n){return t&&_5(e.prototype,t),n&&_5(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function y5(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&RE(e,t)}
181function b5(e){return b5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b5(e)}function x5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x5=function(){return!!e})()}function S5(e,t){if(t&&(BE(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return UX(e)}function C5(e){var t=x5();return function(){var n,r=b5(e);if(t){var i=b5(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S5(this,n)}}var kOe=function(e){y5(n,e);var t=C5(n);function n(){return g5(this,n),t.apply(this,arguments)}return v5(n,[{key:`render`,value:function(){return this.props.children}}]),n}(_.Component);function AOe(e,t){var n=e.children,r=e.disabled,i=_.useRef(null),a=_.useRef(null),o=_.useContext(t5),s=typeof n==`function`,c=s?n(i):n,l=_.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&_.isValidElement(c)&&oOe(c),d=aOe(u?sOe(c):null,i),f=function(){return Q8(i.current)||(i.current&&BE(i.current)===`object`?Q8(i.current?.nativeElement):null)||Q8(a.current)};_.useImperativeHandle(t,function(){return f()});var p=_.useRef(e);p.current=e;var m=_.useCallback(function(e){var t=p.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),a=i.width,s=i.height,c=e.offsetWidth,u=e.offsetHeight,d=Math.floor(a),f=Math.floor(s);if(l.current.width!==d||l.current.height!==f||l.current.offsetWidth!==c||l.current.offsetHeight!==u){var m={width:d,height:f,offsetWidth:c,offsetHeight:u};l.current=m;var h=c===Math.round(a)?a:c,g=u===Math.round(s)?s:u,_=H8(H8({},m),{},{offsetWidth:h,offsetHeight:g});o?.(_,e,r),n&&Promise.resolve().then(function(){n(_,e)})}},[]);return _.useEffect(function(){var e=f();return e&&!r&&DOe(e,m),function(){return OOe(e,m)}},[i.current,r]),_.createElement(kOe,{ref:a},u?_.cloneElement(c,{ref:d}):c)}var jOe=_.forwardRef(AOe),MOe=`rc-observer-key`;function NOe(e,t){var n=e.children;return(typeof n==`function`?[n]:q8(n)).map(function(n,r){var i=n?.key||`${MOe}-${r}`;return _.createElement(jOe,tt({},e,{key:i,ref:r===0?t:void 0}),n)})}var w5=_.forwardRef(NOe);w5.Collection=cOe;function POe(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var T5=POe()?_.useLayoutEffect:_.useEffect,FOe=function(e,t){var n=_.useRef(!0);T5(function(){return e(n.current)},t),T5(function(){return n.current=!1,function(){n.current=!0}},[])},IOe=[`prefixCls`,`invalidate`,`item`,`renderItem`,`responsive`,`responsiveDisabled`,`registerSize`,`itemKey`,`className`,`style`,`children`,`display`,`order`,`component`],E5=void 0;function LOe(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,o=e.responsive,s=e.responsiveDisabled,c=e.registerSize,l=e.itemKey,u=e.className,d=e.style,f=e.children,p=e.display,m=e.order,h=e.component,g=h===void 0?`div`:h,v=zz(e,IOe),y=o&&!p;function b(e){c(l,e)}_.useEffect(function(){return function(){b(null)}},[]);var x=a&&i!==E5?a(i,{index:m}):f,S;r||(S={opacity:+!y,height:y?0:E5,overflowY:y?`hidden`:E5,order:o?m:E5,pointerEvents:y?`none`:E5,position:y?`absolute`:E5});var C={};y&&(C[`aria-hidden`]=!0);var w=_.createElement(g,tt({className:(0,Kg.default)(!r&&n,u),style:H8(H8({},S),d)},C,v,{ref:t}),x);return o&&(w=_.createElement(w5,{onResize:function(e){var t=e.offsetWidth;b(t)},disabled:s},w)),w}var D5=_.forwardRef(LOe);D5.displayName=`Item`;function ROe(e){var t=_.useRef();return t.current=e,_.useCallback(function(){var e,n=[...arguments];return(e=t.current)?.call.apply(e,[t].concat(n))},[])}var O5=function(e){return+setTimeout(e,16)},k5=function(e){return clearTimeout(e)};typeof window<`u`&&`requestAnimationFrame`in window&&(O5=function(e){return window.requestAnimationFrame(e)},k5=function(e){return window.cancelAnimationFrame(e)});var A5=0,j5=new Map;function M5(e){j5.delete(e)}var N5=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;A5+=1;var n=A5;function r(t){if(t===0)M5(n),e();else{var i=O5(function(){r(t-1)});j5.set(n,i)}}return r(t),n};N5.cancel=function(e){var t=j5.get(e);return M5(e),k5(t)};function zOe(e){if(typeof MessageChannel>`u`)N5(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function BOe(){var e=_.useRef(null);return function(t){e.current||(e.current=[],zOe(function(){(0,C8.unstable_batchedUpdates)(function(){e.current.forEach(function(e){e()}),e.current=null})})),e.current.push(t)}}function P5(e,t){var n=G8(_.useState(t),2),r=n[0],i=n[1];return[r,ROe(function(t){e(function(){i(t)})})]}var F5=_.createContext(null),VOe=[`component`],HOe=[`className`],UOe=[`className`],I5=_.forwardRef(function(e,t){var n=_.useContext(F5);if(!n){var r=e.component,i=r===void 0?`div`:r,a=zz(e,VOe);return _.createElement(i,tt({},a,{ref:t}))}var o=n.className,s=zz(n,HOe),c=e.className,l=zz(e,UOe);return _.createElement(F5.Provider,{value:null},_.createElement(D5,tt({ref:t,className:(0,Kg.default)(o,c)},s,l)))});I5.displayName=`RawItem`;var WOe=[`prefixCls`,`data`,`renderItem`,`renderRawItem`,`itemKey`,`itemWidth`,`ssr`,`style`,`className`,`maxCount`,`renderRest`,`renderRawRest`,`prefix`,`suffix`,`component`,`itemComponent`,`onVisibleChange`],L5=`responsive`,R5=`invali
181date`;function GOe(e){return`+ ${e.length} ...`}function KOe(e,t){var n=e.prefixCls,r=n===void 0?`rc-overflow`:n,i=e.data,a=i===void 0?[]:i,o=e.renderItem,s=e.renderRawItem,c=e.itemKey,l=e.itemWidth,u=l===void 0?10:l,d=e.ssr,f=e.style,p=e.className,m=e.maxCount,h=e.renderRest,g=e.renderRawRest,v=e.prefix,y=e.suffix,b=e.component,x=b===void 0?`div`:b,S=e.itemComponent,C=e.onVisibleChange,w=zz(e,WOe),T=d===`full`,E=BOe(),D=G8(P5(E,null),2),O=D[0],k=D[1],A=O||0,ee=G8(P5(E,new Map),2),te=ee[0],ne=ee[1],re=G8(P5(E,0),2),ie=re[0],ae=re[1],oe=G8(P5(E,0),2),j=oe[0],se=oe[1],ce=G8(P5(E,0),2),le=ce[0],M=ce[1],N=G8(P5(E,0),2),ue=N[0],de=N[1],fe=G8((0,_.useState)(null),2),pe=fe[0],me=fe[1],he=G8((0,_.useState)(null),2),ge=he[0],_e=he[1],ve=_.useMemo(function(){return ge===null&&T?2**53-1:ge||0},[ge,O]),ye=G8((0,_.useState)(!1),2),be=ye[0],xe=ye[1],Se=`${r}-item`,Ce=Math.max(ie,j),we=m===L5,Te=a.length&&we,Ee=m===R5,De=Te||typeof m==`number`&&a.length>m,Oe=(0,_.useMemo)(function(){var e=a;return Te?e=O===null&&T?a:a.slice(0,Math.min(a.length,A/u)):typeof m==`number`&&(e=a.slice(0,m)),e},[a,u,O,m,Te]),ke=(0,_.useMemo)(function(){return Te?a.slice(ve+1):a.slice(Oe.length)},[a,Oe,Te,ve]),Ae=(0,_.useCallback)(function(e,t){return typeof c==`function`?c(e):(c&&e?.[c])??t},[c]),je=(0,_.useCallback)(o||function(e){return e},[o]);function Me(e,t,n){ge===e&&(t===void 0||t===pe)||(_e(e),n||(xe(e<a.length-1),C?.(e)),t!==void 0&&me(t))}function Ne(e,t){k(t.clientWidth)}function Pe(e,t){ne(function(n){var r=new Map(n);return t===null?r.delete(e):r.set(e,t),r})}function Fe(e,t){se(t),ae(j)}function Ie(e,t){M(t)}function Le(e,t){de(t)}function Re(e){return te.get(Ae(Oe[e],e))}FOe(function(){if(A&&typeof Ce==`number`&&Oe){var e=le+ue,t=Oe.length,n=t-1;if(!t){Me(0,null);return}for(var r=0;r<t;r+=1){var i=Re(r);if(T&&(i||=0),i===void 0){Me(r-1,void 0,!0);break}if(e+=i,n===0&&e<=A||r===n-1&&e+Re(n)<=A){Me(n,null);break}else if(e+Ce>A){Me(r-1,e-i-ue+j);break}}y&&Re(0)+ue>A&&me(null)}},[A,te,j,le,ue,Ae,Oe]);var ze=be&&!!ke.length,Be={};pe!==null&&Te&&(Be={position:`absolute`,left:pe,top:0});var Ve={prefixCls:Se,responsive:Te,component:S,invalidate:Ee},He=s?function(e,t){var n=Ae(e,t);return _.createElement(F5.Provider,{key:n,value:H8(H8({},Ve),{},{order:t,item:e,itemKey:n,registerSize:Pe,display:t<=ve})},s(e,t))}:function(e,t){var n=Ae(e,t);return _.createElement(D5,tt({},Ve,{order:t,key:n,item:e,renderItem:je,itemKey:n,registerSize:Pe,display:t<=ve}))},Ue={order:ze?ve:2**53-1,className:`${Se}-rest`,registerSize:Fe,display:ze},We=h||GOe,Ge=g?_.createElement(F5.Provider,{value:H8(H8({},Ve),Ue)},g(ke)):_.createElement(D5,tt({},Ve,Ue),typeof We==`function`?We(ke):We),Ke=_.createElement(x,tt({className:(0,Kg.default)(!Ee&&r,p),style:f,ref:t},w),v&&_.createElement(D5,tt({},Ve,{responsive:we,responsiveDisabled:!Te,order:-1,className:`${Se}-prefix`,registerSize:Ie,display:!0}),v),Oe.map(He),De?Ge:null,y&&_.createElement(D5,tt({},Ve,{responsive:we,responsiveDisabled:!Te,order:ve,className:`${Se}-suffix`,registerSize:Le,display:!0,style:Be}),y));return we?_.createElement(w5,{onResize:Ne,disabled:!Te},Ke):Ke}var z5=_.forwardRef(KOe);z5.displayName=`Overflow`,z5.Item=I5,z5.RESPONSIVE=L5,z5.INVALIDATE=R5;var qOe=z5,B5=(e,t,n=!1,r)=>{if(n)return e.colors.fadedText40;if(r)return e.colors.bodyText;let i=zC(e);return t?e.colors.bodyText:i?G_(e.colors.bodyText,.2):G_(e.colors.bodyText,.25)},JOe=G(`div`,{target:`e1lpckdq0`})(({theme:e})=>({position:`relative`,fontFamily:e.genericFonts.bodyFont})),YOe=G(`ul`,{target:`e1lpckdq1`})(({theme:e})=>({listStyle:`none`,margin:e.spacing.none,paddingBottom:e.spacing.threeXS,paddingTop:e.spacing.none,paddingRight:e.spacing.none,paddingLeft:e.spacing.none})),XOe=G(`div`,{target:`e1lpckdq2`})(({disabled:e})=>({display:`flex`,flexDirection:`column`,cursor:e?`not-allowed`:`pointer`})),ZOe=G(`span`,{target:`e1lpckdq3`})(({theme:e,isActive:t})=>({display:`inline-flex`,span:{fontWeight:t?e.fontWeights.bold:e.fontWeights.normal}})),QOe=G(`li`,{target:`e1lpckdq4`})(({theme:e})=>({marginTop:e.spacing.threeXS,marginBottom:e.spacing.threeXS})),$Oe=G(`a`,{target:`e1lpckdq5`})(({theme:e,isActive:t,disabled:n})=>{let r={textDecoration:`none`,fontWeight:t?e.fontWeights.bold:e.fontWeights.normal};return{...r,display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.spacing.sm,borderRadius:e.radii.md2,paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,marginTop:e.spacing.threeXS,marginBottom:e.spacing.threeXS,lineHeight:e.lineHeights.menuItem,color:B5(e,t),backgroundColor:t?e.colors.darkenedBgMix25:`transparent`,...n&&{pointerEvents:`none`},"&:hover":{backgroundColor:e.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{...r},"&:focus":{outline:`none`},"&:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"@media print":{paddingLeft:e.spacing.none}}}),eke=G(`span`,{target:`e1lpckdq6`})(({isActive:e,theme:t,disabled:n,isTopNav:r,label:i})=>({color:B5(t,e,n,r),fontSize:t.fontSizes.sm,overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,display:`table-cell`,"&::after":{content:`"${i}"`,fontWeight:t.fontWeights.bold,visibility:`hidden`,display:`block`,width:`fit-content`,height:0}})),V5=G(`div`,{target:`e1lpckdq7`})(({isExpanded:e})=>({visibility:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`,transform:e?`rotate(0deg)`:`rotate(-90deg)`,transition:`transform 200ms ease`,flexShrink:0})),tke=G(`span`,{target:`e1lpckdq8`})(()=>({overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,minWidth:0})),nke=G(`header`,{target:`e1lpckdq9`})(({theme:e})=>({fontSize:e.fontSizes.sm,fontWeight:e.fontWeights.semiBold,color:B5(e,!1),lineHeight:e.lineHeights.small,paddingRight:e.spacing.sm,marginTop:e.spacing.sm,marginBottom:e.spacing.twoXS,display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.spacing.sm,cursor:`pointer`,userSelect:`none`,"&:hover":{[`& > ${V5}`]:{visibility:`visible`}}})),rke=G(`button`,{target:`e1lpckdq10`})(({theme:e})=>({fontSize:e.fontSizes.sm,fontFamily:`inherit`,lineHeight:e.lineHeights.base,color:B5(e,!0),backgroundColor:e.colors.transparent,border:`none`,borderRadius:e.radii.default,marginTop:e.spacing.twoXS,marginLeft:e.spacing.none,marginBottom:e.spacing.none,marginRight:e.spacing.none,padding:`${e.spacing.threeXS} ${e.spacing.sm}`,"&:hover, &:active, &:focus":{border:`none`,outline:`none`,boxShadow:`none`},"&:hover":{backgroundColor:e.colors.darkenedBgMix15}})),ike=G(`div`,{target:`e1lpckdq11`})(({theme:e})=>({paddingTop:e.spacing.lg,borderBottom:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`})),ake=G(`div`,{target:`e1lpckdq12`})(({theme:e})=>({"&:not(:first-child)":{marginTop:e.spacing.lg}})),oke=G(`div`,{target:`e1lpckdq13`})(({theme:e})=>({display:`flex`,alignItems:`center`,width:`100%`,flexShrink:1,overflow:`hidden`,padding:`0 ${e.spacing.lg}`})),ske=G(`div`,{target:`e1lpckdq14`})(({theme:e,isOpen:t})=>({display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,position:`relative`,lineHeight:e.lineHeights.menuItem,fontSize:e.fontSizes.sm,padding:`0 ${e.spacing.sm}`,color:B5(e,!1,!1,!0),borderRadius:e.radii.default,marginRight:e.spacing.twoXS,"&:not(:first-of-type)":{marginLeft:e.spacing.twoXS},...t?{backgroundColor:e.colors.darkenedBgMix25}:{},"&:hover":{backgroundColor:e.colors.darkenedBgMix15}})),cke=G(`div`,{target:`e1lpckdq15`})(({theme:e})=>({marginRight:e.spacing.twoXS,"&:not(:first-of-type)":{marginLeft:e.spacing.twoXS}})),lke=G(`div`,{target:`e1lpckdq16`})(({theme:e})=>({margin:`${e.spacing.none} ${e.spacing.xs}`})),uke=G(`span`,{target:`e1lpckdq17`})(()=>({whiteSpace:`nowrap`})),dke=G(`div`,{target:`e1lpckdq18`})(({theme:e})=>({marginLeft:e.spacing.sm,marginTop:e.spacing.sm,marginBottom:e.spacing.sm,lineHeight:e.lineHeights.menuItem})),fke=G(`div`,{target:`e1lpckdq19`})(({theme:e})=>({padding:`${e.spacing.twoXS} ${e.spacing.none}`,fontSize:e.fontSizes.sm})),pke=G(`div`,{target:`e1lpckdq20`})(({theme:e})=>({marginLeft:e.spacing.twoXS})),mke=G(`span`,{target:`e1lpckdq21`})({position:`absolute`,width:`1px`,height:`1px`,padding:0,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,border:0}),H5=({isActive:e,pageUrl:t,icon:n,onClick:r,isTopNav:i,isInDropdown:a,children:o,widgetsDisabled:s,isExternal:c,externalUrl:l})=>{let u=fE(),d=s,f;f=i&&a?`stTopNavDropdownLink`:i?`stTopNavLink`:`stSidebarNavLink`;let p=i?`stTopNavLinkContainer`:`stSidebarNavLinkContainer`,m=c?!1:e;return P(XOe,{disabled:d,"data-testid":p,children:F($Oe,{"data-testid":f,isActive:m,disabled:d,href:c?l??t:t,onClick:r,"aria-current":m?`page`:void 0,target:c?`_blank`:void 0,rel:c?`noopener noreferrer`:void 0,children:[n?.length?P(ZOe,{isActive:m,children:P(hT,{size:`base`,iconValue:n,color:!m&&pT(n)?u.colors.fadedText60:u.colors.bodyText})}):null,P(eke,{isActive:m,disabled:d,isTopNav:i,label:o,children:P(QL,{source:o,allowHTML:!1,isLabel:!0,disableLinks:!0,truncate:!0,inheritFont:!0})}),c&&P(mke,{children:`(opens in new tab)`})]})})};function U5(e){return e.externalUrl??void 0}function W5(e){return!Ba(e.externalUrl)}function G5(e){return J5(e).length>1}function K5(e){return Kh(e,e=>e.sectionHeader||``)}function hke(e){return Object.keys(e).some(e=>e!==``)}function q5(e){if(!hke(e))return{individualPages:Object.values(e).flat(),sections:{}};let t=e[``]||[],n={};return Object.entries(e).forEach(([e,t])=>{e&&(n[e]=t)}),{individualPages:t,sections:n}}function J5(e){return e.filter(e=>!e.isHidden)}var Y5=({title:e,sections:t,handlePageChange:n,endpoints:r,pageLinkBaseUrl:i,currentPageScriptHash:a,hideChevron:o=!1,widgetsDisabled:s})=>{let[c,l]=(0,_.useState)(!1),u=fE(),d=t.length>1;return Ba(t)||t.length===0||t[0].length===0?null:P(BI,{triggerType:$F.click,placement:QF.bottomLeft,content:()=>P(fke,{"data-testid":`stTopNavPopover`,children:t.map((e,t)=>{let o=e[0].sectionHeader;return e.map((e,t)=>{let c=W5(e),u=t=>{if(c){l(!1);return}t.preventDefault(),e.pageScriptHash&&n(e.pageScriptHash),l(!1)},f=String(e.pageName||``);return F(_.Fragment,{children:[t===0&&d&&P(dke,{children:P(QL,{source:o||``,allowHTML:!1,isLabel:!0,disableLinks:!0,truncate:!0,inheritFont:!0})}),P(lke,{children:P(H5,{icon:e.icon||null,isTopNav:!0,isInDropdown:!0,isActive:a===e.pageScriptHash,onClick:u,pageUrl:r.buildAppPageURL(i,e),widgetsDisabled:s,isExternal:c,externalUrl:U5(e),children:f})})]},`${e.pageScriptHash}-${f}`)})})}),isOpen:c,onClickOutside:()=>l(!1),onClick:()=>c?l(!1):void 0,onEsc:()=>l(!1),renderAll:!0,popoverMargin:qw(u.spacing.twoXS),overrides:{Body:{style:()=>({...DR(u),marginRight:u.spacing.lg,marginBottom:u.spacing.lg,maxHeight:`70vh`,minWidth:`8rem`,overflow:`auto`,maxWidth:`calc(${u.sizes.contentMaxWidth} - 2*${u.spacing.lg})`,[`@media (max-width: ${u.breakpoints.sm})`]:{maxWidth:`calc(100% - ${u.spacing.threeXL})`}})}},children:P(`div`,{children:F(ske,{tabIndex:0,onClick:()=>l(!c),isOpen:c,"data-testid":`stTopNavSection`,children:[P(uke,{children:P(QL,{source:e,allowHTML:!1,isLabel:!0,disableLinks:!0,truncate:!0,inheritFont:!0})}),!o&&P(pke,{children:P(uT,{content:c?tB:eB,size:`lg`})})]})})})},gke=({endpoints:e,widgetsDisabled:t})=>{let{pageLinkBaseUrl:n,currentPageScriptHash:r,appPages:i,onPageChange:a}=(0,_.useContext)(XU),o=(0,_.useMemo)(()=>J5(i),[i]),{data:s,itemKey:c}=(0,_.useMemo)(()=>{let e=q5(K5(o));return{data:[...e.individualPages,...Object.values(e.sections)],itemKey:e=>Array.isArray(e)?e[0]?.sectionHeader??``:e.pageScriptHash??``}},[o]);return P(qOe,{component:oke,itemKey:c,data:s,maxCount:`responsive`,renderItem:(0,_.useCallback)((i,o)=>
181{if(Array.isArray(i))return P(Y5,{sections:[i],title:i[0].sectionHeader||``,handlePageChange:a,endpoints:e,pageLinkBaseUrl:n,currentPageScriptHash:r,widgetsDisabled:t});let s=W5(i);return P(cke,{children:P(H5,{isTopNav:!0,isInDropdown:!1,isActive:r===i.pageScriptHash,icon:i.icon,pageUrl:e.buildAppPageURL(n,i),onClick:e=>{s||(e.preventDefault(),i.pageScriptHash&&a(i.pageScriptHash))},widgetsDisabled:t,isExternal:s,externalUrl:U5(i),children:String(i.pageName)})})},[a,e,n,r,t]),renderRest:(0,_.useCallback)(i=>{if(Ba(i))return null;let o=`${i.flat().length} more`;return P(Y5,{hideChevron:!0,sections:i.map(e=>Array.isArray(e)?e:[e]),title:o,handlePageChange:a,endpoints:e,pageLinkBaseUrl:n,currentPageScriptHash:r,widgetsDisabled:t})},[a,e,n,r,t])})},X5=function(){return X5=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},X5.apply(this,arguments)},Z5={width:`100%`,height:`10px`,top:`0px`,left:`0px`,cursor:`row-resize`},Q5={width:`10px`,height:`100%`,top:`0px`,left:`0px`,cursor:`col-resize`},$5={width:`20px`,height:`20px`,position:`absolute`,zIndex:1},_ke={top:X5(X5({},Z5),{top:`-5px`}),right:X5(X5({},Q5),{left:void 0,right:`-5px`}),bottom:X5(X5({},Z5),{top:void 0,bottom:`-5px`}),left:X5(X5({},Q5),{left:`-5px`}),topRight:X5(X5({},$5),{right:`-10px`,top:`-10px`,cursor:`ne-resize`}),bottomRight:X5(X5({}
vendor: 13,502 bytes, line 181
181,$5),{right:`-10px`,bottom:`-10px`,cursor:`se-resize`}),bottomLeft:X5(X5({},$5),{left:`-10px`,bottom:`-10px`,cursor:`sw-resize`}),topLeft:X5(X5({},$5),{left:`-10px`,top:`-10px`,cursor:`nw-resize`})},vke=(0,_.memo)(function(e){var t=e.onResizeStart,n=e.direction,r=e.children,i=e.replaceStyles,a=e.className,o=(0,_.useCallback)(function(e){t(e,n)},[t,n]),s=(0,_.useCallback)(function(e){t(e,n)},[t,n]),c=(0,_.useMemo)(function(){return X5(X5({position:`absolute`,userSelect:`none`},_ke[n]),i??{})},[i,n]);return(0,v.jsx)(`div`,{className:a||void 0,style:c,onMouseDown:o,onTouchStart:s,children:r})}),yke=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),e7=function(){return e7=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},e7.apply(this,arguments)},bke={width:`auto`,height:`auto`},t7=function(e,t,n){return Math.max(Math.min(e,n),t)},n7=function(e,t,n){var r=Math.round(e/t);return r*t+n*(r-1)},r7=function(e,t){return new RegExp(e,`i`).test(t)},i7=function(e){return!!(e.touches&&e.touches.length)},xke=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},a7=function(e,t,n){n===void 0&&(n=0);var r=t.reduce(function(n,r,i){return Math.abs(r-e)<Math.abs(t[n]-e)?i:n},0),i=Math.abs(t[r]-e);return n===0||i<n?t[r]:e},o7=function(e){return e=e.toString(),e===`auto`||e.endsWith(`px`)||e.endsWith(`%`)||e.endsWith(`vh`)||e.endsWith(`vw`)||e.endsWith(`vmax`)||e.endsWith(`vmin`)?e:`${e}px`},s7=function(e,t,n,r){if(e&&typeof e==`string`){if(e.endsWith(`px`))return Number(e.replace(`px`,``));if(e.endsWith(`%`)){var i=Number(e.replace(`%`,``))/100;return t*i}if(e.endsWith(`vw`)){var i=Number(e.replace(`vw`,``))/100;return n*i}if(e.endsWith(`vh`)){var i=Number(e.replace(`vh`,``))/100;return r*i}}return e},Ske=function(e,t,n,r,i,a,o){return r=s7(r,e.width,t,n),i=s7(i,e.height,t,n),a=s7(a,e.width,t,n),o=s7(o,e.height,t,n),{maxWidth:r===void 0?void 0:Number(r),maxHeight:i===void 0?void 0:Number(i),minWidth:a===void 0?void 0:Number(a),minHeight:o===void 0?void 0:Number(o)}},Cke=function(e){return Array.isArray(e)?e:[e,e]},wke=`as.ref.style.className.grid.gridGap.snap.bounds.boundsByDirection.size.defaultSize.minWidth.minHeight.maxWidth.maxHeight.lockAspectRatio.lockAspectRatioExtraWidth.lockAspectRatioExtraHeight.enable.handleStyles.handleClasses.handleWrapperStyle.handleWrapperClass.children.onResizeStart.onResize.onResizeStop.handleComponent.scale.resizeRatio.snapGap`.split(`.`),c7=`__resizable_base__`,l7=function(e){yke(t,e);function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.delta={width:0,height:0},n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement(`div`);return t.style.width=`100%`,t.style.height=`100%`,t.style.position=`absolute`,t.style.transform=`scale(0, 0)`,t.style.left=`0`,t.style.flex=`0 0 100%`,t.classList?t.classList.add(c7):t.className+=c7,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.state={isResizing:!1,width:n.propsSize?.width??`auto`,height:n.propsSize?.height??`auto`,direction:`right`,original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:`100%`,width:`100%`,backgroundColor:`rgba(0,0,0,0)`,cursor:`auto`,opacity:0,position:`fixed`,zIndex:9999,top:`0`,left:`0`,bottom:`0`,right:`0`},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Object.defineProperty(t.prototype,`parentNode`,{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`window`,{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`propsSize`,{get:function(){return this.props.size||this.props.defaultSize||bke},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`size`,{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,i=this.resizable.style.position;i!==`relative`&&(this.resizable.style.position=`relative`),e=this.resizable.style.width===`auto`?n:this.resizable.offsetWidth,t=this.resizable.style.height===`auto`?r:this.resizable.offsetHeight,this.resizable.style.position=i}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`sizeStyle`,{get:function(){var e=this,t=this.props.size,n=function(t){if(e.state[t]===void 0||e.state[t]===`auto`)return`auto`;if(e.propsSize&&e.propsSize[t]&&e.propsSize[t]?.toString().endsWith(`%`)){if(e.state[t].toString().endsWith(`%`))return e.state[t].toString();var n=e.getParentSize();return`${Number(e.state[t].toString().replace(`px`,``))/n[t]*100}%`}return o7(e.state[t])};return{width:t&&t.width!==void 0&&!this.state.isResizing?o7(t.width):n(`width`),height:t&&t.height!==void 0&&!this.state.isResizing?o7(t.height):n(`height`)}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;n!==`wrap`&&(t=!0,this.parentNode.style.flexWrap=`wrap`),e.style.position=`relative`,e.style.minWidth=`100%`,e.style.minHeight=`100%`;var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener(`mouseup`,this.onMouseUp),this.window.addEventListener(`mousemove`,this.onMouseMove),this.window.addEventListener(`mouseleave`,this.onMouseUp),this.window.addEventListener(`touchmove`,this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener(`touchend`,this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener(`mouseup`,this.onMouseUp),this.window.removeEventListener(`mousemove`,this.onMouseMove),this.window.removeEventListener(`mouseleave`,this.onMouseUp),this.window.removeEventListener(`touchmove`,this.onMouseMove,!0),this.window.removeEventListener(`touchend`,this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:e.flexBasis===`auto`?void 0:e.flexBasis})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return this.state[t]===`auto`&&this.state.original[t]===e&&(n===void 0||n===`auto`)?`auto`:e},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n=this.props.boundsByDirection,r=this.state.direction,i=n&&r7(`left`,r),a=n&&r7(`top`,r),o,s;if(this.props.bounds===`parent`){var c=this.parentNode;c&&(o=i?this.resizableRight-this.parentLeft:c.offsetWidth+(this.parentLeft-this.resizableLeft),s=a?this.resizableBottom-this.parentTop:c.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds===`window`?this.window&&(o=i?this.resizableRight:this.window.innerWidth-this.resizableLeft,s=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=i?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),s=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(e=e&&e<o?e:o),s&&Number.isFinite(s)&&(t=t&&t<s?t:s),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=Cke(this.props.resizeRatio||1),i=r[0],a=r[1],o=this.state,s=o.direction,c=o.original,l=this.props,u=l.lockAspectRatio,d=l.lockAspectRatioExtraHeight,f=l.lockAspectRatioExtraWidth,p=c.width,m=c.height,h=d||0,g=f||0;return r7(`right`,s)&&(p=c.width+(e-c.x)*i/n,u&&(m=(p-g)/this.ratio+h)),r7(`left`,s)&&(p=c.width-(e-c.x)*i/n,u&&(m=(p-g)/this.ratio+h)),r7(`bottom`,s)&&(m=c.height+(t-c.y)*a/n,u&&(p=(m-h)*this.ratio+g)),r7(`top`,s)&&(m=c.height-(t-c.y)*a/n,u&&(p=(m-h)*this.ratio+g)),{newWidth:p,newHeight:m}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var i=this.props,a=i.lockAspectRatio,o=i.lockAspectRatioExtraHeight,s=i.lockAspectRatioExtraWidth,c=r.width===void 0?10:r.width,l=n.width===void 0||n.width<0?e:n.width,u=r.height===void 0?10:r.height,d=n.height===void 0||n.height<0?t:n.height,f=o||0,p=s||0;if(a){var m=(u-f)*this.ratio+p,h=(d-f)*this.ratio+p,g=(c-p)/this.ratio+f,_=(l-p)/this.ratio+f,v=Math.max(c,m),y=Math.min(l,h),b=Math.max(u,g),x=Math.min(d,_);e=t7(e,v,y),t=t7(t,b,x)}else e=t7(e,c,l),t=t7(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){var e=1/(this.props.scale||1);if(this.props.bounds===`parent`){var t=this.parentNode;if(t){var n=t.getBoundingClientRect();this.parentLeft=n.left*e,this.parentTop=n.top*e}}if(this.props.bounds&&typeof this.props.bounds!=`string`){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left*e,this.targetTop=r.top*e}if(this.resizable){var i=this.resizable.getBoundingClientRect(),a=i.left,o=i.top,s=i.right,c=i.bottom;this.resizableLeft=a*e,this.resizableRight=s*e,this.resizableTop=o*e,this.resizableBottom=c*e}},t.prototype.onResizeStart=function(e,t){if(!(!this.resizable||!this.window)){var n=0,r=0;if(e.nativeEvent&&xke(e.nativeEvent)?(n=e.nativeEvent.clientX,r=e.nativeEvent.clientY):e.nativeEvent&&i7(e.nativeEvent)&&(n=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY),!(this.props.onResizeStart&&this.resizable&&this.props.onResizeStart(e,t,this.resizable)===!1)){this.props.size&&(this.props.size.height!==void 0&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),this.props.size.width!==void 0&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio==`number`?this.props.lockAspectRatio:this.size.width/this.size.height;var i,a=this.window.getComputedStyle(this.resizable);if(a.flexBasis!==`auto`){var o=this.parentNode;if(o){var s=this.window.getComputedStyle(o).flexDirection;this.flexDir=s.startsWith(`row`)?`row`:`column`,i=a.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var c={original:{x:n,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:e7(e7({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||`auto`}),direction:t,flexBasis:i};this.setState(c)}}},t.prototype.onMouseMove=function(e){var t=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&i7(e))try{e.preventDefault(),e.stopPropagation()}catch{}var n=this.props,r=n.maxWidth,i=n.maxHeight,a=n.minWidth,o=n.minHeight,s=i7(e)?e.touches[0].clientX:e.clientX,c=i7(e)?e.touches[0].clientY:e.clientY,l=this.state,u=l.direction,d=l.original,f=l.width,p=l.height,m=this.getParentSize(),h=Ske(m,this.window.innerWidth,this.window.innerHeight,r,i,a,o);r=h.maxWidth,i=h.maxHeight,a=h.minWidth,o=h.minHeight;var g=this.calculateNewSizeFromDirection(s,c),_=g.newHeight,v=g.newWidth,y=this.calculateNewMaxFromBoundary(r,i);this.props.snap&&this.props.snap.x&&(v=a7(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(_=a7(_,this.props.snap.y,this.props.snapGap));var b=this.calculateNewSizeFromAspectRatio(v,_,{width:y.maxWidth,height:y.maxHeight},{width:a,height:o});if(v=b.newWidth,_=b.newHeight,this.props.grid){var x=n7(v,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),S=n7(_,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),C=this.props.snapGap||0,w=C===0||Math.abs(x-v)<=C?x:v,T=C===0||Math.abs(S-_)<=C?S:_;v=w,_=T}var E={width:v-d.width,height:_-d.height};if(this.delta=E,f&&typeof f==`string`){if(f.endsWith(`%`)){var D=v/m.width*100;v=`${D}%`}else if(f.endsWith(`vw`)){var O=v/this.window.innerWidth*100;v=`${O}vw`}else if(f.endsWith(`vh`)){var k=v/this.window.innerHeight*100;v=`${k}vh`}}if(p&&typeof p==`string`){if(p.endsWith(`%`)){var D=_/m.height*100;_=`${D}%`}else if(p.endsWith(`vw`)){var O=_/this.window.innerWidth*100;_=`${O}vw`}else if(p.endsWith(`vh`)){var k=_/this.window.innerHeight*100;_=`${k}vh`}}var A={width:this.createSizeForCssProperty(v,`width`),height:this.createSizeForCssProperty(_,`height`)};this.flexDir===`row`?A.flexBasis=A.width:this.flexDir===`column`&&(A.flexBasis=A.height);var ee=this.state.width!==A.width,te=this.state.height!==A.height,ne=this.state.flexBasis!==A.flexBasis,re=ee||te||ne;re&&(0,C8.flushSync)(function(){t.setState(A)}),this.props.onResize&&re&&this.props.onResize(e,u,this.resizable,E)}}
181,t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction;t.original,!(!n||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,this.delta),this.props.size&&this.setState({width:this.props.size.width??`auto`,height:this.props.size.height??`auto`}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:e7(e7({},this.state.backgroundStyle),{cursor:`auto`})}))},t.prototype.updateSize=function(e){this.setState({width:e.width??`auto`,height:e.height??`auto`})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,i=t.handleClasses,a=t.handleWrapperStyle,o=t.handleWrapperClass,s=t.handleComponent;return n?(0,v.jsx)(`div`,{className:o,style:a,children:Object.keys(n).map(function(t){return n[t]===!1?null:(0,v.jsx)(vke,{direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:i&&i[t],children:s&&s[t]?s[t]:null},t)})}):null},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce(function(t,n){return wke.indexOf(n)===-1&&(t[n]=e.props[n]),t},{}),n=e7(e7(e7({position:`relative`,userSelect:this.state.isResizing?`none`:`auto`},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:`border-box`,flexShrink:0});return this.state.flexBasis&&(n.flexBasis=this.state.flexBasis),(0,v.jsxs)(this.props.as||`div`,e7({style:n,className:this.props.className},t,{ref:function(t){t&&(e.resizable=t)},children:[this.state.isResizing&&(0,v.jsx)(`div`,{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:`div`,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(_.PureComponent),Tke=({header:e=``,children:t,isExpanded:n,onToggle:r})=>F(ake,{children:[e&&F(nke,{"data-testid":`stNavSectionHeader`,onClick:r,isExpanded:n,children:[P(tke,{children:P(QL,{source:e,allowHTML:!1,isLabel:!0,disableLinks:!0,truncate:!0,inheritFont:!0})}),P(V5,{isExpanded:n,children:P(hT,{iconValue:`:material/expand_more:`,size:`lg`})})]}),n&&t]}),Eke=10,Dke=(0,Zt.getLogger)(`SidebarNav`);function Oke({pageUrl:e,page:t,isActive:n,onClick:r,widgetsDisabled:i}){let a=t.pageName;return P(QOe,{children:P(H5,{isActive:n,pageUrl:e,icon:t.icon,onClick:r,widgetsDisabled:i,isExternal:W5(t),externalUrl:U5(t),children:a})})}function kke(e,t,n,r,i,a,o){let s=[],c=a;return Object.entries(e).forEach(([e,a])=>{let l=[...a],u=l,d=r[e];if(t){let e=o-c;e<=0?u=[]:l.length>e&&(u=l.slice(0,e))}d&&(c+=u.length),u.length>0&&s.push(P(Tke,{header:e,isExpanded:d,onToggle:()=>i(e),children:u.map(n)},e))}),{sections:s,updatedPageCount:c}}var Ake=({endpoints:e,collapseSidebar:t,hasSidebarElements:n,widgetsDisabled:r})=>{let[i,a]=(0,_.useState)(!1),{expandSidebarNav:o,sidebarNavVisibleItems:s}=(0,_.useContext)(tW),{pageLinkBaseUrl:c,appPages:l,onPageChange:u,currentPageScriptHash:d}=(0,_.useContext)(XU),f=I(s)&&s>0?s:Eke,p=f+2,m=`stSidebarSectionsState-${c}`,[h,g]=(0,_.useState)(null),v=(0,_.useMemo)(()=>J5(l),[l]),y=(0,_.useMemo)(()=>q5(K5(v)),[v]),b=(0,_.useMemo)(()=>{if(!(Object.keys(y.sections).length>0))return v.length;let e=y.individualPages.length;return Object.entries(y.sections).forEach(([t,n])=>{h?.[t]&&(e+=n.length)}),e},[v.length,h,y]);(0,_.useEffect)(()=>{let e=Pa()&&window.localStorage.getItem(`sidebarNavState`)===`expanded`;!i&&(o||e)&&a(!0)},[i,o]),(0,_.useEffect)(()=>{let e={};if(Pa()){let t=window.localStorage.getItem(m);if(t)try{e=JSON.parse(t)}catch(e){Dke.warn(`Could not parse sidebar nav state from localStorage`,e)}}g(Object.keys(y.sections).reduce((t,n)=>(t[n]=e[n]??!0,t),{}))},[y.sections,m]),(0,_.useEffect)(()=>{Pa()&&h&&window.localStorage.setItem(m,JSON.stringify(h))},[h,m]);let x=(0,_.useCallback)(e=>{g(t=>t?{...t,[e]:!t[e]}:null)},[]),S=(0,_.useCallback)(()=>{let e=!i;Pa()&&(e?window.localStorage.setItem(`sidebarNavState`,`expanded`):window.localStorage.removeItem(`sidebarNavState`)),a(e)},[i]),C=(0,_.useCallback)((n,i)=>{let a=e.buildAppPageURL(c,n),o=n.pageScriptHash===d,s=W5(n);return P(Oke,{pageUrl:a,page:n,isActive:o,onClick:e=>{if(s){cZ()&&t();return}e.preventDefault(),u(n.pageScriptHash),cZ()&&t()},widgetsDisabled:r},`${n.pageName}-${i}`)},[t,d,e,u,c,r]);if(!h)return null;let w=[],T=n&&b>p&&!o,E=T&&!i,D=0;if(y.individualPages.length>0){let e=E?y.individualPages.slice(0,f):y.individualPages;w.push(...e.map(C)),D+=e.length}if(Object.keys(y.sections).length>0){let e=kke(y.sections,E,C,h,x,D,f);w.push(...e.sections)}return F(JOe,{"data-testid":`stSidebarNav`,children:[P(YOe,{"data-testid":`stSidebarNavItems`,children:w}),T&&P(rke,{onClick:S,"data-testid":`stSidebarNavViewButton`,children:i?`View less`:`View ${b-f} more`}),n&&P(ike,{"data-testid":`stSidebarNavSeparator`})]})};function u7(e,t,n){switch(e){case Jo.SidebarState.EXPANDED:return!1;case Jo.SidebarState.COLLAPSED:return!0;case Jo.SidebarState.AUTO:default:return n<=t}}var d7=e=>`stSidebarCollapsed-${e}`,f7=e=>{if(!Pa())return null;let t=window.localStorage.getItem(d7(e));return t===null?null:t===`true`},jke=(e,t)=>{Pa()&&window.localStorage.setItem(d7(e),t.toString())};function p7(e){return Number.isNaN(e)?Number.parseInt(`300`,10):Math.min(600,Math.max(200,e))}function Mke(e){return parseInt(e,10)-.02}var Nke=({endpoints:e,children:t,hasElements:n,isCollapsed:r,onToggleCollapse:i,widgetsDisabled:a})=>{let o=fE(),s=Mke(o.breakpoints.md),{innerWidth:c}=eZ(),{appPages:l}=(0,_.useContext)(XU),{hideSidebarNav:u,appLogo:d,initialSidebarWidth:f,appRootRef:p}=(0,_.useContext)(tW),m=tZ(),h=(0,_.useRef)(null),g=Pa()?window.localStorage.getItem(`sidebarWidth`):void 0,[v,y]=(0,_.useState)(()=>(()=>
181{if(g){let e=Number.parseInt(g,10);return Number.isNaN(e)?null:p7(e).toString()}return null})()||(I(f)?p7(f).toString():`300`)),[b,x]=(0,_.useState)(c??1/0),[S,C]=(0,_.useState)(!1),w=(0,_.useCallback)(()=>{C(!0)},[]),T=(0,_.useCallback)(()=>{C(!1)},[]),E=(0,_.useCallback)(e=>{let t=p7(e).toString();y(t),Pa()&&window.localStorage.setItem(`sidebarWidth`,t)},[]),D=(0,_.useCallback)((e,t,n,r)=>{n&&E(n.clientWidth||n.offsetWidth)},[E]);oR(()=>{c<b&&c<=s&&!r&&i(!0,!1),x(c)},[c]),(0,_.useEffect)(()=>{let e=e=>{let t=h.current,n=p?.current,a=e.target;if(!t||!a)return;let o=t.contains(a),l=n?.contains(a)??!1;!o&&l&&c<=s&&!r&&i(!0)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[s,r,i,c,p]);function O(){let e=I(f)?p7(f).toString():`300`;y(e),Pa()&&window.localStorage.setItem(`sidebarWidth`,e)}let k=(0,_.useCallback)(()=>{i(!r)},[r,i]),A=()=>d?P(B8,{appLogo:d,endpoints:e,collapsed:r,componentName:`Sidebar Logo`,dataTestId:`stSidebarLogo`}):P(LDe,{"data-testid":`stLogoSpacer`}),ee=G5(l)&&!u;return P(l7,{className:`stSidebar`,"data-testid":`stSidebar`,"aria-expanded":!r,enable:{top:!1,right:!0,bottom:!1,left:!1},handleStyles:{right:{width:`8px`,right:`-6px`}},handleComponent:{right:P(jDe,{onDoubleClick:O})},size:{width:v,height:`auto`},as:ODe,onResizeStop:D,isCollapsed:r,sidebarWidth:v,windowInnerWidth:c,children:F(ADe,{"data-testid":`stSidebarContent`,ref:h,onMouseOver:w,onMouseOut:T,scrollbarGutterSize:m,children:[F(MDe,{"data-testid":`stSidebarHeader`,children:[A(),P(RDe,{showSidebarCollapse:S,"data-testid":`stSidebarCollapseButton`,children:P($k,{kind:xk.HEADER_NO_PADDING,onClick:k,children:P(hT,{size:`xl`,iconValue:`:material/keyboard_double_arrow_left:`,color:o.colors.fadedText60})})})]}),ee&&P(Ake,{endpoints:e,collapseSidebar:k,hasSidebarElements:n,widgetsDisabled:a}),P(kDe,{hasPageNavAbove:ee,"data-testid":`stSidebarUserContent`,children:t})]})})};function Pke(e){return P(jF.Provider,{value:!0,children:P(Nke,{...e})})}var Fke=({children:e,...t})=>{let{activeTheme:n}=(0,_.useContext)(nW),r=Oae(n);return P(rW,{theme:r.emotion,baseuiTheme:r.basewebTheme,children:P(Pke,{...t,children:e})})},Ike=G(`div`,{target:`eqt0gmo0`})({display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignItems:`stretch`,alignContent:`flex-start`,position:`absolute`,top:0,left:0,right:0,bottom:0,overflow:`hidden`,"@media print":{overflow:`visible`}}),m7=G(`section`,{target:`eqt0gmo1`})(({disableScrolling:e,theme:t})=>({display:`flex`,flexDirection:`column`,width:t.sizes.full,overflow:e?`hidden`:`auto`,alignItems:`center`,height:`100dvh`,"&:focus":{outline:`none`},"@media not print":{[`@media (max-width: ${t.breakpoints.md})`]:{position:`absolute`,top:0,left:0,right:0,bottom:0,height:`100dvh`}},"@media print":{overflow:`visible`}})),Lke=G(`div`,{target:`eqt0gmo2`})(({theme:e})=>({position:`sticky`,left:0,bottom:0,width:`100%`,zIndex:e.zIndices.bottom,"@media print":{position:`static`}})),Rke=G(`div`,{target:`eqt0gmo3`})(({theme:e})=>({position:`relative`,bottom:0,width:`100%`,minWidth:`100%`,backgroundColor:e.colors.bgColor,display:`flex`,flexDirection:`column`,alignItems:`center`})),h7=e=>({[`@media (min-width: calc(${e.sizes.contentMaxWidth} + 2 * (${e.sizes.wideSidePadding} - ${e.spacing.lg})))`]:{paddingLeft:e.sizes.wideSidePadding,paddingRight:e.sizes.wideSidePadding},minWidth:`auto`,maxWidth:`initial`}),zke=G(`div`,{target:`eqt0gmo4`})(({hasBottom:e,isWideMode:t,showPadding:n,hasHeader:r,showToolbar:i,hasTopNav:a,hasSidebar:o,embedded:s,theme:c})=>{let l=`2.25rem`,u=l;s?n||i?u=`6rem`:(r||o)&&(u=`4.5rem`):u=a?`8rem`:`6rem`;let d=n&&!e?`10rem`:c.spacing.lg;return{width:c.sizes.full,paddingLeft:c.spacing.lg,paddingRight:c.spacing.lg,paddingTop:u,paddingBottom:d,maxWidth:c.sizes.contentMaxWidth,...t&&h7(c),"@media print":{paddingTop:l}}}),Bke=G(`div`,{target:`eqt0gmo5`})(({theme:e})=>({width:e.sizes.full})),Vke=G(`div`,{target:`eqt0gmo6`})({display:`none`}),Hke=G(`div`,{target:`eqt0gmo7`})(({isWideMode:e,showPadding:t,theme:n})=>({width:n.sizes.full,paddingLeft:n.spacing.lg,paddingRight:n.spacing.lg,paddingTop:n.spacing.lg,paddingBottom:t?n.sizes.appDefaultBottomPadding:n.spacing.threeXL,maxWidth:n.sizes.contentMaxWidth,...e&&h7(n),"@media print":{paddingTop:n.spacing.none}})),Uke=G(`div`,{target:`eqt0gmo8`})(({theme:e})=>({width:e.sizes.full,flexGrow:1})),Wke=G(`div`,{target:`eqt0gmo9`})(({theme:e})=>({position:`relative`,bottom:e.spacing.none})),Gke=G(`div`,{target:`eqt0gmo10`})(({theme:e})=>({width:e.sizes.full,minWidth:0,height:`100dvh`,[`@media (min-width: ${e.breakpoints.md})`]:{position:`relative`}}));function Kke(e){let{className:t,tabIndex:n,children:r,isEmbedded:i,disableScrolling:a}=e;return P(m7,{tabIndex:n,className:t,isEmbedded:i,disableScrolling:a,ref:UV(!0),"data-testid":`stAppScrollToBottomContainer`,children:r})}function g7(e){if(e instanceof Vg)return e.element.type===`chatInput`;if(e instanceof Bg)return e.children.some(g7);if(e instanceof Rg){let t=e.anchor?g7(e.anchor):!1,n=e.transientNodes.some(e=>e.element.type===`chatInput`);return t||n}return!1}function qke(e){let{elements:t,widgetMgr:n,uploadClient:r,sendMessageToHost:i,endpoints:a,navigationPosition:o,topRightContent:s,wideMode:c,embedded:l,showPadding:u,disableScrolling:d,addScriptFinishedHandler:f,removeScriptFinishedHandler:p,widgetsDisabled:m,showToolbar:h,disableFullscreenMode:g,componentRegistry:v}=e;(0,_.useEffect)(()=>{let e=()=>{i({type:`UPDATE_HASH`,hash:window.location.hash})};return window.addEventListener(`hashchange`,e,!1),()=>window.removeEventListener(`hashchange`,e,!1)},[i]);let{activeTheme:y}=(0,_.useContext)(nW),{appPages:b,pageLinkBaseUrl:x}=(0,_.useContext)(XU),{initialSidebarState:S,appLogo:C,hideSidebarNav:w}
181=(0,_.useContext)(tW),{innerWidth:T}=eZ(),E=c?`wide`:`narrow`,D=!t.sidebar.isEmpty,O=!t.event.isEmpty,k=!t.bottom.isEmpty,[A,ee]=(0,_.useState)(!1),te=T>0&&(D||o===Go.Position.SIDEBAR&&!w&&G5(b)||A);(0,_.useEffect)(()=>{te&&w&&!A&&ee(!0)},[te,w,A]);let ne=(0,_.useCallback)(()=>{!D&&A&&ee(!1)},[D,A]);(0,_.useEffect)(()=>(f(ne),()=>{p(ne)}),[ne,f,p]);let re=(0,_.useMemo)(()=>k&&g7(t.bottom),[k,t.bottom])?Kke:m7,ie=e=>P(WU,{node:e,endpoints:a,widgetMgr:n,widgetsDisabled:m,uploadClient:r,disableFullscreenMode:g,componentRegistry:v,height:`auto`,isRoot:!0}),[ae,oe]=(0,_.useState)(()=>{let e=f7(x);return e===null?u7(S,parseInt(y.emotion.breakpoints.md,10),T):e});oR(()=>{if(T>0&&te){let e=f7(x);oe(e===null?u7(S,parseInt(y.emotion.breakpoints.md,10),T):e)}},[T,te,S,y.emotion.breakpoints.md,x]);let j=(0,_.useCallback)((e,t=!0)=>{oe(e),t&&jke(x,e)},[x]),se=(0,_.useCallback)(()=>{j(!ae,!0)},[j,ae]),ce=C?P(B8,{appLogo:C,endpoints:a,collapsed:ae||!te,componentName:`Header Logo`,dataTestId:`stHeaderLogo`}):null,le=ce&&(!te||ae),M=te&&ae,N=o===Go.Position.TOP&&G5(b),ue=le||M||N||h;return F(Ike,{className:`stAppViewContainer appview-container`,"data-testid":`stAppViewContainer`,"data-layout":E,children:[te&&P(uZ,{id:`Sidebar`,children:P(Fke,{endpoints:a,hasElements:D,isCollapsed:ae,onToggleCollapse:j,widgetsDisabled:m,children:P(Bke,{children:ie(t.sidebar)})})}),F(Gke,{children:[P(DDe,{hasSidebar:te,isSidebarOpen:te&&!ae,onToggleSidebar:se,navigation:o===Go.Position.TOP&&G5(b)?P(gke,{endpoints:a,widgetsDisabled:m}):null,rightContent:s,logoComponent:ce,showToolbar:h}),F(re,{tabIndex:0,isEmbedded:l,disableScrolling:d,className:`stMain`,"data-testid":`stMain`,children:[P(uZ,{id:`Main`,children:P(zke,{className:`stMainBlockContainer block-container`,"data-testid":`stMainBlockContainer`,isWideMode:c,showPadding:u,hasBottom:k,hasHeader:ue,hasSidebar:te,showToolbar:h,hasTopNav:N,embedded:l,children:ie(t.main)})}),!k&&P(Wke,{"data-testid":`stAppIframeResizerAnchor`,"data-iframe-height":!0}),k&&F(uZ,{id:`Bottom`,children:[P(Uke,{}),P(Lke,{className:`stBottom`,"data-testid":`stBottom`,children:P(Rke,{children:P(Hke,{"data-testid":`stBottomBlockContainer`,isWideMode:c,showPadding:u,children:ie(t.bottom)})})})]})]})]}),O&&P(uZ,{id:`Event`,children:P(bDe,{children:P(Vke,{className:`stEvent`,"data-testid":`stEvent`,children:ie(t.event)})})})]})}var Jke=G(`div`,{target:`e19wr9s00`})(({theme:e})=>({display:`flex`,gap:e.spacing.sm,alignItems:`center`,lineHeight:e.iconSizes.md})),Yke=({onClick:e})=>P(`div`,{className:`stAppDeployButton`,"data-testid":`stAppDeployButton`,children:P($k,{kind:xk.HEADER_BUTTON,onClick:e,children:P(Jke,{children:P(`span`,{children:`Deploy`})})})}),_7=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),_.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),_.createElement(`path`,{d:`M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`}))});_7.displayName=`MoreVert`;var v7=`video/webm`,y7=(0,Zt.getLogger)(`ScreenCastRecorder`),b7=class{static isSupportedBrowser(){try{return I(navigator.mediaDevices)&&I(navigator.mediaDevices.getUserMedia)&&I(navigator.mediaDevices.getDisplayMedia)&&MediaRecorder.isTypeSupported(v7)}catch{return!1}}constructor({recordAudio:e,onErrorOrStop:t}){this.recordAudio=e,this.onErrorOrStopCallback=t,this.inputStream=null,this.recordedChunks=[],this.mediaRecorder=null}async initialize(){let e=(await navigator.mediaDevices.getDisplayMedia({video:!0})).getTracks();if(this.recordAudio){let t=await navigator.mediaDevices.getUserMedia({video:!1,audio:!0});e=e.concat(t.getAudioTracks())}this.recordedChunks=[],this.inputStream=new MediaStream(e),this.mediaRecorder=new MediaRecorder(this.inputStream,{mimeType:v7}),this.mediaRecorder.ondataavailable=e=>this.recordedChunks.push(e.data)}getState(){return this.mediaRecorder?this.mediaRecorder.state:`inactive`}start(){if(!this.mediaRecorder)return y7.warn(`ScreenCastRecorder.start: mediaRecorder is null`),!1;let e=e=>{y7.warn(`mediaRecorder.start threw an error: ${String(e)}`)};this.mediaRecorder.onerror=t=>{e(t),this.onErrorOrStopCallback()},this.mediaRecorder.onstop=()=>this.onErrorOrStopCallback();try{this.mediaRecorder.start()}catch(t){return e(t),!1}return!0}stop(){if(!this.mediaRecorder)return;let e,t=new Promise(t=>{e=t});return this.mediaRecorder.onstop=()=>e(),this.mediaRecorder.stop(),this.inputStream&&=(this.inputStream.getTracks().forEac
181h(e=>e.stop()),null),t.then(()=>this.buildOutputBlob())}buildOutputBlob(){return new Blob(this.recordedChunks,{type:v7})}},Xke=e=>Aa(`0%{box-shadow:0 0 `,e.spacing.twoXS,` `,e.colors.redTextColor,`;}50%{box-shadow:0 0 `,e.spacing.sm,` `,e.spacing.twoXS,` `,e.colors.redTextColor,`;}100%{box-shadow:0 0 `,e.spacing.twoXS,` `,e.colors.redTextColor,`;}`),Zke=G(`div`,{target:`eppsdfl0`})(({theme:e})=>({position:`absolute`,bottom:e.spacing.lg,right:e.spacing.sm,width:e.spacing.sm,height:e.spacing.sm,backgroundColor:e.colors.redTextColor,borderRadius:e.radii.full,boxShadow:`0 0 ${e.spacing.twoXS} ${e.colors.redTextColor}`,animation:`${Xke(e)} 2s linear infinite`})),Qke=G(`div`,{target:`eppsdfl1`})(({theme:e})=>({borderTop:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,width:`100%`})),$ke=G(`div`,{target:`eppsdfl2`})(({theme:e})=>({padding:e.spacing.sm,minWidth:e.sizes.appMainMenu,"@media print":{display:`none`}})),eAe=G(`div`,{target:`eppsdfl3`})(({theme:e})=>({display:`flex`,flexDirection:`column`,alignItems:`stretch`,gap:e.spacing.xs})),tAe=G(`span`,{target:`eppsdfl4`})({lineHeight:`initial`}),nAe=G(`button`,{target:`eppsdfl5`})(({theme:e,isRecording:t})=>({display:`flex`,alignItems:`center`,padding:`${e.spacing.threeXS} ${e.spacing.sm}`,border:`none`,borderRadius:e.radii.default,backgroundColor:e.colors.transparent,cursor:`pointer`,fontSize:e.fontSizes.sm,lineHeight:`${e.lineHeights.small}rem`,textAlign:`left`,color:t?e.colors.redTextColor:e.colors.bodyText,fontWeight:t?e.fontWeights.bold:e.fontWeights.normal,transition:`background-color 100ms ease`,"&:hover, &:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"&:focus":{outline:`none`},"&:focus-visible":{boxShadow:e.shadows.focusRingMuted},'&[aria-disabled="true"]':{color:e.colors.fadedText60,cursor:`not-allowed`},'&[aria-disabled="true"]:hover':{backgroundColor:e.colors.transparent}})),rAe=G(`span`,{target:`eppsdfl6`})(({theme:e})=>({display:`flex`,alignItems:`center`,width:`100%`,gap:e.spacing.sm})),iAe=G(`span`,{target:`eppsdfl7`})({display:`inline-flex`,alignItems:`center`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}),aAe=G(`kbd`,{target:`eppsdfl8`})(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,whiteSpace:`nowrap`,fontSize:e.fontSizes.sm,opacity:e.opacities.secondary,fontFamily:`inherit`,lineHeight:e.lineHeights.tight,letterSpacing:`0.01em`})),oAe=G(`div`,{target:`eppsdfl9`})(({theme:e})=>({display:`flex`,flexDirection:`row`,gap:e.spacing.threeXS,width:`100%`})),sAe=G(`button`,{target:`eppsdfl10`})(({theme:e,isChecked:t})=>({display:`flex`,flex:1,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:e.spacing.twoXS,padding:`${e.spacing.xs} ${e.spacing.sm}`,border:`none`,borderRadius:e.radii.default,backgroundColor:t?e.colors.darkenedBgMix25:e.colors.transparent,cursor:`pointer`,fontSize:e.fontSizes.sm,lineHeight:e.lineHeights.tight,color:e.colors.bodyText,transition:`background-color 100ms ease`,"&:hover":{backgroundColor:t?e.colors.darkenedBgMix25:e.colors.darkenedBgMix15},"&:focus":{outline:`none`},"&:focus-visible":{boxShadow:e.shadows.focusRingMuted,backgroundColor:t?e.colors.darkenedBgMix25:e.colors.darkenedBgMix15}})),cAe=G(`span`,{target:`eppsdfl11`})({display:`inline-flex`,alignItems:`center`,justifyContent:`center`}),lAe=G(`button`,{target:`eppsdfl12`})(({theme:e,isDisabled:t})=>({display:`flex`,alignItems:`center`,justifyContent:`space-between`,width:`100%`,padding:`${e.spacing.threeXS} ${e.spacing.sm}`,border:`none`,borderRadius:e.radii.default,backgroundColor:e.colors.transparent,cursor:t?`not-allowed`:`pointer`,color:t?e.colors.fadedText60:e.colors.bodyText,fontSize:e.fontSizes.sm,lineHeight:`${e.lineHeights.small}rem`,textAlign:`left`,fontWeight:e.fontWeights.normal,transition:`background-color 100ms ease`,"&:hover":{backgroundColor:t?e.colors.transparent:e.colors.darkenedBgMix15},"&:focus":{outline:`none`},"&:focus-visible":{backgroundColor:e.colors.darkenedBgMix15,boxShadow:e.shadows.focusRingMuted}})),uAe=G(`div`,{target:`eppsdfl13`})(({theme:e,isChecked:t,isDisabled:n})=>({display:`flex`,alignItems:`center`,flexShrink:0,width:`calc(2 * ${e.sizes.checkbox})`,minWidth:`calc(2 * ${e.sizes.checkbox})`,height:e.sizes.checkbox,minHeight:e.sizes.checkbox,padding:`0 ${e.spacing.threeXS}`,borderRadius:e.radii.full,backgroundColor:t&&!n?e.colors.primary:e.colors.borderColor,transition:`background-color 100ms ease`})),dAe=G(`div`,{target:`eppsdfl14`})(({theme:e,isChecked:t,isDisabled:n})=>{let r=zC(e),i=r?e.colors.bgColor:e.colors.bodyText;return n&&(i=r?e.colors.gray70:e.colors.gray90),{width:`calc(${e.sizes.checkbox} - ${e.spacing.twoXS})`,height:`calc(${e.sizes.checkbox} - ${e.spacing.twoXS})`,borderRadius:e.radii.full,backgroundColor:i,transform:t?`translateX(${e.sizes.checkbox})`:`none`,transition:`transform 100ms ease, background-color 100ms ease`}}),fAe=G(`div`,{target:`eppsdfl15`})(({theme:e})=>({paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm})),pAe=G(`div`,{target:`eppsdfl16`})(({theme:e})=>({display:`flex`,alignItems:`center`,gap:e.spacing.sm,marginTop:e.spacing.xs,".stMenuVersionCopyButton":{opacity:0,pointerEvents:`none`,transition:`opacity 120ms ease`}
181,"&:hover .stMenuVersionCopyButton, &:focus-within .stMenuVersionCopyButton":{opacity:1,pointerEvents:`auto`}})),mAe=G(`span`,{target:`eppsdfl17`})(({theme:e})=>({display:`inline-flex`,alignItems:`center`,opacity:e.opacities.secondary,fontSize:e.fontSizes.twoSm,lineHeight:e.lineHeights.menuItem,color:e.colors.bodyText,whiteSpace:`nowrap`})),hAe=[{label:`System`,icon:`:material/contrast:`},{label:`Light`,icon:`:material/light_mode:`},{label:`Dark`,icon:`:material/dark_mode:`}];function gAe(e,t){switch(e){case`System`:return t.find(e=>e.name===`Custom Theme Auto`||e.name===`Use system setting`);case`Light`:return t.find(e=>e.name===`Custom Theme Light`||e.name===fw.name);case`Dark`:return t.find(e=>e.name===`Custom Theme Dark`||e.name===dw.name)}}function _Ae(e,t,n,r){if(t.length<=1)return[];let i=zw(e);return hAe.map(e=>({type:`radio`,key:`theme-${e.label}`,label:e.label,icon:e.icon,checked:i===e.label,onSelect:()=>{let i=gAe(e.label,t);i&&(r.enqueue(`menuClick`,{label:`changeTheme`}),n(i))}}))}var vAe=(0,_.memo)(function({item:e,tabIndex:t,itemIndex:n,setItemRef:r}){let{key:i,label:a,checked:o,disabled:s,onToggle:c}=e,l=(0,_.useCallback)(e=>{r(n,e)},[r,n]),u=(0,_.useCallback)(()=>{s||c()},[s,c]);return F(lAe,{ref:l,type:`button`,isDisabled:s,role:`menuitemcheckbox`,"aria-checked":o,"aria-disabled":s||void 0,tabIndex:t,onClick:u,"data-testid":`stMainMenuItem-${i}`,children:[a,P(uAe,{isChecked:o,isDisabled:s,children:P(dAe,{isChecked:o,isDisabled:s})})]})}),yAe=(0,Zt.getLogger)(`MainMenu`),x7={COUNTDOWN:`Cancel recording`,RECORDING:`Stop recording`},bAe=new Set([`Enter`,` `,`Space`,`Spacebar`]);function xAe(e){return e.replace(/\.dev\d+/,`.dev`)}function S7(e,t){window.open(e,`_blank`)||yAe.warn(`Failed to open "${t}" link. This may be due to a popup blocker. URL: ${e}`)}function SAe(e){return e.type===`radio`}function CAe(e){return e.type===`toggle`}function wAe({isServerConnected:e,developmentMode:t,screenCastState:n,menuItems:r,hostMenuItems:i,quickRerunCallback:a,clearCacheCallback:o,printCallback:s,screencastCallback:c,aboutCallback:l,sendMessageToHost:u,isMinimalMode:d,themeSection:f,runOnSave:p,onRunOnSaveChange:m,allowRunOnSave:h,metricsMgr:g}){let _=!e,v=OAe(r,i,u),y=kAe(r,l);if(d)return[f,[...v,...y]];let b=DAe(n,s,c);return[f,TAe(t,a,_,p,m,h,g),EAe(t,o,_),[...b,...y],v]}function TAe(e,t,n,r,i,a,o){if(!e)return[];let s=[{type:`action`,key:`rerun`,label:`Rerun`,onClick:t,disabled:n,shortcut:`R`}];return a&&s.push({type:`toggle`,key:`autoRerun`,label:`Auto rerun`,checked:r,disabled:n,onToggle:()=>{o.enqueue(`menuClick`,{label:`autoRerun`}),i(!r)}}),s}function EAe(e,t,n){return e?[{type:`action`,key:`clearCache`,label:`Clear cache`,onClick:t,disabled:n,shortcut:`C`}]:[]}function DAe(e,t,n){let r=[{type:`action`,key:`print`,label:`Print`,onClick:t}];if(b7.isSupportedBrowser()){let t=x7[e]||`Record screen`;r.push({type:`action`,key:`recordScreencast`,label:t,onClick:n,isRecording:!!x7[e],shortcut:x7[e]?`ESC`:void 0})}return r}function OAe(e,t,n){let r=[],i=e?.reportABugUrl;i&&!e?.hideReportABug&&r.push({type:`action`,key:`report`,label:`Report a bug`,onClick:()=>S7(i,`Report a bug`)});let a=e?.getHelpUrl;a&&!e?.hideGetHelp&&r.push({type:`action`,key:`community`,label:`Get help`,onClick:()=>S7(a,`Get help`)});for(let i of t)i.type!==`separator`&&(i.key===`reportBug`&&e?.hideGetHelp||i.key===`about`&&e?.aboutSectionMd||r.push({type:`action`,key:`host-${i.key}`,label:i.label,onClick:()=>n({type:`MENU_ITEM_CALLBACK`,key:i.key})}));return r}function kAe(e,t){return e?.aboutSectionMd?[{type:`action`,key:`about`,label:`About`,onClick:t}]:[]}var AAe=(0,_.memo)(function({item:e,onItemClick:t,tabIndex:n,itemIndex:r,setItemRef:i}){return P(nAe,{type:`button`,ref:(0,_.useCallback)(e=>{i(r,e)},[i,r]),onClick:()=>{e.disabled||t(e)},role:`menuitem`,"aria-disabled":e.disabled||void 0,tabIndex:n,isRecording:e.isRecording,"data-testid":`stMainMenuItem-${e.key}`,children:F(rAe,{children:[P(iAe,{"data-testid":`stMainMenuItemLabel`,children:e.label}),e.shortcut&&P(aAe,{children:e.shortcut})]})})}),jAe=(0,_.memo)(function({item:e,onRadioSelect:t,tabIndex:n,itemIndex:r,setItemRef:i}){return F(sAe,{type:`button`,ref:(0,_.useCallback)(e=>{i(r,e)},[i,r]),onClick:()=>{t(e)},role:`menuitemradio`,"aria-checked":e.checked,tabIndex:n,isChecked:e.checked,"data-testid":`stMainMenuItem-${e.key}`,children:[P(cAe,{children:P(hT,{iconValue:e.icon,size:`lg`})}),e.label]})});function MAe({sections:e,closeMenu:t,metricsMgr:n,streamlitVersion:r}){let i=fE(),a=(0,_.useRef)([]),o=(0,_.useMemo)(()=>e.flat(),[e]),[s,c]=(0,_.useState)(0),l=Math.max(0,o.length-1),u=o.length===0?-1:Math.min(s,l),d=e=>{c(e),a.current[e]?.focus()},f=(0,_.useCallback)(e=>
181{e&&a.current[0]?.focus()},[]),p=(0,_.useCallback)((e,t)=>{a.current[e]=t},[]),m=e=>{let t=e.target,n=a.current.findIndex(e=>e===t);n!==-1&&c(n)},h=e=>{n.enqueue(`menuClick`,{label:e.label}),e.onClick(),t()},g=e=>{e.onSelect()},v=e=>{if(o.length!==0)switch(e.key){case`ArrowDown`:e.preventDefault(),d(u>=l?0:u+1);break;case`ArrowUp`:e.preventDefault(),d(u<=0?l:u-1);break;case`Home`:e.preventDefault(),d(0);break;case`End`:e.preventDefault(),d(l);break;case`Escape`:e.preventDefault(),t(`escape`);break;case`Tab`:if(r)break;e.preventDefault(),t(e.shiftKey?`shift-tab`:`tab`);break;default:break}},y=e=>{switch(e.key){case`Tab`:e.shiftKey||(e.preventDefault(),t(`tab`));break;case`Escape`:e.preventDefault(),t(`escape`);break;default:break}},b=[],x=0,S=0;for(let t of e)if(t.length!==0)if(b.length>0&&(b.push(P(Qke,{role:`separator`,"aria-hidden":`true`,"data-testid":`stMainMenuDivider`},`divider-${x}`)),x+=1),SAe(t[0])){let e=S;b.push(P(oAe,{role:`group`,"aria-label":`Theme`,"data-testid":`stThemeSwitcher`,children:t.map((t,n)=>{let r=e+n;return P(jAe,{item:t,onRadioSelect:g,tabIndex:u===r?0:-1,itemIndex:r,setItemRef:p},t.key)})},`theme-radio-group`)),S+=t.length}else for(let e of t)CAe(e)?b.push(P(vAe,{item:e,tabIndex:u===S?0:-1,itemIndex:S,setItemRef:p},e.key)):b.push(P(AAe,{item:e,onItemClick:h,tabIndex:u===S?0:-1,itemIndex:S,setItemRef:p},e.key)),S+=1;return F($ke,{children:[P(eAe,{ref:f,"data-testid":`stMainMenuList`,"aria-label":`Main menu`,role:`menu`,onFocus:m,onKeyDown:v,children:b}),r&&P(fAe,{onKeyDown:y,children:F(pAe,{children:[F(mAe,{children:[`Made with Streamlit v`,xAe(r)]}),P(rSe,{text:r,buttonSize:i.iconSizes.md,iconSize:i.iconSizes.sm,className:`stMenuVersionCopyButton`,copyLabel:`Copy version to clipboard`,copiedLabel:`Copied`})]})})]})}function NAe(e){let{isServerConnected:t,developmentMode:n,screenCastState:r,menuItems:i,hostMenuItems:a,toolbarMode:o,metricsMgr:s,quickRerunCallback:c,clearCacheCallback:l,printCallback:u,screencastCallback:d,aboutCallback:f,sendMessageToHost:p,runOnSave:m,onRunOnSaveChange:h,allowRunOnSave:g,streamlitVersion:v}=e,y=fE(),b=o===Ko.ToolbarMode.MINIMAL,{activeTheme:x,availableThemes:S,setTheme:C}=(0,_.useContext)(nW),w=(0,_.useMemo)(()=>_Ae(x,S,C,s),[x,S,C,s]),T=(0,_.useMemo)(()=>wAe({isServerConnected:t,developmentMode:n,screenCastState:r,menuItems:i,hostMenuItems:a,quickRerunCallback:c,clearCacheCallback:l,printCallback:u,screencastCallback:d,aboutCallback:f,sendMessageToHost:p,isMinimalMode:b,themeSection:w,runOnSave:m,onRunOnSaveChange:h,allowRunOnSave:g,metricsMgr:s}),[t,n,r,i,a,c,l,u,d,f,p,b,w,m,h,g,s]),[E,D]=(0,_.useState)(!1),O=(0,_.useRef)(null),k=(0,_.useRef)(`other`),A=(0,_.useCallback)(()=>{D(!0)},[]),ee=(0,_.useCallback)(()=>{D(!1)},[]),te=(0,_.useCallback)(e=>{let t=k.current;k.current=`other`;let n=O.current;return n&&(t===`tab`?JD(n):t===`shift-tab`?YD(n):n.focus()),!1},[]),ne=(0,_.useCallback)(e=>{bAe.has(e.key)&&(e.preventDefault(),e.currentTarget.click())},[]),re=T.some(e=>e.length>0);return b&&!re?null:P(VI,{focusLock:!0,returnFocus:te,accessibilityType:tI.none,onOpen:A,onClose:ee,placement:QF.bottomRight,content:({close:e})=>P(MAe,{sections:T,closeMenu:t=>{k.current=t??`other`,e()},metricsMgr:s,streamlitVersion:v}),overrides:{Body:{props:{"data-testid":`stMainMenuPopover`,className:`stMainMenuPopover`},style:{...DR(y)}}},children:F(tAe,{id:`MainMenu`,className:`stMainMenu`,"data-testid":`stMainMenu`,onKeyDown:ne,children:[P($k,{ref:O,kind:xk.HEADER_NO_PADDING,"data-testid":`stMainMenuButton`,"aria-label":`Main menu`,"aria-haspopup":`menu`,"aria-expanded":E,children:P(uT,{content:_7,size:`lg`})}),r===`RECORDING`&&P(Zke,{"data-testid":`stMainMenuRecordingIndicator`})]})})}var PAe=(0,_.memo)(NAe);function FAe(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function IAe(e,t){e.classList?e.classList.add(t):FAe(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function C7(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function LAe(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=C7(e.className,t):e.setAttribute(`class`,C7(e.className&&e.className.baseVal||``,t))}var w7={disabled:!1},T7=_.createContext(null),E7=function(e){return e.scrollTop},D7=`unmounted`,O7=`exited`,k7=`entering`,A7=`entered`,j7=`exiting`,M7=function(e){zE(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=O7,r.appearStatus=k7):o=A7:o=t.unmountOnExit||t.mountOnEnter?D7:O7,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:O7}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=k7):(n===`entering`||n===`entered`)&&(t=j7)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:C8.findDOMNode(this);n&&E7(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:D7})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.
vendor: 3,900 bytes, line 181
181isMounting:e,i=this.props.nodeRef?[r]:[C8.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||w7.disabled){this.safeSetState({status:A7},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:k7},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:A7},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:C8.findDOMNode(this);if(!t||w7.disabled){this.safeSetState({status:O7},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:j7},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:O7},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:C8.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=gE(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return _.createElement(T7.Provider,{value:null},typeof n==`function`?n(e,r):_.cloneElement(_.Children.only(n),r))},t}(_.Component);M7.contextType=T7,M7.propTypes={};function N7(){}M7.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:N7,onEntering:N7,onEntered:N7,onExit:N7,onExiting:N7,onExited:N7},M7.UNMOUNTED=D7,M7.EXITED=O7,M7.ENTERING=k7,M7.ENTERED=A7,M7.EXITING=j7;var RAe=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return IAe(e,t)})},P7=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return LAe(e,t)})},F7=function(e){zE(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];
181return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&E7(e),r&&(this.appliedClasses[t][n]=r,RAe(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&P7(e,r),i&&P7(e,i),a&&P7(e,a)},n.render=function(){var e=this.props;e.classNames;var t=gE(e,[`classNames`]);return _.createElement(M7,tt({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(_.Component);F7.defaultProps={classNames:``},F7.propTypes={};var I7=function(e){return e.CONNECTED=`CONNECTED`,e.DISCONNECTED_FOREVER=`DISCONNECTED_FOREVER`,e.INITIAL=`INITIAL`,e.PINGING_SERVER=`PINGING_SERVER`,e.CONNECTING=`CONNECTING`,e.STATIC_CONNECTING=`STATIC_CONNECTING`,e.STATIC_CONNECTED=`STATIC_CONNECTED`,e}({}),zAe=`https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS`,BAe=`_stcore/stream`,VAe=`_stcore/health`,HAe=`_stcore/host-config`,L7=2e3,UAe=!(typeof navigator>`u`)&&/Android/i.test(navigator.userAgent)?60*1e3:15*1e3,R7=15*1e3;Promise.withResolvers===void 0&&(Promise.withResolvers=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return{resolve:e,reject:t,promise:n}});function z7(e){let t=document.cookie.match(`\\b${e}=([^;]*)\\b`);return t?t[1]:void 0}function WAe(){let e=`testData`;try{let{localStorage:t}=window;t.setItem(e,e),t.getItem(e),t.removeItem(e)}catch{return!1}return!0}function GAe(e){return Array.isArray(e)&&e.length>0&&e.every(e=>typeof e==`string`&&e.trim().length>0)}function KAe(e){return typeof structuredClone==`function`?structuredClone(e):JSON.parse(JSON.stringify(e))}function B7(e){return Object.freeze(e),Array.isArray(e)?e.forEach(e=>{typeof e==`object`&&e&&!Object.isFrozen(e)&&B7(e)}):Object.values(e).forEach(e=>{typeof e==`object`&&e&&!Object.isFrozen(e)&&B7(e)}),e}var V7=(()=>{let e=window.__streamlit;if(e)return B7(KAe(e))})(),H7={get BACKEND_BASE_URL(){return V7?.BACKEND_BASE_URL},get HOST_CONFIG_BASE_URL(){return V7?.HOST_CONFIG_BASE_URL},get DOWNLOAD_ASSETS_BASE_URL(){return V7?.DOWNLOAD_ASSETS_BASE_URL},get MAIN_PAGE_BASE_URL(){return V7?.MAIN_PAGE_BASE_URL},get CUSTOM_COMPONENT_CLIENT_ID(){return V7?.CUSTOM_COMPONENT_CLIENT_ID},get LIGHT_THEME(){return V7?.LIGHT_THEME},get DARK_THEME(){return V7?.DARK_THEME},get ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION(){return V7?.ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION},get HOST_CONFIG(){return V7?.HOST_CONFIG}};function U7(e){return e!=null}function W7(e){return e==null}var G7=/\/+$/,K7=/^\/+/;function q7({hostname:e,port:t,pathname:n,protocol:r},i){let a=J7(n,i);return`${r}//${e}${t?`:${t}`:``}/${a}`}function J7(e,t){return e=e.replace(G7,``).replace(K7,``),t=t.replace(G7,``).replace(K7,``),e.length===0?t:`${e}/${t}`}var qAe=`https://data.streamlit.io/static.json`,Y7=(0,Zt.getLogger)(`StaticConnection`);async function JAe(){let e=WAe(),t=``;if(e){let e=window.localStorage.getItem(`stStaticAssetUrl`);if(e)return e}try{let n=await fetch(qAe,{signal:AbortSignal.timeout(5e3)});n.ok?(t=(await n.json()).static_url??void 0,e&&t&&window.localStorage.setItem(`stStaticAssetUrl`,t)):Y7.error(`Failed to fetch static config url: `,n.status)}catch(e){Y7.error(`Failed to fetch static config url:`,e)}return t}async function YAe(e,t){let n=`${t}/${e}/protos.pb`,r=await fetch(n,{signal:AbortSignal.timeout(5e3)});if(!r.ok)Y7.error(`Failed to fetch static app protos for id: ${e}`,r.status);else return r.arrayBuffer();return null}async function XAe(e,t,n,r){let i=await YAe(e,t);if(!i){Y7.error(`Failed to retrieve static app protos`),r({message:`Failed to retrieve static app protos. Please confirm the id is correct and try again. Given static app id: ${e}`});return}Ho.decode(new Uint8Array(i)).messages.forEach(e=>{n(e)})}async function ZAe(e,t,n,r,i){t(I7.STATIC_CONNECTING);let a=await JAe();i.setStaticConfigUrl(a),XAe(e,a,n,r),t(I7.STATIC_CONNECTED)}var QAe=/\/+$/,$Ae=/^\/+/;function X7(){let e=H7.HOST_CONFIG;if(!e)return!1;let{allowedOrigins:t,useExternalAuthToken:n}=e,r=!!H7.BACKEND_BASE_URL,i=GAe(t);return r&&i&&typeof n==`boolean`}function Z7(e){let t=new URL(e??window.location.href);return t.pathname=t.pathname.replace(QAe,``).replace($Ae,``),t}function eje(){let e=Z7(H7.BACKEND_BASE_URL),{pathname:t}=e;if(t===`/`)return[e];let n=t.split(`/`),r=[];for(;n.length>0;){let t=new URL(e);t.pathname=n.join(`/`),r.push(t),n.pop()}return r.length<=2?r:r.slice(0,2)}function tje({hostname:e,port:t,pathname:n,protocol:r},i){return`${r===`https:`?`wss`:`ws`}://${e}:${t}/${J7(n,i)}`}function nje(e){if(e!=null)switch(typeof e){case`object`:return JSON.stringify(e,null,2);case`string`:case`number`:case`boolean`:return String(e);default:return}}
181var Q7=class extends Error{constructor(e,t,n={}){super(e),this.name=`FetchError`,this.url=t,this.isTimeout=n.isTimeout??!1,this.isNetworkError=n.isNetworkError??!1,this.response=n.response}};async function $7(e,t){let n=new AbortController,r=setTimeout(()=>n.abort(),t);try{let t=await fetch(e,{signal:n.signal});if(clearTimeout(r),!t.ok){let n;try{n=await t.json()}catch{try{n=await t.text()}catch{n=null}}throw new Q7(`Request failed with status ${t.status}`,e,{response:{status:t.status,statusText:t.statusText,data:n}})}let i=await t.text();try{return{data:JSON.parse(i),url:e}}catch{return{data:i,url:e}}}catch(t){throw clearTimeout(r),t instanceof Q7?t:t instanceof DOMException&&t.name===`AbortError`?new Q7(`Connection timed out`,e,{isTimeout:!0}):t instanceof TypeError?new Q7(t.message||`Network error`,e,{isNetworkError:!0}):new Q7(t instanceof Error?t.message:`Unknown error`,e)}}var e9=(0,Zt.getLogger)(`DoInitPings`),t9=class extends Error{constructor(){super(`Ping cancelled`)}};function n9(e,t,n,r,i,a){let{promise:o,resolve:s,reject:c}=Promise.withResolvers(),l=0,u=0,d,f=()=>{},p=()=>{u++,u>=e.length&&(u=0),f()},m=e=>{let i=Math.random()*.4-.2,a=l===1?t:t*2**(l-1)*(1+i),o=Math.min(n,a);r(l,e,o),!(typeof window>`u`)&&(d=globalThis.setTimeout(p,o))},h=()=>{let t=e[u];new URL(q7(t,``)).hostname===`localhost`?m({message:`Is Streamlit still running? If you accidentally stopped Streamlit, just restart it in your terminal:`,codeBlock:`streamlit run yourscript.py`}):m({message:`Streamlit server is not responding. Are you connected to the internet?`})},g=()=>{m({message:`Cannot connect to Streamlit (HTTP status: 403). 182 183If you are trying to access a Streamlit app running on another server, this could be due to the app's [CORS](${zAe}) settings.`})},_=e=>{let t=`DoInitPings`;if(e)try{t=new URL(e).pathname}catch{e9.error(`unrecognized url: ${e}`)}return t};return f=()=>{let t=e[u],n=q7(t,VAe),r=H7.HOST_CONFIG_BASE_URL,o=q7(r?Z7(r):t,HAe);e9.info(`Attempting to connect to ${n}.`),u===0&&l++,Promise.all([$7(n,R7),$7(o,R7)]).then(([e,t])=>{a(t.data),s(u)}).catch(e=>{let t=l>=6;if(e.isTimeout){if(t){let t=_(e.url);e9.error(`Client error: DoInitPings timed out`),i(`DoInitPings timed out`,`Connection timed out - ECONNABORTED`,t)}return m({message:`Connection timed out.`})}if(e.response){let{data:n,status:r,statusText:a}=e.response,o=_(e.url);if(r===0)return t&&(e9.error(`Client Error: response received with status ${r} when attempting to reach ${o}`),i(`Response received with status ${r}`,a,o)),h();if(r===403)return t&&(e9.error(`Client Error: response received with status ${r} when attempting to reach ${o}`),i(r,a,o)),g();t&&(e9.error(`Client Error: response received with status ${r} when attempting to reach ${o}`),i(r,a,o));let s=nje(n);return m({message:`Connection failed with status ${r}${s?`, and response:`:`.`}`,...s&&{codeBlock:s}})}if(e.isNetworkError){if(t){let t=_(e.url);e9.error(`Client Error in reaching server endpoint - No response received when attempting to reach ${t}`),i(`No response received from server`,`Network error`,t)}return h()}if(t){let t=_(e.url);e9.error(`Client Error in reaching server endpoint - error in setting up request when attempting to reach ${t}`),i(`Error setting up request to server`,e.message??``,t)}return m({message:e.message})})},f(),{promise:o,cancel:()=>{U7(d)&&globalThis.clearTimeout(d),c(new t9)}}}var r9=(0,Zt.getLogger)(`ForwardMessageCache`),rje=class{getAge(e){return e-this.scriptRunCount}constructor(e,t,n){this.scriptRunCount=0,this.encodedMsg=e,this.scriptRunCount=t,this.fragmentId=n}},ije=class{constructor(){this.messages=new Map,this.scriptRunCount=0}incrementRunCount(e,t){this.scriptRunCount+=1,this.messages.forEach((n,r)=>{t.length>0&&(!n.fragmentId||!t.includes(n.fragmentId))||n.getAge(this.scriptRunCount)>e&&(r9.info(`Removing expired ForwardMsg [hash=${r}]`),this.messages.delete(r))})}getCachedMessageHashes(){return Array.from(this.messages.keys())}async processMessagePayload(e,t){if(this.maybeCacheMessage(e,t),e.type!==`refHash`)return e;let n=this.getCachedMessage(e.refHash,!0);if(W7(n))throw Error(`Cached ForwardMsg MISS [hash=${e.refHash}]. This is not expected to happen. Please [report this bug](https://github.com/streamlit/streamlit/issues).`);if(r9.info(`Cached ForwardMsg HIT [hash=${e.refHash}]`),!e.metadata)throw Error(`Reference ForwardMsg has no metadata. This is not expected to happen. Please [report this bug](https://github.com/streamlit/streamlit/issues).`);return n.metadata=e.metadata,n}maybeCacheMessage(e,t){if(e.type!==`refHash`&&e.metadata?.cacheable){if(!e.hash){r9.error(`ForwardMsg has no hash. This is not expected to happen, please report this bug.`,e);return}this.getCachedMessage(e.hash,!0)===void 0&&(r9.info(`Caching ForwardMsg [hash=${e.hash}]`),this.messages.set(e.hash,new rje(t,this.scriptRunCount,e.delta?.fragmentId??void 0)))}}getCachedMessage(e,t){let n=this.messages.get(e);if(!W7(n))return t&&(n.scriptRunCount=this.scriptRunCount),Bo.decode(n.encodedMsg)}},i9=(0,Zt.getLogger)(`WebsocketConnection`),a9=class{constructor(e){this.uriIndex=0,this.lastDispatchedMessageIndex=-1,this.nextMessageIndex=0,this.messageQueue={},this.state=I7.INITIAL,this.args=e,this.cache=new ije,this.stepFsm(`INITIALIZED`)}getBaseUriParts(){if(this.state===I7.CONNECTED)return this.args.baseUriPartsList[this.uriIndex]}disconnect(){this.setFsmState(I7.DISCONNECTED_FOREVER)}reconnect(){this.state===I7.CONNECTED&&(this.closeConnection(),this.stepFsm(`CONNECTION_CLOSED`))}setFsmState(e,t){switch(i9.info(`New state: ${e}`),this.state=e,this.state){case I7.PINGING_SERVER:this.pingServer();break;default:break}switch(this.args.onConnectionStateChange(e,t),this.state){case I7.CONNECTING:this.connectToWebSocket();break;case I7.DISCONNECTED_FOREVER:this.closeConnection();break;default:break}}stepFsm(e,t){if(i9.info(`State: ${this.state}; Event: ${e}`),e===`FATAL_ERROR`&&this.state!==I7.DISCONNECTED_FOREVER){i9.error(`Client Error: Websocket connection encountered fatal error - ${t}`),this.args.sendClientError(`Websocket connection fatal error encountered`,t,`Websocket Connection`),this.setFsmState(I7.DISCONNECTED_FOREVER,{message:t||`Unknown error`});return}switch(this.state){case I7.INITIAL:if(e===`INITIALIZED`){this.args.enableBypass?(this.setFsmState(I7.CONNECTING),this.pingServerInBackgroun
183d()):this.setFsmState(I7.PINGING_SERVER);return}break;case I7.CONNECTING:if(e===`CONNECTION_SUCCEEDED`){this.setFsmState(I7.CONNECTED);return}if(e===`CONNECTION_TIMED_OUT`||e===`CONNECTION_ERROR`||e===`CONNECTION_CLOSED`){this.setFsmState(I7.PINGING_SERVER);return}break;case I7.CONNECTED:if(e===`CONNECTION_CLOSED`||e===`CONNECTION_ERROR`){this.setFsmState(I7.PINGING_SERVER);return}break;case I7.PINGING_SERVER:if(e===`SERVER_PING_SUCCEEDED`){this.setFsmState(I7.CONNECTING);return}break;case I7.DISCONNECTED_FOREVER:i9.warn(`Discarding ${e} while in ${I7.DISCONNECTED_FOREVER}`);return;default:break}throw Error(`Unsupported state transition. 184State: ${this.state}\nEvent: ${e}`)}async pingServer(){let e=n9(this.args.baseUriPartsList,100,L7,this.args.onRetry,this.args.sendClientError,this.args.onHostConfigResp);this.pingRequest=e;try{this.uriIndex=await e.promise,this.pingRequest===e&&(this.pingRequest=void 0),this.stepFsm(`SERVER_PING_SUCCEEDED`)}catch(e){e instanceof t9?i9.info(`Ping cancelled`):this.stepFsm(`FATAL_ERROR`,e instanceof Error?e.message:String(e))}finally{this.pingRequest===e&&(this.pingRequest=void 0)}}async pingServerInBackground(){let e=n9(this.args.baseUriPartsList,100,L7,this.args.onRetry,this.args.sendClientError,this.args.onHostConfigResp);this.pingRequest=e;try{let t=await e.promise;this.uriIndex=t,i9.info(`Background pings completed successfully`)}catch(e){e instanceof t9?i9.info(`Background pings cancelled`):this.stepFsm(`FATAL_ERROR`,e instanceof Error?e.message:String(e))}finally{this.pingRequest===e&&(this.pingRequest=void 0)}}async getSessionTokens(){let e=await this.args.claimHostAuthToken(),t=z7(`_streamlit_xsrf`);this.args.resetHostAuthToken();let n=this.args.getLastSessionId();return[e??t??`PLACEHOLDER_AUTH_TOKEN`,...n?[n]:[]]}async connectToWebSocket(){let e=tje(this.args.baseUriPartsList[this.uriIndex],BAe);if(U7(this.websocket))throw Error(`Websocket already exists`);i9.info(`creating WebSocket`);
184let t=await this.getSessionTokens();this.websocket=new WebSocket(e,[`streamlit`,...t]),this.websocket.binaryType=`arraybuffer`,this.setConnectionTimeout(e);let n=this.websocket,r=()=>n===this.websocket;this.websocket.addEventListener(`message`,e=>{r()&&this.handleMessage(e.data).catch(e=>{let t=`Failed to process a Websocket message. ${e}`;i9.error(t),this.stepFsm(`FATAL_ERROR`,t)})}),this.websocket.addEventListener(`open`,()=>{r()&&(i9.info(`WebSocket onopen`),this.stepFsm(`CONNECTION_SUCCEEDED`))}),this.websocket.addEventListener(`close`,()=>{r()&&(i9.warn(`WebSocket onclose`),this.closeConnection(),this.stepFsm(`CONNECTION_CLOSED`))}),this.websocket.addEventListener(`error`,e=>{r()&&(i9.error(`Client Error: WebSocket onerror`),this.args.sendClientError(`Websocket connection onerror triggered`,`Error: ${e}`,`Websocket Connection`),this.closeConnection(),this.stepFsm(`CONNECTION_ERROR`))})}setConnectionTimeout(e){if(U7(this.wsConnectionTimeout))throw Error(`WS timeout is already set`);let t=this.websocket;this.wsConnectionTimeout=globalThis.setTimeout(()=>{if(t!==this.websocket)return;if(W7(this.wsConnectionTimeout)){i9.warn(`Timeout fired after cancellation`);return}let n=this.websocket;if(W7(n)){this.closeConnection(),this.stepFsm(`FATAL_ERROR`,`Null Websocket in setConnectionTimeout`);return}n.readyState===0&&(i9.info(`Client error: ${e} timed out`),this.args.sendClientError(`Websocket connection timed out`,`${e} timed out`,`Websocket Connection`),this.closeConnection(),this.stepFsm(`CONNECTION_TIMED_OUT`))},UAe),i9.info(`Set WS timeout ${Number(this.wsConnectionTimeout)}`)}closeConnection(){this.websocket&&=(this.websocket.close(),void 0),U7(this.wsConnectionTimeout)&&(i9.info(`Clearing WS timeout ${Number(this.wsConnectionTimeout)}`),globalThis.clearTimeout(this.wsConnectionTimeout),this.wsConnectionTimeout=void 0),this.pingRequest&&=(this.pingRequest.cancel(),void 0)}sendMessage(e){if(!this.websocket)return;let t=uo.create(e),n=uo.encode(t).finish(),r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);this.websocket.send(r)}incrementMessageCacheRunCount(e,t){this.cache.incrementRunCount(e,t)}getCachedMessageHashes(){return this.cache.getCachedMessageHashes()}async handleMessage(e){let t=this.nextMessageIndex;this.nextMessageIndex+=1;let n=new Uint8Array(e),r=Bo.decode(n);for(this.messageQueue[t]=await this.cache.processMessagePayload(r,n);this.lastDispatchedMessageIndex+1 in this.messageQueue;){let e=this.lastDispatchedMessageIndex+1;this.args.onMessage(this.messageQueue[e]),delete this.messageQueue[e],this.lastDispatchedMessageIndex=e}}},o9=(0,Zt.getLogger)(`ConnectionManager`),aje=class{constructor(e){this.connectionState=I7.INITIAL,this.setConnectionState=(e,t)=>{this.connectionState!==e&&(this.connectionState===I7.CONNECTED&&e!==I7.CONNECTED&&this.clearHeartbeatAckTimeout(),this.connectionState=e,this.props.connectionStateChanged(e)),t&&this.props.onConnectionError(t)},this.showRetryError=(e,t,n)=>{e>=6&&this.props.onConnectionError(t)},this.props=e,this.connect()}isConnected(){return this.connectionState===I7.CONNECTED}getBaseUriParts(){if(this.websocketConnection instanceof a9)return this.websocketConnection.getBaseUriParts()}sendMessage(e){this.websocketConnection instanceof a9&&this.isConnected()?this.websocketConnection.sendMessage(e):o9.error(`Cannot send message when server is disconnected: ${e.type??`unknown`}`)}incrementMessageCacheRunCount(e,t){this.websocketConnection instanceof a9&&this.websocketConnection.incrementMessageCacheRunCount(e,t)}getCachedMessageHashes(){return this.websocketConnection instanceof a9?this.websocketConnection?.getCachedMessageHashes()??[]:[]}checkStaticConnection(){return new URLSearchParams(document.location.search).get(`staticAppId`)}async connect(){let e=this.checkStaticConnection();if(e)ZAe(e,this.setConnectionState,this.props.onMessage,this.props.onConnectionError,this.props.endpoints),this.websocketConnection=null;else try{this.websocketConnection=await this.connectToRunningServer()}catch(e){let t=e instanceof Error?e:Error(`${e}`);o9.error(`Client Error: Websocket connection - ${t.message}`),this.props.sendClientError(`Failed to establish websocket connection`,t.message,`C
184onnection Manager`),this.setConnectionState(I7.DISCONNECTED_FOREVER,{message:t.message})}}disconnect(){this.clearHeartbeatAckTimeout(),this.websocketConnection?.disconnect()}onHeartbeatSent(e){this.clearHeartbeatAckTimeout(),e&&(this.heartbeatAckTimeoutId=setTimeout(()=>{o9.warn(`Heartbeat ack not received within timeout, connection may be unhealthy`),this.heartbeatAckTimeoutId=void 0,this.isConnected()&&this.reconnect()},e))}reconnect(){this.clearHeartbeatAckTimeout(),this.websocketConnection?.reconnect()}onHeartbeatAckReceived(){this.clearHeartbeatAckTimeout()}clearHeartbeatAckTimeout(){this.heartbeatAckTimeoutId!==void 0&&(clearTimeout(this.heartbeatAckTimeoutId),this.heartbeatAckTimeoutId=void 0)}connectToRunningServer(){let e=eje(),t=X7();return new a9({getLastSessionId:this.props.getLastSessionId,endpoints:this.props.endpoints,baseUriPartsList:e,onMessage:this.props.onMessage,onConnectionStateChange:this.setConnectionState,onRetry:this.showRetryError,claimHostAuthToken:this.props.claimHostAuthToken,resetHostAuthToken:this.props.resetHostAuthToken,sendClientError:this.props.sendClientError,onHostConfigResp:this.props.onHostConfigResp,enableBypass:t})}},s9=(0,Zt.getLogger)(`DefaultStreamlitEndpoints`),c9=`/media`,l9=`/app/static/`,oje=`/_stcore/upload_file`,sje=`/component`,cje=`/_stcore/bidi-components`,lje=class{constructor(e){this.getServerUri=e.getServerUri,this.csrfEnabled=e.csrfEnabled,this.sendClientError=e.sendClientError,this.staticConfigUrl=null}setStaticConfigUrl(e){this.staticConfigUrl=e}sendClientErrorToHost(e,t,n,r,i){this.sendClientError(e,t,n,r,i)}async checkSourceUrlResponse(e,t,n){let r=n?`${t} ${n}`:t;try{let i=await fetch(e);i.ok||(s9.error(`Client Error: ${r} source error - ${i.status}`),this.sendClientErrorToHost(t,i.status,i.statusText,e,n))}catch(i){let a=i instanceof Error?i.message:`Unknown Error`;s9.error(`Client Error: ${r} fetch error - ${a}`),this.sendClientErrorToHost(t,`Error fetching source`,a,e,n)}}buildComponentURL(e,t){return q7(this.requireServerUri(),`${sje}/${e}/${t}`)}buildBidiComponentURL(e,t){return q7(this.requireServerUri(),`${cje}/${e}/${t}`)}setFileUploadClientConfig({prefix:e,headers:t}){this.fileUploadClientConfig={prefix:e,headers:t}}buildStaticUrl(e){let t=new URLSearchParams(document.location.search).get(`staticAppId`);return`${this.staticConfigUrl}/${t}${e}`}buildMediaURL(e){return this.staticConfigUrl&&(e.startsWith(c9)||e.startsWith(l9))?this.buildStaticUrl(e):e.startsWith(c9)||e.startsWith(l9)?q7(this.requireServerUri(),e):e}buildDownloadUrl(e){if(!e.startsWith(c9))return e;let t=H7.DOWNLOAD_ASSETS_BASE_URL;return q7(t?Z7(t):this.requireServerUri(),e)}buildFileUploadURL(e){return this.fileUploadClientConfig?J7(this.fileUploadClientConfig.prefix,e):e.startsWith(oje)?q7(this.requireServerUri(),e):e}buildAppPageURL(e,t){let n=t.urlPathname,r=t.isDefault?``:n;if(typeof e==`string`&&e.length>0)return`${e}/${r}`;let{port:i,protocol:a}=window.location,{pathname:o,hostname:s}=this.requireServerUri();return`${a}//${s}${i?`:${i}`:``}${o===`/`?`/`:`${o}/`}${r}`}async uploadFileUploaderFile(e,t,n,r,i){let a=new FormData,{name:o,webkitRelativePath:s}=t,c=s||o;a.append(o,t,c);let l=this.getAdditionalHeaders(),u=this.buildFileUploadURL(e);try{await this.csrfRequest(u,{signal:i,method:`PUT`,data:a,responseType:`text`,headers:l,onUploadProgress:r})}catch(e){s9.error(`Client Error: File uploader error on file upload - ${e}`);let t=e instanceof Error?e.message:`Unknown Error`;throw this.sendClientErrorToHost(`File Uploader`,`Error uploading file`,t,u),e}}getAdditionalHeaders(){let e={};return this.fileUploadClientConfig&&(e={...e,...this.fileUploadClientConfig.headers}),e}async deleteFileAtURL(e,t){let n=this.getAdditionalHeaders(),r=this.buildFileUploadURL(e);try{await this.csrfRequest(r,{method:`DELETE`,data:{sessionId:t},headers:n})}catch(e){s9.error(`Client Error: File uploader error on file delete - ${e}`);let t=e instanceof Error?e.message:`Unknown Error`;throw this.sendClientErrorToHost(`File Uploader`,`Error deleting file`,t,r),e}}requireServerUri(){let e=this.getServerUri();if(U7(e))return this.cachedServerUri=e,e;let t=this.cachedServerUri;if(U7(t))return t;throw Error(`not connected to a server!`)}
184async csrfRequest(e,t){if(t.url=e,this.csrfEnabled){let e=z7(`_streamlit_xsrf`);U7(e)&&(t.headers={"X-Xsrftoken":e,...t.headers},t.withCredentials=!0)}let{default:n}=await CL(async()=>{let{default:e}=await import(`./axios.C-mntj-Y.js`);return{default:e}},[],import.meta.url);return n.request(t)}},u9=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 8 8`},e,{ref:t}),_.createElement(`path`,{d:`M0 3v2h2V3H0zm3 0v2h2V3H3zm3 0v2h2V3H6z`}))});u9.displayName=`Ellipses`;var d9=_.forwardRef(function(e,t){return _.createElement(Uz,tt({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 8 8`},e,{ref:t}),_.createElement(`path`,{d:`M3.09 0c-.06 0-.1.04-.13.09L.02 6.9c-.02.05-.03.13-.03.19v.81c0 .05.04.09.09.09h6.81c.05 0 .09-.04.09-.09v-.81c0-.05-.01-.14-.03-.19L4.01.09A.142.142 0 003.88 0h-.81zM3 3h1v2H3V3zm0 3h1v1H3V6z`}))});d9.displayName=`Warning`;var f9=`Connecting`,uje=`Connecting to Streamlit server`,dje=`Connecting to static app`,fje=`Error`,pje=`Unable to connect to Streamlit server`;function mje(e){switch(e){case I7.INITIAL:case I7.PINGING_SERVER:case I7.CONNECTING:return{icon:u9,label:f9,tooltip:uje};case I7.CONNECTED:return;case I7.STATIC_CONNECTING:return{icon:u9,label:f9,tooltip:dje};case I7.STATIC_CONNECTED:return;case I7.DISCONNECTED_FOREVER:default:return{icon:d9,label:fje,tooltip:pje}}}var hje=``+new URL(`../media/fireworks.B4d-_KUe.gif`,import.meta.url).href,gje=G(`div`,{target:`e192nn00`})(({theme:e})=>({display:`flex`,alignItems:`center`,justifyContent:`center`,color:e.colors.gray60})),_je=G(`label`,{target:`e192nn01`})(({theme:e})=>({fontSize:e.fontSizes.sm,color:e.colors.gray60,textTransform:`uppercase`,marginTop:e.spacing.none,marginRight:e.spacing.lg,marginBottom:e.spacing.none,marginLeft:e.spacing.sm,whiteSpace:`nowrap`,maxWidth:e.sizes.appStatusMaxWidth,lineHeight:e.lineHeights.none})),p9=G(`div`,{target:`e192nn02`})(({theme:e})=>({display:`flex`,alignItems:`center`,justifyContent:`center`,borderRadius:e.radii.sm,margin:`0 ${e.spacing.sm} 0 0`,paddingLeft:e.spacing.sm,height:e.sizes.appRunningMen})),vje=G(`label`,{target:`e192nn03`})(({isPrompt:e,theme:t})=>({fontSize:t.fontSizes.sm,color:e?t.colors.bodyText:t.colors.gray60,textTransform:e?`none`:`uppercase`,margin:`0 0 0 ${t.spacing.sm}`,whiteSpace:`nowrap`,maxWidth:t.sizes.appStatusMaxWidth,borderRadius:e?t.radii.sm:void 0})),yje=G(`span`,{target:`e192nn04`})(({theme:e})=>({marginLeft:e.spacing.md,whiteSpace:`nowrap`,color:e.colors.bodyText})),bje=G(`div`,{target:`e192nn05`})(({isNewYears:e,theme:t})=>({width:e?`2.2rem`:t.sizes.appRunningMen,height:e?`2.2rem`:t.sizes.appRunningMen,marginRight:`-${t.spacing.sm}`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`opacity 0.3s ease-in-out`,cursor:`wait`})),xje=G(`div`,{target:`e192nn06`})({"&.StatusWidget-appear":{opacity:0}
184,"&.StatusWidget-appear-active":{opacity:1,transition:`opacity 200ms ease-out`},"&.StatusWidget-enter":{opacity:0},"&.StatusWidget-enter-active":{opacity:1,transition:`opacity 200ms ease-out`},"&.StatusWidget-exit":{opacity:1},"&.StatusWidget-exit-active":{opacity:0,transition:`opacity 200ms ease-out`}}),m9=G(`div`,{target:`e192nn07`})({"&::first-letter":{textDecoration:`underline`}}),h9=[{component:Gz,name:`accessible-forward`},{component:Wz,name:`accessibility-new`},{component:Xz,name:`directions-bike`},{component:Zz,name:`directions-run`},{component:nB,name:`pool`},{component:rB,name:`rowing`}],Sje=()=>{let e=new Date,t=e.getMonth(),n=e.getDate();return t===11&&n===31||t===0&&n<=6},Cje=200,wje=()=>{let[e,t]=(0,_.useState)(0),n=fE(),r=(0,_.useMemo)(()=>Sje(),[]);(0,_.useEffect)(()=>{if(r)return;let e=setInterval(()=>{t(e=>(e+1)%h9.length)},Cje);return()=>clearInterval(e)},[r]);let i=h9[e].component;return P(bje,{isNewYears:r,"aria-label":`Running...`,role:`img`,"data-testid":`stStatusWidgetRunningIcon`,children:r?P(`img`,{src:hje,alt:`New Year's Celebration`,style:{width:`100%`,height:`100%`,objectFit:`contain`},"data-testid":`stStatusWidgetNewYearsIcon`}):P(i,{color:n.colors.fadedText60,"aria-hidden":`true`,"data-testid":`stStatusWidgetRunningManIcon`,style:{width:n.sizes.appRunningMen,height:n.sizes.appRunningMen}})})},Tje=500,g9=e=>P(yje,{children:P($k,{kind:xk.HEADER_BUTTON,disabled:e.disabled,containerWidth:!0,onClick:e.onClick,children:e.title})}),Eje=({connectionState:e,scriptRunState:t,rerunScript:n,stopScript:r,allowRunOnSave:i,showScriptChangedActions:a})=>{let[o,s]=(0,_.useState)(!1),c=fE(),{clear:l,restart:u}=VF(()=>{s(!0)},Tje,{autoStart:!1}),d=()=>{i&&n(!0)},f=(e,t)=>{e===`a`&&!Sz(t)&&d()},p=e===I7.CONNECTED,m=()=>{r()},h=()=>{n(!1)};(0,_.useEffect)(()=>{p&&(t===nT.RUNNING||t===nT.RERUN_REQUESTED)?u():l(),t===nT.NOT_RUNNING&&s(!1)},[l,p,u,t]);let g=()=>{let e=t===nT.STOP_REQUESTED;return o?F(p9,{children:[P(wje,{}),P(g9,{title:e?`Stopping...`:`Stop`,disabled:e,onClick:m})]}):P(Ht,{})},v=()=>{let e=t===nT.RERUN_REQUESTED;return P(n8,{keyName:`a`,onKeyDown:f,children:F(p9,{children:[P(hT,{size:`lg`,iconValue:`:material/info:`,color:c.colors.fadedText60}),P(vje,{isPrompt:!0,children:`File change.`}),P(g9,{title:P(m9,{children:`Rerun`}),disabled:e,onClick:h}),i&&P(g9,{title:P(m9,{children:`Always rerun`}),disabled:e,onClick:d})]})})},y=()=>{let t=mje(e);return t===void 0?null:P(fL,{content:t.tooltip,placement:dL.BOTTOM,children:F(gje,{className:`stConnectionStatus`,"data-testid":`stConnectionStatus`,children:[P(uT,{size:`sm`,content:t.icon}),P(_je,{children:t.label})]})})},b=()=>{if(p){if(t===nT.RUNNING||t===nT.RERUN_REQUESTED)return g();if(a)return v()}return y()},x=(0,_.useRef)(),S=(0,_.useRef)(null),C=x.current;if(x.current=b(),Ba(x.current)&&Ba(C))return P(Ht,{});let w,T;return I(x.current)?(w=!0,T=x.current):(w=!1,T=C),P(F7,{appear:!0,in:w,timeout:200,unmountOnExit:!0,classNames:`StatusWidget`,nodeRef:S,children:P(xje,{ref:S,className:`stStatusWidget`,"data-testid":`stStatusWidget`,children:T},`StatusWidget`)})},Dje=(0,_.memo)(({isFullScreen:e,setFullScreen:t,locale:n,mapboxToken:r,enforceDownloadInNewTab:i,resourceCrossOriginMode:a,showErrorLinks:o,pageLinkBaseUrl:s,currentPageScriptHash:c,onPageChange:l,navSections:u,appPages:d,initialSidebarState:f,initialSidebarWidth:p,appLogo:m,sidebarChevronDownshift:h,expandSidebarNav:g,sidebarNavVisibleItems:v,hideSidebarNav:y,appRootRef:b,activeTheme:x,setTheme:S,availableThemes:C,scriptRunState:w,scriptRunId:T,fragmentIdsThisRun:E,formsData:D,backendOperationClient:O,children:k})=>{let A=(0,_.useMemo)(()=>({locale:n,mapboxToken:r,enforceDownloadInNewTab:i,resourceCrossOriginMode:a,showErrorLinks:o}),[n,r,i,a,o]),ee=(0,_.useMemo)(()=>({initialSidebarState:f,initialSidebarWidth:p,appLogo:m,sidebarChevronDownshift:h,expandSidebarNav:g,sidebarNavVisibleItems:v,hideSidebarNav:y,appRootRef:b}),[f,p,m,h,g,v,y,b]),te=(0,_.useMemo)(()=>({activeTheme:x,setTheme:S,availableThemes:C}),[x,S,C]),ne=(0,_.useMemo)(()=>({pageLinkBaseUrl:s,currentPageScriptHash:c,onPageChange:l,navSections:u,appPages:d}),[s,c,l,u,d]),re=(0,_.useMemo)(()=>({isFullScreen:e,setFullScreen:t}),[e,t]),ie=(0,_.useMemo)(()=>({scriptRunState:w,scriptRunId:T,fragmentIdsThisRun:E}),[w,T,E]),ae=(0,_.useMemo)(()=>({formsData:D}),[D]),oe=(0,_.useMemo)(()=>({backendOperationClient:O}),[O]);return P(gT.Provider,{value:A,children:P(tW.Provider,{value:ee,children:P(nW.Provider,{value:te,children:P(XU.Provider,{value:ne,children:P(YU.Provider,{value:oe,children:P(MH.Provider,{value:re,children:P(rT.Provider,{value:ie,children:P(_V.Provider,{value:ae,children:k})})})})})})})})}),_9=function(e){return e.ABOUT=`about`,e.CLEAR_CACHE=`clearCache`,e.CONNECTION_ERROR=`connectionError`,e.SCRIPT_COMPILE_ERROR=`scriptCompileError`,e.WARNING=`w
184arning`,e.DEPLOY_ERROR=`deployError`,e.DEPLOY_DIALOG=`deployDialog`,e}({}),Oje=G(`div`,{target:`e14li120`})(({theme:e})=>({"& > ul":{paddingLeft:e.spacing.twoXL}})),kje=G(`div`,{target:`e14li121`})(({theme:e,hasCodeBelow:t})=>({...t&&{marginBottom:e.spacing.lg}}));function Aje(e){let t=[],n=0,r=0,i=/\[([^\]]+)\]\(([^)]+)\)/g,a;for(;(a=i.exec(e))!==null;)a.index>n&&t.push(P(_.Fragment,{children:e.substring(n,a.index)},r++)),t.push(P(`a`,{href:a[2],target:`_blank`,rel:`noopener noreferrer`,children:a[1]},r++)),n=a.index+a[0].length;return n<e.length&&t.push(P(_.Fragment,{children:e.substring(n)},r)),t}function jje({message:e,codeBlock:t}){return F(Ht,{children:[P(kje,{hasCodeBelow:!!t,children:Aje(e)}),t&&P(lW,{children:t})]})}var Mje=(0,_.memo)(jje),Nje=_.createContext(0);Vy();function v9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?v9(Object(n),!0).forEach(function(t){Pje(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pje(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b9=W(`div`,function(e){var t=e.$theme;return y9({},t.typography.LabelMedium)});b9.displayName=`Action`,b9.displayName=`Action`;var x9=W(`div`,function(e){var t=e.$theme;return y9({marginBottom:t.sizing.scale600,color:t.colors.contentPrimary},t.typography.ParagraphMedium)});x9.displayName=`Body`,x9.displayName=`Body`;var S9=W(`div`,function(e){var t=e.$theme;return{marginLeft:t.sizing.scale600,marginTop:t.sizing.scale600,marginRight:t.sizing.scale600,marginBottom:t.sizing.scale600}});S9.displayName=`Contents`,S9.displayName=`Contents`;var C9=W(`img`,function(e){var t=e.$theme;return{borderTopLeftRadius:t.borders.surfaceBorderRadius,borderTopRightRadius:t.borders.surfaceBorderRadius,objectFit:`contain`,maxWidth:`100%`}});C9.displayName=`HeaderImage`,C9.displayName=`HeaderImage`;var w9=W(`section`,function(e){var t=e.$theme;return{borderLeftWidth:`2px`,borderTopWidth:`2px`,borderRightWidth:`2px`,borderBottomWidth:`2px`,borderLeftStyle:`solid`,borderTopStyle:`solid`,borderRightStyle:`solid`,borderBottomStyle:`solid`,borderLeftColor:t.colors.borderOpaque,borderRightColor:t.colors.borderOpaque,borderTopColor:t.colors.borderOpaque,borderBottomColor:t.colors.borderOpaque,borderTopLeftRadius:t.borders.radius400,borderTopRightRadius:t.borders.radius400,borderBottomLeftRadius:t.borders.radius400,borderBottomRightRadius:t.borders.radius400,backgroundColor:t.colors.backgroundPrimary,overflow:`hidden`}});w9.displayName=`Root`,w9.displayName=`Root`;var T9=W(`img`,function(e){var t=e.$theme;return y9(y9({float:`right`,height:t.sizing.scale2400,width:t.sizing.scale2400,objectFit:`cover`,borderTopLeftRadius:t.borders.surfaceBorderRadius,borderTopRightRadius:t.borders.surfaceBorderRadius,borderBottomLeftRadius:t.borders.surfaceBorderRadius,borderBottomRightRadius:t.borders.surfaceBorderRadius},nv(t.borders.border200)),{},{margin:`0 0 ${t.sizing.scale500} ${t.sizing.scale500}`})});T9.displayName=`Thumbnail`,T9.displayName=`Thumbnail`;var E9=W(`h1`,function(e){var t=e.$theme;return y9(y9({},t.typography.HeadingSmall),{},{color:t.colors.contentPrimary,marginLeft:0,marginTop:0,marginRight:0,marginBottom:t.sizing.scale500,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0})});E9.displayName=`Title`,E9.displayName=`Title`,Jb();var Fje=[`children`],Ije=[`action`,`children`,`hasThumbnail`,`headerImage`,`thumbnail`,`title`,`overrides`];function D9(){return D9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D9.apply(this,arguments)}function O9(e,t){if(e==null)return{};var n=Lje(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lje(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Rje(e){return!!e.thumbnail}var zje=function(e){var t=e.children,n=O9(e,Fje),r=[``,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];return _.createElement(Nje.Consumer,null,function(e){return _.createElement(E9,D9({$as:r[e]},n),t)})};function k9(e){var t=e.action,n=e.children,r=e.hasThumbnail,i=e.headerImage,a=e.thumbnail,o=e.title,s=e.overrides,c=O9(e,Ije),l=s.Action,u=s.Body,d=s.Contents,f=s.HeaderImage,p=s.Root,m=s.Thumbn
184ail,h=s.Title,g=zb(l)||b9,v=zb(u)||x9,y=zb(d)||S9,b=zb(f)||C9,x=zb(p)||w9,S=zb(m)||T9,C=zb(h)||zje,w=typeof i==`string`?{src:i}:i,T=r(e);return _.createElement(x,D9({"data-baseweb":`card`},c,Bb(p)),i&&_.createElement(b,D9({},w,Bb(f))),_.createElement(y,Bb(d),a&&_.createElement(S,D9({src:a},Bb(m))),o&&_.createElement(C,D9({$hasThumbnail:T},Bb(h)),o),_.createElement(v,Bb(u),n),t&&_.createElement(g,Bb(l),t)))}k9.defaultProps={action:null,children:null,hasThumbnail:Rje,overrides:{}};var Bje=`data:image/svg+xml,%3csvg%20width='32'%20height='19'%20viewBox='0%200%2032%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%202'%3e%3cpath%20id='path3858'%20d='M15.998%2011.078L10.3882%208.04522L0.650371%202.78157C0.641482%202.77247%200.623705%202.77248%200.614816%202.77248C0.259259%202.59975%20-0.105186%202.96338%200.0281476%203.32702L4.98994%2016.2698L4.99083%2016.2725C4.99616%2016.2852%205.00061%2016.298%205.00594%2016.3107C5.2095%2016.7934%205.65394%2017.0916%206.1375%2017.2089C6.17839%2017.218%206.20764%2017.2262%206.25673%2017.2362C6.30559%2017.2473%206.37394%2017.2625%206.43261%2017.2671C6.44239%2017.268%206.45128%2017.268%206.46106%2017.2689H6.46817C6.47528%2017.2698%206.48239%2017.2698%206.4895%2017.2707H6.49928C6.5055%2017.2716%206.51261%2017.2716%206.51883%2017.2716H6.53039C6.5375%2017.2725%206.54461%2017.2725%206.55172%2017.2725C12.8348%2017.9731%2019.1763%2017.9731%2025.4593%2017.2725C25.5349%2017.2725%2025.6087%2017.2689%2025.6798%2017.2616C25.7029%2017.2589%2025.7251%2017.2562%2025.7473%2017.2534C25.75%2017.2525%2025.7536%2017.2525%2025.7562%2017.2516C25.7713%2017.2498%2025.7864%2017.2471%2025.8016%2017.2443C25.8238%2017.2416%2025.846%2017.2371%2025.8682%2017.2325C25.9127%2017.2225%2025.9329%2017.2152%2025.9932%2017.194C26.0535%2017.1729%2026.1536%2017.1358%2026.2163%2017.1049C26.279%2017.074%2026.3224%2017.0443%2026.3749%2017.0107C26.4398%2016.9689%2026.5015%2016.9261%2026.5641%2016.8781C26.5911%2016.8569%2026.6096%2016.8434%2026.6291%2016.8243L26.6184%2016.818L15.998%2011.078Z'%20fill='%23FF2B2B'/%3e%3cpath%20id='path5063'%20d='M31.3616%202.78158H31.3527L21.6113%208.04524L27.0265%2016.2935L31.9758%203.32704V3.30886C32.1003%202.92704%2031.7181%202.58158%2031.3616%202.78158Z'%20fill='%237D353B'/%3e%3cpath%20id='path5101'%20d='M16.5171%200.278788C16.2682%20-0.0930318%2015.726%20-0.0930318%2015.486%200.278788L10.3882%208.04518L15.998%2011.0779L26.6291%2016.8242C26.6959%2016.7574%2026.7494%2016.6922%2026.806%2016.6234C26.886%2016.5225%2026.9607%2016.4143%2027.0265%2016.2934L21.6113%208.04518L16.5171%200.278788Z'%20fill='%23BD4043'/%3e%3c/g%3e%3c/svg%3e`,Vje=`data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%3e%3cpath%20id='Vector'%20d='M5.95077%2010.7642L8.09076%2011.6685C8.34683%2011.157%208.61204%2010.6637%208.8864%2010.1887C9.16076%209.71374%209.46256%209.23875%209.79179%208.76376L8.25538%208.46232L5.95077%2010.7642ZM9.84666%2013.0387L12.9743%2016.1352C13.7426%2015.8429%2014.5656%2015.3954%2015.4436%2014.7925C16.3215%2014.1896%2017.1446%2013.5045%2017.9128%2012.7372C19.1931%2011.4584%2020.1946%2010.038%2020.917%208.47602C21.6395%206.91403%2021.955%205.47536%2021.8636%204.16C20.5466%204.06866%2019.1017%204.38379%2017.5287%205.10541C15.9557%205.82703%2014.529%206.82726%2013.2487%208.10608C12.4805%208.87337%2011.7946%209.69547%2011.191%2010.5724C10.5874%2011.4493%2010.1393%2012.2714%209.84666%2013.0387ZM14.7302%2011.2575C14.3096%2010.8373%2014.0992%2010.3212%2014.0992%209.70917C14.0992%209.09716%2014.3096%208.58107%2014.7302%208.16088C15.1509%207.7407%2015.6722%207.53061%2016.2941%207.53061C16.916%207.53061%2017.4373%207.7407%2017.8579%208.16088C18.2786%208.58107%2018.489%209.09716%2018.489%209.70917C18.489%2010.3212%2018.2786%2010.8373%2017.8579%2011.2575C17.4373%2011.6776%2016.916%2011.8877%2016.2941%2011.8877C15.6722%2011.8877%2015.1509%2011.6776%2014.7302%2011.2575ZM15.2515%2020.0539L17.5561%2017.752L17.2543%2016.2175C16.7788%2016.5463%2016.3032%2016.8432%2015.8277%2017.1081C15.3521%2017.373%2014.8583%2017.6333%2014.3461%2017.8891L15.2515%2020.0539ZM23.839%202.15956C24.1865%204.37009%2023.9716%206.52125%2023.1942%208.61304C22.4169%2010.7048%2
184021.0771%2012.7007%2019.1749%2014.6007L19.7236%2017.3136C19.7967%2017.679%2019.7784%2018.0352%2019.6687%2018.3823C19.559%2018.7294%2019.3761%2019.0309%2019.12%2019.2866L14.5108%2023.8904L12.2061%2018.4919L7.51461%2013.806L2.10974%2011.5041L6.69153%206.90033C6.9476%206.64457%207.25397%206.46188%207.61064%206.35227C7.9673%206.24265%208.32854%206.22438%208.69435%206.29746L11.4105%206.84553C13.3127%204.94556%2015.3064%203.6028%2017.3915%202.81724C19.4767%202.03168%2021.6258%201.81245%2023.839%202.15956ZM4.05769%2017.2862C4.69786%2016.6468%205.47978%2016.3225%206.40346%2016.3134C7.32713%2016.3042%208.10905%2016.6194%208.74922%2017.2588C9.38939%2017.8982%209.70491%2018.6792%209.69576%2019.6018C9.68662%2020.5243%209.36196%2021.3053%208.72179%2021.9448C8.26452%2022.4015%207.50089%2022.7943%206.43089%2023.1231C5.36089%2023.4519%203.88393%2023.7442%202%2024C2.25607%2022.1183%202.54872%2020.6431%202.87795%2019.5744C3.20718%2018.5056%203.60043%2017.7429%204.05769%2017.2862ZM5.62154%2018.8208C5.43863%2019.0035%205.25572%2019.3369%205.07282%2019.821C4.88991%2020.3051%204.76188%2020.7938%204.68872%2021.2871C5.18256%2021.214%205.67183%2021.0907%206.15653%2020.9171C6.64123%2020.7436%206.97504%2020.5655%207.15794%2020.3828C7.37743%2020.1635%207.49632%2019.8986%207.51461%2019.5881C7.5329%2019.2775%207.4323%2019.0126%207.21282%2018.7934C6.99333%2018.5741%206.72812%2018.4691%206.41718%2018.4782C6.10624%2018.4874%205.84102%2018.6015%205.62154%2018.8208Z'%20fill='%23A3A8B8'/%3e%3c/g%3e%3c/svg%3e`,Hje=``+new URL(`../media/snowflake.JU2jBHL8.svg`,import.meta.url).href;function Uje(){return{title:`Unable to deploy`,body:F(Ht,{children:[P(`p`,{children:`This Git tree is in a detached HEAD state.`}),P(`p`,{children:`Please commit the latest changes and push to GitHub to continue.`})]})}}function Wje(e){return{title:`Unable to deploy`,body:P(QL,{source:` 185The app's main file \`${e}\` has 186not been pushed to GitHub. Please add it to continue. 187`,allowHTML:!1})}}var Gje=`https://share.streamlit.io/deploy`,Kje=`https://streamlit.io/cloud`,A9=`https://share.streamlit.io/cloud-getting-started`,qje=`https://share.streamlit.io/deployment-tutorial`,Jje=`https://share.streamlit.io/sis-about`,Yje=`https://share.streamlit.io/snowflake-trial`,Xje=G(`p`,{target:`euwf8ug0`})({textAlign:`justify`});function j9(){return{title:`Unable to deploy`,body:F(Xje,{children:[`The appâs code is not connected to a remote GitHub repository. To deploy on Streamlit Community Cloud, please put your code in a GitHub repository and publish the current branch. Read more in`,` `,P(`a`,{href:A9,rel:`noopener noreferrer`,target:`_blank`,children:`our documentation`}),`.`]})}}function M9(e){let{colors:t,spacing:n,radii:r,breakpoints:i,sizes:a}=fE(),{children:o}=e;return P(k9,{overrides:{Root:{style:{borderTopWidth:a.borderWidth,borderBottomWidth:a.borderWidth,borderLeftWidth:a.borderWidth,borderRightWidth:a.borderWidth,borderTopStyle:`solid`,borderBottomStyle:`none`,borderLeftStyle:`none`,borderRightStyle:`solid`,borderTopColor:t.borderColor,borderBottomColor:t.borderColor,borderLeftColor:t.borderColor,borderRightColor:t.borderColor,borderTopLeftRadius:`none`,borderTopRightRadius:`none`,borderBottomLeftRadius:`none`,borderBottomRightRadius:`none`,":last-child":{borderRightStyle:`none`,borderBottomRightRadius:r.xl},":first-child":{borderBottomLeftRadius:r.xl},[`@media (max-width: ${i.md})`]:{":last-child":{borderBottomLeftRadius:r.xl}}}},Contents:{style:{marginBottom:0,marginTop:0,marginLeft:0,marginRight:0,height:`100%`}},Body:{style:{padding:n.twoXL,marginBottom:0,marginTop:0,marginLeft:0,marginRight:0,height:`100%`,display:`flex`,flexDirection:`column`,[`@media (max-width: ${i.md})`]:{padding:n.xl}}}},children:o})}var Zje=`data:image/svg+xml,%3csvg%20width='12'%20height='9'%20viewBox='0%200%2012%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.00009%206.78L1.68676%204.46667C1.42676%204.20667%201.00676%204.20667%200.746758%204.46667C0.486758%204.72667%200.486758%205.14667%200.746758%205.40667L3.53342%208.19334C3.79342%208.45334%204.21342%208.45334%204.47342%208.19334L11.5268%201.14C11.7868%200.880005%2011.7868%200.460005%2011.5268%200.200005C11.2668%20-0.0599951%2010.8468%20-0.0599951%2010.5868%200.200005L4.00009%206.78Z'%20fill='%23808495'/%3e%3c/svg%3e`,N9=G(`div`,{target:`ep91p7v0`})(({theme:e})=>({fontFamily:e.fonts.sansSerif,fontWeight:e.fontWeights.bold,fontSize:e.fontSizes.lg,marginTop:e.spacing.twoXL,marginBottom:e.spacing.twoXS,[`@media (max-width: ${e.breakpoints.md})`]:{marginTop:e.spacing.md}})),P9=G(`div`,{target:`ep91p7v1`})(({theme:e})=>({fontFamily:e.fonts.sansSerif,fontWeight:e.fontWeights.normal,fontSize:e.fontSizes.md,marginTop:e.spacing.twoXS,marginBottom:e.spacing.md,[`@media (max-width: ${e.breakpoints.md})`]:{marginTop:e.spacing.md}})),Qje=G(`div`,{target:`ep91p7v2`})(({theme:e})=>({display:`grid`,maxWidth:`calc(1.25 * ${e.sizes.contentMaxWidth})`,gridTemplateColumns:`1fr 1fr 1fr`,gridGap:e.spacing.none,[`@media (max-width: ${e.breakpoints.md})`]:{gridTemplateColumns:`1fr`}})),$je=G(`div`,{target:`ep91p7v3`})(({theme:e})=>({display:`inline-flex`,marginTop:e.spacing.sm,"& > span":{fontFamily:e.fonts.sansSerif,fontWeight:e.fontWeights.normal,fontSize:e.fontSizes.md,marginLeft:e.spacing.twoXL,color:e.colors.gray70},"& > img":{position:`absolute`,marginTop:e.spacing.sm}})),F9=G(`div`,{target:`ep91p7v4`})(({theme:e})=>({display:`flex`,marginTop:e.spacing.threeXL,"& > button":{marginRight:e.spacing.twoXL},[`@media (max-width: ${e.breakpoints.md})`]:{marginTop:e.spacing.xl}}));function I9(e){let{children:t}=e;return F($je,{children:[P(`img`,{src:Zje,alt:`Checkmark`}),P(`span`,{children:t})]})}function eMe({children:e}){let{colors:t,fontSizes:n,spacing:r}=fE();return P(QO,{style:{marginTop:r.none,marginLeft:r.none,marginRight:r.none,marginBottom:r.none,paddingTop:r.md,paddingRight:r.none,paddingBottom:r.none,paddingLeft:r.none,color:t.bodyText,fontSize:n.md,overflowY:`auto`}
187,children:e})}function tMe(e){let{children:t,onClose:n}=e;return F(oA,{isOpen:!0,closeable:!0,onClose:n,size:`auto`,children:[P(tA,{children:`Deploy this app using...`}),P(eMe,{children:t})]})}var{GitStates:L9}=Uo,R9=e=>{window.open(e,`_blank`)},nMe=e=>{if(e){let t=new URL(Gje);return t.searchParams.set(`repository`,e.repository??``),t.searchParams.set(`branch`,e.branch??``),t.searchParams.set(`mainModule`,e.module??``),t.toString()}return Kje};function rMe(e){let{gitInfo:t,onClose:n,metricsMgr:r,showDeployError:i,isDeployErrorModalOpen:a}=e,o=(0,_.useCallback)(()=>{if(r.enqueue(`menuClick`,{label:`deployButtonInDialog`}),!t){let e=j9();i(e.title,e.body);return}let{repository:e,branch:o,module:s,untrackedFiles:c,state:l}=t;if((!e||!o||!s)&&l===L9.DEFAULT){let e=j9();i(e.title,e.body);return}if(l===L9.HEAD_DETACHED){let e=Uje();i(e.title,e.body);return}if(s&&c?.includes(s)){let e=Wje(s);i(e.title,e.body);return}a&&n(),R9(nMe(t))},[r,t,a,i,n]);return P(tMe,{onClose:n,children:F(Qje,{children:[F(M9,{children:[F(x9,{style:{flexGrow:1},children:[P(`img`,{src:Bje,alt:`Streamlit Logo`,"data-testid":`stDeployDialogCommunityCloudIcon`}),P(N9,{children:`Streamlit Community Cloud`}),P(P9,{children:`For community, always free`}),P(I9,{children:`For personal hobbies and learning`}),P(I9,{children:`Deploy unlimited public apps`}),P(I9,{children:`Explore and learn from Streamlitâs community and popular apps`})]}),P(b9,{children:F(F9,{children:[P($k,{kind:xk.PRIMARY,onClick:o,children:`Deploy now`}),P($k,{onClick:()=>{r.enqueue(`menuClick`,{label:`readMoreCommunityCloudInDeployDialog`}),R9(A9)},kind:xk.MINIMAL,children:`Learn more`})]})})]}),F(M9,{children:[F(x9,{style:{flexGrow:1},children:[P(`img`,{src:Hje,alt:`Snowflake`,"data-testid":`stDeployDialogSnowflakeDeploymentIcon`}),P(N9,{children:`Snowflake`}),P(P9,{children:`For enterprise`}),P(I9,{children:`Enterprise-level security, support, and fully managed infrastructure`}),P(I9,{children:`Deploy unlimited private apps with role-based sharing`}),P(I9,{children:`Integrate with Snowflakeâs full data stack`})]}),P(b9,{children:F(F9,{children:[P($k,{kind:xk.SECONDARY,onClick:()=>{r.enqueue(`menuClick`,{label:`startTrialInDeployDialog`}),R9(Yje)},children:`Start trial`}),P($k,{onClick:()=>{r.enqueue(`menuClick`,{label:`learnMoreSnowflakeInDeployDialog`}),R9(Jje)},kind:xk.MINIMAL,children:`Learn more`})]})})]}),F(M9,{children:[F(x9,{style:{flexGrow:2},children:[P(`img`,{src:Vje,alt:`Rocket`,"data-testid":`stDeployDialogCustomDeploymentIcon`}),P(N9,{children:`Other platforms`}),P(P9,{children:`For custom deployment `}),P(I9,{children:`Deploy on your own hardware or cloud service`}),P(I9,{children:`Set up and maintain your own authentication, resources, and costs`})]}),P(b9,{children:P(F9,{children:P($k,{onClick:()=>{r.enqueue(`menuClick`,{label:`readMoreDeployTutorialInDeployDialog`}),R9(qje)},kind:xk.MINIMAL,children:`Learn more`})})})]})]})})}function iMe(e){switch(e.type){case _9.ABOUT:return P(aMe,{...e});case _9.CLEAR_CACHE:return P(oMe,{...e});case _9.SCRIPT_COMPILE_ERROR:return P(sMe,{...e});case _9.WARNING:case _9.CONNECTION_ERROR:return P(cMe,{...e});case _9.DEPLOY_DIALOG:return P(rMe,{...e});case _9.DEPLOY_ERROR:return P(lMe,{...e});case void 0:return uMe(e);default:return dMe(e)}}function aMe(e){return F(oA,{isOpen:!0,onClose:e.onClose,children:[P(tA,{children:`About`}),P(nA,{children:e.aboutSectionMd&&P(QL,{source:e.aboutSectionMd,allowHTML:!1})})]})}function oMe(e){let t=[`**Are you sure you want to clear the app's function caches?**`,`This will remove all cached entries from functions using`,"`@st.cache_data` and `@st.cache_resource`."].join(` 188`);return P(`div`,{"data-testid":`stClearCacheDialog`,children:F(oA,{isOpen:!0,onClose:e.onClose,children:[P(tA,{children:`Clear caches`}),P(nA,{children:P(QL,{source:t,allowHTML:!1})}),F(rA,{children:[P(iA,{autoFocus:!0,kind:xk.GHOST,onClick:e.onClose,children:`Cancel`}),P(iA,{kind:xk.SECONDARY,onClick:e.confirmCallback,children:`Clear caches`})]})]})})}function sMe(e){return F(oA,{isOpen:!0,onClose:e.onClose,size:`auto`,autoFocus:!1,children:[P(tA,{children:`Script execution error`}),P(nA,{children:P(lW,{children:e.exception?.message?e.exception.message:`No message`})}),P(rA,{children:P(iA,{kind:xk.SECONDARY,onClick:e.onClose,children:`Close`})})]})}function cMe(e){return F(oA,{isOpen:!0,onClose:e.onClose,children:[P(tA,{children:e.title}),P(nA,{children:e.msg})]})}function lMe({title:e,msg:t,onClose:n,onContinue:r,onTryAgain:i}){return F(oA,{isOpen:!0,onClose:n,children:[P(tA,{children:e}),P(nA,{children:P(Oje,{children:t})}),F(rA,{children:[P(iA,{kind:xk.GHOST,onClick:i,children:`Try again`}),P(iA,{kind:xk.SECONDARY,onClick:()=>{n(),r&&r()},children:r?`Continue anyway`:`Close`})]})]})}function uMe({onClose:e}){return P(oA,{isOpen:!1,onClose:e})}function dMe(e){return P(oA,{isOpen:!0,onClose:e.onClose,children:P(nA,{children:`Dialog type "${e.type}" not recognized.`})})}var fMe=G(`div`,{target:`epm40z20`})(({theme:e})=>({display:`flex`,gap:e.spacing.sm,alignItems:`center`,lineHeight:e.iconSizes.md})),pMe=G(`div`,{target:`epm40z21`})(({theme:e,icon:t})=>({background:`url("${t}") no-repeat center / contain`,width:e.iconSizes.base,height:e.iconSizes.base})),mMe=G(`div`,{target:`epm40z22`})({display:`flex`,alignItems:`center`,flexDirection:`row`});function hMe({label:e,icon:t,onClick:n}){return P(`div`,{className:`stToolbarActionButton`,"data-testid":`stToolbarActionButton`,children:P($k,{onClick:n,kind:xk.HEADER_BUTTON,children:F(fMe,{children:[t&&P(pMe,{"data-testid":`stToolbarActionButtonIcon`,icon:t}),e&&P(`span`,{"data-testid":`stToolbarActionButtonLabel`,children:e})]})})})}function gMe({sendMessageToHost:e,hostToolbarItems:t,metricsMgr:n}){return P(mMe,{className:`stToolbarActions`,"data-testid":`stToolbarActions`,children:t.map(({key:t,label:r,icon:i})=>P(hMe,{label:r,icon:i,onClick:()=>{n.enqueue(`menuClick`,{label:t}),e({type:`TOOLBAR_ITEM_CALLBACK`,key:t})}},t))})}var _Me=Aa(`0%{opacity:0;}25%{opacity:1;}100%{opacity:0;}`),z9=G(`div`,{target:`erg7rn60`})(({theme:e})=>({position:`fixed`,display:`flex`,justifyContent:`center`,alignItems:`center`,top:0,left:0,width:e.sizes.full,height:e.sizes.full,fontSize:`40vh`,color:e.colors.redTextColor,fontWeight:e.fontWeights.bold,opacity:`0.8`,textShadow:`1px 1px 10px ${e.colors.grayTextColor}`,transition:`opacity 0.3s ease-in-out`,animation:`${_Me} 1s`})),vMe=({countdown:e,endCallback:t})=>{let[n,r]=(0,_.useState)(e);return P(z9,{"data-testid":`stCountdown`,onAnimationEnd:()=>{let e=n-1;e>=0&&r(e),e===0&&t()},children:P(`span`,{children:n})},`frame${n}`)},yMe=G(`label`,{target:`erxc94j0`})({margin:0}),bMe=G(`div`,{target:`erxc94j1`})({margin:0}),xMe=({onClose:e,toggleRecordAudio:t,recordAudio:n,startRecording:r})=>{let[i,a]=(0,_.useState)(n),o=(0,_.useCallback)(e=>{let{checked:n}=e.target;n!==i&&(a(n),t())},[i,t]),s=(0,_.useCallback)(()=>{r(),e()},[r,e]);return F(oA,{isOpen:!0,onClose:e,children:[P(tA,{children:`Record a screencast`}),F(nA,{children:[P(`p`,{children:`This will record a video with the contents of your screen, so you can easily share what you're seeing with others.`}),P(`p`,{children:F(yMe,{"data-testid":`stScreencastAudioCheckbox`,children:[P(`input`,{type:`checkbox`,name:`recordAudio`,"aria-label":`Also record audio`,checked:i,onChange:o}),` `,`Also record audio`]})}),P(bMe,{"data-testid":`stScreencastInstruction`,children:P(QL,{source:"Press `Esc` any time to stop recording.",allowHTML:!1})})]}),P(rA,{children:P(iA,{kind:xk.SECONDARY,onClick:s,children:`Start recording!`})})]})},SMe=G(`div`,{target:`e15jpqoz0`})({display:`flex`}),CMe=G(`div`,{target:`e15jpqoz1`})(({theme:e})=>({display:`flex`,alignItems:`center`,justifyItems:`center`,marginRight:e.spacing.twoXL,marginLeft:e.spacing.sm,fontSize:e.fontSizes.fourXL})),wMe=G(`p`,{target:`e15jpqoz2`})(({theme:e})=>({margin:e.spacing.none})),TMe=(0,_.memo)(({onClose:e})=>F(oA,{isOpen:!0,onClose:e,children:[P(tA,{children:`Record a screencast`}),P(nA,{children:F(SMe,{"data-testid":`stUnsupportedBrowserDialog`,children:[P(CMe,{children:P(`span`,{role:`img`,"aria-label":`Alien Monster`,children:`ð¾`})}),P(wMe,{children:`Due to limitations with some browsers, this feature is only supported on recent desktop versions of Chrome, Firefox, and Edge.`})]})})]})),EMe=G(`video`,{target:`e13wfkbd0`})(({theme:e})=>({width:e.sizes.full,borderRadius:e.radii.sm})),DMe=G(`div`,{target:`e13wfkbd1`})(({theme:e})=>({display:`flex`,flexDirection:`column`,width:e.sizes.full})),B9=G(`div`,{target:`e13wfkbd2`})(({theme:e})=>({display:`flex`,flexDirection:`row`,paddingTop:e.spacing.md,paddingBottom:e.spacing.md})),V9=G(`div`,{target:`e13wfkbd3`})(({theme:e})=>({paddingRight:e.spacing.lg,textAlign:`right`,color:e.colors.grayTextColor,fontWeight:e.fontWeights.bold,width:`6em`})),H9=G(`div`,{target:`e13wfkbd4`})(({theme:e})=>({flex:1,paddingRight:e.spacing.lg,marginRight:`6em`,[`@media (max-width: ${e.breakpoints.sm})`]:{marginRight:e.spacing.none}})),OMe=G(`p`,{target:`e13wfkbd5`})(({theme:e})=>({marginTop:e.spacing.sm,marginBottom:e.spacing.none,fontSize:e.fontSizes.sm})),kMe=G(`div`,{target:`e13wfkbd6`})(({theme:e})=>({marginTop:e.spacing.twoXS})),AMe=({onClose:e,videoBlob:t,fileName:n})=>{let[r,i]=(0,_.useState)(``);return(0,_.useEffect)(()=>{let e=URL.createObjectURL(t);return i(e),()=>URL.revokeObjectURL(e)},[t]),F(oA,{isOpen:!0,onClose:e,overrides:{Dialog:{style:{width:`80vw`}}},children:[P(tA,{children:`Next steps`}),P(nA,{children:F(DMe,{"data-testid":`stVideoRecordedDialog`,children:[F(B9,{children:[P(V9,{children:`Step 1`}),F(H9,{children:[P(`p`,{children:`Preview your video below:`}),P(EMe,{src:r,controls:!0})]})]}),F(B9,{children:[P(V9,{children:`Step 2`}),F(H9,{children:[P(kMe,{children:P($k,{kind:xk.SECONDARY,onClick:()=>{let t=document.createElement(`a`);t.setAttribute(`href`,r),t.setAttribute(`download`,`${n}.webm`),t.click(),e()},children:`Save video to disk`})}),F(OMe,{children:[`This video is encoded in the`,` `,P(`a`,{href:`https://www.webmproject.org/`,children:`WebM format`}),`, which is only supported by newer video players. You can also play it by dragging the file directly into your browser.`]})]})]}),F(B9,{children:[P(V9,{children:`Step 3`}),F(H9,{children:[`Share your video with the world on Twitter, LinkedIn, YouTube, or just plain email!`,` `,P(`span`,{role:`img`,"aria-label":`Happy`,children:`ð`})]})]})]})})]})},U9=(0,Zt.getLogger)(`withScreencast`);function jMe(e){let t=t=>{let{testOverride:n}=t,r=(0,_.useRef)(null),[i,a]=(0,_.useState)(`streamlit-screencast`),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(void 0),[u,d]=(0,_.useState)(n||`OFF`),f=(0,_.useCallback)(()=>{s(e=>!e)},[]),p=(0,_.useCallback)(async()=>
188{if(!(u===`OFF`||Ba(r.current))){if(u===`COUNTDOWN`){d(`OFF`);return}if(u===`RECORDING`){let e=r.current;!e||e.getState()===`inactive`?d(`OFF`):(l(await e.stop()),d(`PREVIEW_FILE`))}}},[u]),m=(0,_.useCallback)(async()=>{if(!b7.isSupportedBrowser()){d(`UNSUPPORTED`);return}r.current=new b7({recordAudio:o,onErrorOrStop:()=>{p().catch(e=>U9.warn(`withScreencast.stopRecording threw an error: ${e}`))}});try{await r.current.initialize()}catch(e){U9.warn(`ScreenCastRecorder.initialize error: ${e}`),d(`UNSUPPORTED`);return}d(`COUNTDOWN`)},[o,p]),h=(0,_.useCallback)(e=>{if(!b7.isSupportedBrowser()){d(`UNSUPPORTED`);return}if(u===`OFF`){a(e),d(`SETUP`);return}p().catch(e=>U9.warn(`withScreencast.stopRecording threw an error: ${e}`))},[u,p]),g=(0,_.useCallback)(()=>{if(Ba(r.current))throw Error(`Countdown finished but recorder is null`);r.current.start()?d(`RECORDING`):p().catch(e=>U9.warn(`withScreencast.stopRecording threw an error: ${e}`))},[p]),v=(0,_.useCallback)(()=>{d(`OFF`)},[]),y={currentState:u,toggleRecordAudio:f,startRecording:h,stopRecording:p};return F(`div`,{className:`withScreencast`,"data-testid":`stScreencast`,children:[P(e,{...t,screenCast:y}),u===`UNSUPPORTED`&&P(TMe,{onClose:v}),u===`SETUP`&&P(xMe,{recordAudio:o,onClose:v,startRecording:m,toggleRecordAudio:f}),u===`COUNTDOWN`&&P(vMe,{countdown:3,endCallback:g}),u===`PREVIEW_FILE`&&c&&P(AMe,{onClose:v,videoBlob:c,fileName:i})]})};return t.displayName=`withScreencast(${e.displayName||e.name||`Component`})`,(0,Vt.default)(t,e)}var MMe=()=>{let{activeTheme:e}=(0,_.useContext)(nW),{innerWidth:t}=eZ();return{isMobile:t<parseInt(e.emotion.breakpoints.md,10)}},NMe=`https://data.streamlit.io/metrics.json`,W9=(0,Zt.getLogger)(`MetricsManager`),PMe=class{constructor(e){this.initialized=!1,this.actuallySendMetrics=!1,this.metricsUrl=void 0,this.sendMessageToHost=()=>{},this.anonymousId=``,this.pendingEvents=[],this.appHash=`Not initialized`,this.metadata={},this.setAppHash=e=>{this.appHash=e},this.setMetricsConfig=(e=``)=>{this.metricsUrl=e},this.sessionInfo=e}async initialize({gatherUsageStats:e,sendMessageToHost:t}){this.sendMessageToHost=t,this.actuallySendMetrics=e&&this.metricsUrl!==`off`,this.getAnonymousId(),this.actuallySendMetrics&&!this.metricsUrl&&(await this.requestDefaultMetricsConfig(),this.metricsUrl||(W9.error(`Undefined metrics config - deactivating metrics tracking.`),this.actuallySendMetrics=!1)),this.actuallySendMetrics&&this.sendPendingEvents(),W9.info(`Gather usage stats: `,this.actuallySendMetrics),this.initialized=!0}enqueue(e,t={}){if(!this.initialized||!this.sessionInfo.isSet){this.pendingEvents.push([e,t]);return}this.actuallySendMetrics&&(this.pendingEvents.length&&this.sendPendingEvents(),this.send(e,t))}setMetadata(e){this.metadata=e}async requestDefaultMetricsConfig(){let e=Pa();if(e){let e=window.localStorage.getItem(`stMetricsConfig`);if(e){this.metricsUrl=e;return}}try{let t=await fetch(NMe,{signal:AbortSignal.timeout(5e3)});if(!t.ok)this.metricsUrl=void 0,W9.error(`Failed to fetch metrics config: `,t.status);else{let n=await t.json();this.metricsUrl=n.url??void 0,e&&this.metricsUrl&&window.localStorage.setItem(`stMetricsConfig`,this.metricsUrl)}}catch(e){W9.error(`Failed to fetch metrics config:`,e)}}send(e,t={}){let n=this.buildEventProto(e,t);this.metricsUrl===`postMessage`?this.postMessageEvent(e,n):this.track(n)}sendPendingEvents(){this.pendingEvents.forEach(([e,t])=>{this.send(e,t)}),this.pendingEvents=[]}async track(e){let t=new Request(this.metricsUrl,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e.toJSON())});await fetch(t)}postMessageEvent(e,t){this.sendMessageToHost({type:`METRICS_EVENT`,eventName:e,data:t})}buildEventProto(e,t){let n=new Xo({event:e,anonymousId:this.anonymousId,...this.getHostTrackingData(),...this.getInstallationData(),reportHash:this.appHash,dev:!1,source:`browser`,streamlitVersion:this.sessionInfo.current.streamlitVersion,isHello:this.sessionInfo.isHello,appId:this.sessionInfo.current.appId,sessionId:this.sessionInfo.current.sessionId,pythonVersion:this.sessionInfo.current.pythonVersion,serverOs:this.sessionInfo.current.serverOS,hasDisplay:this.sessionInfo.current.hasDisplay,isWebdriver:FMe(),...this.getContextData()});if(e===`menuClick`)n.label=t.label;else if(e===`pageProfile`)return new Xo({...n,...t});return n}getInstallationData(){return{machineIdV3:this.sessionInfo.current.installationIdV3,machineIdV4:this.sessionInfo.current.installationIdV4}}getHostTrackingData(){return this.metadata?$h(this.metadata,[`hostedAt`,`owner`,`repo`,`branch`,`mainModule`,`creatorId`]):{}}getContextData(){return{contextPageUrl:window.location.href,contextPageTitle:document.title,contextPagePath:window.location.pathname,contextPageReferrer:document.referrer,contextPageSearch:window.location.search,contextLocale:window.navigator.language,contextUserAgent:window.navigator.userAgent}}
188getAnonymousId(){if(!this.actuallySendMetrics)return;let e=`ajs_anonymous_id`,t=Pa(),n=Na(e),r=t?window.localStorage.getItem(e):null,i=new Date;if(i.setFullYear(new Date().getFullYear()+1),n)this.anonymousId=n,t&&window.localStorage.setItem(e,n);else if(r){try{this.anonymousId=JSON.parse(r)}catch{this.anonymousId=r}Dg(e,this.anonymousId,i)}else this.anonymousId=q4(),Dg(e,this.anonymousId,i),t&&window.localStorage.setItem(e,this.anonymousId)}};function FMe(){return window.navigator?.webdriver??!1}var IMe=class{constructor(){this.onSessionEvent=new X6.Signal}handleSessionEventMsg(e){this.onSessionEvent.emit(e)}},LMe=G(`div`,{target:`e1vju3fw0`})(({theme:e})=>{let t=zC(e);return{position:`absolute`,background:e.colors.bgColor,color:e.colors.bodyText,top:e.spacing.none,left:e.spacing.none,right:e.spacing.none,bottom:e.spacing.none,colorScheme:t?`light`:`dark`,overflow:`hidden`,"@media print":{float:`none`,height:e.sizes.full,position:`static`,overflow:`visible`}}});function RMe(){let e=new sZ.default().getResult();return{browserName:e.browser.name||`Unknown`,browserVersion:e.browser.version||`Unknown`,deviceType:e.device.type||`desktop`,os:e.os.name||`Unknown`}}var G9=(e,t)=>t==Ko.ToolbarMode.DEVELOPER?!0:Ko.ToolbarMode.VIEWER==t||Ko.ToolbarMode.MINIMAL==t?!1:e||Va();function K9(e){return e||`Streamlit`}var zMe=class{constructor(e,t,n,r){this.hostCommunicationMgr=e,this.onUpdatePageUrl=t,this.onPageNotFound=n,this.onPageIconChange=r,this.isPageIconSet=!1,this.isPageTitleSet=!1,this.hasSetDefaultFavicon=!1,this.mainScriptHash=null,this.appPages=[],this.mainPage=null,this.hideSidebarNav=null}handleNewSession(e){return this.mainScriptHash!==e.mainScriptHash&&(this.isPageTitleSet=!1,this.isPageIconSet=!1,this.hasSetDefaultFavicon=!1),this.mainScriptHash=e.mainScriptHash,this.hideSidebarNav===null&&(this.hideSidebarNav=e.config?.hideSidebarNav??null),document.title=K9(``),[{currentPageScriptHash:e.pageScriptHash,hideSidebarNav:this.hideSidebarNav??!1},()=>{}]}handleNavigation(e){let{sections:t,position:n,appPages:r}=e;this.appPages=r,this.hideSidebarNav=n===Go.Position.HIDDEN;let i=e.pageScriptHash,a=r.find(e=>e.pageScriptHash===i),o=r.find(e=>e.isDefault);this.mainPage=o;let s=a.urlPathname;if(!this.isPageTitleSet){let e=K9(a.pageName);document.title=e,this.hostCommunicationMgr.sendMessageToHost({type:`SET_PAGE_TITLE`,title:a.pageName??``})}return!this.isPageIconSet&&a.icon&&this.onPageIconChange(a.icon),[{appPages:r,navSections:t,hideSidebarNav:this.hideSidebarNav,expandSidebarNav:e.expanded,sidebarNavVisibleItems:e.visibleItems??void 0,currentPageScriptHash:i},()=>{this.onUpdatePageUrl(o.urlPathname??``,s,a.isDefault??!1),this.hostCommunicationMgr.sendMessageToHost({type:`SET_APP_PAGES`,appPages:r}),this.hostCommunicationMgr.sendMessageToHost({type:`SET_CURRENT_PAGE_NAME`,currentPageName:a.isDefault?``:s,currentPageScriptHash:i})}]}handlePageNotFound(e){return this.onPageNotFound(e),[{currentPageScriptHash:this.mainScriptHash??``},()=>{this.hostCommunicationMgr.sendMessageToHost({type:`SET_CURRENT_PAGE_NAME`,currentPageName:``,currentPageScriptHash:this.mainScriptHash??``})}]}findPageByUrlPath(e){let t;try{t=decodeURIComponent(e)}catch{t=e}return this.appPages.find(e=>t.endsWith(`/`+e.urlPathname))??this.mainPage}handlePageConfigChanged(e){e.favicon&&(this.isPageIconSet=!0),e.title&&(this.isPageTitleSet=!0)}clearPageElements(e,t){return e.filterMainScriptElements(t)}};function q9(e){return Object.entries(e).reduce((e,[t,n])=>(n!==void 0&&(e[t]=n),e),{})}function J9(e,t){return e??t}function BMe(e,t){if(!e)return t;let n=Fa(e.allowedOrigins)?e.allowedOrigins:void 0;return{...t,allowedOrigins:J9(n,t.allowedOrigins),useExternalAuthToken:J9(e.useExternalAuthToken,t.useExternalAuthToken),enableCustomParentMessages:J9(e.enableCustomParentMessages,t.enableCustomParentMessages),blockErrorDialogs:J9(e.blockErrorDialogs,t.blockErrorDialogs),mapboxToken:J9(e.mapboxToken,t.mapboxToken),disableFullscreenMode:J9(e.disableFullscreenMode,t.disableFullscreenMode),enforceDownloadInNewTab:J9(e.enforceDownloadInNewTab,t.enforceDownloadInNewTab),resourceCrossOriginMode:J9(e.resourceCrossOriginMode,t.resourceCrossOriginMode),setAnonymousCrossOriginPropertyOnMediaElements:t.setAnonymousCrossOriginPropertyOnMediaElements,metricsUrl:J9(e.metricsUrl,t.metricsUrl)}}var Y9=`<null>`,X9=(0,Zt.getLogger)(`App`),VMe=jMe(class extends _.PureComponent{constructor(e){super(e),this.sessionInfo=new Y4,this.metricsMgr=new PMe(this.sessionInfo),this.sessionEventDispatcher=new IMe,this.embeddingId=Dne(),this.appRootRef=(0,_.createRef)(),this.isInitializingConnectionManager=!0,this.hasReceivedNewSession=!1,this.showDeployError=(e,t,n
188)=>{let r={type:_9.DEPLOY_ERROR,title:e,msg:t,onContinue:n,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg};this.openDialog(r)},this.handleThemeMessage=(e,t)=>{let[,n,r]=Tw(),i=Ew(this.props.theme.activeTheme);e===n.name&&i?this.props.theme.setTheme(n):e===r.name&&i?this.props.theme.setTheme(r):t&&this.props.theme.setImportedTheme(t)},this.handleConnectionStateChanged=e=>{if(X9.info(`Connection state changed from ${this.state.connectionState} to ${e}`),e===I7.CONNECTED){X9.info(`Reconnected to server.`),this.state.connectionErrorDismissed&&this.setState({connectionErrorDismissed:!1});let e=this.state.scriptRunState===nT.RUNNING,t=this.state.scriptRunState===nT.RERUN_REQUESTED;!this.sessionInfo.last||e||t||this.state.fragmentIdsThisRun.length>0||this.state.autoReruns.length>0?(X9.info(`Requesting a script run.`),this.widgetMgr.sendUpdateWidgetsMessage(void 0),this.setState({dialog:null})):this.state.dialog?.type===_9.CONNECTION_ERROR&&this.setState({dialog:null}),this.hostCommunicationMgr.sendMessageToHost({type:`WEBSOCKET_CONNECTED`})}else this.state.connectionState===I7.CONNECTED&&this.hostCommunicationMgr.sendMessageToHost({type:`WEBSOCKET_DISCONNECTED`,attemptingToReconnect:e!==I7.DISCONNECTED_FOREVER}),this.sessionInfo.isSet&&this.sessionInfo.disconnect(),this.backendOperationClient.cleanup();this.isInitializingConnectionManager?this.setState({connectionState:e}):(0,C8.flushSync)(()=>{this.setState({connectionState:e})})},this.handleGitInfoChanged=e=>{this.setState({gitInfo:e})},this.handleCustomParentMessage=e=>{this.state.appConfig.enableCustomParentMessages?this.hostCommunicationMgr.sendMessageToHost({type:`CUSTOM_PARENT_MESSAGE`,message:e.message}):X9.error(`Sending messages to the host is disabled in line with the platform policy.`)},this.handleMessage=e=>{let t=(e,t,n)=>{let r=e[t];if(r in n)return n[r](e[r]);throw Error(`Cannot handle ${t} "${r}".`)};try{t(e,`type`,{newSession:e=>this.handleNewSession(e),sessionStatusChanged:e=>this.handleSessionStatusChanged(e),sessionEvent:e=>this.handleSessionEvent(e),delta:t=>this.handleDeltaMsg(t,e.metadata,e.hash),pageConfigChanged:e=>this.handlePageConfigChanged(e),pageInfoChanged:e=>this.handlePageInfoChanged(e),pageNotFound:e=>this.handlePageNotFound(e),gitInfoChanged:e=>this.handleGitInfoChanged(e),scriptFinished:e=>this.handleScriptFinished(e),pageProfile:e=>this.handlePageProfileMsg(e),autoRerun:e=>this.handleAutoRerun(e),fileUrlsResponse:e=>this.uploadClient.onFileURLsResponse(e),parentMessage:e=>this.handleCustomParentMessage(e),logo:t=>this.handleLogo(t,e.metadata),navigation:e=>this.handleNavigation(e),authRedirect:e=>{Cg()?this.hostCommunicationMgr.sendMessageToSameOriginHost({type:`REDIRECT_TO_URL`,url:e.url}):window.location.href=e.url},heartbeatAck:()=>this.handleHeartbeatAck(),backendOperationResponse:e=>this.backendOperationClient.onResponse(e)})}catch(e){let t=Z4(e);X9.error(t),this.showError(`Bad message format`,{message:t.message})}},this.handleLogo=(e,t)=>{this.setState(n=>({elements:n.elements.appRootWithLogo(e,{activeScriptHash:t.activeScriptHash,scriptRunId:n.scriptRunId})}))},this.handlePageConfigChanged=e=>{let{title:t,favicon:n,layout:r,initialSidebarState:i,initialSidebarWidth:a,menuItems:o}=e;this.appNavigation.handlePageConfigChanged(e),t&&(this.hostCommunicationMgr.sendMessageToHost({type:`SET_PAGE_TITLE`,title:t}),document.title=t),n&&this.onPageIconChanged(n),r!==this.state.layout&&r!==Jo.Layout.LAYOUT_UNSET&&this.setState(e=>({layout:r,userSettings:{...e.userSettings,wideMode:r===Jo.Layout.WIDE}})),i!==this.state.initialSidebarState&&i!==Jo.SidebarState.SIDEBAR_UNSET&&this.setState(()=>({initialSidebarState:i}));let s=a?.pixelWidth===void 0?void 0:a.pixelWidth;I(s)&&s!==this.state.initialSidebarWidth&&this.setState(()=>({initialSidebarWidth:s})),o&&this.setState(e=>(o.clearAboutMd&&(o.aboutSectionMd=``),{menuItems:{...e.menuItems,...o}}))},this.handleQueryParamsFromWidget=e=>{this.setState({queryParams:e}),this.hostCommunicationMgr.sendMessageToHost({type:`SET_QUERY_PARAM`,queryParams:e?`?${e}`:``})},this.handlePageInfoChanged=e=>{let{queryString:t}=e,n=document.location.pathname+(t?`?${t}`:``);window.history.pushState({},``,n),this.setState({queryParams:t}),this.hostCommunicationMgr.sendMessageToHost({type:`SET_QUERY_PARAM`,queryParams:t?`?${t}`:``})},this.onPageNotFound=e=>{let t=e?`You have requested page /${e}, but no corresponding file was found in the app's pages/ directory`:`The page that you have requested does not seem to exist`;this.showError(`Page not found`,{message:`${t}. Running the app's main page.`})},this.handlePageNotFound=e=>{let{pageName:t}=e;this.maybeSetState(this.appNavigation.handlePageNotFound(t))},this.onPageIconChanged=e=>{dW(e,this.hostCommunicationMgr.sendMessageToHost,this.endpoints)},this.handleNavigation=e=>{this.setState({navigationPosition:e.position}),this.maybeSetState(this.appNavigation.handleNavigation(e))},this.handlePageProfileMsg=e=>{let t=Yo.toObject(e),n=RMe();this.metricsMgr.enqueue(`pageProfile`,{...t,isFragmentRun:!!t.isFragmentRun,numPages:this.state.appPages?.length,pageScriptHash:this.state.currentPageScriptHash,activeTheme:this.props.theme?.activeTheme?.name,totalLoadTime:Math.round((performance.now()-this.state.latestRunTime)*1e3),browserInfo:n})},this.handleAutoRerun=e=>{let t=setInterval(()=>{this.widgetMgr.sendUpdateWidgetsMessage(e.fragmentId,!0)},e.interval*1e3);this.setState(e=>({autoReruns:[...e.autoReruns,t]}))},this.handleSessionStatusChanged=e=>{this.setState(t=>{let{scriptRunState:n}=t,{dialog:r}=t;return e.scriptIsRunning&&t.scriptRunState!==nT.STOP_REQUESTED?(n=nT.RUNNING,I(r)&&r.type===_9.SCRIPT_COMPILE_ERROR&&(r=void 0)):!e.scriptIsRunning&&t.scriptRunState!==nT.RERUN_REQUESTED&&t.scriptRunState!==nT.COMPILATION_ERROR&&(n=nT.NOT_RUNNING),{userSettings:{...t.userSettings,runOnSave:!!e.runOnSave},dialog:r,scriptRunState:n,scriptChangedOnDisk:e.scriptIsRunning?!1:t.scriptChangedOnDisk}})},this.handleSessionEvent=e=>{if(this.sessionEventDispatcher.handleSessionEventMsg(e),e.type===`scriptCompilationException`){this.setState({scriptRunState:nT.COMPILATION_ERROR});let t={type:_9.SCRIPT_COMPILE_ERROR,exception:e.scriptCompilationException,onClose:()=>{}};this.maybeShowErrorDialog(t,e.scriptCompilationException?.message??`No message`)}else e.type===`scriptChangedOnDisk`&&this.setState({scriptChangedOnDisk:!0}
188)},this.maybeUpdatePageUrl=(e,t,n)=>{let r=this.getBaseUriParts();if(r){let i;i=za.MAIN_PAGE_BASE_URL?Z7(za.MAIN_PAGE_BASE_URL).pathname:r.pathname;let a=Fg(document.location.pathname,i);if((a===``?e:a)!==t){let e=n?``:t,r=this.state.queryParams||vg(),a=r?`?${r}`:``,o=`${i===`/`?``:i}/${e}${a}`;window.history.pushState({},``,o)}}},this.handleNewSession=e=>{let t=e.initialize;if(this.hasStreamlitVersionChanged(t)){window.location.reload();return}this.hasReceivedNewSession=!0,(!this.sessionInfo.isSet||!this.sessionInfo.current.isConnected)&&this.handleInitialization(e);let{appHash:n,currentPageScriptHash:r}=this.state,{scriptRunId:i,name:a,mainScriptPath:o,fragmentIdsThisRun:s,pageScriptHash:c,mainScriptHash:l}=e;if(s.length)this.setState({fragmentIdsThisRun:s,latestRunTime:performance.now()});else{this.cleanupAutoReruns();let t=e.config,n=e.customTheme;this.processThemeInput(n),this.setState({allowRunOnSave:t.allowRunOnSave,hideTopBar:t.hideTopBar,toolbarMode:t.toolbarMode,showErrorLinks:t.showErrorLinks,latestRunTime:performance.now(),mainScriptHash:l,fragmentIdsThisRun:s}),this.maybeSetState(this.appNavigation.handleNewSession(e)),!this.appNavigation.hasSetDefaultFavicon&&!this.appNavigation.isPageIconSet&&(this.appNavigation.hasSetDefaultFavicon=!0,this.onPageIconChanged(`./favicon.png`))}let u=wg(this.sessionInfo.current.installationId+o);this.metricsMgr.setMetadata(this.state.deployedAppMetadata),this.metricsMgr.setAppHash(u),this.metricsMgr.enqueue(`updateReport`),n===u&&r===c?this.setState(e=>({elements:e.elements.clearTransientNodes(s),scriptRunId:i})):this.clearAppState(u,i,a,l)},this.handleInitialization=e=>{let t=e.initialize,n=e.config;this.sessionInfo.setCurrent(Y4.propsFromNewSessionMessage(e)),this.metricsMgr.initialize({gatherUsageStats:n.gatherUsageStats,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost}),this.handleSessionStatusChanged(t.sessionStatus)},this.onHistoryChange=()=>{let{currentPageScriptHash:e}=this.state,t=this.appNavigation.findPageByUrlPath(document.location.pathname),n=document.location.toString().includes(`#`),r=t?.pageScriptHash===e;Ba(t)||n&&r||this.onPageChange(t.pageScriptHash,void 0,!0)},this.setAndSendTheme=e=>{this.props.theme.setTheme(e),this.hostCommunicationMgr.sendMessageToHost({type:`SET_THEME_CONFIG`,themeInfo:Fw(e.emotion)})},this.createThemeHash=e=>{if(!e)return`hash_for_undefined_custom_theme`;let t=yw(JSON.parse(JSON.stringify(e)));return wg(JSON.stringify(t))},this.closeDialog=()=>{this.state.dialog?.type===_9.CONNECTION_ERROR?this.setState({dialog:void 0,connectionErrorDismissed:!0}):this.setState({dialog:void 0})},this.saveSettings=e=>{let{runOnSave:t}=this.state.userSettings,{runOnSave:n}=e;if(this.setState({userSettings:e}),t!==n&&this.isServerConnected()){let e=new uo({setRunOnSave:n});e.type=`setRunOnSave`,this.sendBackMsg(e)}},this.handleRunOnSaveChange=e=>{this.saveSettings({...this.state.userSettings,runOnSave:e})},this.handleDeltaMsg=(e,t,n)=>{this.setState(r=>({elements:r.elements.applyDelta(r.scriptRunId,e,t,n)}))},this.debugShutdownRuntime=()=>{if(this.isServerConnected()){let e=new uo({debugShutdownRuntime:!0});e.type=`debugShutdownRuntime`,this.sendBackMsg(e)}},this.debugDisconnectWebsocket=()=>{if(this.isServerConnected()){let e=new uo({debugDisconnectWebsocket:!0});e.type=`debugDisconnectWebsocket`,this.sendBackMsg(e)}},this.debugClearForwardMsgCache=()=>{Va()&&this.connectionManager?.websocketConnection?.cache.messages.clear()},this.cleanupAutoReruns=()=>{this.state.autoReruns.forEach(e=>{clearInterval(e)}),this.setState({autoReruns:[]})},this.rerunScript=(e=!1)=>{if(this.closeDialog(),!this.isServerConnected()){X9.error(`Cannot rerun script when disconnected from server.`);return}this.state.scriptRunState===nT.RUNNING||this.state.scriptRunState===nT.RERUN_REQUESTED||(this.setState({scriptRunState:nT.RERUN_REQUESTED}),e===!0&&this.saveSettings({...this.state.userSettings,runOnSave:!0}),this.widgetMgr.sendUpdateWidgetsMessage(void 0))},this.sendLoadGitInfoBackMsg=()=>{if(!this.isServerConnected()){X9.error(`Cannot load git information when disconnected from server.`);return}this.sendBackMsg(new uo({loadGitInfo:!0}))}
188,this.onPageChange=(e,t,n)=>{let{elements:r,mainScriptHash:i}=this.state;this.cleanupAutoReruns();let a=this.appNavigation.clearPageElements(r,i),o=new Set(Array.from(a.getElements()).map(e=>kg(e)).filter(Tg));this.sendRerunBackMsg(this.widgetMgr.getActiveWidgetStates(o),void 0,e,void 0,t,n)},this.isAppInReadyState=e=>this.state.connectionState===I7.CONNECTED&&this.state.scriptRunState===nT.NOT_RUNNING&&e.scriptRunState===nT.RUNNING&&e.connectionState===I7.CONNECTED,this.sendRerunBackMsg=(e,t,n,r,i,a)=>{let o=this.getBaseUriParts();if(!o){X9.error(`Cannot send rerun backMessage when disconnected from server.`);return}let{currentPageScriptHash:s}=this.state,c=i??this.getQueryString(),l=``,u={timezone:pne(),timezoneOffset:mne(),locale:hne(),url:dne(),isEmbedded:yg(),colorScheme:this.getThemeColorScheme()};if(n)n!==s&&!a&&(c=cne(i,this.widgetMgr.filterParamsForPageChange(vg())),this.setState({queryParams:c}),this.hostCommunicationMgr.sendMessageToHost({type:`SET_QUERY_PARAM`,queryParams:c?`?${c}`:``}));else if(s)n=s;else{let e;e=za.MAIN_PAGE_BASE_URL?Z7(za.MAIN_PAGE_BASE_URL).pathname:o.pathname,l=Fg(document.location.pathname,e),n=``}let d=this.connectionManager?.getCachedMessageHashes()??[];this.sendBackMsg(new uo({rerunScript:{queryString:c,widgetStates:e,pageScriptHash:n,pageName:l,fragmentId:t,isAutoRerun:r,cachedMessageHashes:d,contextInfo:u}})),this.hasReceivedNewSession=!1},this.stopScript=()=>{if(!this.isServerConnected()){X9.error(`Cannot stop app when disconnected from server.`);return}if(this.state.scriptRunState===nT.NOT_RUNNING||this.state.scriptRunState===nT.STOP_REQUESTED)return;let e=new uo({stopScript:!0});e.type=`stopScript`,this.sendBackMsg(e),this.setState({scriptRunState:nT.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){let e={type:_9.CLEAR_CACHE,confirmCallback:this.clearCache,onClose:()=>{}};this.openDialog(e)}else X9.error(`Cannot clear cache: disconnected from server`)},this.openDeployDialog=()=>{let e={type:_9.DEPLOY_DIALOG,onClose:this.closeDialog,showDeployError:this.showDeployError,isDeployErrorModalOpen:this.state.dialog?.type===_9.DEPLOY_ERROR,metricsMgr:this.metricsMgr,gitInfo:this.state.gitInfo};this.openDialog(e)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){let e=new uo({clearCache:!0});e.type=`clearCache`,this.sendBackMsg(e)}else X9.error(`Cannot clear cache: disconnected from server`)},this.sendAppHeartbeat=e=>{if(this.isServerConnected()){let t=new uo({appHeartbeat:!0});t.type=`appHeartbeat`,this.sendBackMsg(t),this.connectionManager?.onHeartbeatSent(e)}else X9.error(`Cannot send app heartbeat: disconnected from server`)},this.handleHeartbeatAck=()=>{this.connectionManager?.onHeartbeatAckReceived()},this.sendBackMsg=e=>{this.connectionManager?(X9.info(e),this.connectionManager.sendMessage(e)):X9.error(`Not connected. Cannot send back message: ${e.type??`unknown`}`)},this.handleConnectionError=e=>{this.state.connectionErrorDismissed||this.showError(`Connection error`,e,_9.CONNECTION_ERROR)},this.isServerConnected=()=>this.connectionManager?this.connectionManager.isConnected():!1,this.aboutCallback=()=>{let{menuItems:e}=this.state,t={type:_9.ABOUT,onClose:this.closeDialog,aboutSectionMd:e?.aboutSectionMd};this.openDialog(t)},this.printCallback=()=>{let{scriptRunState:e}=this.state;if(e!==nT.NOT_RUNNING){setTimeout(this.printCallback,500);return}let t;try{let e=Ene(this.embeddingId);t=e?.contentWindow?e.contentWindow.window:window}catch{t=window}finally{t||=window,t.print()}},this.screencastCallback=()=>{let{scriptName:e}=this.state,{startRecording:t}=this.props.screenCast;t(`streamlit-${e}-${fne()}`)},this.handleFullScreen=e=>{this.setState({isFullScreen:e})},this.setLibConfig=e=>{this.setState({libConfig:e})},this.setAppConfig=e=>{this.setState({appConfig:e})},this.addScriptFinishedHandler=e=>{this.setState((t,n)=>({scriptFinishedHandlers:t.scriptFinishedHandlers.concat(e)}))},this.removeScriptFinishedHandler=e=>{this.setState((t,n)=>({scriptFinishedHandlers:t.scriptFinishedHandlers.filter(t=>t!==e)}))},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{let{queryParams:e}=this.state,t=e&&e.length>0?e:document.location.search;return t.startsWith(`?`)?t.substring(1):t},this.getThemeColorScheme=()=>{let{activeTheme:e}=this.props.theme;return zC(e.emotion)?`light`:`dark`},this.showDeployButton=()=>Va()&&G9(this.state.isOwner,this.state.toolbarMode)&&this.sessionInfo.isSet&&!this.sessionInfo.isHello,this.deployButtonClicked=()=>{this.metricsMgr.enqueue(`menuClick`,{label:`deployButtonInApp`}),this.sendLoadGitInfoBackMsg(),this.openDeployDialog()},this.requestFileURLs=(e,t)=>{let n=this.isServerConnected(),r=this.sessionInfo.isSet;if(n&&r){let n=new uo({fileUrlsRequest:{requestId:e,fileNames:t.map(e=>e.name),sessionId:this.sessionInfo.current.sessionId}});n.type=`fileUrlsRequest`,this.sendBackMsg(n)}
188else X9.warn(`Cannot request file URLs (isServerConnected: ${n}, isSessionInfoSet: ${r})`),this.uploadClient.onFileURLsResponse({responseId:e,errorMsg:`Connection lost. Please wait for the app to reconnect, then try again.`})},this.handleKeyDown=(e,t)=>{if(!((e===`c`||e===`r`)&&Sz(t)))switch(e){case`c`:G9(this.state.isOwner,this.state.toolbarMode)&&this.openClearCacheDialog();break;case`r`:this.rerunScript();break}},this.handleKeyUp=e=>{e===`esc`&&this.props.screenCast.stopRecording()},this.hasAppDefinedMenuItems=()=>{let{menuItems:e}=this.state;return!!(e?.aboutSectionMd||e?.getHelpUrl&&!e?.hideGetHelp||e?.reportABugUrl&&!e?.hideReportABug)},this.shouldShowToolbar=(e,t)=>{let n=!yg()||lne(),r;return r=this.state.toolbarMode===Ko.ToolbarMode.MINIMAL?e.length>0||t.length>0||this.hasAppDefinedMenuItems():!0,n&&r},Cz(),lEe(),uEe(),this.state={connectionState:I7.INITIAL,elements:jne.empty(``,!0),isFullScreen:!1,scriptName:``,scriptRunId:Y9,appHash:null,scriptRunState:nT.NOT_RUNNING,userSettings:{wideMode:!1,runOnSave:!1},connectionErrorDismissed:!1,layout:Jo.Layout.CENTERED,initialSidebarState:Jo.SidebarState.AUTO,initialSidebarWidth:void 0,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],showErrorLinks:Ko.ShowErrorLinks.SHOW_ERROR_LINKS_AUTO,themeHash:``,gitInfo:null,formsData:Z6(),appPages:[],navSections:[],currentPageScriptHash:``,mainScriptHash:``,hideTopBar:!0,hideSidebarNav:!0,expandSidebarNav:!1,toolbarMode:Ko.ToolbarMode.MINIMAL,latestRunTime:performance.now(),fragmentIdsThisRun:[],isOwner:!1,hostMenuItems:[],hostToolbarItems:[],hostHideSidebarNav:!1,sidebarChevronDownshift:0,pageLinkBaseUrl:``,queryParams:window.location?.search?.replace(/^\?/,``)??``,deployedAppMetadata:{},libConfig:{},appConfig:{},autoReruns:[],inputsDisabled:!1,navigationPosition:Go.Position.SIDEBAR,scriptChangedOnDisk:!1},this.connectionManager=null,this.widgetMgr=new BEe({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:e=>this.setState({formsData:e})}),this.widgetMgr.setQueryParamsChangeHandler(this.handleQueryParamsFromWidget),this.hostCommunicationMgr=new WTe({streamlitExecutionStartedAt:e.streamlitExecutionStartedAt,sendRerunBackMsg:this.sendRerunBackMsg,closeModal:this.closeDialog,stopScript:this.stopScript,rerunScript:this.rerunScript,clearCache:this.clearCache,sendAppHeartbeat:this.sendAppHeartbeat,setInputsDisabled:e=>{this.setState({inputsDisabled:e})},themeChanged:this.handleThemeMessage,pageChanged:e=>this.onPageChange(e),isOwnerChanged:e=>this.setState({isOwner:e}),fileUploadClientConfigChanged:e=>{this.endpoints.setFileUploadClientConfig!==void 0&&this.endpoints.setFileUploadClientConfig(e)},hostMenuItemsChanged:e=>{this.setState({hostMenuItems:e})},hostToolbarItemsChanged:e=>{this.setState({hostToolbarItems:e})},hostHideSidebarNavChanged:e=>{this.setState({hostHideSidebarNav:e})},sidebarChevronDownshiftChanged:e=>{this.setState({sidebarChevronDownshift:e})},pageLinkBaseUrlChanged:e=>{this.setState({pageLinkBaseUrl:e})},queryParamsChanged:e=>{this.setState({queryParams:e})},deployedAppMetadataChanged:e=>{this.setState({deployedAppMetadata:e})},restartWebsocketConnection:()=>{this.connectionManager||(this.setState({scriptRunState:nT.RERUN_REQUESTED}),this.initializeConnectionManager())},terminateWebsocketConnection:()=>{this.connectionManager?.disconnect(),this.connectionManager=null},printApp:this.printCallback}),this.endpoints=new lje({getServerUri:this.getBaseUriParts,csrfEnabled:!0,sendClientError:(e,t,n,r,i)=>{this.hostCommunicationMgr.sendMessageToHost({type:`CLIENT_ERROR`,component:e,error:t,message:n,source:r,customComponentName:i})}}),this.uploadClient=new BTe({sessionInfo:this.sessionInfo,endpoints:this.endpoints,formsWithPendingRequestsChanged:e=>this.widgetMgr.setFormsWithUploadsInProgress(e),requestFileURLs:this.requestFileURLs}),this.componentRegistry=new sSe(this.endpoints),this.appNavigation=new zMe(this.hostCommunicationMgr,this.maybeUpdatePageUrl,this.onPageNotFound,this.onPageIconChanged),this.backendOperationClient=new UTe({sendRequest:e=>{if(!this.isServerConnected()||!this.sessionInfo.isSet)throw Error(`Cannot send backend operation request: not connected to server`);let t=new uo({backendOperationRequest:e});t.type=`backendOperationRequest`,this.sendBackMsg(t)},getSessionId:()=>this.sessionInfo.current.sessionId}),window.streamlitDebug={clearForwardMsgCache:this.debugClearForwardMsgCache,disconnectWebsocket:this.debugDisconnectWebsocket,shutdownRuntime:this.debugShutdownRuntime}}applyInitialHostConfig(){if(!X7())return;let e=za.HOST_CONFIG,t=q9({allowedOrigins:e.allowedOrigins,useExternalAuthToken:e.useExternalAuthToken,enableCustomParentMessages:e.enableCustomParentMessages,blockErrorDialogs:e.blockErrorDialogs});this.hostCommunicationMgr.setAllowedOrigins(t),this.setAppConfig(t);let n=q9({mapboxToken:e.mapboxToken,disableFullscreenMode:e.disableFullscreenMode,enforceDownloadInNewTab:e.enforceDownloadInNewTab,resourceCrossOriginMode:e.resourceCrossOriginMode});Object.keys(n).length>0&&this.setLibConfig(n),e.metricsUrl!==void 0&&this.metricsMgr.setMetricsConfig(e.metricsUrl)}initializeConnectionManager(){this.isInitializingConnectionManager=!0,this.applyInitialHostConfig(),this.connectionManager=new aje({getLastSessionId:()=>this.sessionInfo.last?.sessionId,endpoints:this.endpoints,onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged,claimHostAuthToken:this.hostCommunicationMgr.claimAuthToken,resetHostAuthToken:this.hostCommunicationMgr.resetAuthToken,sendClientError:(e,t,n
188)=>{this.hostCommunicationMgr.sendMessageToHost({type:`CLIENT_ERROR`,component:`Websocket Connection`,error:e,message:t,source:n})},onHostConfigResp:e=>{let{allowedOrigins:t,useExternalAuthToken:n,disableFullscreenMode:r,enableCustomParentMessages:i,mapboxToken:a,enforceDownloadInNewTab:o,metricsUrl:s,blockErrorDialogs:c,setAnonymousCrossOriginPropertyOnMediaElements:l,resourceCrossOriginMode:u}=BMe(za.HOST_CONFIG,e),d={allowedOrigins:t,useExternalAuthToken:n,enableCustomParentMessages:i,blockErrorDialogs:c},f={mapboxToken:a,disableFullscreenMode:r,enforceDownloadInNewTab:o,resourceCrossOriginMode:u??(l?`anonymous`:void 0)};this.metricsMgr.setMetricsConfig(s),this.hostCommunicationMgr.setAllowedOrigins(d),this.setAppConfig(d),this.setLibConfig(f)}}),this.isInitializingConnectionManager=!1}componentDidMount(){this.initializeConnectionManager(),Q4(this.state.scriptRunState),this.hostCommunicationMgr.sendMessageToHost({type:`SCRIPT_RUN_STATE_CHANGED`,scriptRunState:this.state.scriptRunState}),bg()&&document.body.classList.add(`embedded`),Cg()&&(window.iFrameResizer={heightCalculationMethod:()=>{let e=document.querySelectorAll(`[data-iframe-height]`),t=Array.from(e).map(e=>Math.ceil(e.getBoundingClientRect().bottom));return Math.max(0,...t)}},CL(()=>import(`./iframeResizer.contentWindow.DCaNF2NU.js`).then(e=>u(e.default,1)),[],import.meta.url)),this.hostCommunicationMgr.sendMessageToHost({type:`SET_THEME_CONFIG`,themeInfo:Fw(this.props.theme.activeTheme.emotion)}),this.metricsMgr.enqueue(`viewReport`),window.addEventListener(`popstate`,this.onHistoryChange,!1)}componentDidUpdate(e,t){if(window.prerenderReady===!1&&this.isAppInReadyState(t)&&(window.prerenderReady=!0),this.state.scriptRunState!==t.scriptRunState){if(Q4(this.state.scriptRunState),this.state.scriptRunState===nT.NOT_RUNNING)try{JTe(`script-run-cycle`,nT.RUNNING,nT.NOT_RUNNING)}catch{}this.hostCommunicationMgr.sendMessageToHost({type:`SCRIPT_RUN_STATE_CHANGED`,scriptRunState:this.state.scriptRunState})}}componentWillUnmount(){this.connectionManager?.disconnect(),this.hostCommunicationMgr.closeHostCommunication(),window.removeEventListener(`popstate`,this.onHistoryChange,!1)}maybeShowErrorDialog(e,t){let{blockErrorDialogs:n}=this.state.appConfig;n||this.openDialog(e);let r=e.type===_9.SCRIPT_COMPILE_ERROR?e.type:e.title;this.hostCommunicationMgr.sendMessageToHost({type:`CLIENT_ERROR_DIALOG`,error:r,message:t})}showError(e,t,n=_9.WARNING){X9.error(t.message);let r={type:n,title:e,msg:P(Mje,{message:t.message,codeBlock:t.codeBlock}),onClose:()=>{}};this.maybeShowErrorDialog(r,t.message)}hasStreamlitVersionChanged(e){let t;if(za.ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION===!0?t={version:`1.58.0`}.version:this.sessionInfo.isSet&&(t=this.sessionInfo.current.streamlitVersion),t){let{environmentInfo:n}=e;if(I(n)&&I(n.streamlitVersion))return t!=n.streamlitVersion}return!1}maybeSetState(e){if(e){let[t,n]=e;this.setState(t,n)}}processThemeInput(e){let t=this.createThemeHash(e);if(t===this.state.themeHash)return;this.setState({themeHash:t});let n=!Ew(this.props.theme.activeTheme);if(e){let t=Eae(e);this.props.theme.addThemes(t,{keepPresetThemes:!1});let n=Zw(t);if(n)this.setAndSendTheme(n);else if(t.length>1){let e=t.findIndex(e=>e.name===_w);this.setAndSendTheme(t[e])}else this.setAndSendTheme(t[0])}else if(this.props.theme.addThemes([]),n){let e=Zw([fw,dw]);e?this.setAndSendTheme(e):this.setAndSendTheme(ww())}(e?.fontFaces&&e.fontFaces.length>0||e?.fontSources&&e.fontSources.length>0)&&this.props.theme.setFonts(e)}handleScriptFinished(e){(e===Bo.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||e===Bo.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN||e===Bo.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY)&&(Promise.resolve().then(()=>{this.state.scriptFinishedHandlers.forEach(e=>e())}),(e===Bo.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||e===Bo.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY)&&this.setState(({scriptRunId:e,fragmentIdsThisRun:t,elements:n})=>({elements:n.clearStaleNodes(e,t)}),()=>{this.removeInactiveWidgetState()}),this.connectionManager!==null&&e!==Bo.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN&&this.sessionInfo.isSet&&this.hasReceivedNewSession&&this.connectionManager.incrementMessageCacheRunCount(this.sessionInfo.current.maxCachedMessageAge,this.state.fragmentIdsThisRun))}clearAppState(e,t,n,r){this.setState(i=>({scriptRunId:t,scriptName:n,appHash:e,elements:this.appNavigation.clearPageElements(i.elements,r)}
188),()=>{this.removeInactiveWidgetState()})}removeInactiveWidgetState(){let{elements:e,blockIds:t}=this.state.elements.getActiveIds(),n=new Set([...Array.from(e).map(e=>kg(e)).filter(Tg),...t]);this.widgetMgr.removeInactive(n)}openDialog(e){this.setState({dialog:e})}render(){let{allowRunOnSave:e,connectionState:t,dialog:n,elements:r,initialSidebarState:i,menuItems:a,isFullScreen:o,scriptRunId:s,scriptRunState:c,userSettings:l,hideTopBar:u,hideSidebarNav:d,expandSidebarNav:f,sidebarNavVisibleItems:p,currentPageScriptHash:m,hostHideSidebarNav:h,pageLinkBaseUrl:g,sidebarChevronDownshift:_,hostMenuItems:v,hostToolbarItems:y,libConfig:b,inputsDisabled:x,appPages:S,navSections:C,navigationPosition:w,scriptChangedOnDisk:T}=this.state,E=this.props.isMobileViewport?Go.Position.SIDEBAR:w,D=G9(this.state.isOwner,this.state.toolbarMode),O=(0,Kg.default)(`stApp`,Pg(this.embeddingId),{"streamlit-embedded":yg(),"streamlit-wide":l.wideMode}),k=n?iMe({...n,onClose:this.closeDialog}):null,A=this.shouldShowToolbar(v,y),ee=!yg()||une(),te=bg();return P(Dje,{initialSidebarState:i,initialSidebarWidth:this.state.initialSidebarWidth,appRootRef:this.appRootRef,pageLinkBaseUrl:g,currentPageScriptHash:m,onPageChange:this.onPageChange,navSections:C,appPages:S,appLogo:r.logo,sidebarChevronDownshift:_,expandSidebarNav:f,sidebarNavVisibleItems:p,hideSidebarNav:d||h||E===Go.Position.TOP,isFullScreen:o,setFullScreen:this.handleFullScreen,activeTheme:this.props.theme.activeTheme,setTheme:this.setAndSendTheme,availableThemes:this.props.theme.availableThemes,fragmentIdsThisRun:this.state.fragmentIdsThisRun,locale:window.navigator.language,formsData:this.state.formsData,scriptRunState:c,scriptRunId:s,mapboxToken:b.mapboxToken,enforceDownloadInNewTab:b.enforceDownloadInNewTab,resourceCrossOriginMode:b.resourceCrossOriginMode,showErrorLinks:this.state.showErrorLinks,backendOperationClient:this.backendOperationClient,children:P(n8,{keyName:`r,c,esc`,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,children:F(LMe,{ref:this.appRootRef,className:O,"data-testid":`stApp`,"data-test-script-state":s==Y9?`initial`:c,"data-test-connection-state":t,children:[P(qke,{endpoints:this.endpoints,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,elements:r,widgetMgr:this.widgetMgr,uploadClient:this.uploadClient,navigationPosition:E,wideMode:l.wideMode,embedded:yg(),showPadding:ee,disableScrolling:te,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,widgetsDisabled:x||t!==I7.CONNECTED,showToolbar:A,disableFullscreenMode:b.disableFullscreenMode,componentRegistry:this.componentRegistry,topRightContent:F(Ht,{children:[!u&&P(Eje,{connectionState:t,scriptRunState:c,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:e,showScriptChangedActions:T}),!u&&P(gMe,{hostToolbarItems:y,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,metricsMgr:this.metricsMgr}),this.showDeployButton()&&!T&&P(Yke,{onClick:this.deployButtonClicked}),!u&&P(PAe,{isServerConnected:this.isServerConnected(),quickRerunCallback:this.rerunScript,clearCacheCallback:this.openClearCacheDialog,aboutCallback:this.aboutCallback,printCallback:this.printCallback,screencastCallback:this.screencastCallback,screenCastState:this.props.screenCast.currentState,hostMenuItems:v,developmentMode:D,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,menuItems:a,metricsMgr:this.metricsMgr,toolbarMode:this.state.toolbarMode,runOnSave:this.state.userSettings.runOnSave,onRunOnSaveChange:this.handleRunOnSaveChange,allowRunOnSave:e&&D,streamlitVersion:this.sessionInfo.isSet?this.sessionInfo.current.streamlitVersion:void 0})]})}),k]})})})}}),HMe=e=>{let{isMobile:t}=MMe();return P(VMe,{...e,isMobileViewport:t})},Z9=e=>e.find(e=>e.name===(Cw()===`dark`?gw:hw)),Q9=e=>({...e,name:_w,displayName:pw});function UMe(){let e=Uw(),[t,n]=(0,_.useState)(e),[r,i]=(0,_.useState)(e.themeInput?.fontFaces??[]),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(()=>[...Tw(),...Ew(e)?[]:[e]]),l=(0,_.useRef)(s);(0,_.useEffect)(()=>{l.current=s},[s]);let u=(0,_.useCallback)((e,t={})=>{let{keepPresetThemes:n=!0}=t,r=[...n?Tw():[],...e];l.current=r,c(r)},[]),d=(0,_.useCallback)((e,t={})=>{let{persist:r=!0}=t;n(t=>e===t?t:(r&&Cae(e),e))},[]),f=(0,_.useCallback)(e=>{if(e.name===`Use system setting`){d(Hw());return}if(e.name===`Custom Theme Auto`){let e=Z9(l.current);if(e){d(Q9(e));return}}d(e)},[d]),p=(0,_.useCallback)(()=>{let e=Hw();t.name===`Use system setting`&&d(e,{persist:!1});let n=s.filter(e=>e.name!==pw),r=n.some(e=>
188e.name===_w);if(r&&t.name===`Custom Theme Auto`){let e=Z9(n);e&&d(Q9(e),{persist:!1})}c(r?n:[ww(),...n])},[t.name,s,d]),m=(0,_.useCallback)(e=>{e.fontFaces&&i(e.fontFaces);let t=[...e.fontSources||[],...e.sidebar?.fontSources||[]],n={};t.forEach(e=>{e.sourceUrl&&e.configName&&(n[e.configName]=e.sourceUrl)}),o(Object.keys(n).length>0?n:null)},[]),h=(0,_.useCallback)(e=>{m(e),f(Lw(mw,new qo(e)))},[m,f]);return(0,_.useEffect)(()=>{let e=window.matchMedia(`(prefers-color-scheme: dark)`);return e.addEventListener(`change`,p),window.addEventListener(`afterprint`,p),()=>{window.removeEventListener(`afterprint`,p),e.removeEventListener(`change`,p)}},[p]),[{setTheme:f,activeTheme:t,addThemes:u,availableThemes:s,setFonts:m,setImportedTheme:h},r,a]}var WMe=({streamlitExecutionStartedAt:e})=>{let[t,n,r]=UMe(),{activeTheme:i}=t;return P(qTe,{theme:i,children:P(oSe,{children:F(eW,{children:[n.length>0&&P(ja,{fontFaces:n}),r&&P(Ma,{fontSources:r}),P(HMe,{theme:t,streamlitExecutionStartedAt:e})]})})})};Ea();var GMe=Date.now(),KMe=new Wi({prefix:`st-`}),$9=document.getElementById(`root`);if(!$9)throw Error(`#root DOM element not found`);(0,Qt.createRoot)($9).render(P(_.StrictMode,{children:P(zn,{children:P(Sa,{value:KMe,children:P(WMe,{streamlitExecutionStartedAt:GMe})})})}));export{JCe as $,s as $a,pu as $i,bA as $n,Vy as $r,Uz as $t,L4 as A,Po as Aa,Jh as Ai,hhe as An,Aie as Ar,kq as At,N4 as B,za as Ba,fm as Bi,Uj as Bn,rx as Br,iW as Bt,yTe as C,Do as Ca,Cne as Ci,$F as Cn,Fw as Cr,JJ as Ct,hTe as D,lo as Da,eg as Di,VF as Dn,Nie as Dr,Ave as Dt,B4 as E,bo as Ea,tg as Ei,GF as En,XC as Er,jve as Et,V4 as F,yo as Fa,$m as Fi,bN as Fn,Uie as Fr,mq as Ft,Jwe as G,Kt as Ga,Df as Gi,aj as Gn,Jb as Gr,NH as Gt,o4 as H,ka as Ha,um as Hi,Hj as Hn,zb as Hr,QU as Ht,U4 as I,zo as Ia,eh as Ii,Gj as In,Die as Ir,b_e as It,t2 as J,P as Ja,Fd as Ji,QA as Jn,Vb as Jr,qV as Jt,Fwe as K,Ut as Ka,Of as Ki,$A as Kn,Wb as Kr,PH as Kt,CTe as L,co as La,vm as Li,Kj as Ln,PC as Lr,pq as Lt,bTe as M,Io as Ma,Lh as Mi,$N as Mn,Bie as Mr,Cq as Mt,pTe as N,Lo as Na,Ph as Ni,XN as Nn,zC as Nr,D_e as Nt,wTe as O,Mo as Oa,$h as Oi,BF as On,zie as Or,Mve as Ot,xTe as P,Ro as Pa,Mh as Pi,xN as Pn,Wie as Pr,hq as Pt,k0 as Q,m as Qa,Cu as Qi,AA as Qn,ab as Qr,_V as Qt,vTe as R,Ba as Ra,_m as Ri,Wj as Rn,nx as Rr,sW as Rt,STe as S,Eo as Sa,Ig as Si,QF as Sn,qw as Sr,WJ as St,gTe as T,Ao as Ta,ng as Ti,KF as Tn,ZC as Tr,Rq as Tt,qwe as U,Da as Ua,Vf as Ui,Vj as Un,Bb as Ur,XU as Ut,c4 as V,Oa as Va,lm as Vi,Bj as Vn,Xb as Vr,$U as Vt,r4 as W,Aa as Wa,Hf as Wi,Ij as Wn,Hb as Wr,YU as Wt,Y0 as X,it as Xa,yd as Xi,MA as Xn,jb as Xr,TV as Xt,e2 as Y,F as Ya,bd as Yi,Loe as Yn,Pb as Yr,EV as Yt,Z0 as Z,tt as Za,xu as Zi,kA as Zn,rb as Zr,wV as Zt,q4 as _,Ds as _a,Tne as _i,dL as _n,uT as _r,eZ as _t,y5 as a,Cl as aa,B_ as ai,kR as an,BE as ar,KSe as at,fTe as b,So as ba,bne as bi,BI as bn,Gw as br,HX as bt,p5 as c,dl as ca,U_ as ci,DR as cn,fE as cr,fSe as ct,U8 as d,rl as da,Yg as di,cR as dn,gT as dr,cZ as dt,fu as ea,zy as ei,zz as en,o as eo,$k as er,VCe as et,H8 as f,Gs as fa,Nne as fi,aR as fn,hT as fr,iZ as ft,Z4 as g,Os as ga,jg as gi,bL as gn,fT as gr,tZ as gt,l6 as h,Ns as ha,wne as hi,CL as hn,mT as hr,rZ as ht,b5 as i,kl as ia,Ey as ii,jz as in,u as io,HE as ir,W$ as it,H4 as j,Fo as ja,Kh as ji,jF as jn,Mie as jr,Eq as jt,z4 as k,No as ka,Xh as ki,LF as kn,jie as kr,Lq as kt,G8 as l,cl as la,$g as li,lR as ln,dE as lr,Qxe as lt,J6 as m,ks as ma,Gg as mi,QL as mn,pT as mr,Mxe as mt,C5 as n,au as na,Ry as ni,Pz as nn,f as no,Sk as nr,A$ as nt,v5 as o,Sl as oa,V_ as oi,ER as on,TE as or,WSe as ot,yDe as p,Fs as pa,Jg as pi,oR as pn,Yae as pr,jxe as pt,Nwe as q,Ht as qa,Jd as qi,Roe as qn,Ub as qr,MH as qt,S5 as r,Al as ra,wy as ri,Mz as rn,d as ro,Yk as rr,y$ as rt,g5 as s,pl as sa,W_ as si,OR as sn,_E as sr,qZ as st,l7 as t,iu as ta,W as ti,Fz as tn,c as to,xk as tr,ZSe as tt,W8 as u,sl as ua,G_ as ui,sR as un,uE as ur,lZ as ut,G4 as v,Ts as va,one as vi,fL as vn,G as vr,QX as vt,_Te as w,Oo as wa,ag as wi,XF as wn,iw as wr,LJ as wt,mTe as x,wo as xa,xne as xi,tI as xn,Tae as xr,bY as xt,F4 as y,Es as ya,Eg as yi,uL as yn,iT as yr,UX as yt,R4 as z,I as za,dm as zi,tse as zn,tx as zr,aW as zt};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.